2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
222 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
227 if test x$as_have_required = xno; then :
228 $as_echo "$0: This script requires a shell more modern than all"
229 $as_echo "$0: the shells that I found on your system."
230 if test x${ZSH_VERSION+set} = xset ; then
231 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
234 $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: http://bugs.python.org/ about your system, including
236 $0: any error possibly output before this message. Then
237 $0: install a modern shell, or manually run the script
238 $0: under such a shell if you do have one."
244 SHELL=${CONFIG_SHELL-/bin/sh}
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
255 # Portably unset VAR.
258 { eval $1=; unset $1;}
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
282 # Create "$as_dir" as a directory, including parents if necessary.
287 -*) as_dir=./$as_dir;;
289 test -d "$as_dir" || eval $as_mkdir_p || {
293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 as_dirs="'$as_qdir' $as_dirs"
297 as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299 X"$as_dir" : 'X\(//\)[^/]' \| \
300 X"$as_dir" : 'X\(//\)$' \| \
301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 test -d "$as_dir" && break
322 test -z "$as_dirs" || eval "mkdir $as_dirs"
323 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334 eval 'as_fn_append ()
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 as_val=`expr "$@" || test $? -eq 1`
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
370 as_status=$1; test $as_status -eq 0 && as_status=1
372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
375 $as_echo "$as_me: error: $2" >&2
376 as_fn_exit $as_status
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400 X"$0" : 'X\(//\)$' \| \
401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
403 sed '/^.*\/\([^/][^/]*\)\/*$/{
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
425 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426 as_lineno_2=$LINENO as_lineno_2a=$LINENO
427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 chmod +x "$as_me.lineno" ||
446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
448 # Don't try to exec as it changes $[0], causing all sort of problems
449 # (the dirname of $[0] is not the place where we might find the
450 # original and so on. Autoconf is especially sensitive to this).
452 # Exit status is that of the last command.
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
459 case `echo 'xy\c'` in
460 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471 rm -f conf$$.dir/conf$$.file
474 mkdir conf$$.dir 2>/dev/null
476 if (echo >conf$$.file) 2>/dev/null; then
477 if ln -s conf$$.file conf$$ 2>/dev/null; then
479 # ... but there are two gotchas:
480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482 # In both cases, we have to default to `cp -p'.
483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
485 elif ln conf$$.file conf$$ 2>/dev/null; then
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
496 if mkdir -p . 2>/dev/null; then
497 as_mkdir_p='mkdir -p "$as_dir"'
499 test -d ./-p && rmdir ./-p
503 if test -x / >/dev/null 2>&1; then
506 if ls -dL / >/dev/null 2>&1; then
513 if test -d "$1"; then
519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 ???[sx]*):;;*)false;;esac;fi
524 as_executable_p=$as_test_x
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 test -n "$DJDIR" || exec 7<&0 </dev/null
537 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
538 # so uname gets run too.
539 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544 ac_default_prefix=/usr/local
546 ac_config_libobj_dir=.
553 # Identity of this package.
554 PACKAGE_NAME='python'
555 PACKAGE_TARNAME='python'
556 PACKAGE_VERSION='2.7'
557 PACKAGE_STRING='python 2.7'
558 PACKAGE_BUGREPORT='http://bugs.python.org/'
561 ac_unique_file="Include/object.h"
562 # Factoring default headers for most tests.
563 ac_includes_default="\
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
575 # ifdef HAVE_STDLIB_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
598 ac_subst_vars='LTLIBOBJS
606 HAVE_GETHOSTBYNAME_R_3_ARG
607 HAVE_GETHOSTBYNAME_R_5_ARG
608 HAVE_GETHOSTBYNAME_R_6_ARG
668 EXPORT_MACOSX_DEPLOYMENT_TARGET
669 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 FRAMEWORKINSTALLAPPSPREFIX
675 FRAMEWORKUNIXTOOLSPREFIX
676 FRAMEWORKALTINSTALLLAST
677 FRAMEWORKALTINSTALLFIRST
679 FRAMEWORKINSTALLFIRST
680 PYTHONFRAMEWORKINSTALLDIR
681 PYTHONFRAMEWORKPREFIX
683 PYTHONFRAMEWORKIDENTIFIER
718 program_transform_name
731 enable_option_checking
757 with_wctype_functions
764 ac_precious_vars='build_alias
775 # Initialize some variables set by options.
777 ac_init_version=false
778 ac_unrecognized_opts=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
789 program_transform_name=s,x,x,
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
814 infodir='${datarootdir}/info'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\$ac_option
835 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
864 cache_file=config.cache ;;
866 -datadir | --datadir | --datadi | --datad)
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
878 -disable-* | --disable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
892 eval enable_$ac_useropt=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 -enable-* | --enable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
918 eval enable_$ac_useropt=\$ac_optarg ;;
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
933 -help | --help | --hel | --he | -h)
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 htmldir=$ac_optarg ;;
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
963 -libdir | --libdir | --libdi | --libd)
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
975 -localedir | --localedir | --localedi | --localed | --locale)
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 # Obsolete; use --without-fp.
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1054 -psdir | --psdir | --psdi | --psd | --ps)
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 sbindir=$ac_optarg ;;
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 sharedstatedir=$ac_optarg ;;
1080 -site | --site | --sit)
1082 -site=* | --site=* | --sit=*)
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1122 eval with_$ac_useropt=\$ac_optarg ;;
1124 -without-* | --without-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1138 eval with_$ac_useropt=no ;;
1141 # Obsolete; use --with-x.
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149 x_includes=$ac_optarg ;;
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156 x_libraries=$ac_optarg ;;
1158 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1159 Try \`$0 --help' for more information"
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 case $ac_envvar in #(
1166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1167 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169 eval $ac_envvar=\$ac_optarg
1170 export $ac_envvar ;;
1173 # FIXME: should be removed in autoconf 3.0.
1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1183 if test -n "$ac_prev"; then
1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185 as_fn_error $? "missing argument to $ac_option"
1188 if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1191 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196 # Check all directory arguments for consistency.
1197 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
1202 eval ac_val=\$$ac_var
1203 # Remove trailing slashes.
1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\$ac_val;;
1209 # Be sure to have absolute directory names.
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used" >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 as_fn_error $? "working directory cannot be determined"
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 as_fn_error $? "pwd does not report name of working directory"
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291 # When building in place, set srcdir=.
1292 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295 # Remove unnecessary trailing slashes from srcdir.
1296 # Double slashes in file names in object file debugging info
1297 # mess up M-x gdb in Emacs.
1299 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 # Report the --help message.
1311 if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1315 \`configure' configures python 2.7 to adapt to many kinds of systems.
1317 Usage: $0 [OPTION]... [VAR=VALUE]...
1319 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320 VAR=VALUE. See below for descriptions of some of the useful variables.
1322 Defaults for the options are specified in brackets.
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking ...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335 Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
1337 [$ac_default_prefix]
1338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1341 By default, \`make install' will install all the files in
1342 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344 for instance \`--prefix=\$HOME'.
1346 For better control, use the options below.
1348 Fine tuning of the installation directories:
1349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of python 2.7:";;
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-universalsdk[=SDKDIR]
1385 Build against Mac OS X 10.4u SDK (ppc/i386)
1386 --enable-framework[=INSTALLDIR]
1387 Build (MacOSX|Darwin) framework
1388 --enable-shared disable/enable building shared python library
1389 --enable-profiling enable C-level code profiling
1390 --enable-toolbox-glue disable/enable MacOSX glue code for extensions
1391 --enable-ipv6 Enable ipv6 (with ipv4) support
1392 --disable-ipv6 Disable ipv6 support
1393 --enable-big-digits[=BITS]
1394 use big digits for Python longs [[BITS=30]]
1395 --enable-unicode[=ucs[24]]
1396 Enable Unicode strings (default is ucs2)
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --with-universal-archs=ARCH
1402 select architectures for universal build ("32-bit",
1403 "64-bit", "3-way", "intel" or "all")
1404 --with-framework-name=FRAMEWORK
1405 specify an alternate name of the framework built
1406 with --enable-framework
1407 --without-gcc never use gcc
1408 --with-cxx-main=<compiler>
1409 compile main() and link python executable with C++
1411 --with-suffix=.exe set executable suffix
1412 --with-pydebug build with Py_DEBUG defined
1413 --with-libs='lib1 ...' link against additional libs
1414 --with-system-expat build pyexpat module using an installed expat
1416 --with-system-ffi build _ctypes module using an installed ffi library
1417 --with-dbmliborder=db1:db2:...
1418 order to check db backends for dbm. Valid value is a
1419 colon separated string with the backend names
1420 `ndbm', `gdbm' and `bdb'.
1421 --with-signal-module disable/enable signal module
1422 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
1423 --with(out)-threads[=DIRECTORY]
1424 disable/enable thread support
1425 --with(out)-thread[=DIRECTORY]
1426 deprecated; use --with(out)-threads
1427 --with-pth use GNU pth threading libraries
1428 --with(out)-doc-strings disable/enable documentation strings
1429 --with(out)-tsc enable/disable timestamp counter profile
1430 --with(out)-pymalloc disable/enable specialized mallocs
1431 --with-valgrind Enable Valgrind support
1432 --with-wctype-functions use wctype.h functions
1433 --with-fpectl enable SIGFPE catching
1434 --with-libm=STRING math library
1435 --with-libc=STRING C library
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1450 Report bugs to <http://bugs.python.org/>.
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1480 .) # We are building in place.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1513 python configure 2.7
1514 generated by GNU Autoconf 2.67
1516 Copyright (C) 2010 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1561 as_fn_set_status $ac_retval
1563 } # ac_fn_c_try_compile
1565 # ac_fn_c_try_cpp LINENO
1566 # ----------------------
1567 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } > conftest.i && {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 as_fn_set_status $ac_retval
1602 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605 # the include files in INCLUDES and setting the cache variable VAR
1607 ac_fn_c_check_header_mongrel ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if eval "test \"\${$3+set}\"" = set; then :
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if eval "test \"\${$3+set}\"" = set; then :
1614 $as_echo_n "(cached) " >&6
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1620 # Is the header compilable?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622 $as_echo_n "checking $2 usability... " >&6; }
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 ac_header_compiler=yes
1631 ac_header_compiler=no
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635 $as_echo "$ac_header_compiler" >&6; }
1637 # Is the header present?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639 $as_echo_n "checking $2 presence... " >&6; }
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1644 if ac_fn_c_try_cpp "$LINENO"; then :
1645 ac_header_preproc=yes
1647 ac_header_preproc=no
1649 rm -f conftest.err conftest.i conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651 $as_echo "$ac_header_preproc" >&6; }
1653 # So? What about this header?
1654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1672 ( $as_echo "## -------------------------------------- ##
1673 ## Report this to http://bugs.python.org/ ##
1674 ## -------------------------------------- ##"
1675 ) | sed "s/^/$as_me: WARNING: /" >&2
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 $as_echo_n "checking for $2... " >&6; }
1680 if eval "test \"\${$3+set}\"" = set; then :
1681 $as_echo_n "(cached) " >&6
1683 eval "$3=\$ac_header_compiler"
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 } # ac_fn_c_check_header_mongrel
1693 # ac_fn_c_try_run LINENO
1694 # ----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696 # that executables *can* be run.
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_link"
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>&5
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711 { { case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_try") 2>&5
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; }; }; then :
1723 $as_echo "$as_me: program exited with status $ac_status" >&5
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1727 ac_retval=$ac_status
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 as_fn_set_status $ac_retval
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval "test \"\${$3+set}\"" = set; then :
1745 $as_echo_n "(cached) " >&6
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1752 if ac_fn_c_try_compile "$LINENO"; then :
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 } # ac_fn_c_check_header_compile
1766 # ac_fn_c_try_link LINENO
1767 # -----------------------
1768 # Try to link conftest.$ac_ext, and return whether this succeeded.
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext conftest$ac_exeext
1773 if { { ac_try="$ac_link"
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_link") 2>conftest.err
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest$ac_exeext && {
1792 test "$cross_compiling" = yes ||
1793 $as_test_x conftest$ac_exeext
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1804 # interfere with the next link command; also delete a directory that is
1805 # left behind by Apple's compiler. We do this before executing the actions.
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 as_fn_set_status $ac_retval
1810 } # ac_fn_c_try_link
1812 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1813 # -------------------------------------------
1814 # Tests whether TYPE exists after having included INCLUDES, setting cache
1815 # variable VAR accordingly.
1816 ac_fn_c_check_type ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval "test \"\${$3+set}\"" = set; then :
1822 $as_echo_n "(cached) " >&6
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1837 if ac_fn_c_try_compile "$LINENO"; then :
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1850 if ac_fn_c_try_compile "$LINENO"; then :
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 } # ac_fn_c_check_type
1866 # ac_fn_c_find_uintX_t LINENO BITS VAR
1867 # ------------------------------------
1868 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1870 ac_fn_c_find_uintX_t ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1874 $as_echo_n "checking for uint$2_t... " >&6; }
1875 if eval "test \"\${$3+set}\"" = set; then :
1876 $as_echo_n "(cached) " >&6
1879 # Order is important - never check a type that is potentially smaller
1880 # than half of the expected target width.
1881 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1882 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 $ac_includes_default
1889 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1896 if ac_fn_c_try_compile "$LINENO"; then :
1901 eval "$3=\$ac_type" ;;
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 if eval test \"x\$"$3"\" = x"no"; then :
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 } # ac_fn_c_find_uintX_t
1919 # ac_fn_c_find_intX_t LINENO BITS VAR
1920 # -----------------------------------
1921 # Finds a signed integer type with width BITS, setting cache variable VAR
1923 ac_fn_c_find_intX_t ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1927 $as_echo_n "checking for int$2_t... " >&6; }
1928 if eval "test \"\${$3+set}\"" = set; then :
1929 $as_echo_n "(cached) " >&6
1932 # Order is important - never check a type that is potentially smaller
1933 # than half of the expected target width.
1934 for ac_type in int$2_t 'int' 'long int' \
1935 'long long int' 'short int' 'signed char'; do
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 $ac_includes_default
1939 enum { N = $2 / 2 - 1 };
1943 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $ac_includes_default
1954 enum { N = $2 / 2 - 1 };
1958 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1959 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1966 if ac_fn_c_try_compile "$LINENO"; then :
1973 eval "$3=\$ac_type" ;;
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 if eval test \"x\$"$3"\" = x"no"; then :
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991 } # ac_fn_c_find_intX_t
1993 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1994 # --------------------------------------------
1995 # Tries to find the compile-time value of EXPR in a program that includes
1996 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1998 ac_fn_c_compute_int ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 if test "$cross_compiling" = yes; then
2002 # Depending upon the size, compute the lo and hi bounds.
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2009 static int test_array [1 - 2 * !(($2) >= 0)];
2016 if ac_fn_c_try_compile "$LINENO"; then :
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2025 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_hi=$ac_mid; break
2035 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2036 if test $ac_lo -le $ac_mid; then
2040 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 static int test_array [1 - 2 * !(($2) < 0)];
2058 if ac_fn_c_try_compile "$LINENO"; then :
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2067 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_lo=$ac_mid; break
2077 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2078 if test $ac_mid -le $ac_hi; then
2082 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 # Binary search between lo and hi bounds.
2093 while test "x$ac_lo" != "x$ac_hi"; do
2094 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2101 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108 if ac_fn_c_try_compile "$LINENO"; then :
2111 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2123 static long int longval () { return $2; }
2124 static unsigned long int ulongval () { return $2; }
2131 FILE *f = fopen ("conftest.val", "w");
2136 long int i = longval ();
2139 fprintf (f, "%ld", i);
2143 unsigned long int i = ulongval ();
2146 fprintf (f, "%lu", i);
2148 /* Do not output a trailing newline, as this causes \r\n confusion
2149 on some platforms. */
2150 return ferror (f) || fclose (f) != 0;
2156 if ac_fn_c_try_run "$LINENO"; then :
2157 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2162 conftest.$ac_objext conftest.beam conftest.$ac_ext
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167 as_fn_set_status $ac_retval
2169 } # ac_fn_c_compute_int
2171 # ac_fn_c_check_func LINENO FUNC VAR
2172 # ----------------------------------
2173 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2174 ac_fn_c_check_func ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if eval "test \"\${$3+set}\"" = set; then :
2180 $as_echo_n "(cached) " >&6
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2186 #define $2 innocuous_$2
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char $2 (); below.
2190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2191 <limits.h> exists even on freestanding compilers. */
2194 # include <limits.h>
2196 # include <assert.h>
2201 /* Override any GCC internal prototype to avoid an error.
2202 Use char because int might match the return type of a GCC
2203 builtin and then its argument prototype would still apply. */
2208 /* The GNU C library defines this for functions which it implements
2209 to always fail with ENOSYS. Some functions are actually named
2210 something starting with __ and the normal name is an alias. */
2211 #if defined __stub_$2 || defined __stub___$2
2223 if ac_fn_c_try_link "$LINENO"; then :
2228 rm -f core conftest.err conftest.$ac_objext \
2229 conftest$ac_exeext conftest.$ac_ext
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 } # ac_fn_c_check_func
2238 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2239 # ----------------------------------------------------
2240 # Tries to find if the field MEMBER exists in type AGGR, after including
2241 # INCLUDES, setting cache variable VAR accordingly.
2242 ac_fn_c_check_member ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2246 $as_echo_n "checking for $2.$3... " >&6; }
2247 if eval "test \"\${$4+set}\"" = set; then :
2248 $as_echo_n "(cached) " >&6
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2263 if ac_fn_c_try_compile "$LINENO"; then :
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2273 if (sizeof ac_aggr.$3)
2279 if ac_fn_c_try_compile "$LINENO"; then :
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2293 } # ac_fn_c_check_member
2295 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2296 # ---------------------------------------------
2297 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2299 ac_fn_c_check_decl ()
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 as_decl_name=`echo $2|sed 's/ *(.*//'`
2303 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2305 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2306 if eval "test \"\${$3+set}\"" = set; then :
2307 $as_echo_n "(cached) " >&6
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2315 #ifndef $as_decl_name
2317 (void) $as_decl_use;
2319 (void) $as_decl_name;
2327 if ac_fn_c_try_compile "$LINENO"; then :
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2336 $as_echo "$ac_res" >&6; }
2337 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339 } # ac_fn_c_check_decl
2340 cat >config.log <<_ACEOF
2341 This file contains any messages produced by compilers while
2342 running configure, to aid debugging if configure makes a mistake.
2344 It was created by python $as_me 2.7, which was
2345 generated by GNU Autoconf 2.67. Invocation command line was
2357 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2358 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2359 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2360 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2361 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2363 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2364 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2366 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2367 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2368 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2369 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2370 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2371 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2372 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 $as_echo "PATH: $as_dir"
2397 # Keep a trace of the command line.
2398 # Strip out --no-create and --no-recursion so they do not pile up.
2399 # Strip out --silent because we don't want to record it for future runs.
2400 # Also quote any args containing shell meta-characters.
2401 # Make two passes to allow for proper duplicate-argument suppression.
2405 ac_must_keep_next=false
2411 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2413 | -silent | --silent | --silen | --sile | --sil)
2416 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2419 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2421 as_fn_append ac_configure_args1 " '$ac_arg'"
2422 if test $ac_must_keep_next = true; then
2423 ac_must_keep_next=false # Got value, back to normal.
2426 *=* | --config-cache | -C | -disable-* | --disable-* \
2427 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2428 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2429 | -with-* | --with-* | -without-* | --without-* | --x)
2430 case "$ac_configure_args0 " in
2431 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2434 -* ) ac_must_keep_next=true ;;
2437 as_fn_append ac_configure_args " '$ac_arg'"
2442 { ac_configure_args0=; unset ac_configure_args0;}
2443 { ac_configure_args1=; unset ac_configure_args1;}
2445 # When interrupted or exit'd, cleanup temporary files, and complete
2446 # config.log. We remove comments because anyway the quotes in there
2447 # would cause problems or look ugly.
2448 # WARNING: Use '\'' to represent an apostrophe within the trap.
2449 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2450 trap 'exit_status=$?
2451 # Save into config.log some information that might help in debugging.
2455 $as_echo "## ---------------- ##
2456 ## Cache variables. ##
2457 ## ---------------- ##"
2459 # The following way of writing the cache mishandles newlines in values,
2461 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2462 eval ac_val=\$$ac_var
2466 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2470 _ | IFS | as_nl) ;; #(
2471 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2472 *) { eval $ac_var=; unset $ac_var;} ;;
2477 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2478 *${as_nl}ac_space=\ *)
2480 "s/'\''/'\''\\\\'\'''\''/g;
2481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2484 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2491 $as_echo "## ----------------- ##
2492 ## Output variables. ##
2493 ## ----------------- ##"
2495 for ac_var in $ac_subst_vars
2497 eval ac_val=\$$ac_var
2499 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2501 $as_echo "$ac_var='\''$ac_val'\''"
2505 if test -n "$ac_subst_files"; then
2506 $as_echo "## ------------------- ##
2507 ## File substitutions. ##
2508 ## ------------------- ##"
2510 for ac_var in $ac_subst_files
2512 eval ac_val=\$$ac_var
2514 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516 $as_echo "$ac_var='\''$ac_val'\''"
2521 if test -s confdefs.h; then
2522 $as_echo "## ----------- ##
2529 test "$ac_signal" != 0 &&
2530 $as_echo "$as_me: caught signal $ac_signal"
2531 $as_echo "$as_me: exit $exit_status"
2533 rm -f core *.core core.conftest.* &&
2534 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2537 for ac_signal in 1 2 13 15; do
2538 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2543 rm -f -r conftest* confdefs.h
2545 $as_echo "/* confdefs.h */" > confdefs.h
2547 # Predefined preprocessor variables.
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_NAME "$PACKAGE_NAME"
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_STRING "$PACKAGE_STRING"
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_URL "$PACKAGE_URL"
2574 # Let the site file select an alternate cache file if it wants to.
2575 # Prefer an explicitly selected file to automatically selected ones.
2578 if test -n "$CONFIG_SITE"; then
2579 # We do not want a PATH search for config.site.
2580 case $CONFIG_SITE in #((
2581 -*) ac_site_file1=./$CONFIG_SITE;;
2582 */*) ac_site_file1=$CONFIG_SITE;;
2583 *) ac_site_file1=./$CONFIG_SITE;;
2585 elif test "x$prefix" != xNONE; then
2586 ac_site_file1=$prefix/share/config.site
2587 ac_site_file2=$prefix/etc/config.site
2589 ac_site_file1=$ac_default_prefix/share/config.site
2590 ac_site_file2=$ac_default_prefix/etc/config.site
2592 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2594 test "x$ac_site_file" = xNONE && continue
2595 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2597 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2598 sed 's/^/| /' "$ac_site_file" >&5
2600 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 as_fn_error $? "failed to load site script $ac_site_file
2603 See \`config.log' for more details" "$LINENO" 5 ; }
2607 if test -r "$cache_file"; then
2608 # Some versions of bash will fail to source /dev/null (special files
2609 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2610 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2612 $as_echo "$as_me: loading cache $cache_file" >&6;}
2614 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2615 *) . "./$cache_file";;
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2620 $as_echo "$as_me: creating cache $cache_file" >&6;}
2624 # Check that the precious variables saved in the cache have kept the same
2626 ac_cache_corrupted=false
2627 for ac_var in $ac_precious_vars; do
2628 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2629 eval ac_new_set=\$ac_env_${ac_var}_set
2630 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2631 eval ac_new_val=\$ac_env_${ac_var}_value
2632 case $ac_old_set,$ac_new_set in
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2635 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2636 ac_cache_corrupted=: ;;
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2639 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2640 ac_cache_corrupted=: ;;
2643 if test "x$ac_old_val" != "x$ac_new_val"; then
2644 # differences in whitespace do not lead to failure.
2645 ac_old_val_w=`echo x $ac_old_val`
2646 ac_new_val_w=`echo x $ac_new_val`
2647 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2649 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2650 ac_cache_corrupted=:
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2653 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2654 eval $ac_var=\$ac_old_val
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2657 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2659 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2662 # Pass precious variables to config.status.
2663 if test "$ac_new_set" = set; then
2665 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2666 *) ac_arg=$ac_var=$ac_new_val ;;
2668 case " $ac_configure_args " in
2669 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2670 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2674 if $ac_cache_corrupted; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2678 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2679 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2681 ## -------------------- ##
2682 ## Main body of script. ##
2683 ## -------------------- ##
2686 ac_cpp='$CPP $CPPFLAGS'
2687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693 ac_config_headers="$ac_config_headers pyconfig.h"
2697 if test "$prefix" != "/"; then
2698 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
2704 # We don't use PACKAGE_ variables, and they cause conflicts
2705 # with other autoconf-based packages that include Python.h
2706 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
2708 mv confdefs.h.new confdefs.h
2716 # The later defininition of _XOPEN_SOURCE disables certain features
2717 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
2719 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
2722 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2723 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
2726 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
2729 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2730 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
2733 $as_echo "#define __BSD_VISIBLE 1" >>confdefs.h
2736 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2737 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
2739 $as_echo "#define _BSD_TYPES 1" >>confdefs.h
2742 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
2743 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
2746 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
2750 define_xopen_source=yes
2752 # Arguments passed to configure.
2754 CONFIG_ARGS="$ac_configure_args"
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
2757 $as_echo_n "checking for --enable-universalsdk... " >&6; }
2758 # Check whether --enable-universalsdk was given.
2759 if test "${enable_universalsdk+set}" = set; then :
2760 enableval=$enable_universalsdk;
2763 enableval=/Developer/SDKs/MacOSX10.4u.sdk
2764 if test ! -d "${enableval}"
2773 enable_universalsdk=
2776 UNIVERSALSDK=$enableval
2777 if test ! -d "${UNIVERSALSDK}"
2779 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
2788 enable_universalsdk=
2792 if test -n "${UNIVERSALSDK}"
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
2795 $as_echo "${UNIVERSALSDK}" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2804 UNIVERSAL_ARCHS="32-bit"
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
2807 $as_echo_n "checking for --with-universal-archs... " >&6; }
2809 # Check whether --with-universal-archs was given.
2810 if test "${with_universal_archs+set}" = set; then :
2811 withval=$with_universal_archs;
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
2813 $as_echo "$withval" >&6; }
2814 UNIVERSAL_ARCHS="$withval"
2815 if test "${enable_universalsdk}" ; then
2818 as_fn_error $? "--with-universal-archs without --enable-universalsdk. See Mac/README" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32-bit" >&5
2824 $as_echo "32-bit" >&6; }
2832 # Check whether --with-framework-name was given.
2833 if test "${with_framework_name+set}" = set; then :
2834 withval=$with_framework_name;
2835 if test "${enable_framework}"; then
2838 as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5
2840 PYTHONFRAMEWORK=${withval}
2841 PYTHONFRAMEWORKDIR=${withval}.framework
2842 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'`
2846 PYTHONFRAMEWORK=Python
2847 PYTHONFRAMEWORKDIR=Python.framework
2848 PYTHONFRAMEWORKIDENTIFIER=org.python.python
2852 # Check whether --enable-framework was given.
2853 if test "${enable_framework+set}" = set; then :
2854 enableval=$enable_framework;
2857 enableval=/Library/Frameworks
2862 PYTHONFRAMEWORKDIR=no-framework
2863 PYTHONFRAMEWORKPREFIX=
2864 PYTHONFRAMEWORKINSTALLDIR=
2865 FRAMEWORKINSTALLFIRST=
2866 FRAMEWORKINSTALLLAST=
2867 FRAMEWORKALTINSTALLFIRST=
2868 FRAMEWORKALTINSTALLLAST=
2869 if test "x${prefix}" = "xNONE"; then
2870 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2872 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2877 PYTHONFRAMEWORKPREFIX="${enableval}"
2878 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2879 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2880 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
2881 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2882 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2883 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
2885 if test "x${prefix}" = "xNONE" ; then
2886 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2889 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2892 case "${enableval}" in
2894 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
2895 if test "${prefix}" = "NONE" ; then
2897 FRAMEWORKUNIXTOOLSPREFIX="/usr"
2902 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
2905 */Library/Frameworks)
2906 MDIR="`dirname "${enableval}"`"
2907 MDIR="`dirname "${MDIR}"`"
2908 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications"
2910 if test "${prefix}" = "NONE"; then
2911 # User hasn't specified the
2912 # --prefix option, but wants to install
2913 # the framework in a non-default location,
2914 # ensure that the compatibility links get
2915 # installed relative to that prefix as well
2916 # instead of in /usr/local.
2917 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}"
2922 FRAMEWORKINSTALLAPPSPREFIX="/Applications"
2926 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2928 # Add files for Mac specific code to the list of output
2930 ac_config_files="$ac_config_files Mac/Makefile"
2932 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2934 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2936 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2938 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2945 PYTHONFRAMEWORKDIR=no-framework
2946 PYTHONFRAMEWORKPREFIX=
2947 PYTHONFRAMEWORKINSTALLDIR=
2948 FRAMEWORKINSTALLFIRST=
2949 FRAMEWORKINSTALLLAST=
2950 FRAMEWORKALTINSTALLFIRST=
2951 FRAMEWORKALTINSTALLLAST=
2952 if test "x${prefix}" = "xNONE" ; then
2953 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2955 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2975 ## AS_HELP_STRING([--with-dyld],
2976 ## [Use (OpenStep|Rhapsody) dynamic linker]))
2978 # Set name for machine-dependent library files
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
2981 $as_echo_n "checking MACHDEP... " >&6; }
2982 if test -z "$MACHDEP"
2984 ac_sys_system=`uname -s`
2985 if test "$ac_sys_system" = "AIX" \
2986 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2987 ac_sys_release=`uname -v`
2989 ac_sys_release=`uname -r`
2991 ac_md_system=`echo $ac_sys_system |
2992 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2993 ac_md_release=`echo $ac_sys_release |
2994 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
2995 MACHDEP="$ac_md_system$ac_md_release"
2998 linux*) MACHDEP="linux2";;
2999 cygwin*) MACHDEP="cygwin";;
3000 darwin*) MACHDEP="darwin";;
3001 atheos*) MACHDEP="atheos";;
3002 irix646) MACHDEP="irix6";;
3003 '') MACHDEP="unknown";;
3007 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
3008 # disable features if it is defined, without any means to access these
3009 # features as extensions. For these systems, we skip the definition of
3010 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
3011 # some feature, make sure there is no alternative way to access this
3012 # feature. Also, when using wildcards, make sure you have verified the
3013 # need for not defining _XOPEN_SOURCE on all systems matching the
3014 # wildcard, and that the wildcard does not include future systems
3015 # (which may remove their limitations).
3016 case $ac_sys_system/$ac_sys_release in
3017 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
3018 # even though select is a POSIX function. Reported by J. Ribbens.
3019 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
3020 # In addition, Stefan Krah confirms that issue #1244610 exists through
3021 # OpenBSD 4.6, but is fixed in 4.7.
3022 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456])
3023 define_xopen_source=no
3024 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3025 # also defined. This can be overridden by defining _BSD_SOURCE
3026 # As this has a different meaning on Linux, only define it on OpenBSD
3028 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3032 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
3033 # also defined. This can be overridden by defining _BSD_SOURCE
3034 # As this has a different meaning on Linux, only define it on OpenBSD
3036 $as_echo "#define _BSD_SOURCE 1" >>confdefs.h
3039 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
3040 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
3042 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
3043 define_xopen_source=no;;
3044 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
3045 # request to enable features supported by the standard as a request
3046 # to disable features not supported by the standard. The best way
3047 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
3048 # entirely and define __EXTENSIONS__ instead.
3050 define_xopen_source=no;;
3051 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
3052 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
3053 # Reconfirmed for 7.1.4 by Martin v. Loewis.
3054 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
3055 define_xopen_source=no;;
3056 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
3057 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
3059 define_xopen_source=no;;
3060 # On FreeBSD 4, the math functions C89 does not cover are never defined
3061 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
3063 define_xopen_source=no;;
3064 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
3065 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
3066 # identifies itself as Darwin/7.*
3067 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3068 # disables platform specific features beyond repair.
3069 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
3070 # has no effect, don't bother defining them
3072 define_xopen_source=no;;
3074 define_xopen_source=no;;
3075 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
3076 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
3077 # or has another value. By not (re)defining it, the defaults come in place.
3079 define_xopen_source=no;;
3081 if test `uname -r` -eq 1; then
3082 define_xopen_source=no
3085 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
3086 # defining NI_NUMERICHOST.
3088 define_xopen_source=no
3093 if test $define_xopen_source = yes
3096 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
3099 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
3100 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
3101 # several APIs are not declared. Since this is also needed in some
3102 # cases for HP-UX, we define it globally.
3104 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
3108 $as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h
3114 # SGI compilers allow the specification of the both the ABI and the
3115 # ISA on the command line. Depending on the values of these switches,
3116 # different and often incompatable code will be generated.
3118 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
3119 # thus supply support for various ABI/ISA combinations. The MACHDEP
3120 # variable is also adjusted.
3123 if test ! -z "$SGI_ABI"
3126 LDFLAGS="$SGI_ABI $LDFLAGS"
3127 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5
3130 $as_echo "$MACHDEP" >&6; }
3132 # And add extra plat-mac for darwin
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5
3136 $as_echo_n "checking EXTRAPLATDIR... " >&6; }
3137 if test -z "$EXTRAPLATDIR"
3141 EXTRAPLATDIR="\$(PLATMACDIRS)"
3142 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5
3151 $as_echo "$EXTRAPLATDIR" >&6; }
3153 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
3154 # it may influence the way we can build extensions, so distutils
3158 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
3159 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking machine type as reported by uname -m" >&5
3162 $as_echo_n "checking machine type as reported by uname -m... " >&6; }
3163 ac_sys_machine=`uname -m`
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sys_machine" >&5
3165 $as_echo "$ac_sys_machine" >&6; }
3167 # checks for alternative programs
3169 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
3170 # for debug/optimization stuff. BASECFLAGS is for flags that are required
3171 # just to get things to compile and link. Users are free to override OPT
3172 # when running configure or make. The build should not break if they do.
3173 # BASECFLAGS should generally not be messed with, however.
3175 # XXX shouldn't some/most/all of this code be merged with the stuff later
3176 # on that fiddles with OPT and BASECFLAGS?
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5
3178 $as_echo_n "checking for --without-gcc... " >&6; }
3180 # Check whether --with-gcc was given.
3181 if test "${with_gcc+set}" = set; then :
3189 without_gcc=$withval;;
3193 case $ac_sys_system in
3194 AIX*) CC=${CC:-xlc_r}
3197 case $BE_HOST_CPU in
3201 BASECFLAGS="$BASECFLAGS -export pragma"
3203 LDFLAGS="$LDFLAGS -nodup"
3211 as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5
3214 AR="\$(srcdir)/Modules/ar_beos"
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5
3222 $as_echo "$without_gcc" >&6; }
3224 # If the user switches compilers, we can't believe the cache
3225 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
3227 as_fn_error $? "cached CC is different -- throw away $cache_file
3228 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
3231 # If the user set CFLAGS, use this instead of the automatically
3232 # determined setting
3233 preset_cflags="$CFLAGS"
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239 if test -n "$ac_tool_prefix"; then
3240 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3241 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_prog_CC+set}" = set; then :
3245 $as_echo_n "(cached) " >&6
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 test -z "$as_dir" && as_dir=.
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 if test -n "$CC"; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3278 if test -z "$ac_cv_prog_CC"; then
3280 # Extract the first word of "gcc", so it can be a program name with args.
3281 set dummy gcc; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3287 if test -n "$ac_ct_CC"; then
3288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_ac_ct_CC="gcc"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3308 if test -n "$ac_ct_CC"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3310 $as_echo "$ac_ct_CC" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3316 if test "x$ac_ct_CC" = x; then
3319 case $cross_compiling:$ac_tool_warned in
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3323 ac_tool_warned=yes ;;
3331 if test -z "$CC"; then
3332 if test -n "$ac_tool_prefix"; then
3333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3334 set dummy ${ac_tool_prefix}cc; ac_word=$2
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336 $as_echo_n "checking for $ac_word... " >&6; }
3337 if test "${ac_cv_prog_CC+set}" = set; then :
3338 $as_echo_n "(cached) " >&6
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_CC="${ac_tool_prefix}cc"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 if test -n "$CC"; then
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363 $as_echo "$CC" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3372 if test -z "$CC"; then
3373 # Extract the first word of "cc", so it can be a program name with args.
3374 set dummy cc; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if test "${ac_cv_prog_CC+set}" = set; then :
3378 $as_echo_n "(cached) " >&6
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3392 ac_prog_rejected=yes
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test $ac_prog_rejected = yes; then
3404 # We found a bogon in the path, so make sure we never use it.
3405 set dummy $ac_cv_prog_CC
3407 if test $# != 0; then
3408 # We chose a different compiler from the bogus one.
3409 # However, it has the same basename, so the bogon will be chosen
3410 # first if we set CC to just the basename; use the full file name.
3412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418 if test -n "$CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420 $as_echo "$CC" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3428 if test -z "$CC"; then
3429 if test -n "$ac_tool_prefix"; then
3430 for ac_prog in cl.exe
3432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if test "${ac_cv_prog_CC+set}" = set; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 if test -n "$CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462 $as_echo "$CC" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3469 test -n "$CC" && break
3472 if test -z "$CC"; then
3474 for ac_prog in cl.exe
3476 # Extract the first word of "$ac_prog", so it can be a program name with args.
3477 set dummy $ac_prog; ac_word=$2
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479 $as_echo_n "checking for $ac_word... " >&6; }
3480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3481 $as_echo_n "(cached) " >&6
3483 if test -n "$ac_ct_CC"; then
3484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493 ac_cv_prog_ac_ct_CC="$ac_prog"
3494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3504 if test -n "$ac_ct_CC"; then
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3506 $as_echo "$ac_ct_CC" >&6; }
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3513 test -n "$ac_ct_CC" && break
3516 if test "x$ac_ct_CC" = x; then
3519 case $cross_compiling:$ac_tool_warned in
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3532 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "no acceptable C compiler found in \$PATH
3535 See \`config.log' for more details" "$LINENO" 5 ; }
3537 # Provide some information about the compiler.
3538 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3541 for ac_option in --version -v -V -qversion; do
3542 { { ac_try="$ac_compiler $ac_option >&5"
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548 $as_echo "$ac_try_echo"; } >&5
3549 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3551 if test -s conftest.err; then
3553 ... rest of stderr output deleted ...
3554 10q' conftest.err >conftest.er1
3555 cat conftest.er1 >&5
3557 rm -f conftest.er1 conftest.err
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3573 ac_clean_files_save=$ac_clean_files
3574 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3575 # Try to create an executable without -o first, disregard a.out.
3576 # It will help us diagnose broken compilers, and finding out an intuition
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3579 $as_echo_n "checking whether the C compiler works... " >&6; }
3580 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3582 # The possible output files:
3583 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3586 for ac_file in $ac_files
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3590 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3595 if { { ac_try="$ac_link_default"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_link_default") 2>&5
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }; then :
3606 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3607 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3608 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3609 # so that the user can short-circuit this test for compilers unknown to
3611 for ac_file in $ac_files ''
3613 test -f "$ac_file" || continue
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3618 # We found the default executable, but exeext='' is most
3622 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3624 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626 # We set ac_cv_exeext here because the later test for it is not
3627 # safe: cross compilers may not add the suffix if given an `-o'
3628 # argument, so we may need to know it at that point already.
3629 # Even if this section looks crufty: it has the advantage of
3636 test "$ac_cv_exeext" = no && ac_cv_exeext=
3641 if test -z "$ac_file"; then :
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3644 $as_echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error 77 "C compiler cannot create executables
3650 See \`config.log' for more details" "$LINENO" 5 ; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 $as_echo "yes" >&6; }
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3656 $as_echo_n "checking for C compiler default output file name... " >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3658 $as_echo "$ac_file" >&6; }
3659 ac_exeext=$ac_cv_exeext
3661 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3662 ac_clean_files=$ac_clean_files_save
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3664 $as_echo_n "checking for suffix of executables... " >&6; }
3665 if { { ac_try="$ac_link"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_link") 2>&5
3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }; then :
3676 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3677 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3678 # work properly (i.e., refer to `conftest.exe'), while it won't with
3680 for ac_file in conftest.exe conftest conftest.*; do
3681 test -f "$ac_file" || continue
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3693 See \`config.log' for more details" "$LINENO" 5 ; }
3695 rm -f conftest conftest$ac_cv_exeext
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3697 $as_echo "$ac_cv_exeext" >&6; }
3699 rm -f conftest.$ac_ext
3700 EXEEXT=$ac_cv_exeext
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3708 FILE *f = fopen ("conftest.out", "w");
3709 return ferror (f) || fclose (f) != 0;
3715 ac_clean_files="$ac_clean_files conftest.out"
3716 # Check that the compiler produces executables we can run. If not, either
3717 # the compiler is broken, or we cross compile.
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3719 $as_echo_n "checking whether we are cross compiling... " >&6; }
3720 if test "$cross_compiling" != yes; then
3721 { { ac_try="$ac_link"
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_link") 2>&5
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }
3732 if { ac_try='./conftest$ac_cv_exeext'
3733 { { case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739 (eval "$ac_try") 2>&5
3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }; }; then
3745 if test "$cross_compiling" = maybe; then
3748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error $? "cannot run C compiled programs.
3751 If you meant to cross compile, use \`--host'.
3752 See \`config.log' for more details" "$LINENO" 5 ; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3757 $as_echo "$cross_compiling" >&6; }
3759 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3760 ac_clean_files=$ac_clean_files_save
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3762 $as_echo_n "checking for suffix of object files... " >&6; }
3763 if test "${ac_cv_objext+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3777 rm -f conftest.o conftest.obj
3778 if { { ac_try="$ac_compile"
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_compile") 2>&5
3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788 test $ac_status = 0; }; then :
3789 for ac_file in conftest.o conftest.obj conftest.*; do
3790 test -f "$ac_file" || continue;
3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3793 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3798 $as_echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803 as_fn_error $? "cannot compute suffix of object files: cannot compile
3804 See \`config.log' for more details" "$LINENO" 5 ; }
3806 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3809 $as_echo "$ac_cv_objext" >&6; }
3810 OBJEXT=$ac_cv_objext
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3813 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3814 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3831 if ac_fn_c_try_compile "$LINENO"; then :
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3841 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3842 if test $ac_compiler_gnu = yes; then
3847 ac_test_CFLAGS=${CFLAGS+set}
3848 ac_save_CFLAGS=$CFLAGS
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3850 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3851 if test "${ac_cv_prog_cc_g+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3854 ac_save_c_werror_flag=$ac_c_werror_flag
3855 ac_c_werror_flag=yes
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3869 if ac_fn_c_try_compile "$LINENO"; then :
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3884 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_c_werror_flag=$ac_save_c_werror_flag
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3900 if ac_fn_c_try_compile "$LINENO"; then :
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 ac_c_werror_flag=$ac_save_c_werror_flag
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3911 $as_echo "$ac_cv_prog_cc_g" >&6; }
3912 if test "$ac_test_CFLAGS" = set; then
3913 CFLAGS=$ac_save_CFLAGS
3914 elif test $ac_cv_prog_cc_g = yes; then
3915 if test "$GCC" = yes; then
3921 if test "$GCC" = yes; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3928 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3929 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3932 ac_cv_prog_cc_c89=no
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3938 #include <sys/types.h>
3939 #include <sys/stat.h>
3940 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3941 struct buf { int x; };
3942 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3943 static char *e (p, i)
3949 static char *f (char * (*g) (char **, int), char **p, ...)
3954 s = g (p, va_arg (v,int));
3959 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3960 function prototypes and stuff, but not '\xHH' hex character constants.
3961 These don't provoke an error unfortunately, instead are silently treated
3962 as 'x'. The following induces an error, until -std is added to get
3963 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3964 array size at least. It's necessary to write '\x00'==0 to get something
3965 that's true only with -std. */
3966 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3968 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3969 inside strings and character constants. */
3971 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3973 int test (int i, double x);
3974 struct s1 {int (*f) (int a);};
3975 struct s2 {int (*f) (double a);};
3976 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3982 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3987 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3988 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3990 CC="$ac_save_CC $ac_arg"
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_cv_prog_cc_c89=$ac_arg
3994 rm -f core conftest.err conftest.$ac_objext
3995 test "x$ac_cv_prog_cc_c89" != "xno" && break
3997 rm -f conftest.$ac_ext
4002 case "x$ac_cv_prog_cc_c89" in
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4005 $as_echo "none needed" >&6; } ;;
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4008 $as_echo "unsupported" >&6; } ;;
4010 CC="$CC $ac_cv_prog_cc_c89"
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4012 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4014 if test "x$ac_cv_prog_cc_c89" != xno; then :
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024 if test ! -z "$preset_cflags"
4026 CFLAGS=$preset_cflags
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5
4032 $as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; }
4034 # Check whether --with-cxx_main was given.
4035 if test "${with_cxx_main+set}" = set; then :
4036 withval=$with_cxx_main;
4039 no) with_cxx_main=no
4041 yes) with_cxx_main=yes
4043 *) with_cxx_main=yes
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5
4058 $as_echo "$with_cxx_main" >&6; }
4064 gcc) # Extract the first word of "g++", so it can be a program name with args.
4065 set dummy g++; ac_word=$2
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067 $as_echo_n "checking for $ac_word... " >&6; }
4068 if test "${ac_cv_path_CXX+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
4073 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in notfound
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4083 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="g++"
4096 if test -n "$CXX"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4098 $as_echo "$CXX" >&6; }
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4105 cc) # Extract the first word of "c++", so it can be a program name with args.
4106 set dummy c++; ac_word=$2
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 $as_echo_n "checking for $ac_word... " >&6; }
4109 if test "${ac_cv_path_CXX+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4114 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in notfound
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="c++"
4137 if test -n "$CXX"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4139 $as_echo "$CXX" >&6; }
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4147 if test "$CXX" = "notfound"
4154 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if test "${ac_cv_prog_CXX+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4163 if test -n "$CXX"; then
4164 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_CXX="$ac_prog"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 if test -n "$CXX"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4186 $as_echo "$CXX" >&6; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 test -n "$CXX" && break
4195 test -n "$CXX" || CXX="notfound"
4197 if test "$CXX" = "notfound"
4202 if test "$preset_cxx" != "$CXX"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4206 By default, distutils will build C++ extension modules with \"$CXX\".
4207 If this is not intended, then set CXX on the configure command line.
4209 $as_echo "$as_me: WARNING:
4211 By default, distutils will build C++ extension modules with \"$CXX\".
4212 If this is not intended, then set CXX on the configure command line.
4217 # checks for UNIX variants that set C preprocessor variables
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4225 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4226 # On Suns, sometimes $CPP names a directory.
4227 if test -n "$CPP" && test -d "$CPP"; then
4230 if test -z "$CPP"; then
4231 if test "${ac_cv_prog_CPP+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4234 # Double quotes because CPP needs to be expanded
4235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4238 for ac_c_preproc_warn_flag in '' yes
4240 # Use a header file that comes with gcc, so configuring glibc
4241 # with a fresh cross-compiler works.
4242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4243 # <limits.h> exists even on freestanding compilers.
4244 # On the NeXT, cc -E runs the code through the compiler's parser,
4245 # not just through cpp. "Syntax error" is here to catch this case.
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4249 # include <limits.h>
4251 # include <assert.h>
4255 if ac_fn_c_try_cpp "$LINENO"; then :
4258 # Broken: fails on valid input.
4261 rm -f conftest.err conftest.i conftest.$ac_ext
4263 # OK, works on sane cases. Now check whether nonexistent headers
4264 # can be detected and how.
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267 #include <ac_nonexistent.h>
4269 if ac_fn_c_try_cpp "$LINENO"; then :
4270 # Broken: success on invalid input.
4273 # Passes both tests.
4277 rm -f conftest.err conftest.i conftest.$ac_ext
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.i conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then :
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4295 $as_echo "$CPP" >&6; }
4297 for ac_c_preproc_warn_flag in '' yes
4299 # Use a header file that comes with gcc, so configuring glibc
4300 # with a fresh cross-compiler works.
4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 # <limits.h> exists even on freestanding compilers.
4303 # On the NeXT, cc -E runs the code through the compiler's parser,
4304 # not just through cpp. "Syntax error" is here to catch this case.
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4308 # include <limits.h>
4310 # include <assert.h>
4314 if ac_fn_c_try_cpp "$LINENO"; then :
4317 # Broken: fails on valid input.
4320 rm -f conftest.err conftest.i conftest.$ac_ext
4322 # OK, works on sane cases. Now check whether nonexistent headers
4323 # can be detected and how.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #include <ac_nonexistent.h>
4328 if ac_fn_c_try_cpp "$LINENO"; then :
4329 # Broken: success on invalid input.
4332 # Passes both tests.
4336 rm -f conftest.err conftest.i conftest.$ac_ext
4339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4340 rm -f conftest.i conftest.err conftest.$ac_ext
4341 if $ac_preproc_ok; then :
4344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4346 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4347 See \`config.log' for more details" "$LINENO" 5 ; }
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4358 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4359 if test "${ac_cv_path_GREP+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4362 if test -z "$GREP"; then
4363 ac_path_GREP_found=false
4364 # Loop through the user's path and test for each of PROGNAME-LIST
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4369 test -z "$as_dir" && as_dir=.
4370 for ac_prog in grep ggrep; do
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4373 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4374 # Check for GNU ac_path_GREP and select it if it is found.
4375 # Check for GNU $ac_path_GREP
4376 case `"$ac_path_GREP" --version 2>&1` in
4378 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4381 $as_echo_n 0123456789 >"conftest.in"
4384 cat "conftest.in" "conftest.in" >"conftest.tmp"
4385 mv "conftest.tmp" "conftest.in"
4386 cp "conftest.in" "conftest.nl"
4387 $as_echo 'GREP' >> "conftest.nl"
4388 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4390 as_fn_arith $ac_count + 1 && ac_count=$as_val
4391 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4392 # Best one so far, save it but keep looking for a better one
4393 ac_cv_path_GREP="$ac_path_GREP"
4394 ac_path_GREP_max=$ac_count
4396 # 10*(2^10) chars as input seems more than enough
4397 test $ac_count -gt 10 && break
4399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4402 $ac_path_GREP_found && break 3
4407 if test -z "$ac_cv_path_GREP"; then
4408 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4411 ac_cv_path_GREP=$GREP
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4416 $as_echo "$ac_cv_path_GREP" >&6; }
4417 GREP="$ac_cv_path_GREP"
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4421 $as_echo_n "checking for egrep... " >&6; }
4422 if test "${ac_cv_path_EGREP+set}" = set; then :
4423 $as_echo_n "(cached) " >&6
4425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4426 then ac_cv_path_EGREP="$GREP -E"
4428 if test -z "$EGREP"; then
4429 ac_path_EGREP_found=false
4430 # Loop through the user's path and test for each of PROGNAME-LIST
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4435 test -z "$as_dir" && as_dir=.
4436 for ac_prog in egrep; do
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4439 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4440 # Check for GNU ac_path_EGREP and select it if it is found.
4441 # Check for GNU $ac_path_EGREP
4442 case `"$ac_path_EGREP" --version 2>&1` in
4444 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4447 $as_echo_n 0123456789 >"conftest.in"
4450 cat "conftest.in" "conftest.in" >"conftest.tmp"
4451 mv "conftest.tmp" "conftest.in"
4452 cp "conftest.in" "conftest.nl"
4453 $as_echo 'EGREP' >> "conftest.nl"
4454 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456 as_fn_arith $ac_count + 1 && ac_count=$as_val
4457 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4458 # Best one so far, save it but keep looking for a better one
4459 ac_cv_path_EGREP="$ac_path_EGREP"
4460 ac_path_EGREP_max=$ac_count
4462 # 10*(2^10) chars as input seems more than enough
4463 test $ac_count -gt 10 && break
4465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4468 $ac_path_EGREP_found && break 3
4473 if test -z "$ac_cv_path_EGREP"; then
4474 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4477 ac_cv_path_EGREP=$EGREP
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4483 $as_echo "$ac_cv_path_EGREP" >&6; }
4484 EGREP="$ac_cv_path_EGREP"
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4488 $as_echo_n "checking for ANSI C header files... " >&6; }
4489 if test "${ac_cv_header_stdc+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4507 if ac_fn_c_try_compile "$LINENO"; then :
4508 ac_cv_header_stdc=yes
4510 ac_cv_header_stdc=no
4512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514 if test $ac_cv_header_stdc = yes; then
4515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522 $EGREP "memchr" >/dev/null 2>&1; then :
4525 ac_cv_header_stdc=no
4531 if test $ac_cv_header_stdc = yes; then
4532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4539 $EGREP "free" >/dev/null 2>&1; then :
4542 ac_cv_header_stdc=no
4548 if test $ac_cv_header_stdc = yes; then
4549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4550 if test "$cross_compiling" = yes; then :
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4557 #if ((' ' & 0x0FF) == 0x020)
4558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4561 # define ISLOWER(c) \
4562 (('a' <= (c) && (c) <= 'i') \
4563 || ('j' <= (c) && (c) <= 'r') \
4564 || ('s' <= (c) && (c) <= 'z'))
4565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4573 for (i = 0; i < 256; i++)
4574 if (XOR (islower (i), ISLOWER (i))
4575 || toupper (i) != TOUPPER (i))
4580 if ac_fn_c_try_run "$LINENO"; then :
4583 ac_cv_header_stdc=no
4585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4586 conftest.$ac_objext conftest.beam conftest.$ac_ext
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4592 $as_echo "$ac_cv_header_stdc" >&6; }
4593 if test $ac_cv_header_stdc = yes; then
4595 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4601 inttypes.h stdint.h unistd.h
4603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4607 cat >>confdefs.h <<_ACEOF
4608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4617 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4618 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4625 if test "$MINIX" = yes; then
4627 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4630 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4633 $as_echo "#define _MINIX 1" >>confdefs.h
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4639 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4640 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4646 # define __EXTENSIONS__ 1
4647 $ac_includes_default
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_cv_safe_to_define___extensions__=yes
4659 ac_cv_safe_to_define___extensions__=no
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4664 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4665 test $ac_cv_safe_to_define___extensions__ = yes &&
4666 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4668 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4670 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4672 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4674 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4678 # Check for unsupported systems
4679 case $ac_sys_system/$ac_sys_release in
4681 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported.
4682 echo See README for details.
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
4688 $as_echo_n "checking for --with-suffix... " >&6; }
4690 # Check whether --with-suffix was given.
4691 if test "${with_suffix+set}" = set; then :
4692 withval=$with_suffix;
4696 *) EXEEXT=$withval;;
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
4701 $as_echo "$EXEEXT" >&6; }
4703 # Test whether we're running on a non-case-sensitive system, in which
4704 # case we give a warning if no ext is given
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
4707 $as_echo_n "checking for case-insensitive build directory... " >&6; }
4708 if test ! -d CaseSensitiveTestDir; then
4709 mkdir CaseSensitiveTestDir
4712 if test -d casesensitivetestdir
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4715 $as_echo "yes" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4722 rmdir CaseSensitiveTestDir
4727 gcc) CC="$CC -D_HAVE_BSDI";;
4731 case $ac_sys_system in
4734 cc|*/cc) CC="$CC -Ae";;
4737 # Some functions have a prototype only with that define, e.g. confstr
4739 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
4747 $as_echo_n "checking LIBRARY... " >&6; }
4748 if test -z "$LIBRARY"
4750 LIBRARY='libpython$(VERSION).a'
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
4753 $as_echo "$LIBRARY" >&6; }
4755 # LDLIBRARY is the name of the library to link against (as opposed to the
4756 # name of the library into which to insert object files). BLDLIBRARY is also
4757 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
4758 # is blank as the main program is not linked directly against LDLIBRARY.
4759 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
4760 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
4761 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
4762 # DLLLIBRARY is the shared (i.e., DLL) library.
4764 # RUNSHARED is used to run shared python without installed libraries
4766 # INSTSONAME is the name of the shared library that will be use to install
4767 # on the system - some systems like version suffix, others don't
4774 LDLIBRARY="$LIBRARY"
4775 BLDLIBRARY='$(LDLIBRARY)'
4776 INSTSONAME='$(LDLIBRARY)'
4781 # LINKCC is the command that links the python executable -- default is $(CC).
4782 # If CXX is set, and if it is needed to link a main function that was
4783 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
4784 # python might then depend on the C++ runtime
4785 # This is altered for AIX in order to build the export list before
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
4789 $as_echo_n "checking LINKCC... " >&6; }
4790 if test -z "$LINKCC"
4792 LINKCC='$(PURIFY) $(MAINCC)'
4793 case $ac_sys_system in
4796 if test $ac_sys_release -ge 5 -o \
4797 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
4800 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
4802 # qcc must be used because the other compilers do not
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
4808 $as_echo "$LINKCC" >&6; }
4810 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4811 # make sure we default having it set to "no": this is used by
4812 # distutils.unixccompiler to know if it should add --enable-new-dtags
4813 # to linker command lines, and failing to detect GNU ld simply results
4814 # in the same bahaviour as before.
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4817 $as_echo_n "checking for GNU ld... " >&6; }
4819 if test "$GCC" = yes; then
4820 ac_prog=`$CC -print-prog-name=ld`
4822 case `"$ac_prog" -V 2>&1 < /dev/null` in
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
4829 $as_echo "$GNULD" >&6; }
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
4832 $as_echo_n "checking for --enable-shared... " >&6; }
4833 # Check whether --enable-shared was given.
4834 if test "${enable_shared+set}" = set; then :
4835 enableval=$enable_shared;
4839 if test -z "$enable_shared"
4841 case $ac_sys_system in
4843 enable_shared="yes";;
4845 enable_shared="no";;
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
4849 $as_echo "$enable_shared" >&6; }
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
4852 $as_echo_n "checking for --enable-profiling... " >&6; }
4853 # Check whether --enable-profiling was given.
4854 if test "${enable_profiling+set}" = set; then :
4855 enableval=$enable_profiling; ac_save_cc="$CC"
4857 if test "$cross_compiling" = yes; then :
4858 ac_enable_profiling="no"
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862 int main() { return 0; }
4864 if ac_fn_c_try_run "$LINENO"; then :
4865 ac_enable_profiling="yes"
4867 ac_enable_profiling="no"
4869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4870 conftest.$ac_objext conftest.beam conftest.$ac_ext
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_profiling" >&5
4877 $as_echo "$ac_enable_profiling" >&6; }
4879 case "$ac_enable_profiling" in
4881 BASECFLAGS="-pg $BASECFLAGS"
4882 LDFLAGS="-pg $LDFLAGS"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
4887 $as_echo_n "checking LDLIBRARY... " >&6; }
4889 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4890 # library that we build, but we do not want to link against it (we
4891 # will find it with a -framework option). For this reason there is an
4892 # extra variable BLDLIBRARY against which Python and the extension
4893 # modules are linked, BLDLIBRARY. This is normally the same as
4894 # LDLIBRARY, but empty for MacOSX framework builds.
4895 if test "$enable_framework"
4897 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4898 RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH"
4901 BLDLIBRARY='$(LDLIBRARY)'
4904 # Other platforms follow
4905 if test $enable_shared = "yes"; then
4907 $as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h
4909 case $ac_sys_system in
4911 LDLIBRARY='libpython$(VERSION).so'
4914 LDLIBRARY='libpython$(VERSION).dll.a'
4915 DLLLIBRARY='libpython$(VERSION).dll'
4918 LDLIBRARY='libpython$(VERSION).so'
4919 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4920 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4921 INSTSONAME="$LDLIBRARY".$SOVERSION
4923 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
4924 LDLIBRARY='libpython$(VERSION).so'
4925 BLDLIBRARY='-L. -lpython$(VERSION)'
4926 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4927 case $ac_sys_system in
4929 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
4932 INSTSONAME="$LDLIBRARY".$SOVERSION
4937 LDLIBRARY='libpython$(VERSION).so'
4940 LDLIBRARY='libpython$(VERSION).sl'
4943 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4944 RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH}
4947 LDLIBRARY='libpython$(VERSION).so'
4948 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4949 RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
4952 LDLIBRARY='libpython$(VERSION).so'
4953 BLDLIBRARY='-L. -lpython$(VERSION)'
4954 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4957 LDLIBRARY='libpython$(VERSION).dylib'
4958 BLDLIBRARY='-L. -lpython$(VERSION)'
4959 RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4962 LDLIBRARY='libpython$(VERSION).so'
4963 RUNSHARED=LIBPATH=`pwd`:${LIBPATH}
4967 else # shared is disabled
4968 case $ac_sys_system in
4970 BLDLIBRARY='$(LIBRARY)'
4971 LDLIBRARY='libpython$(VERSION).dll.a'
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
4977 $as_echo "$LDLIBRARY" >&6; }
4979 if test -n "$ac_tool_prefix"; then
4980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4987 if test -n "$RANLIB"; then
4988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 RANLIB=$ac_cv_prog_RANLIB
5008 if test -n "$RANLIB"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5010 $as_echo "$RANLIB" >&6; }
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5018 if test -z "$ac_cv_prog_RANLIB"; then
5019 ac_ct_RANLIB=$RANLIB
5020 # Extract the first word of "ranlib", so it can be a program name with args.
5021 set dummy ranlib; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5025 $as_echo_n "(cached) " >&6
5027 if test -n "$ac_ct_RANLIB"; then
5028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_prog_ac_ct_RANLIB="ranlib"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5048 if test -n "$ac_ct_RANLIB"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5050 $as_echo "$ac_ct_RANLIB" >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5056 if test "x$ac_ct_RANLIB" = x; then
5059 case $cross_compiling:$ac_tool_warned in
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5063 ac_tool_warned=yes ;;
5065 RANLIB=$ac_ct_RANLIB
5068 RANLIB="$ac_cv_prog_RANLIB"
5072 for ac_prog in ar aal
5074 # Extract the first word of "$ac_prog", so it can be a program name with args.
5075 set dummy $ac_prog; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_AR+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5081 if test -n "$AR"; then
5082 ac_cv_prog_AR="$AR" # Let the user override the test.
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_AR="$ac_prog"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 if test -n "$AR"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5104 $as_echo "$AR" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 test -n "$AR" && break
5113 test -n "$AR" || AR="ar"
5116 # tweak ARFLAGS only if the user didn't set it on the command line
5118 if test -z "$ARFLAGS"
5124 # Extract the first word of "svnversion", so it can be a program name with args.
5125 set dummy svnversion; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_SVNVERSION+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5131 if test -n "$SVNVERSION"; then
5132 ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test.
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_SVNVERSION="found"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION="not-found"
5152 SVNVERSION=$ac_cv_prog_SVNVERSION
5153 if test -n "$SVNVERSION"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
5155 $as_echo "$SVNVERSION" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 if test $SVNVERSION = found
5164 SVNVERSION="svnversion \$(srcdir)"
5166 SVNVERSION="echo Unversioned directory"
5172 # Extract the first word of "hg", so it can be a program name with args.
5173 set dummy hg; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_HAS_HG+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5179 if test -n "$HAS_HG"; then
5180 ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_HAS_HG="found"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found"
5200 HAS_HG=$ac_cv_prog_HAS_HG
5201 if test -n "$HAS_HG"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5
5203 $as_echo "$HAS_HG" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5210 if test $HAS_HG = found
5212 HGVERSION="hg id -i \$(srcdir)"
5213 HGTAG="hg id -t \$(srcdir)"
5214 HGBRANCH="hg id -b \$(srcdir)"
5223 # install -d does not work on BSDI or HP-UX
5224 if test -z "$INSTALL"
5226 INSTALL="${srcdir}/install-sh -c"
5230 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5231 if test -f "$ac_dir/install-sh"; then
5233 ac_install_sh="$ac_aux_dir/install-sh -c"
5235 elif test -f "$ac_dir/install.sh"; then
5237 ac_install_sh="$ac_aux_dir/install.sh -c"
5239 elif test -f "$ac_dir/shtool"; then
5241 ac_install_sh="$ac_aux_dir/shtool install -c"
5245 if test -z "$ac_aux_dir"; then
5246 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
5249 # These three variables are undocumented and unsupported,
5250 # and are intended to be withdrawn in a future Autoconf release.
5251 # They can cause serious problems if a builder's source tree is in a directory
5252 # whose full name contains unusual characters.
5253 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5254 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5255 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5258 # Find a good install program. We prefer a C program (faster),
5259 # so one script is as good as another. But avoid the broken or
5260 # incompatible versions:
5261 # SysV /etc/install, /usr/sbin/install
5262 # SunOS /usr/etc/install
5263 # IRIX /sbin/install
5265 # AmigaOS /C/install, which installs bootblocks on floppy discs
5266 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5269 # OS/2's system install, which has a completely different semantic
5270 # ./install, which can be erroneously created by make from ./install.sh.
5271 # Reject install programs that cannot install multiple files.
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5273 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5274 if test -z "$INSTALL"; then
5275 if test "${ac_cv_path_install+set}" = set; then :
5276 $as_echo_n "(cached) " >&6
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 # Account for people who put trailing slashes in PATH elements.
5284 case $as_dir/ in #((
5285 ./ | .// | /[cC]/* | \
5286 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5287 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5290 # OSF1 and SCO ODT 3.0 have their own names for install.
5291 # Don't use installbsd from OSF since it installs stuff as root
5293 for ac_prog in ginstall scoinst install; do
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5296 if test $ac_prog = install &&
5297 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5298 # AIX install. It has an incompatible calling convention.
5300 elif test $ac_prog = install &&
5301 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5302 # program-specific install script used by HP pwplus--don't use.
5305 rm -rf conftest.one conftest.two conftest.dir
5306 echo one > conftest.one
5307 echo two > conftest.two
5309 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5310 test -s conftest.one && test -s conftest.two &&
5311 test -s conftest.dir/conftest.one &&
5312 test -s conftest.dir/conftest.two
5314 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5327 rm -rf conftest.one conftest.two conftest.dir
5330 if test "${ac_cv_path_install+set}" = set; then
5331 INSTALL=$ac_cv_path_install
5333 # As a last resort, use the slow shell script. Don't cache a
5334 # value for INSTALL within a source directory, because that will
5335 # break other packages using the cache if that directory is
5336 # removed, or if the value is a relative name.
5337 INSTALL=$ac_install_sh
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5341 $as_echo "$INSTALL" >&6; }
5343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5344 # It thinks the first close brace ends the variable substitution.
5345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5352 # Not every filesystem supports hard links
5354 if test -z "$LN" ; then
5355 case $ac_sys_system in
5357 CYGWIN*) LN="ln -s";;
5358 atheos*) LN="ln -s";;
5363 # Check for --with-pydebug
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
5365 $as_echo_n "checking for --with-pydebug... " >&6; }
5367 # Check whether --with-pydebug was given.
5368 if test "${with_pydebug+set}" = set; then :
5369 withval=$with_pydebug;
5370 if test "$withval" != no
5373 $as_echo "#define Py_DEBUG 1" >>confdefs.h
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376 $as_echo "yes" >&6; };
5378 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }; Py_DEBUG='false'
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5387 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
5388 # merged with this chunk of code?
5390 # Optimizer/debugger flags
5391 # ------------------------
5392 # (The following bit of code is complicated enough - please keep things
5393 # indented properly. Just pretend you're editing Python code. ;-)
5395 # There are two parallel sets of case statements below, one that checks to
5396 # see if OPT was set and one that does BASECFLAGS setting based upon
5397 # compiler and platform. BASECFLAGS tweaks need to be made even if the
5400 # tweak OPT based on compiler and platform, only if the user didn't set
5401 # it on the command line
5403 if test "${OPT-unset}" = "unset"
5407 if test "$CC" != 'g++' ; then
5408 STRICT_PROTO="-Wstrict-prototypes"
5410 # For gcc 4.x we need to use -fwrapv so lets check if its supported
5411 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
5415 # Clang also needs -fwrapv
5417 *clang*) WRAP="-fwrapv"
5421 case $ac_cv_prog_cc_g in
5423 if test "$Py_DEBUG" = 'true' ; then
5424 # Optimization messes up debuggers, so turn it off for
5426 OPT="-g -O0 -Wall $STRICT_PROTO"
5428 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
5432 OPT="-O3 -Wall $STRICT_PROTO"
5435 case $ac_sys_system in
5436 SCO_SV*) OPT="$OPT -m486 -DSCO5"
5449 # The -arch flags for universal builds on OSX
5450 UNIVERSAL_ARCH_FLAGS=
5453 # tweak BASECFLAGS based on compiler and platform
5456 # Python violates C99 rules, by casting between incompatible
5457 # pointer types. GCC may generate bad code as a result of that,
5458 # so use -fno-strict-aliasing if supported.
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5
5460 $as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; }
5462 CC="$CC -fno-strict-aliasing"
5463 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 ac_cv_no_strict_aliasing_ok=yes
5480 ac_cv_no_strict_aliasing_ok=no
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5
5487 $as_echo "$ac_cv_no_strict_aliasing_ok" >&6; }
5488 if test $ac_cv_no_strict_aliasing_ok = yes
5490 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
5493 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
5494 # support. Without this, treatment of subnormals doesn't follow
5496 case $ac_sys_machine in
5498 BASECFLAGS="$BASECFLAGS -mieee"
5502 case $ac_sys_system in
5504 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
5506 # is there any other compiler on Darwin besides gcc?
5508 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
5509 # used to be here, but non-Apple gcc doesn't accept them.
5510 if test "${CC}" = gcc
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
5513 $as_echo_n "checking which compiler should be used... " >&6; }
5514 case "${UNIVERSALSDK}" in
5516 # Build using 10.4 SDK, force usage of gcc when the
5517 # compiler is gcc, otherwise the user will get very
5518 # confusing error messages when building on OSX 10.6
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5524 $as_echo "$CC" >&6; }
5527 # Calculate the right deployment target for this build.
5529 cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
5530 if test ${cur_target} '>' 10.2; then
5532 if test ${enable_universalsdk}; then
5533 if test "${UNIVERSAL_ARCHS}" = "all"; then
5534 # Ensure that the default platform for a
5535 # 4-way universal build is OSX 10.5,
5536 # that's the first OS release where
5537 # 4-way builds make sense.
5540 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
5543 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
5546 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
5550 if test `/usr/bin/arch` = "i386"; then
5551 # On Intel macs default to a deployment
5552 # target of 10.4, that's the first OSX
5553 # release with Intel support.
5558 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
5560 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
5561 # environment with a value that is the same as what we'll use
5562 # in the Makefile to ensure that we'll get the same compiler
5563 # environment during configure and build time.
5564 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
5565 export MACOSX_DEPLOYMENT_TARGET
5566 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
5568 if test "${enable_universalsdk}"; then
5569 UNIVERSAL_ARCH_FLAGS=""
5570 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
5571 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
5575 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
5576 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
5578 ARCH_RUN_32BIT="true"
5580 elif test "$UNIVERSAL_ARCHS" = "all" ; then
5581 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
5582 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
5583 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
5585 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
5586 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
5587 LIPO_32BIT_FLAGS="-extract i386"
5588 ARCH_RUN_32BIT="/usr/bin/arch -i386"
5590 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
5591 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
5592 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
5593 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
5596 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
5601 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
5602 if test "${UNIVERSALSDK}" != "/"
5604 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
5605 LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
5606 CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
5614 BASECFLAGS="$BASECFLAGS -mieee"
5620 case $ac_sys_system in
5621 OpenUNIX*|UnixWare*)
5622 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
5625 BASECFLAGS="$BASECFLAGS -ieee -std"
5628 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
5634 if test "$Py_DEBUG" = 'true'; then
5640 if test "$ac_arch_flags"
5642 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
5645 # disable check for icc since it seems to pass, but generates a warning
5648 ac_cv_opt_olimit_ok=no
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5
5652 $as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; }
5653 if test "${ac_cv_opt_olimit_ok+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5657 CC="$CC -OPT:Olimit=0"
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 ac_cv_opt_olimit_ok=yes
5672 ac_cv_opt_olimit_ok=no
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5
5680 $as_echo "$ac_cv_opt_olimit_ok" >&6; }
5681 if test $ac_cv_opt_olimit_ok = yes; then
5682 case $ac_sys_system in
5683 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
5684 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
5689 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5
5694 $as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; }
5695 if test "${ac_cv_olimit_ok+set}" = set; then :
5696 $as_echo_n "(cached) " >&6
5699 CC="$CC -Olimit 1500"
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5711 if ac_fn_c_try_compile "$LINENO"; then :
5717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5
5722 $as_echo "$ac_cv_olimit_ok" >&6; }
5723 if test $ac_cv_olimit_ok = yes; then
5724 BASECFLAGS="$BASECFLAGS -Olimit 1500"
5728 # Check whether GCC supports PyArg_ParseTuple format
5729 if test "$GCC" = "yes"
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5
5732 $as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; }
5734 CFLAGS="$CFLAGS -Werror"
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5738 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
5748 if ac_fn_c_try_compile "$LINENO"; then :
5751 $as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5754 $as_echo "yes" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 # On some compilers, pthreads are available without further options
5767 # (e.g. MacOS X). On some of these systems, the compiler will not
5768 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5769 # So we have to see first whether pthreads are available without
5770 # options before we can check whether -Kpthread improves anything.
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
5772 $as_echo_n "checking whether pthreads are available without options... " >&6; }
5773 if test "${ac_cv_pthread_is_default+set}" = set; then :
5774 $as_echo_n "(cached) " >&6
5776 if test "$cross_compiling" = yes; then :
5777 ac_cv_pthread_is_default=no
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5782 #include <pthread.h>
5784 void* routine(void* p){return NULL;}
5788 if(pthread_create(&p,NULL,routine,NULL)!=0)
5790 (void)pthread_detach(p);
5795 if ac_fn_c_try_run "$LINENO"; then :
5797 ac_cv_pthread_is_default=yes
5802 ac_cv_pthread_is_default=no
5804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5805 conftest.$ac_objext conftest.beam conftest.$ac_ext
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
5812 $as_echo "$ac_cv_pthread_is_default" >&6; }
5815 if test $ac_cv_pthread_is_default = yes
5819 # -Kpthread, if available, provides the right #defines
5820 # and linker options to make pthread_create available
5821 # Some compilers won't report that they do not support -Kpthread,
5822 # so we need to run a program to see whether it really made the
5823 # function available.
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
5825 $as_echo_n "checking whether $CC accepts -Kpthread... " >&6; }
5826 if test "${ac_cv_kpthread+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5831 if test "$cross_compiling" = yes; then :
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5837 #include <pthread.h>
5839 void* routine(void* p){return NULL;}
5843 if(pthread_create(&p,NULL,routine,NULL)!=0)
5845 (void)pthread_detach(p);
5850 if ac_fn_c_try_run "$LINENO"; then :
5855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5856 conftest.$ac_objext conftest.beam conftest.$ac_ext
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
5863 $as_echo "$ac_cv_kpthread" >&6; }
5866 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5868 # -Kthread, if available, provides the right #defines
5869 # and linker options to make pthread_create available
5870 # Some compilers won't report that they do not support -Kthread,
5871 # so we need to run a program to see whether it really made the
5872 # function available.
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
5874 $as_echo_n "checking whether $CC accepts -Kthread... " >&6; }
5875 if test "${ac_cv_kthread+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5880 if test "$cross_compiling" = yes; then :
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5886 #include <pthread.h>
5888 void* routine(void* p){return NULL;}
5892 if(pthread_create(&p,NULL,routine,NULL)!=0)
5894 (void)pthread_detach(p);
5899 if ac_fn_c_try_run "$LINENO"; then :
5904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5905 conftest.$ac_objext conftest.beam conftest.$ac_ext
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
5912 $as_echo "$ac_cv_kthread" >&6; }
5915 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5917 # -pthread, if available, provides the right #defines
5918 # and linker options to make pthread_create available
5919 # Some compilers won't report that they do not support -pthread,
5920 # so we need to run a program to see whether it really made the
5921 # function available.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
5923 $as_echo_n "checking whether $CC accepts -pthread... " >&6; }
5924 if test "${ac_cv_thread+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5929 if test "$cross_compiling" = yes; then :
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5935 #include <pthread.h>
5937 void* routine(void* p){return NULL;}
5941 if(pthread_create(&p,NULL,routine,NULL)!=0)
5943 (void)pthread_detach(p);
5948 if ac_fn_c_try_run "$LINENO"; then :
5953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5954 conftest.$ac_objext conftest.beam conftest.$ac_ext
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
5961 $as_echo "$ac_cv_pthread" >&6; }
5964 # If we have set a CC compiler flag for thread support then
5965 # check if it works for CXX, too.
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
5970 $as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; }
5973 if test "$ac_cv_kpthread" = "yes"
5975 CXX="$CXX -Kpthread"
5976 ac_cv_cxx_thread=yes
5977 elif test "$ac_cv_kthread" = "yes"
5980 ac_cv_cxx_thread=yes
5981 elif test "$ac_cv_pthread" = "yes"
5984 ac_cv_cxx_thread=yes
5987 if test $ac_cv_cxx_thread = yes
5989 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5990 $CXX -c conftest.$ac_ext 2>&5
5991 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5992 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5994 ac_cv_cxx_thread=yes
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
6001 $as_echo "$ac_cv_cxx_thread" >&6; }
6006 # checks for header files
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6008 $as_echo_n "checking for ANSI C header files... " >&6; }
6009 if test "${ac_cv_header_stdc+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6027 if ac_fn_c_try_compile "$LINENO"; then :
6028 ac_cv_header_stdc=yes
6030 ac_cv_header_stdc=no
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 if test $ac_cv_header_stdc = yes; then
6035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "memchr" >/dev/null 2>&1; then :
6045 ac_cv_header_stdc=no
6051 if test $ac_cv_header_stdc = yes; then
6052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059 $EGREP "free" >/dev/null 2>&1; then :
6062 ac_cv_header_stdc=no
6068 if test $ac_cv_header_stdc = yes; then
6069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6070 if test "$cross_compiling" = yes; then :
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6077 #if ((' ' & 0x0FF) == 0x020)
6078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6081 # define ISLOWER(c) \
6082 (('a' <= (c) && (c) <= 'i') \
6083 || ('j' <= (c) && (c) <= 'r') \
6084 || ('s' <= (c) && (c) <= 'z'))
6085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6093 for (i = 0; i < 256; i++)
6094 if (XOR (islower (i), ISLOWER (i))
6095 || toupper (i) != TOUPPER (i))
6100 if ac_fn_c_try_run "$LINENO"; then :
6103 ac_cv_header_stdc=no
6105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6106 conftest.$ac_objext conftest.beam conftest.$ac_ext
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6112 $as_echo "$ac_cv_header_stdc" >&6; }
6113 if test $ac_cv_header_stdc = yes; then
6115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6119 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
6121 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
6122 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
6124 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
6125 sys/lock.h sys/mkdev.h sys/modem.h \
6126 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
6127 sys/termio.h sys/time.h \
6128 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
6129 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
6130 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h
6132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6133 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6134 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6135 cat >>confdefs.h <<_ACEOF
6136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6144 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6145 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6147 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6148 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
6149 $as_echo_n "(cached) " >&6
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 #include <sys/types.h>
6165 if ac_fn_c_try_compile "$LINENO"; then :
6166 eval "$as_ac_Header=yes"
6168 eval "$as_ac_Header=no"
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 eval ac_res=\$$as_ac_Header
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6174 $as_echo "$ac_res" >&6; }
6175 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6176 cat >>confdefs.h <<_ACEOF
6177 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6180 ac_header_dirent=$ac_hdr; break
6184 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6185 if test $ac_header_dirent = dirent.h; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6187 $as_echo_n "checking for library containing opendir... " >&6; }
6188 if test "${ac_cv_search_opendir+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6191 ac_func_search_save_LIBS=$LIBS
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6195 /* Override any GCC internal prototype to avoid an error.
6196 Use char because int might match the return type of a GCC
6197 builtin and then its argument prototype would still apply. */
6210 for ac_lib in '' dir; do
6211 if test -z "$ac_lib"; then
6212 ac_res="none required"
6215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6217 if ac_fn_c_try_link "$LINENO"; then :
6218 ac_cv_search_opendir=$ac_res
6220 rm -f core conftest.err conftest.$ac_objext \
6222 if test "${ac_cv_search_opendir+set}" = set; then :
6226 if test "${ac_cv_search_opendir+set}" = set; then :
6229 ac_cv_search_opendir=no
6232 LIBS=$ac_func_search_save_LIBS
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6235 $as_echo "$ac_cv_search_opendir" >&6; }
6236 ac_res=$ac_cv_search_opendir
6237 if test "$ac_res" != no; then :
6238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6244 $as_echo_n "checking for library containing opendir... " >&6; }
6245 if test "${ac_cv_search_opendir+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6248 ac_func_search_save_LIBS=$LIBS
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6252 /* Override any GCC internal prototype to avoid an error.
6253 Use char because int might match the return type of a GCC
6254 builtin and then its argument prototype would still apply. */
6267 for ac_lib in '' x; do
6268 if test -z "$ac_lib"; then
6269 ac_res="none required"
6272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6274 if ac_fn_c_try_link "$LINENO"; then :
6275 ac_cv_search_opendir=$ac_res
6277 rm -f core conftest.err conftest.$ac_objext \
6279 if test "${ac_cv_search_opendir+set}" = set; then :
6283 if test "${ac_cv_search_opendir+set}" = set; then :
6286 ac_cv_search_opendir=no
6289 LIBS=$ac_func_search_save_LIBS
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6292 $as_echo "$ac_cv_search_opendir" >&6; }
6293 ac_res=$ac_cv_search_opendir
6294 if test "$ac_res" != no; then :
6295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
6302 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
6303 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
6304 $as_echo_n "(cached) " >&6
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 #include <sys/types.h>
6312 return makedev(0, 0);
6317 if ac_fn_c_try_link "$LINENO"; then :
6318 ac_cv_header_sys_types_h_makedev=yes
6320 ac_cv_header_sys_types_h_makedev=no
6322 rm -f core conftest.err conftest.$ac_objext \
6323 conftest$ac_exeext conftest.$ac_ext
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
6327 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
6329 if test $ac_cv_header_sys_types_h_makedev = no; then
6330 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6331 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
6333 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
6339 if test $ac_cv_header_sys_mkdev_h = no; then
6340 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
6341 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
6343 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
6352 # On Solaris, term.h requires curses.h
6353 for ac_header in term.h
6355 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "
6356 #ifdef HAVE_CURSES_H
6361 if test "x$ac_cv_header_term_h" = x""yes; then :
6362 cat >>confdefs.h <<_ACEOF
6363 #define HAVE_TERM_H 1
6371 # On Linux, netlink.h requires asm/types.h
6372 for ac_header in linux/netlink.h
6374 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
6375 #ifdef HAVE_ASM_TYPES_H
6376 #include <asm/types.h>
6378 #ifdef HAVE_SYS_SOCKET_H
6379 #include <sys/socket.h>
6383 if test "x$ac_cv_header_linux_netlink_h" = x""yes; then :
6384 cat >>confdefs.h <<_ACEOF
6385 #define HAVE_LINUX_NETLINK_H 1
6393 # checks for typedefs
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5
6396 $as_echo_n "checking for clock_t in time.h... " >&6; }
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403 $EGREP "clock_t" >/dev/null 2>&1; then :
6408 $as_echo "#define clock_t long" >>confdefs.h
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
6415 $as_echo "$was_it_defined" >&6; }
6417 # Check whether using makedev requires defining _OSF_SOURCE
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
6419 $as_echo_n "checking for makedev... " >&6; }
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6423 #if defined(MAJOR_IN_MKDEV)
6424 #include <sys/mkdev.h>
6425 #elif defined(MAJOR_IN_SYSMACROS)
6426 #include <sys/sysmacros.h>
6428 #include <sys/types.h>
6438 if ac_fn_c_try_link "$LINENO"; then :
6439 ac_cv_has_makedev=yes
6441 ac_cv_has_makedev=no
6443 rm -f core conftest.err conftest.$ac_objext \
6444 conftest$ac_exeext conftest.$ac_ext
6445 if test "$ac_cv_has_makedev" = "no"; then
6446 # we didn't link, try if _OSF_SOURCE will allow us to link
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6450 #define _OSF_SOURCE 1
6451 #include <sys/types.h>
6461 if ac_fn_c_try_link "$LINENO"; then :
6462 ac_cv_has_makedev=yes
6464 ac_cv_has_makedev=no
6466 rm -f core conftest.err conftest.$ac_objext \
6467 conftest$ac_exeext conftest.$ac_ext
6468 if test "$ac_cv_has_makedev" = "yes"; then
6470 $as_echo "#define _OSF_SOURCE 1" >>confdefs.h
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5
6475 $as_echo "$ac_cv_has_makedev" >&6; }
6476 if test "$ac_cv_has_makedev" = "yes"; then
6478 $as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h
6482 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6483 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6484 # defined, but the compiler does not support pragma redefine_extname,
6485 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6486 # structures (such as rlimit64) without declaring them. As a
6487 # work-around, disable LFS on such configurations
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5
6491 $as_echo_n "checking Solaris LFS bug... " >&6; }
6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6495 #define _LARGEFILE_SOURCE 1
6496 #define _FILE_OFFSET_BITS 64
6497 #include <sys/resource.h>
6507 if ac_fn_c_try_compile "$LINENO"; then :
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5
6514 $as_echo "$sol_lfs_bug" >&6; }
6515 if test "$sol_lfs_bug" = "yes"; then
6519 if test "$use_lfs" = "yes"; then
6520 # Two defines needed to enable largefile support on various platforms
6521 # These may affect some typedefs
6522 case $ac_sys_system/$ac_sys_release in
6525 $as_echo "#define _LARGE_FILES 1" >>confdefs.h
6530 $as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h
6533 $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
6537 # Add some code to confdefs.h so that the test for off_t works on SCO
6538 cat >> confdefs.h <<\EOF
6544 # Type availability checks
6545 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6546 if test "x$ac_cv_type_mode_t" = x""yes; then :
6550 cat >>confdefs.h <<_ACEOF
6556 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6557 if test "x$ac_cv_type_off_t" = x""yes; then :
6561 cat >>confdefs.h <<_ACEOF
6562 #define off_t long int
6567 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6568 if test "x$ac_cv_type_pid_t" = x""yes; then :
6572 cat >>confdefs.h <<_ACEOF
6579 cat >>confdefs.h <<_ACEOF
6580 #define RETSIGTYPE void
6583 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6584 if test "x$ac_cv_type_size_t" = x""yes; then :
6588 cat >>confdefs.h <<_ACEOF
6589 #define size_t unsigned int
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6595 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6596 if test "${ac_cv_type_uid_t+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 #include <sys/types.h>
6604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6605 $EGREP "uid_t" >/dev/null 2>&1; then :
6606 ac_cv_type_uid_t=yes
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6614 $as_echo "$ac_cv_type_uid_t" >&6; }
6615 if test $ac_cv_type_uid_t = no; then
6617 $as_echo "#define uid_t int" >>confdefs.h
6620 $as_echo "#define gid_t int" >>confdefs.h
6624 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6625 case $ac_cv_c_uint32_t in #(
6629 $as_echo "#define _UINT32_T 1" >>confdefs.h
6632 cat >>confdefs.h <<_ACEOF
6633 #define uint32_t $ac_cv_c_uint32_t
6638 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6639 case $ac_cv_c_uint64_t in #(
6643 $as_echo "#define _UINT64_T 1" >>confdefs.h
6646 cat >>confdefs.h <<_ACEOF
6647 #define uint64_t $ac_cv_c_uint64_t
6652 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6653 case $ac_cv_c_int32_t in #(
6657 cat >>confdefs.h <<_ACEOF
6658 #define int32_t $ac_cv_c_int32_t
6663 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6664 case $ac_cv_c_int64_t in #(
6668 cat >>confdefs.h <<_ACEOF
6669 #define int64_t $ac_cv_c_int64_t
6674 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
6675 if test "x$ac_cv_type_ssize_t" = x""yes; then :
6677 $as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h
6682 # Sizes of various common basic types
6683 # ANSI C requires sizeof(char) == 1, so no need to check it
6684 # The cast to long int works around a bug in the HP C Compiler
6685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6687 # This bug is HP SR number 8606223364.
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6689 $as_echo_n "checking size of int... " >&6; }
6690 if test "${ac_cv_sizeof_int+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6693 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6696 if test "$ac_cv_type_int" = yes; then
6697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6699 as_fn_error 77 "cannot compute sizeof (int)
6700 See \`config.log' for more details" "$LINENO" 5 ; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6708 $as_echo "$ac_cv_sizeof_int" >&6; }
6712 cat >>confdefs.h <<_ACEOF
6713 #define SIZEOF_INT $ac_cv_sizeof_int
6717 # The cast to long int works around a bug in the HP C Compiler
6718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6720 # This bug is HP SR number 8606223364.
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6722 $as_echo_n "checking size of long... " >&6; }
6723 if test "${ac_cv_sizeof_long+set}" = set; then :
6724 $as_echo_n "(cached) " >&6
6726 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6729 if test "$ac_cv_type_long" = yes; then
6730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6732 as_fn_error 77 "cannot compute sizeof (long)
6733 See \`config.log' for more details" "$LINENO" 5 ; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6741 $as_echo "$ac_cv_sizeof_long" >&6; }
6745 cat >>confdefs.h <<_ACEOF
6746 #define SIZEOF_LONG $ac_cv_sizeof_long
6750 # The cast to long int works around a bug in the HP C Compiler
6751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6753 # This bug is HP SR number 8606223364.
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6755 $as_echo_n "checking size of void *... " >&6; }
6756 if test "${ac_cv_sizeof_void_p+set}" = set; then :
6757 $as_echo_n "(cached) " >&6
6759 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6762 if test "$ac_cv_type_void_p" = yes; then
6763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6765 as_fn_error 77 "cannot compute sizeof (void *)
6766 See \`config.log' for more details" "$LINENO" 5 ; }
6768 ac_cv_sizeof_void_p=0
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6774 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6778 cat >>confdefs.h <<_ACEOF
6779 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6783 # The cast to long int works around a bug in the HP C Compiler
6784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6786 # This bug is HP SR number 8606223364.
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6788 $as_echo_n "checking size of short... " >&6; }
6789 if test "${ac_cv_sizeof_short+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6792 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6795 if test "$ac_cv_type_short" = yes; then
6796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6798 as_fn_error 77 "cannot compute sizeof (short)
6799 See \`config.log' for more details" "$LINENO" 5 ; }
6801 ac_cv_sizeof_short=0
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6807 $as_echo "$ac_cv_sizeof_short" >&6; }
6811 cat >>confdefs.h <<_ACEOF
6812 #define SIZEOF_SHORT $ac_cv_sizeof_short
6816 # The cast to long int works around a bug in the HP C Compiler
6817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6819 # This bug is HP SR number 8606223364.
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
6821 $as_echo_n "checking size of float... " >&6; }
6822 if test "${ac_cv_sizeof_float+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6825 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
6828 if test "$ac_cv_type_float" = yes; then
6829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6831 as_fn_error 77 "cannot compute sizeof (float)
6832 See \`config.log' for more details" "$LINENO" 5 ; }
6834 ac_cv_sizeof_float=0
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
6840 $as_echo "$ac_cv_sizeof_float" >&6; }
6844 cat >>confdefs.h <<_ACEOF
6845 #define SIZEOF_FLOAT $ac_cv_sizeof_float
6849 # The cast to long int works around a bug in the HP C Compiler
6850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6852 # This bug is HP SR number 8606223364.
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
6854 $as_echo_n "checking size of double... " >&6; }
6855 if test "${ac_cv_sizeof_double+set}" = set; then :
6856 $as_echo_n "(cached) " >&6
6858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
6861 if test "$ac_cv_type_double" = yes; then
6862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6864 as_fn_error 77 "cannot compute sizeof (double)
6865 See \`config.log' for more details" "$LINENO" 5 ; }
6867 ac_cv_sizeof_double=0
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
6873 $as_echo "$ac_cv_sizeof_double" >&6; }
6877 cat >>confdefs.h <<_ACEOF
6878 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6882 # The cast to long int works around a bug in the HP C Compiler
6883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6885 # This bug is HP SR number 8606223364.
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
6887 $as_echo_n "checking size of fpos_t... " >&6; }
6888 if test "${ac_cv_sizeof_fpos_t+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6891 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then :
6894 if test "$ac_cv_type_fpos_t" = yes; then
6895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6897 as_fn_error 77 "cannot compute sizeof (fpos_t)
6898 See \`config.log' for more details" "$LINENO" 5 ; }
6900 ac_cv_sizeof_fpos_t=0
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
6906 $as_echo "$ac_cv_sizeof_fpos_t" >&6; }
6910 cat >>confdefs.h <<_ACEOF
6911 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
6915 # The cast to long int works around a bug in the HP C Compiler
6916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6918 # This bug is HP SR number 8606223364.
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
6920 $as_echo_n "checking size of size_t... " >&6; }
6921 if test "${ac_cv_sizeof_size_t+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6924 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
6927 if test "$ac_cv_type_size_t" = yes; then
6928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6930 as_fn_error 77 "cannot compute sizeof (size_t)
6931 See \`config.log' for more details" "$LINENO" 5 ; }
6933 ac_cv_sizeof_size_t=0
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
6939 $as_echo "$ac_cv_sizeof_size_t" >&6; }
6943 cat >>confdefs.h <<_ACEOF
6944 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
6948 # The cast to long int works around a bug in the HP C Compiler
6949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6951 # This bug is HP SR number 8606223364.
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
6953 $as_echo_n "checking size of pid_t... " >&6; }
6954 if test "${ac_cv_sizeof_pid_t+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6957 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then :
6960 if test "$ac_cv_type_pid_t" = yes; then
6961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6963 as_fn_error 77 "cannot compute sizeof (pid_t)
6964 See \`config.log' for more details" "$LINENO" 5 ; }
6966 ac_cv_sizeof_pid_t=0
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
6972 $as_echo "$ac_cv_sizeof_pid_t" >&6; }
6976 cat >>confdefs.h <<_ACEOF
6977 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5
6983 $as_echo_n "checking for long long support... " >&6; }
6985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h. */
6991 long long x; x = (long long)0;
6996 if ac_fn_c_try_compile "$LINENO"; then :
6999 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5
7006 $as_echo "$have_long_long" >&6; }
7007 if test "$have_long_long" = yes ; then
7008 # The cast to long int works around a bug in the HP C Compiler
7009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7011 # This bug is HP SR number 8606223364.
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
7013 $as_echo_n "checking size of long long... " >&6; }
7014 if test "${ac_cv_sizeof_long_long+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7017 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
7020 if test "$ac_cv_type_long_long" = yes; then
7021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7023 as_fn_error 77 "cannot compute sizeof (long long)
7024 See \`config.log' for more details" "$LINENO" 5 ; }
7026 ac_cv_sizeof_long_long=0
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
7032 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7036 cat >>confdefs.h <<_ACEOF
7037 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5
7044 $as_echo_n "checking for long double support... " >&6; }
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7052 long double x; x = (long double)0;
7057 if ac_fn_c_try_compile "$LINENO"; then :
7060 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
7062 have_long_double=yes
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5
7067 $as_echo "$have_long_double" >&6; }
7068 if test "$have_long_double" = yes ; then
7069 # The cast to long int works around a bug in the HP C Compiler
7070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7072 # This bug is HP SR number 8606223364.
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7074 $as_echo_n "checking size of long double... " >&6; }
7075 if test "${ac_cv_sizeof_long_double+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7081 if test "$ac_cv_type_long_double" = yes; then
7082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7084 as_fn_error 77 "cannot compute sizeof (long double)
7085 See \`config.log' for more details" "$LINENO" 5 ; }
7087 ac_cv_sizeof_long_double=0
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7093 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7097 cat >>confdefs.h <<_ACEOF
7098 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5
7105 $as_echo_n "checking for _Bool support... " >&6; }
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7113 _Bool x; x = (_Bool)0;
7118 if ac_fn_c_try_compile "$LINENO"; then :
7121 $as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5
7128 $as_echo "$have_c99_bool" >&6; }
7129 if test "$have_c99_bool" = yes ; then
7130 # The cast to long int works around a bug in the HP C Compiler
7131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7133 # This bug is HP SR number 8606223364.
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
7135 $as_echo_n "checking size of _Bool... " >&6; }
7136 if test "${ac_cv_sizeof__Bool+set}" = set; then :
7137 $as_echo_n "(cached) " >&6
7139 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then :
7142 if test "$ac_cv_type__Bool" = yes; then
7143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7145 as_fn_error 77 "cannot compute sizeof (_Bool)
7146 See \`config.log' for more details" "$LINENO" 5 ; }
7148 ac_cv_sizeof__Bool=0
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
7154 $as_echo "$ac_cv_sizeof__Bool" >&6; }
7158 cat >>confdefs.h <<_ACEOF
7159 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
7165 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
7168 #ifdef HAVE_INTTYPES_H
7169 #include <inttypes.h>
7172 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
7174 cat >>confdefs.h <<_ACEOF
7175 #define HAVE_UINTPTR_T 1
7178 # The cast to long int works around a bug in the HP C Compiler
7179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7181 # This bug is HP SR number 8606223364.
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
7183 $as_echo_n "checking size of uintptr_t... " >&6; }
7184 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then :
7185 $as_echo_n "(cached) " >&6
7187 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then :
7190 if test "$ac_cv_type_uintptr_t" = yes; then
7191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7193 as_fn_error 77 "cannot compute sizeof (uintptr_t)
7194 See \`config.log' for more details" "$LINENO" 5 ; }
7196 ac_cv_sizeof_uintptr_t=0
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
7202 $as_echo "$ac_cv_sizeof_uintptr_t" >&6; }
7206 cat >>confdefs.h <<_ACEOF
7207 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
7214 # The cast to long int works around a bug in the HP C Compiler
7215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7217 # This bug is HP SR number 8606223364.
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
7219 $as_echo_n "checking size of off_t... " >&6; }
7220 if test "${ac_cv_sizeof_off_t+set}" = set; then :
7221 $as_echo_n "(cached) " >&6
7223 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
7224 #ifdef HAVE_SYS_TYPES_H
7225 #include <sys/types.h>
7231 if test "$ac_cv_type_off_t" = yes; then
7232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7234 as_fn_error 77 "cannot compute sizeof (off_t)
7235 See \`config.log' for more details" "$LINENO" 5 ; }
7237 ac_cv_sizeof_off_t=0
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
7243 $as_echo "$ac_cv_sizeof_off_t" >&6; }
7247 cat >>confdefs.h <<_ACEOF
7248 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
7254 $as_echo_n "checking whether to enable large file support... " >&6; }
7255 if test "$have_long_long" = yes
7257 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
7258 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
7260 $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7263 $as_echo "yes" >&6; }
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7273 # The cast to long int works around a bug in the HP C Compiler
7274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7276 # This bug is HP SR number 8606223364.
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
7278 $as_echo_n "checking size of time_t... " >&6; }
7279 if test "${ac_cv_sizeof_time_t+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7282 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
7283 #ifdef HAVE_SYS_TYPES_H
7284 #include <sys/types.h>
7293 if test "$ac_cv_type_time_t" = yes; then
7294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7296 as_fn_error 77 "cannot compute sizeof (time_t)
7297 See \`config.log' for more details" "$LINENO" 5 ; }
7299 ac_cv_sizeof_time_t=0
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
7305 $as_echo "$ac_cv_sizeof_time_t" >&6; }
7309 cat >>confdefs.h <<_ACEOF
7310 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
7315 # if have pthread_t then define SIZEOF_PTHREAD_T
7317 if test "$ac_cv_kpthread" = "yes"
7318 then CC="$CC -Kpthread"
7319 elif test "$ac_cv_kthread" = "yes"
7320 then CC="$CC -Kthread"
7321 elif test "$ac_cv_pthread" = "yes"
7322 then CC="$CC -pthread"
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
7325 $as_echo_n "checking for pthread_t... " >&6; }
7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h. */
7330 #include <pthread.h>
7334 pthread_t x; x = *(pthread_t*)0;
7340 if ac_fn_c_try_compile "$LINENO"; then :
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5
7345 $as_echo "$have_pthread_t" >&6; }
7346 if test "$have_pthread_t" = yes ; then
7347 # The cast to long int works around a bug in the HP C Compiler
7348 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7349 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7350 # This bug is HP SR number 8606223364.
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
7352 $as_echo_n "checking size of pthread_t... " >&6; }
7353 if test "${ac_cv_sizeof_pthread_t+set}" = set; then :
7354 $as_echo_n "(cached) " >&6
7356 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
7357 #ifdef HAVE_PTHREAD_H
7358 #include <pthread.h>
7364 if test "$ac_cv_type_pthread_t" = yes; then
7365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7367 as_fn_error 77 "cannot compute sizeof (pthread_t)
7368 See \`config.log' for more details" "$LINENO" 5 ; }
7370 ac_cv_sizeof_pthread_t=0
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
7376 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
7380 cat >>confdefs.h <<_ACEOF
7381 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5
7389 $as_echo_n "checking for --enable-toolbox-glue... " >&6; }
7390 # Check whether --enable-toolbox-glue was given.
7391 if test "${enable_toolbox_glue+set}" = set; then :
7392 enableval=$enable_toolbox_glue;
7396 if test -z "$enable_toolbox_glue"
7398 case $ac_sys_system/$ac_sys_release in
7400 enable_toolbox_glue="yes";;
7402 enable_toolbox_glue="no";;
7405 case "$enable_toolbox_glue" in
7407 extra_machdep_objs="Python/mactoolboxglue.o"
7408 extra_undefs="-u _PyMac_Error"
7410 $as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h
7414 extra_machdep_objs=""
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5
7419 $as_echo "$enable_toolbox_glue" >&6; }
7423 case $ac_sys_system/$ac_sys_release in
7425 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
7428 OTHER_LIBTOOL_OPT=""
7435 case $ac_sys_system/$ac_sys_release in
7437 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
7438 if test "${enable_universalsdk}"; then
7441 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
7443 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7444 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
7446 gcc_version=`gcc -dumpversion`
7447 if test ${gcc_version} '<' 4.0
7449 LIBTOOL_CRUFT="-lcc_dynamic"
7453 if test "$cross_compiling" = yes; then :
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7460 int main(int argc, char*argv[])
7462 if (sizeof(long) == 4) {
7470 if ac_fn_c_try_run "$LINENO"; then :
7475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7476 conftest.$ac_objext conftest.beam conftest.$ac_ext
7480 if test "${ac_osx_32bit}" = "yes"; then
7481 case `/usr/bin/arch` in
7483 MACOSX_DEFAULT_ARCH="i386"
7486 MACOSX_DEFAULT_ARCH="ppc"
7489 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
7493 case `/usr/bin/arch` in
7495 MACOSX_DEFAULT_ARCH="x86_64"
7498 MACOSX_DEFAULT_ARCH="ppc64"
7501 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
7505 #ARCH_RUN_32BIT="true"
7508 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
7509 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7510 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
7514 $as_echo_n "checking for --enable-framework... " >&6; }
7515 if test "$enable_framework"
7517 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
7518 # -F. is needed to allow linking to the framework while
7519 # in the build location.
7521 $as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7524 $as_echo "yes" >&6; }
7525 if test $enable_shared = "yes"
7527 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
7535 $as_echo_n "checking for dyld... " >&6; }
7536 case $ac_sys_system/$ac_sys_release in
7539 $as_echo "#define WITH_DYLD 1" >>confdefs.h
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
7542 $as_echo "always on for Darwin" >&6; }
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7550 # Set info about shared libraries.
7557 # SO is the extension of shared libraries `(including the dot!)
7558 # -- usually .so, .sl on HP-UX, .dll on Cygwin
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5
7560 $as_echo_n "checking SO... " >&6; }
7563 case $ac_sys_system in
7574 # this might also be a termcap variable, see #610332
7576 echo '====================================================================='
7578 echo '+ WARNING: You have set SO in your environment. +'
7579 echo '+ Do you really mean to change the extension for shared libraries? +'
7580 echo '+ Continuing in 10 seconds to let you to ponder. +'
7582 echo '====================================================================='
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5
7586 $as_echo "$SO" >&6; }
7589 cat >>confdefs.h <<_ACEOF
7590 #define SHLIB_EXT "$SO"
7593 # LDSHARED is the ld *command* used to create shared library
7594 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
7595 # (Shared libraries in this instance are shared modules to be loaded into
7596 # Python, as opposed to building Python itself as a shared library.)
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
7598 $as_echo_n "checking LDSHARED... " >&6; }
7599 if test -z "$LDSHARED"
7601 case $ac_sys_system/$ac_sys_release in
7603 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:\$(srcdir)/Modules/python.exp"
7604 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
7607 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
7608 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
7610 IRIX/5*) LDSHARED="ld -shared";;
7611 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
7613 if test "$GCC" = "yes" ; then
7614 LDSHARED='$(CC) -shared'
7615 LDCXXSHARED='$(CXX) -shared'
7618 LDCXXSHARED='$(CXX) -G'
7621 if test "$GCC" = "yes" ; then
7622 LDSHARED='$(CC) -shared'
7623 LDCXXSHARED='$(CXX) -shared'
7627 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
7629 LDSHARED='$(CC) -bundle'
7630 LDCXXSHARED='$(CXX) -bundle'
7631 if test "$enable_framework" ; then
7632 # Link against the framework. All externals should be defined.
7633 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7634 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7635 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7637 # No framework. Ignore undefined symbols, assuming they come from Python
7638 LDSHARED="$LDSHARED -undefined suppress"
7639 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
7641 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
7642 LDSHARED='$(CC) -bundle'
7643 LDCXXSHARED='$(CXX) -bundle'
7644 if test "$enable_framework" ; then
7645 # Link against the framework. All externals should be defined.
7646 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7647 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7648 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7650 # No framework, use the Python app as bundle-loader
7651 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
7652 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
7653 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
7656 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
7657 # This allows an extension to be used in any Python
7659 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
7661 if test "${enable_universalsdk}"; then
7662 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
7664 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
7665 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
7666 BLDSHARED="$LDSHARED"
7668 LDSHARED='$(CC) -bundle'
7669 LDCXXSHARED='$(CXX) -bundle'
7670 if test "$enable_framework" ; then
7671 # Link against the framework. All externals should be defined.
7672 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7673 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7674 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7676 # No framework, use the Python app as bundle-loader
7677 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
7678 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
7679 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
7684 LDSHARED='$(CC) -shared'
7685 LDCXXSHARED='$(CXX) -shared';;
7687 LDSHARED="gcc -shared"
7688 LDCXXSHARED="g++ -shared";;
7690 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7692 LDSHARED='$(CC) -shared'
7693 LDCXXSHARED='$(CXX) -shared'
7695 LDSHARED="ld -Bshareable"
7698 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7700 LDSHARED='$(CC) -shared $(CCSHARED)'
7701 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
7704 [01].* | 2.[0-7] | 2.[0-7].*)
7705 LDSHARED="ld -Bshareable ${LDFLAGS}"
7708 LDSHARED='$(CC) -shared $(CCSHARED)'
7709 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
7714 LDSHARED='$(CC) -shared'
7715 LDCXXSHARED='$(CXX) -shared';;
7716 OpenUNIX*|UnixWare*)
7717 if test "$GCC" = "yes" ; then
7718 LDSHARED='$(CC) -shared'
7719 LDCXXSHARED='$(CXX) -shared'
7722 LDCXXSHARED='$(CXX) -G'
7725 LDSHARED='$(CC) -Wl,-G,-Bexport'
7726 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
7728 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
7729 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
7731 LDSHARED="gcc -shared"
7732 LDCXXSHARED="g++ -shared";;
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
7737 $as_echo "$LDSHARED" >&6; }
7738 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
7739 BLDSHARED=${BLDSHARED-$LDSHARED}
7740 # CCSHARED are the C *flags* used to create objects to go into a shared
7741 # library (module) -- this is only needed for a few systems
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
7743 $as_echo_n "checking CCSHARED... " >&6; }
7744 if test -z "$CCSHARED"
7746 case $ac_sys_system/$ac_sys_release in
7747 SunOS*) if test "$GCC" = yes;
7748 then CCSHARED="-fPIC";
7749 elif test `uname -p` = sparc;
7750 then CCSHARED="-xcode=pic32";
7751 else CCSHARED="-Kpic";
7753 hp*|HP*) if test "$GCC" = yes;
7754 then CCSHARED="-fPIC";
7757 Linux*|GNU*) CCSHARED="-fPIC";;
7758 BSD/OS*/4*) CCSHARED="-fpic";;
7759 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
7760 OpenUNIX*|UnixWare*)
7761 if test "$GCC" = "yes"
7762 then CCSHARED="-fPIC"
7763 else CCSHARED="-KPIC"
7766 if test "$GCC" = "yes"
7767 then CCSHARED="-fPIC"
7768 else CCSHARED="-Kpic -belf"
7770 IRIX*/6*) case $CC in
7771 *gcc*) CCSHARED="-shared";;
7774 atheos*) CCSHARED="-fPIC";;
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
7778 $as_echo "$CCSHARED" >&6; }
7779 # LINKFORSHARED are the flags passed to the $(CC) command that links
7780 # the python executable -- this is only needed for a few systems
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
7782 $as_echo_n "checking LINKFORSHARED... " >&6; }
7783 if test -z "$LINKFORSHARED"
7785 case $ac_sys_system/$ac_sys_release in
7786 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
7788 LINKFORSHARED="-Wl,-E -Wl,+s";;
7789 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
7790 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
7791 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
7792 # -u libsys_s pulls in all symbols in libsys
7794 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
7796 # not used by the core itself but which needs to be in the core so
7797 # that dynamically loaded extension modules have access to it.
7798 # -prebind is no longer used, because it actually seems to give a
7799 # slowdown in stead of a speedup, maybe due to the large number of
7800 # dynamic loads Python does.
7802 LINKFORSHARED="$extra_undefs"
7803 if test "$enable_framework"
7805 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
7807 LINKFORSHARED="$LINKFORSHARED";;
7808 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
7809 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
7810 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
7811 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
7812 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
7814 LINKFORSHARED="-Wl,--export-dynamic"
7816 SunOS/5*) case $CC in
7818 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
7820 LINKFORSHARED="-Xlinker --export-dynamic"
7824 if test $enable_shared = "no"
7826 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
7829 # -Wl,-E causes the symbols to be added to the dynamic
7830 # symbol table so that they can be found when a module
7831 # is loaded. -N 2048K causes the stack size to be set
7832 # to 2048 kilobytes so that the stack doesn't overflow
7833 # when running test_compile.py.
7834 LINKFORSHARED='-Wl,-E -N 2048K';;
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
7838 $as_echo "$LINKFORSHARED" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
7843 $as_echo_n "checking CFLAGSFORSHARED... " >&6; }
7844 if test ! "$LIBRARY" = "$LDLIBRARY"
7846 case $ac_sys_system in
7848 # Cygwin needs CCSHARED when building extension DLLs
7849 # but not when building the interpreter DLL.
7850 CFLAGSFORSHARED='';;
7852 CFLAGSFORSHARED='$(CCSHARED)'
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
7856 $as_echo "$CFLAGSFORSHARED" >&6; }
7858 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
7859 # library (with --enable-shared).
7860 # For platforms on which shared libraries are not allowed to have unresolved
7861 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
7862 # if it is not required, since it creates a dependency of the shared library
7863 # to LIBS. This, in turn, means that applications linking the shared libpython
7864 # don't need to link LIBS explicitly. The default should be only changed
7865 # on systems where this approach causes problems.
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
7868 $as_echo_n "checking SHLIBS... " >&6; }
7869 case "$ac_sys_system" in
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
7874 $as_echo "$SHLIBS" >&6; }
7877 # checks for libraries
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 ac_check_lib_save_LIBS=$LIBS
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7888 /* Override any GCC internal prototype to avoid an error.
7889 Use char because int might match the return type of a GCC
7890 builtin and then its argument prototype would still apply. */
7903 if ac_fn_c_try_link "$LINENO"; then :
7904 ac_cv_lib_dl_dlopen=yes
7906 ac_cv_lib_dl_dlopen=no
7908 rm -f core conftest.err conftest.$ac_objext \
7909 conftest$ac_exeext conftest.$ac_ext
7910 LIBS=$ac_check_lib_save_LIBS
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7914 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7915 cat >>confdefs.h <<_ACEOF
7916 #define HAVE_LIBDL 1
7922 # Dynamic linking for SunOS/Solaris and SYSV
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
7924 $as_echo_n "checking for shl_load in -ldld... " >&6; }
7925 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
7928 ac_check_lib_save_LIBS=$LIBS
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7933 /* Override any GCC internal prototype to avoid an error.
7934 Use char because int might match the return type of a GCC
7935 builtin and then its argument prototype would still apply. */
7948 if ac_fn_c_try_link "$LINENO"; then :
7949 ac_cv_lib_dld_shl_load=yes
7951 ac_cv_lib_dld_shl_load=no
7953 rm -f core conftest.err conftest.$ac_objext \
7954 conftest$ac_exeext conftest.$ac_ext
7955 LIBS=$ac_check_lib_save_LIBS
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7958 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7959 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
7960 cat >>confdefs.h <<_ACEOF
7961 #define HAVE_LIBDLD 1
7967 # Dynamic linking for HP-UX
7969 # only check for sem_init if thread support is requested
7970 if test "$with_threads" = "yes" -o -z "$with_threads"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
7972 $as_echo_n "checking for library containing sem_init... " >&6; }
7973 if test "${ac_cv_search_sem_init+set}" = set; then :
7974 $as_echo_n "(cached) " >&6
7976 ac_func_search_save_LIBS=$LIBS
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7980 /* Override any GCC internal prototype to avoid an error.
7981 Use char because int might match the return type of a GCC
7982 builtin and then its argument prototype would still apply. */
7995 for ac_lib in '' pthread rt posix4; do
7996 if test -z "$ac_lib"; then
7997 ac_res="none required"
8000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8002 if ac_fn_c_try_link "$LINENO"; then :
8003 ac_cv_search_sem_init=$ac_res
8005 rm -f core conftest.err conftest.$ac_objext \
8007 if test "${ac_cv_search_sem_init+set}" = set; then :
8011 if test "${ac_cv_search_sem_init+set}" = set; then :
8014 ac_cv_search_sem_init=no
8017 LIBS=$ac_func_search_save_LIBS
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
8020 $as_echo "$ac_cv_search_sem_init" >&6; }
8021 ac_res=$ac_cv_search_sem_init
8022 if test "$ac_res" != no; then :
8023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8026 # 'Real Time' functions on Solaris
8027 # posix4 on Solaris 2.6
8028 # pthread (first!) on Linux
8031 # check if we need libintl for locale functions
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
8033 $as_echo_n "checking for textdomain in -lintl... " >&6; }
8034 if test "${ac_cv_lib_intl_textdomain+set}" = set; then :
8035 $as_echo_n "(cached) " >&6
8037 ac_check_lib_save_LIBS=$LIBS
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8042 /* Override any GCC internal prototype to avoid an error.
8043 Use char because int might match the return type of a GCC
8044 builtin and then its argument prototype would still apply. */
8052 return textdomain ();
8057 if ac_fn_c_try_link "$LINENO"; then :
8058 ac_cv_lib_intl_textdomain=yes
8060 ac_cv_lib_intl_textdomain=no
8062 rm -f core conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8064 LIBS=$ac_check_lib_save_LIBS
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
8067 $as_echo "$ac_cv_lib_intl_textdomain" >&6; }
8068 if test "x$ac_cv_lib_intl_textdomain" = x""yes; then :
8070 $as_echo "#define WITH_LIBINTL 1" >>confdefs.h
8075 # checks for system dependent C++ extensions support
8076 case "$ac_sys_system" in
8077 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
8078 $as_echo_n "checking for genuine AIX C++ extensions support... " >&6; }
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8086 loadAndInit("", 0, "")
8092 if ac_fn_c_try_link "$LINENO"; then :
8095 $as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8098 $as_echo "yes" >&6; }
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8106 rm -f core conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext;;
8111 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
8112 # BeOS' sockets are stashed in libnet.
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
8114 $as_echo_n "checking for t_open in -lnsl... " >&6; }
8115 if test "${ac_cv_lib_nsl_t_open+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
8118 ac_check_lib_save_LIBS=$LIBS
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8123 /* Override any GCC internal prototype to avoid an error.
8124 Use char because int might match the return type of a GCC
8125 builtin and then its argument prototype would still apply. */
8138 if ac_fn_c_try_link "$LINENO"; then :
8139 ac_cv_lib_nsl_t_open=yes
8141 ac_cv_lib_nsl_t_open=no
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 LIBS=$ac_check_lib_save_LIBS
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
8148 $as_echo "$ac_cv_lib_nsl_t_open" >&6; }
8149 if test "x$ac_cv_lib_nsl_t_open" = x""yes; then :
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
8154 $as_echo_n "checking for socket in -lsocket... " >&6; }
8155 if test "${ac_cv_lib_socket_socket+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8158 ac_check_lib_save_LIBS=$LIBS
8159 LIBS="-lsocket $LIBS $LIBS"
8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161 /* end confdefs.h. */
8163 /* Override any GCC internal prototype to avoid an error.
8164 Use char because int might match the return type of a GCC
8165 builtin and then its argument prototype would still apply. */
8178 if ac_fn_c_try_link "$LINENO"; then :
8179 ac_cv_lib_socket_socket=yes
8181 ac_cv_lib_socket_socket=no
8183 rm -f core conftest.err conftest.$ac_objext \
8184 conftest$ac_exeext conftest.$ac_ext
8185 LIBS=$ac_check_lib_save_LIBS
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
8188 $as_echo "$ac_cv_lib_socket_socket" >&6; }
8189 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
8190 LIBS="-lsocket $LIBS"
8194 case "$ac_sys_system" in
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
8197 $as_echo_n "checking for socket in -lnet... " >&6; }
8198 if test "${ac_cv_lib_net_socket+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8201 ac_check_lib_save_LIBS=$LIBS
8202 LIBS="-lnet $LIBS $LIBS"
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8206 /* Override any GCC internal prototype to avoid an error.
8207 Use char because int might match the return type of a GCC
8208 builtin and then its argument prototype would still apply. */
8221 if ac_fn_c_try_link "$LINENO"; then :
8222 ac_cv_lib_net_socket=yes
8224 ac_cv_lib_net_socket=no
8226 rm -f core conftest.err conftest.$ac_objext \
8227 conftest$ac_exeext conftest.$ac_ext
8228 LIBS=$ac_check_lib_save_LIBS
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
8231 $as_echo "$ac_cv_lib_net_socket" >&6; }
8232 if test "x$ac_cv_lib_net_socket" = x""yes; then :
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
8240 $as_echo_n "checking for --with-libs... " >&6; }
8242 # Check whether --with-libs was given.
8243 if test "${with_libs+set}" = set; then :
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
8246 $as_echo "$withval" >&6; }
8247 LIBS="$withval $LIBS"
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8255 if test -n "$ac_tool_prefix"; then
8256 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8257 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8265 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 test -z "$as_dir" && as_dir=.
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8287 if test -n "$PKG_CONFIG"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8289 $as_echo "$PKG_CONFIG" >&6; }
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8297 if test -z "$ac_cv_path_PKG_CONFIG"; then
8298 ac_pt_PKG_CONFIG=$PKG_CONFIG
8299 # Extract the first word of "pkg-config", so it can be a program name with args.
8300 set dummy pkg-config; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8306 case $ac_pt_PKG_CONFIG in
8308 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8330 if test -n "$ac_pt_PKG_CONFIG"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8332 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8338 if test "x$ac_pt_PKG_CONFIG" = x; then
8341 case $cross_compiling:$ac_tool_warned in
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8345 ac_tool_warned=yes ;;
8347 PKG_CONFIG=$ac_pt_PKG_CONFIG
8350 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8354 # Check for use of the system expat library
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
8356 $as_echo_n "checking for --with-system-expat... " >&6; }
8358 # Check whether --with-system_expat was given.
8359 if test "${with_system_expat+set}" = set; then :
8360 withval=$with_system_expat;
8362 with_system_expat="no"
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
8367 $as_echo "$with_system_expat" >&6; }
8369 # Check for use of the system libffi library
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5
8371 $as_echo_n "checking for --with-system-ffi... " >&6; }
8373 # Check whether --with-system_ffi was given.
8374 if test "${with_system_ffi+set}" = set; then :
8375 withval=$with_system_ffi;
8377 with_system_ffi="no"
8381 if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
8382 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
8384 LIBFFI_INCLUDEDIR=""
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5
8389 $as_echo "$with_system_ffi" >&6; }
8391 # Check for --with-dbmliborder
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
8393 $as_echo_n "checking for --with-dbmliborder... " >&6; }
8395 # Check whether --with-dbmliborder was given.
8396 if test "${with_dbmliborder+set}" = set; then :
8397 withval=$with_dbmliborder;
8398 if test x$with_dbmliborder = xyes
8400 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
8402 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do
8403 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
8405 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
8412 $as_echo "$with_dbmliborder" >&6; }
8414 # Determine if signalmodule should be used.
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5
8418 $as_echo_n "checking for --with-signal-module... " >&6; }
8420 # Check whether --with-signal-module was given.
8421 if test "${with_signal_module+set}" = set; then :
8422 withval=$with_signal_module;
8426 if test -z "$with_signal_module"
8427 then with_signal_module="yes"
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5
8430 $as_echo "$with_signal_module" >&6; }
8432 if test "${with_signal_module}" = "yes"; then
8433 USE_SIGNAL_MODULE=""
8436 USE_SIGNAL_MODULE="#"
8437 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
8440 # This is used to generate Setup.config
8442 USE_THREAD_MODULE=""
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5
8445 $as_echo_n "checking for --with-dec-threads... " >&6; }
8448 # Check whether --with-dec-threads was given.
8449 if test "${with_dec_threads+set}" = set; then :
8450 withval=$with_dec_threads;
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
8452 $as_echo "$withval" >&6; }
8454 if test "${with_thread+set}" != set; then
8455 with_thread="$withval";
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8463 # Templates for things AC_DEFINEd more than once.
8464 # For a single AC_DEFINE, no template is needed.
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5
8470 $as_echo_n "checking for --with-threads... " >&6; }
8472 # Check whether --with-threads was given.
8473 if test "${with_threads+set}" = set; then :
8474 withval=$with_threads;
8478 # --with-thread is deprecated, but check for it anyway
8480 # Check whether --with-thread was given.
8481 if test "${with_thread+set}" = set; then :
8482 withval=$with_thread; with_threads=$with_thread
8486 if test -z "$with_threads"
8487 then with_threads="yes"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5
8490 $as_echo "$with_threads" >&6; }
8493 if test "$with_threads" = "no"
8495 USE_THREAD_MODULE="#"
8496 elif test "$ac_cv_pthread_is_default" = yes
8498 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8500 # Defining _REENTRANT on system with POSIX threads should not hurt.
8501 $as_echo "#define _REENTRANT 1" >>confdefs.h
8504 THREADOBJ="Python/thread.o"
8505 elif test "$ac_cv_kpthread" = "yes"
8508 if test "$ac_cv_cxx_thread" = "yes"; then
8509 CXX="$CXX -Kpthread"
8511 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8514 THREADOBJ="Python/thread.o"
8515 elif test "$ac_cv_kthread" = "yes"
8518 if test "$ac_cv_cxx_thread" = "yes"; then
8521 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8524 THREADOBJ="Python/thread.o"
8525 elif test "$ac_cv_pthread" = "yes"
8528 if test "$ac_cv_cxx_thread" = "yes"; then
8531 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8534 THREADOBJ="Python/thread.o"
8536 if test ! -z "$with_threads" -a -d "$with_threads"
8537 then LDFLAGS="$LDFLAGS -L$with_threads"
8539 if test ! -z "$withval" -a -d "$withval"
8540 then LDFLAGS="$LDFLAGS -L$withval"
8543 # According to the POSIX spec, a pthreads implementation must
8544 # define _POSIX_THREADS in unistd.h. Some apparently don't
8545 # (e.g. gnu pth with pthread emulation)
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
8547 $as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; }
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8552 #ifdef _POSIX_THREADS
8557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8558 $EGREP "yes" >/dev/null 2>&1; then :
8559 unistd_defines_pthreads=yes
8561 unistd_defines_pthreads=no
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
8566 $as_echo "$unistd_defines_pthreads" >&6; }
8568 $as_echo "#define _REENTRANT 1" >>confdefs.h
8570 ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
8571 if test "x$ac_cv_header_cthreads_h" = x""yes; then :
8572 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8574 $as_echo "#define C_THREADS 1" >>confdefs.h
8577 $as_echo "#define HURD_C_THREADS 1" >>confdefs.h
8579 LIBS="$LIBS -lthreads"
8580 THREADOBJ="Python/thread.o"
8583 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
8584 if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then :
8585 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8587 $as_echo "#define C_THREADS 1" >>confdefs.h
8590 $as_echo "#define MACH_C_THREADS 1" >>confdefs.h
8592 THREADOBJ="Python/thread.o"
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5
8596 $as_echo_n "checking for --with-pth... " >&6; }
8598 # Check whether --with-pth was given.
8599 if test "${with_pth+set}" = set; then :
8600 withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
8601 $as_echo "$withval" >&6; }
8602 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8605 $as_echo "#define HAVE_PTH 1" >>confdefs.h
8608 THREADOBJ="Python/thread.o"
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8613 # Just looking for pthread_create in libpthread is not enough:
8614 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
8615 # So we really have to include pthread.h, and then link.
8617 LIBS="$LIBS -lpthread"
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8619 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 #include <pthread.h>
8624 void * start_routine (void *arg) { exit (0); }
8629 pthread_create (NULL, NULL, start_routine, NULL)
8634 if ac_fn_c_try_link "$LINENO"; then :
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8637 $as_echo "yes" >&6; }
8638 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8641 THREADOBJ="Python/thread.o"
8645 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
8646 if test "x$ac_cv_func_pthread_detach" = x""yes; then :
8647 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8650 THREADOBJ="Python/thread.o"
8653 ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default"
8654 if test "x$ac_cv_header_atheos_threads_h" = x""yes; then :
8655 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8658 $as_echo "#define ATHEOS_THREADS 1" >>confdefs.h
8660 THREADOBJ="Python/thread.o"
8663 ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default"
8664 if test "x$ac_cv_header_kernel_OS_h" = x""yes; then :
8665 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8668 $as_echo "#define BEOS_THREADS 1" >>confdefs.h
8670 THREADOBJ="Python/thread.o"
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
8674 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
8675 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
8676 $as_echo_n "(cached) " >&6
8678 ac_check_lib_save_LIBS=$LIBS
8679 LIBS="-lpthreads $LIBS"
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8683 /* Override any GCC internal prototype to avoid an error.
8684 Use char because int might match the return type of a GCC
8685 builtin and then its argument prototype would still apply. */
8689 char pthread_create ();
8693 return pthread_create ();
8698 if ac_fn_c_try_link "$LINENO"; then :
8699 ac_cv_lib_pthreads_pthread_create=yes
8701 ac_cv_lib_pthreads_pthread_create=no
8703 rm -f core conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 LIBS=$ac_check_lib_save_LIBS
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
8708 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
8709 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
8710 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8713 LIBS="$LIBS -lpthreads"
8714 THREADOBJ="Python/thread.o"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
8718 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
8719 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
8720 $as_echo_n "(cached) " >&6
8722 ac_check_lib_save_LIBS=$LIBS
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8727 /* Override any GCC internal prototype to avoid an error.
8728 Use char because int might match the return type of a GCC
8729 builtin and then its argument prototype would still apply. */
8733 char pthread_create ();
8737 return pthread_create ();
8742 if ac_fn_c_try_link "$LINENO"; then :
8743 ac_cv_lib_c_r_pthread_create=yes
8745 ac_cv_lib_c_r_pthread_create=no
8747 rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 LIBS=$ac_check_lib_save_LIBS
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
8752 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
8753 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
8754 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8758 THREADOBJ="Python/thread.o"
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
8762 $as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; }
8763 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
8766 ac_check_lib_save_LIBS=$LIBS
8767 LIBS="-lpthread $LIBS"
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8771 /* Override any GCC internal prototype to avoid an error.
8772 Use char because int might match the return type of a GCC
8773 builtin and then its argument prototype would still apply. */
8777 char __pthread_create_system ();
8781 return __pthread_create_system ();
8786 if ac_fn_c_try_link "$LINENO"; then :
8787 ac_cv_lib_pthread___pthread_create_system=yes
8789 ac_cv_lib_pthread___pthread_create_system=no
8791 rm -f core conftest.err conftest.$ac_objext \
8792 conftest$ac_exeext conftest.$ac_ext
8793 LIBS=$ac_check_lib_save_LIBS
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
8796 $as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; }
8797 if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then :
8798 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8801 LIBS="$LIBS -lpthread"
8802 THREADOBJ="Python/thread.o"
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
8806 $as_echo_n "checking for pthread_create in -lcma... " >&6; }
8807 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then :
8808 $as_echo_n "(cached) " >&6
8810 ac_check_lib_save_LIBS=$LIBS
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h. */
8815 /* Override any GCC internal prototype to avoid an error.
8816 Use char because int might match the return type of a GCC
8817 builtin and then its argument prototype would still apply. */
8821 char pthread_create ();
8825 return pthread_create ();
8830 if ac_fn_c_try_link "$LINENO"; then :
8831 ac_cv_lib_cma_pthread_create=yes
8833 ac_cv_lib_cma_pthread_create=no
8835 rm -f core conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
8837 LIBS=$ac_check_lib_save_LIBS
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
8840 $as_echo "$ac_cv_lib_cma_pthread_create" >&6; }
8841 if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then :
8842 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8846 THREADOBJ="Python/thread.o"
8849 USE_THREAD_MODULE="#"
8868 rm -f core conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
8880 $as_echo_n "checking for usconfig in -lmpc... " >&6; }
8881 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8884 ac_check_lib_save_LIBS=$LIBS
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8889 /* Override any GCC internal prototype to avoid an error.
8890 Use char because int might match the return type of a GCC
8891 builtin and then its argument prototype would still apply. */
8904 if ac_fn_c_try_link "$LINENO"; then :
8905 ac_cv_lib_mpc_usconfig=yes
8907 ac_cv_lib_mpc_usconfig=no
8909 rm -f core conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext conftest.$ac_ext
8911 LIBS=$ac_check_lib_save_LIBS
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
8914 $as_echo "$ac_cv_lib_mpc_usconfig" >&6; }
8915 if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then :
8916 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8919 THREADOBJ="Python/thread.o"
8920 USE_THREAD_MODULE=""
8924 if test "$posix_threads" != "yes"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
8926 $as_echo_n "checking for thr_create in -lthread... " >&6; }
8927 if test "${ac_cv_lib_thread_thr_create+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8930 ac_check_lib_save_LIBS=$LIBS
8931 LIBS="-lthread $LIBS"
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8935 /* Override any GCC internal prototype to avoid an error.
8936 Use char because int might match the return type of a GCC
8937 builtin and then its argument prototype would still apply. */
8945 return thr_create ();
8950 if ac_fn_c_try_link "$LINENO"; then :
8951 ac_cv_lib_thread_thr_create=yes
8953 ac_cv_lib_thread_thr_create=no
8955 rm -f core conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext conftest.$ac_ext
8957 LIBS=$ac_check_lib_save_LIBS
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
8960 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
8961 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then :
8962 $as_echo "#define WITH_THREAD 1" >>confdefs.h
8964 LIBS="$LIBS -lthread"
8965 THREADOBJ="Python/thread.o"
8966 USE_THREAD_MODULE=""
8971 if test "$USE_THREAD_MODULE" != "#"
8973 # If the above checks didn't disable threads, (at least) OSF1
8974 # needs this '-threads' argument during linking.
8975 case $ac_sys_system in
8976 OSF1) LDLAST=-threads;;
8981 if test "$posix_threads" = "yes"; then
8982 if test "$unistd_defines_pthreads" = "no"; then
8984 $as_echo "#define _POSIX_THREADS 1" >>confdefs.h
8988 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
8989 case $ac_sys_system/$ac_sys_release in
8991 $as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
8995 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
8999 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
9005 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
9006 if test "${ac_cv_pthread_system_supported+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9009 if test "$cross_compiling" = yes; then :
9010 ac_cv_pthread_system_supported=no
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9014 #include <pthread.h>
9015 void *foo(void *parm) {
9019 pthread_attr_t attr;
9021 if (pthread_attr_init(&attr)) exit(-1);
9022 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
9023 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
9027 if ac_fn_c_try_run "$LINENO"; then :
9028 ac_cv_pthread_system_supported=yes
9030 ac_cv_pthread_system_supported=no
9032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9033 conftest.$ac_objext conftest.beam conftest.$ac_ext
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
9040 $as_echo "$ac_cv_pthread_system_supported" >&6; }
9041 if test "$ac_cv_pthread_system_supported" = "yes"; then
9043 $as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
9046 for ac_func in pthread_sigmask
9048 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
9049 if test "x$ac_cv_func_pthread_sigmask" = x""yes; then :
9050 cat >>confdefs.h <<_ACEOF
9051 #define HAVE_PTHREAD_SIGMASK 1
9053 case $ac_sys_system in
9056 $as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
9066 # Check for enable-ipv6
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
9069 $as_echo_n "checking if --enable-ipv6 is specified... " >&6; }
9070 # Check whether --enable-ipv6 was given.
9071 if test "${enable_ipv6+set}" = set; then :
9072 enableval=$enable_ipv6; case "$enableval" in
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9078 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9079 $as_echo "yes" >&6; }
9080 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
9087 if test "$cross_compiling" = yes; then :
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9096 /* AF_INET6 available check */
9097 #include <sys/types.h>
9098 #include <sys/socket.h>
9101 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
9108 if ac_fn_c_try_run "$LINENO"; then :
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9111 $as_echo "yes" >&6; }
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9122 conftest.$ac_objext conftest.beam conftest.$ac_ext
9126 if test "$ipv6" = "yes"; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
9128 $as_echo_n "checking if RFC2553 API is available... " >&6; }
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9132 #include <sys/types.h>
9133 #include <netinet/in.h>
9137 struct sockaddr_in6 x;
9144 if ac_fn_c_try_compile "$LINENO"; then :
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9147 $as_echo "yes" >&6; }
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160 if test "$ipv6" = "yes"; then
9161 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
9172 if test "$ipv6" = "yes"; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
9174 $as_echo_n "checking ipv6 stack type... " >&6; }
9175 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9182 #include <netinet/in.h>
9183 #ifdef IPV6_INRIA_VERSION
9187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9188 $EGREP "yes" >/dev/null 2>&1; then :
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9198 #include <netinet/in.h>
9203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9204 $EGREP "yes" >/dev/null 2>&1; then :
9207 ipv6libdir=/usr/local/v6/lib
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9217 #include <features.h>
9218 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
9222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9223 $EGREP "yes" >/dev/null 2>&1; then :
9231 if test -d /usr/inet6; then
9234 ipv6libdir=/usr/inet6/lib
9235 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
9239 if test -f /etc/netconfig; then
9240 if $GREP -q tcp6 /etc/netconfig; then
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9250 #include <sys/param.h>
9251 #ifdef _TOSHIBA_INET6
9255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9256 $EGREP "yes" >/dev/null 2>&1; then :
9259 ipv6libdir=/usr/local/v6/lib
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9268 #include </usr/local/v6/include/sys/v6config.h>
9273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9274 $EGREP "yes" >/dev/null 2>&1; then :
9277 ipv6libdir=/usr/local/v6/lib;
9278 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285 /* end confdefs.h. */
9287 #include <sys/param.h>
9288 #ifdef _ZETA_MINAMI_INET6
9292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9293 $EGREP "yes" >/dev/null 2>&1; then :
9296 ipv6libdir=/usr/local/v6/lib
9302 if test "$ipv6type" != "unknown"; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
9307 $as_echo "$ipv6type" >&6; }
9310 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
9311 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
9312 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
9313 echo "using lib$ipv6lib"
9315 if test $ipv6trylibc = "yes"; then
9318 echo 'Fatal: no $ipv6lib library found. cannot continue.'
9319 echo "You need to fetch lib$ipv6lib.a from appropriate"
9320 echo 'ipv6 kit and compile beforehand.'
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5
9327 $as_echo_n "checking for OSX 10.5 SDK or later... " >&6; }
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9331 #include <Carbon/Carbon.h>
9341 if ac_fn_c_try_compile "$LINENO"; then :
9344 $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9347 $as_echo "yes" >&6; }
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9357 # Check for --with-doc-strings
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
9359 $as_echo_n "checking for --with-doc-strings... " >&6; }
9361 # Check whether --with-doc-strings was given.
9362 if test "${with_doc_strings+set}" = set; then :
9363 withval=$with_doc_strings;
9367 if test -z "$with_doc_strings"
9368 then with_doc_strings="yes"
9370 if test "$with_doc_strings" != "no"
9373 $as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
9377 $as_echo "$with_doc_strings" >&6; }
9379 # Check for Python-specific malloc support
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5
9381 $as_echo_n "checking for --with-tsc... " >&6; }
9383 # Check whether --with-tsc was given.
9384 if test "${with_tsc+set}" = set; then :
9386 if test "$withval" != no
9389 $as_echo "#define WITH_TSC 1" >>confdefs.h
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9392 $as_echo "yes" >&6; }
9393 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9398 $as_echo "no" >&6; }
9402 # Check for Python-specific malloc support
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
9404 $as_echo_n "checking for --with-pymalloc... " >&6; }
9406 # Check whether --with-pymalloc was given.
9407 if test "${with_pymalloc+set}" = set; then :
9408 withval=$with_pymalloc;
9412 if test -z "$with_pymalloc"
9413 then with_pymalloc="yes"
9415 if test "$with_pymalloc" != "no"
9418 $as_echo "#define WITH_PYMALLOC 1" >>confdefs.h
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
9422 $as_echo "$with_pymalloc" >&6; }
9424 # Check for Valgrind support
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
9426 $as_echo_n "checking for --with-valgrind... " >&6; }
9428 # Check whether --with-valgrind was given.
9429 if test "${with_valgrind+set}" = set; then :
9430 withval=$with_valgrind;
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
9436 $as_echo "$with_valgrind" >&6; }
9437 if test "$with_valgrind" != no; then
9438 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
9439 if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then :
9441 $as_echo "#define WITH_VALGRIND 1" >>confdefs.h
9444 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5
9451 # Check for --with-wctype-functions
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
9453 $as_echo_n "checking for --with-wctype-functions... " >&6; }
9455 # Check whether --with-wctype-functions was given.
9456 if test "${with_wctype_functions+set}" = set; then :
9457 withval=$with_wctype_functions;
9458 if test "$withval" != no
9461 $as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9464 $as_echo "yes" >&6; }
9465 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466 $as_echo "no" >&6; }
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470 $as_echo "no" >&6; }
9474 # -I${DLINCLDIR} is added to the compile rule for importdl.o
9478 # the dlopen() function means we might want to use dynload_shlib.o. some
9479 # platforms, such as AIX, have dlopen(), but don't want to use it.
9480 for ac_func in dlopen
9482 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9483 if test "x$ac_cv_func_dlopen" = x""yes; then :
9484 cat >>confdefs.h <<_ACEOF
9485 #define HAVE_DLOPEN 1
9492 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
9493 # loading of modules.
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
9496 $as_echo_n "checking DYNLOADFILE... " >&6; }
9497 if test -z "$DYNLOADFILE"
9499 case $ac_sys_system/$ac_sys_release in
9500 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
9501 if test "$ac_cv_func_dlopen" = yes
9502 then DYNLOADFILE="dynload_shlib.o"
9503 else DYNLOADFILE="dynload_aix.o"
9506 BeOS*) DYNLOADFILE="dynload_beos.o";;
9507 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
9508 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
9509 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
9510 atheos*) DYNLOADFILE="dynload_atheos.o";;
9512 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
9513 # out any dynamic loading
9514 if test "$ac_cv_func_dlopen" = yes
9515 then DYNLOADFILE="dynload_shlib.o"
9516 else DYNLOADFILE="dynload_stub.o"
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
9522 $as_echo "$DYNLOADFILE" >&6; }
9523 if test "$DYNLOADFILE" != "dynload_stub.o"
9526 $as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
9530 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
9534 $as_echo_n "checking MACHDEP_OBJS... " >&6; }
9535 if test -z "$MACHDEP_OBJS"
9537 MACHDEP_OBJS=$extra_machdep_objs
9539 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5
9542 $as_echo "MACHDEP_OBJS" >&6; }
9544 # checks for library functions
9545 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
9546 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
9547 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
9548 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
9549 initgroups kill killpg lchmod lchown lstat mkfifo mknod mktime \
9550 mremap nice pathconf pause plock poll pthread_init \
9551 putenv readlink realpath \
9552 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
9554 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
9555 setlocale setregid setreuid setresuid setresgid \
9556 setsid setpgid setpgrp setuid setvbuf snprintf \
9557 sigaction siginterrupt sigrelse strftime \
9558 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
9559 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
9561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9562 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9563 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9564 cat >>confdefs.h <<_ACEOF
9565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9572 # For some functions, having a definition is not sufficient, since
9573 # we want to take their address.
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
9575 $as_echo_n "checking for chroot... " >&6; }
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9587 if ac_fn_c_try_compile "$LINENO"; then :
9589 $as_echo "#define HAVE_CHROOT 1" >>confdefs.h
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9592 $as_echo "yes" >&6; }
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9595 $as_echo "no" >&6; }
9598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
9600 $as_echo_n "checking for link... " >&6; }
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9612 if ac_fn_c_try_compile "$LINENO"; then :
9614 $as_echo "#define HAVE_LINK 1" >>confdefs.h
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9617 $as_echo "yes" >&6; }
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
9625 $as_echo_n "checking for symlink... " >&6; }
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9637 if ac_fn_c_try_compile "$LINENO"; then :
9639 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9642 $as_echo "yes" >&6; }
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645 $as_echo "no" >&6; }
9648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
9650 $as_echo_n "checking for fchdir... " >&6; }
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9662 if ac_fn_c_try_compile "$LINENO"; then :
9664 $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9667 $as_echo "yes" >&6; }
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670 $as_echo "no" >&6; }
9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
9675 $as_echo_n "checking for fsync... " >&6; }
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9687 if ac_fn_c_try_compile "$LINENO"; then :
9689 $as_echo "#define HAVE_FSYNC 1" >>confdefs.h
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9692 $as_echo "yes" >&6; }
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695 $as_echo "no" >&6; }
9698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
9700 $as_echo_n "checking for fdatasync... " >&6; }
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9712 if ac_fn_c_try_compile "$LINENO"; then :
9714 $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9717 $as_echo "yes" >&6; }
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720 $as_echo "no" >&6; }
9723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
9725 $as_echo_n "checking for epoll... " >&6; }
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 #include <sys/epoll.h>
9732 void *x=epoll_create
9737 if ac_fn_c_try_compile "$LINENO"; then :
9739 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 $as_echo "yes" >&6; }
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
9750 $as_echo_n "checking for kqueue... " >&6; }
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9754 #include <sys/types.h>
9755 #include <sys/event.h>
9765 if ac_fn_c_try_compile "$LINENO"; then :
9767 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9770 $as_echo "yes" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9777 # On some systems (eg. FreeBSD 5), we would find a definition of the
9778 # functions ctermid_r, setgroups in the library, but no prototype
9779 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
9780 # address to avoid compiler warnings and potential miscompilations
9781 # because of the missing prototypes.
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
9784 $as_echo_n "checking for ctermid_r... " >&6; }
9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786 /* end confdefs.h. */
9798 if ac_fn_c_try_compile "$LINENO"; then :
9800 $as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9803 $as_echo "yes" >&6; }
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
9812 $as_echo_n "checking for flock declaration... " >&6; }
9813 if test "${ac_cv_flock_decl+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 #include <sys/file.h>
9828 if ac_fn_c_try_compile "$LINENO"; then :
9829 ac_cv_flock_decl=yes
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
9838 $as_echo "$ac_cv_flock_decl" >&6; }
9839 if test "x${ac_cv_flock_decl}" = xyes; then
9840 for ac_func in flock
9842 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
9843 if test "x$ac_cv_func_flock" = x""yes; then :
9844 cat >>confdefs.h <<_ACEOF
9845 #define HAVE_FLOCK 1
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
9850 $as_echo_n "checking for flock in -lbsd... " >&6; }
9851 if test "${ac_cv_lib_bsd_flock+set}" = set; then :
9852 $as_echo_n "(cached) " >&6
9854 ac_check_lib_save_LIBS=$LIBS
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9859 /* Override any GCC internal prototype to avoid an error.
9860 Use char because int might match the return type of a GCC
9861 builtin and then its argument prototype would still apply. */
9874 if ac_fn_c_try_link "$LINENO"; then :
9875 ac_cv_lib_bsd_flock=yes
9877 ac_cv_lib_bsd_flock=no
9879 rm -f core conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9881 LIBS=$ac_check_lib_save_LIBS
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
9884 $as_echo "$ac_cv_lib_bsd_flock" >&6; }
9885 if test "x$ac_cv_lib_bsd_flock" = x""yes; then :
9886 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h
9889 $as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
9901 $as_echo_n "checking for getpagesize... " >&6; }
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9910 void* p = getpagesize
9915 if ac_fn_c_try_compile "$LINENO"; then :
9917 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9920 $as_echo "yes" >&6; }
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
9929 $as_echo_n "checking for broken unsetenv... " >&6; }
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h. */
9938 int res = unsetenv("DUMMY")
9943 if ac_fn_c_try_compile "$LINENO"; then :
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9948 $as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9951 $as_echo "yes" >&6; }
9954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9958 # Extract the first word of "$ac_prog", so it can be a program name with args.
9959 set dummy $ac_prog; ac_word=$2
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961 $as_echo_n "checking for $ac_word... " >&6; }
9962 if test "${ac_cv_prog_TRUE+set}" = set; then :
9963 $as_echo_n "(cached) " >&6
9965 if test -n "$TRUE"; then
9966 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
9968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9975 ac_cv_prog_TRUE="$ac_prog"
9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 TRUE=$ac_cv_prog_TRUE
9986 if test -n "$TRUE"; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
9988 $as_echo "$TRUE" >&6; }
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; }
9995 test -n "$TRUE" && break
9997 test -n "$TRUE" || TRUE="/bin/true"
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
10001 $as_echo_n "checking for inet_aton in -lc... " >&6; }
10002 if test "${ac_cv_lib_c_inet_aton+set}" = set; then :
10003 $as_echo_n "(cached) " >&6
10005 ac_check_lib_save_LIBS=$LIBS
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10010 /* Override any GCC internal prototype to avoid an error.
10011 Use char because int might match the return type of a GCC
10012 builtin and then its argument prototype would still apply. */
10020 return inet_aton ();
10025 if ac_fn_c_try_link "$LINENO"; then :
10026 ac_cv_lib_c_inet_aton=yes
10028 ac_cv_lib_c_inet_aton=no
10030 rm -f core conftest.err conftest.$ac_objext \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
10035 $as_echo "$ac_cv_lib_c_inet_aton" >&6; }
10036 if test "x$ac_cv_lib_c_inet_aton" = x""yes; then :
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
10040 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
10041 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10044 ac_check_lib_save_LIBS=$LIBS
10045 LIBS="-lresolv $LIBS"
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10049 /* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
10059 return inet_aton ();
10064 if ac_fn_c_try_link "$LINENO"; then :
10065 ac_cv_lib_resolv_inet_aton=yes
10067 ac_cv_lib_resolv_inet_aton=no
10069 rm -f core conftest.err conftest.$ac_objext \
10070 conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
10074 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
10075 if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then :
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_LIBRESOLV 1
10080 LIBS="-lresolv $LIBS"
10088 # On Tru64, chflags seems to be present, but calling it will
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
10091 $as_echo_n "checking for chflags... " >&6; }
10092 if test "${ac_cv_have_chflags+set}" = set; then :
10093 $as_echo_n "(cached) " >&6
10095 if test "$cross_compiling" = yes; then :
10096 ac_cv_have_chflags=cross
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10101 #include <sys/stat.h>
10102 #include <unistd.h>
10103 int main(int argc, char*argv[])
10105 if(chflags(argv[0], 0) != 0)
10111 if ac_fn_c_try_run "$LINENO"; then :
10112 ac_cv_have_chflags=yes
10114 ac_cv_have_chflags=no
10116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10117 conftest.$ac_objext conftest.beam conftest.$ac_ext
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
10123 $as_echo "$ac_cv_have_chflags" >&6; }
10124 if test "$ac_cv_have_chflags" = cross ; then
10125 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
10126 if test "x$ac_cv_func_chflags" = x""yes; then :
10127 ac_cv_have_chflags="yes"
10129 ac_cv_have_chflags="no"
10133 if test "$ac_cv_have_chflags" = yes ; then
10135 $as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
10140 $as_echo_n "checking for lchflags... " >&6; }
10141 if test "${ac_cv_have_lchflags+set}" = set; then :
10142 $as_echo_n "(cached) " >&6
10144 if test "$cross_compiling" = yes; then :
10145 ac_cv_have_lchflags=cross
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10150 #include <sys/stat.h>
10151 #include <unistd.h>
10152 int main(int argc, char*argv[])
10154 if(lchflags(argv[0], 0) != 0)
10160 if ac_fn_c_try_run "$LINENO"; then :
10161 ac_cv_have_lchflags=yes
10163 ac_cv_have_lchflags=no
10165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10166 conftest.$ac_objext conftest.beam conftest.$ac_ext
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
10172 $as_echo "$ac_cv_have_lchflags" >&6; }
10173 if test "$ac_cv_have_lchflags" = cross ; then
10174 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
10175 if test "x$ac_cv_func_lchflags" = x""yes; then :
10176 ac_cv_have_lchflags="yes"
10178 ac_cv_have_lchflags="no"
10182 if test "$ac_cv_have_lchflags" = yes ; then
10184 $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h
10188 case $ac_sys_system/$ac_sys_release in
10190 _CUR_CFLAGS="${CFLAGS}"
10191 _CUR_LDFLAGS="${LDFLAGS}"
10192 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
10193 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
10198 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
10199 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10202 ac_check_lib_save_LIBS=$LIBS
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10213 char inflateCopy ();
10217 return inflateCopy ();
10222 if ac_fn_c_try_link "$LINENO"; then :
10223 ac_cv_lib_z_inflateCopy=yes
10225 ac_cv_lib_z_inflateCopy=no
10227 rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
10232 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
10233 if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then :
10235 $as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h
10240 case $ac_sys_system/$ac_sys_release in
10242 CFLAGS="${_CUR_CFLAGS}"
10243 LDFLAGS="${_CUR_LDFLAGS}"
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
10248 $as_echo_n "checking for hstrerror... " >&6; }
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10257 void* p = hstrerror; hstrerror(0)
10262 if ac_fn_c_try_link "$LINENO"; then :
10264 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10267 $as_echo "yes" >&6; }
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
10277 $as_echo_n "checking for inet_aton... " >&6; }
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10281 #include <sys/types.h>
10282 #include <sys/socket.h>
10283 #include <netinet/in.h>
10284 #include <arpa/inet.h>
10289 void* p = inet_aton;inet_aton(0,0)
10294 if ac_fn_c_try_link "$LINENO"; then :
10296 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10299 $as_echo "yes" >&6; }
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302 $as_echo "no" >&6; }
10305 rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
10309 $as_echo_n "checking for inet_pton... " >&6; }
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10313 #include <sys/types.h>
10314 #include <sys/socket.h>
10315 #include <netinet/in.h>
10316 #include <arpa/inet.h>
10321 void* p = inet_pton
10326 if ac_fn_c_try_compile "$LINENO"; then :
10328 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10331 $as_echo "yes" >&6; }
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; }
10337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339 # On some systems, setgroups is in unistd.h, on others, in grp.h
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
10341 $as_echo_n "checking for setgroups... " >&6; }
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10345 #include <unistd.h>
10353 void* p = setgroups
10358 if ac_fn_c_try_compile "$LINENO"; then :
10360 $as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10363 $as_echo "yes" >&6; }
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10366 $as_echo "no" >&6; }
10369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10371 # check for openpty and forkpty
10373 for ac_func in openpty
10375 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
10376 if test "x$ac_cv_func_openpty" = x""yes; then :
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_OPENPTY 1
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
10383 $as_echo_n "checking for openpty in -lutil... " >&6; }
10384 if test "${ac_cv_lib_util_openpty+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10387 ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-lutil $LIBS"
10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10390 /* end confdefs.h. */
10392 /* Override any GCC internal prototype to avoid an error.
10393 Use char because int might match the return type of a GCC
10394 builtin and then its argument prototype would still apply. */
10407 if ac_fn_c_try_link "$LINENO"; then :
10408 ac_cv_lib_util_openpty=yes
10410 ac_cv_lib_util_openpty=no
10412 rm -f core conftest.err conftest.$ac_objext \
10413 conftest$ac_exeext conftest.$ac_ext
10414 LIBS=$ac_check_lib_save_LIBS
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
10417 $as_echo "$ac_cv_lib_util_openpty" >&6; }
10418 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
10419 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
10420 LIBS="$LIBS -lutil"
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
10423 $as_echo_n "checking for openpty in -lbsd... " >&6; }
10424 if test "${ac_cv_lib_bsd_openpty+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10427 ac_check_lib_save_LIBS=$LIBS
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10432 /* Override any GCC internal prototype to avoid an error.
10433 Use char because int might match the return type of a GCC
10434 builtin and then its argument prototype would still apply. */
10447 if ac_fn_c_try_link "$LINENO"; then :
10448 ac_cv_lib_bsd_openpty=yes
10450 ac_cv_lib_bsd_openpty=no
10452 rm -f core conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LIBS=$ac_check_lib_save_LIBS
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
10457 $as_echo "$ac_cv_lib_bsd_openpty" >&6; }
10458 if test "x$ac_cv_lib_bsd_openpty" = x""yes; then :
10459 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
10470 for ac_func in forkpty
10472 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty"
10473 if test "x$ac_cv_func_forkpty" = x""yes; then :
10474 cat >>confdefs.h <<_ACEOF
10475 #define HAVE_FORKPTY 1
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
10480 $as_echo_n "checking for forkpty in -lutil... " >&6; }
10481 if test "${ac_cv_lib_util_forkpty+set}" = set; then :
10482 $as_echo_n "(cached) " >&6
10484 ac_check_lib_save_LIBS=$LIBS
10485 LIBS="-lutil $LIBS"
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10489 /* Override any GCC internal prototype to avoid an error.
10490 Use char because int might match the return type of a GCC
10491 builtin and then its argument prototype would still apply. */
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 ac_cv_lib_util_forkpty=yes
10507 ac_cv_lib_util_forkpty=no
10509 rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10511 LIBS=$ac_check_lib_save_LIBS
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
10514 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
10515 if test "x$ac_cv_lib_util_forkpty" = x""yes; then :
10516 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
10517 LIBS="$LIBS -lutil"
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
10520 $as_echo_n "checking for forkpty in -lbsd... " >&6; }
10521 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
10524 ac_check_lib_save_LIBS=$LIBS
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10529 /* Override any GCC internal prototype to avoid an error.
10530 Use char because int might match the return type of a GCC
10531 builtin and then its argument prototype would still apply. */
10544 if ac_fn_c_try_link "$LINENO"; then :
10545 ac_cv_lib_bsd_forkpty=yes
10547 ac_cv_lib_bsd_forkpty=no
10549 rm -f core conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10551 LIBS=$ac_check_lib_save_LIBS
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
10554 $as_echo "$ac_cv_lib_bsd_forkpty" >&6; }
10555 if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then :
10556 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h
10569 for ac_func in memmove
10571 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
10572 if test "x$ac_cv_func_memmove" = x""yes; then :
10573 cat >>confdefs.h <<_ACEOF
10574 #define HAVE_MEMMOVE 1
10581 # check for long file support functions
10582 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
10584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10585 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10586 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10587 cat >>confdefs.h <<_ACEOF
10588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10595 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
10596 if test "x$ac_cv_func_dup2" = x""yes; then :
10597 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
10600 case " $LIBOBJS " in
10601 *" dup2.$ac_objext "* ) ;;
10602 *) LIBOBJS="$LIBOBJS dup2.$ac_objext"
10608 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
10609 if test "x$ac_cv_func_getcwd" = x""yes; then :
10610 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
10613 case " $LIBOBJS " in
10614 *" getcwd.$ac_objext "* ) ;;
10615 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
10621 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
10622 if test "x$ac_cv_func_strdup" = x""yes; then :
10623 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
10626 case " $LIBOBJS " in
10627 *" strdup.$ac_objext "* ) ;;
10628 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
10635 for ac_func in getpgrp
10637 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp"
10638 if test "x$ac_cv_func_getpgrp" = x""yes; then :
10639 cat >>confdefs.h <<_ACEOF
10640 #define HAVE_GETPGRP 1
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10644 #include <unistd.h>
10653 if ac_fn_c_try_compile "$LINENO"; then :
10655 $as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 for ac_func in setpgrp
10665 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
10666 if test "x$ac_cv_func_setpgrp" = x""yes; then :
10667 cat >>confdefs.h <<_ACEOF
10668 #define HAVE_SETPGRP 1
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 #include <unistd.h>
10681 if ac_fn_c_try_compile "$LINENO"; then :
10683 $as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
10686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691 for ac_func in gettimeofday
10693 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
10694 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
10695 cat >>confdefs.h <<_ACEOF
10696 #define HAVE_GETTIMEOFDAY 1
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700 #include <sys/time.h>
10704 gettimeofday((struct timeval*)0,(struct timezone*)0);
10709 if ac_fn_c_try_compile "$LINENO"; then :
10713 $as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h
10717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5
10724 $as_echo_n "checking for major... " >&6; }
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10728 #if defined(MAJOR_IN_MKDEV)
10729 #include <sys/mkdev.h>
10730 #elif defined(MAJOR_IN_SYSMACROS)
10731 #include <sys/sysmacros.h>
10733 #include <sys/types.h>
10740 makedev(major(0),minor(0));
10746 if ac_fn_c_try_link "$LINENO"; then :
10749 $as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10752 $as_echo "yes" >&6; }
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10757 $as_echo "no" >&6; }
10760 rm -f core conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
10763 # On OSF/1 V5.1, getaddrinfo is available, but a define
10764 # for [no]getaddrinfo in netdb.h.
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
10766 $as_echo_n "checking for getaddrinfo... " >&6; }
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10770 #include <sys/types.h>
10771 #include <sys/socket.h>
10778 getaddrinfo(NULL, NULL, NULL, NULL);
10783 if ac_fn_c_try_link "$LINENO"; then :
10784 have_getaddrinfo=yes
10786 have_getaddrinfo=no
10788 rm -f core conftest.err conftest.$ac_objext \
10789 conftest$ac_exeext conftest.$ac_ext
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5
10791 $as_echo "$have_getaddrinfo" >&6; }
10792 if test $have_getaddrinfo = yes
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
10795 $as_echo_n "checking getaddrinfo bug... " >&6; }
10796 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10799 if test "$cross_compiling" = yes; then :
10800 ac_cv_buggy_getaddrinfo=yes
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10805 #include <sys/types.h>
10807 #include <string.h>
10808 #include <sys/socket.h>
10809 #include <netinet/in.h>
10813 int passive, gaierr, inet4 = 0, inet6 = 0;
10814 struct addrinfo hints, *ai, *aitop;
10815 char straddr[INET6_ADDRSTRLEN], strport[16];
10817 for (passive = 0; passive <= 1; passive++) {
10818 memset(&hints, 0, sizeof(hints));
10819 hints.ai_family = AF_UNSPEC;
10820 hints.ai_flags = passive ? AI_PASSIVE : 0;
10821 hints.ai_socktype = SOCK_STREAM;
10822 hints.ai_protocol = IPPROTO_TCP;
10823 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
10824 (void)gai_strerror(gaierr);
10827 for (ai = aitop; ai; ai = ai->ai_next) {
10828 if (ai->ai_addr == NULL ||
10829 ai->ai_addrlen == 0 ||
10830 getnameinfo(ai->ai_addr, ai->ai_addrlen,
10831 straddr, sizeof(straddr), strport, sizeof(strport),
10832 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
10835 switch (ai->ai_family) {
10837 if (strcmp(strport, "54321") != 0) {
10841 if (strcmp(straddr, "0.0.0.0") != 0) {
10845 if (strcmp(straddr, "127.0.0.1") != 0) {
10852 if (strcmp(strport, "54321") != 0) {
10856 if (strcmp(straddr, "::") != 0) {
10860 if (strcmp(straddr, "::1") != 0) {
10870 /* another family support? */
10876 if (!(inet4 == 0 || inet4 == 2))
10878 if (!(inet6 == 0 || inet6 == 2))
10882 freeaddrinfo(aitop);
10887 freeaddrinfo(aitop);
10892 if ac_fn_c_try_run "$LINENO"; then :
10893 ac_cv_buggy_getaddrinfo=no
10895 ac_cv_buggy_getaddrinfo=yes
10897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10898 conftest.$ac_objext conftest.beam conftest.$ac_ext
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
10906 $as_echo "$ac_cv_buggy_getaddrinfo" >&6; }
10908 if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
10910 if test $ipv6 = yes
10912 echo 'Fatal: You must get working getaddrinfo() function.'
10913 echo ' or you can specify "--disable-ipv6"'.
10918 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
10922 for ac_func in getnameinfo
10924 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
10925 if test "x$ac_cv_func_getnameinfo" = x""yes; then :
10926 cat >>confdefs.h <<_ACEOF
10927 #define HAVE_GETNAMEINFO 1
10934 # checks for structures
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10936 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10937 if test "${ac_cv_header_time+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10942 #include <sys/types.h>
10943 #include <sys/time.h>
10949 if ((struct tm *) 0)
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956 ac_cv_header_time=yes
10958 ac_cv_header_time=no
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10963 $as_echo "$ac_cv_header_time" >&6; }
10964 if test $ac_cv_header_time = yes; then
10966 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10971 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10972 if test "${ac_cv_struct_tm+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977 #include <sys/types.h>
10984 int *p = &tm.tm_sec;
10990 if ac_fn_c_try_compile "$LINENO"; then :
10991 ac_cv_struct_tm=time.h
10993 ac_cv_struct_tm=sys/time.h
10995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10998 $as_echo "$ac_cv_struct_tm" >&6; }
10999 if test $ac_cv_struct_tm = sys/time.h; then
11001 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11005 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11006 #include <$ac_cv_struct_tm>
11009 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
11011 cat >>confdefs.h <<_ACEOF
11012 #define HAVE_STRUCT_TM_TM_ZONE 1
11018 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11020 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11023 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
11025 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
11031 cat >>confdefs.h <<_ACEOF
11032 #define HAVE_DECL_TZNAME $ac_have_decl
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11036 $as_echo_n "checking for tzname... " >&6; }
11037 if test "${ac_cv_var_tzname+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11043 #if !HAVE_DECL_TZNAME
11044 extern char *tzname[];
11050 return tzname[0][0];
11055 if ac_fn_c_try_link "$LINENO"; then :
11056 ac_cv_var_tzname=yes
11058 ac_cv_var_tzname=no
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11064 $as_echo "$ac_cv_var_tzname" >&6; }
11065 if test $ac_cv_var_tzname = yes; then
11067 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11072 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
11073 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
11075 cat >>confdefs.h <<_ACEOF
11076 #define HAVE_STRUCT_STAT_ST_RDEV 1
11082 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11083 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11085 cat >>confdefs.h <<_ACEOF
11086 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11092 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
11093 if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then :
11095 cat >>confdefs.h <<_ACEOF
11096 #define HAVE_STRUCT_STAT_ST_FLAGS 1
11102 ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
11103 if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then :
11105 cat >>confdefs.h <<_ACEOF
11106 #define HAVE_STRUCT_STAT_ST_GEN 1
11112 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
11113 if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then :
11115 cat >>confdefs.h <<_ACEOF
11116 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
11122 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11123 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11125 cat >>confdefs.h <<_ACEOF
11126 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11130 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
11133 case " $LIBOBJS " in
11134 *" fileblocks.$ac_objext "* ) ;;
11135 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
11144 $as_echo_n "checking for time.h that defines altzone... " >&6; }
11145 if test "${ac_cv_header_time_altzone+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11160 if ac_fn_c_try_compile "$LINENO"; then :
11161 ac_cv_header_time_altzone=yes
11163 ac_cv_header_time_altzone=no
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
11170 $as_echo "$ac_cv_header_time_altzone" >&6; }
11171 if test $ac_cv_header_time_altzone = yes; then
11173 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
11179 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11183 #include <sys/types.h>
11184 #include <sys/select.h>
11185 #include <sys/time.h>
11195 if ac_fn_c_try_compile "$LINENO"; then :
11198 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5
11205 $as_echo "$was_it_defined" >&6; }
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
11208 $as_echo_n "checking for addrinfo... " >&6; }
11209 if test "${ac_cv_struct_addrinfo+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11223 if ac_fn_c_try_compile "$LINENO"; then :
11224 ac_cv_struct_addrinfo=yes
11226 ac_cv_struct_addrinfo=no
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
11232 $as_echo "$ac_cv_struct_addrinfo" >&6; }
11233 if test $ac_cv_struct_addrinfo = yes; then
11235 $as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
11240 $as_echo_n "checking for sockaddr_storage... " >&6; }
11241 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then :
11242 $as_echo_n "(cached) " >&6
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 # include <sys/types.h>
11248 # include <sys/socket.h>
11252 struct sockaddr_storage s
11257 if ac_fn_c_try_compile "$LINENO"; then :
11258 ac_cv_struct_sockaddr_storage=yes
11260 ac_cv_struct_sockaddr_storage=no
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
11266 $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
11267 if test $ac_cv_struct_sockaddr_storage = yes; then
11269 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
11273 # checks for compiler characteristics
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
11276 $as_echo_n "checking whether char is unsigned... " >&6; }
11277 if test "${ac_cv_c_char_unsigned+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11282 $ac_includes_default
11286 static int test_array [1 - 2 * !(((char) -1) < 0)];
11293 if ac_fn_c_try_compile "$LINENO"; then :
11294 ac_cv_c_char_unsigned=no
11296 ac_cv_c_char_unsigned=yes
11298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
11301 $as_echo "$ac_cv_c_char_unsigned" >&6; }
11302 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
11303 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11308 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11309 if test "${ac_cv_c_const+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11318 /* FIXME: Include the comments suggested by Paul. */
11319 #ifndef __cplusplus
11320 /* Ultrix mips cc rejects this. */
11321 typedef int charset[2];
11323 /* SunOS 4.1.1 cc rejects this. */
11324 char const *const *pcpcc;
11326 /* NEC SVR4.0.2 mips cc rejects this. */
11327 struct point {int x, y;};
11328 static struct point const zero = {0,0};
11329 /* AIX XL C 1.02.0.0 rejects this.
11330 It does not let you subtract one const X* pointer from another in
11331 an arm of an if-expression whose if-part is not a constant
11333 const char *g = "string";
11334 pcpcc = &g + (g ? g-g : 0);
11335 /* HPUX 7.0 cc rejects these. */
11337 ppc = (char**) pcpcc;
11338 pcpcc = (char const *const *) ppc;
11339 { /* SCO 3.2v4 cc rejects this. */
11341 char const *s = 0 ? (char *) 0 : (char const *) 0;
11346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11347 int x[] = {25, 17};
11348 const int *foo = &x[0];
11351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11352 typedef const int *iptr;
11356 { /* AIX XL C 1.02.0.0 rejects this saying
11357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11358 struct s { int j; const int *ap[3]; };
11359 struct s *b; b->j = 5;
11361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11362 const int foo = 10;
11363 if (!foo) return 0;
11365 return !cs[0] && !zero.x;
11372 if ac_fn_c_try_compile "$LINENO"; then :
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11380 $as_echo "$ac_cv_c_const" >&6; }
11381 if test $ac_cv_c_const = no; then
11383 $as_echo "#define const /**/" >>confdefs.h
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
11390 $as_echo_n "checking for working volatile... " >&6; }
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11397 volatile int x; x = 0;
11402 if ac_fn_c_try_compile "$LINENO"; then :
11406 $as_echo "#define volatile /**/" >>confdefs.h
11410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
11412 $as_echo "$works" >&6; }
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
11416 $as_echo_n "checking for working signed char... " >&6; }
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11428 if ac_fn_c_try_compile "$LINENO"; then :
11432 $as_echo "#define signed /**/" >>confdefs.h
11436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
11438 $as_echo "$works" >&6; }
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
11442 $as_echo_n "checking for prototypes... " >&6; }
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445 int foo(int x) { return 0; }
11454 if ac_fn_c_try_compile "$LINENO"; then :
11456 $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
11458 have_prototypes=yes
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5
11462 $as_echo "$have_prototypes" >&6; }
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
11466 $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11470 #include <stdarg.h>
11471 int foo(int x, ...) {
11475 va_arg(va, char *);
11476 va_arg(va, double);
11483 return foo(10, "", 3.14);
11488 if ac_fn_c_try_compile "$LINENO"; then :
11491 $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
11496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
11498 $as_echo "$works" >&6; }
11500 # check for socketpair
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
11502 $as_echo_n "checking for socketpair... " >&6; }
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11506 #include <sys/types.h>
11507 #include <sys/socket.h>
11517 if ac_fn_c_try_compile "$LINENO"; then :
11519 $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11522 $as_echo "yes" >&6; }
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525 $as_echo "no" >&6; }
11528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 # check if sockaddr has sa_len member
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
11532 $as_echo_n "checking if sockaddr has sa_len member... " >&6; }
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11535 #include <sys/types.h>
11536 #include <sys/socket.h>
11546 if ac_fn_c_try_compile "$LINENO"; then :
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11548 $as_echo "yes" >&6; }
11550 $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 va_list_is_array=no
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5
11561 $as_echo_n "checking whether va_list is an array... " >&6; }
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11565 #ifdef HAVE_STDARG_PROTOTYPES
11566 #include <stdarg.h>
11568 #include <varargs.h>
11574 va_list list1, list2; list1 = list2;
11579 if ac_fn_c_try_compile "$LINENO"; then :
11584 $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
11586 va_list_is_array=yes
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5
11591 $as_echo "$va_list_is_array" >&6; }
11593 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
11596 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
11597 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
11599 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
11602 $as_echo_n "checking gethostbyname_r with 6 args... " >&6; }
11604 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11608 # include <netdb.h>
11615 struct hostent *he, *res;
11620 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
11626 if ac_fn_c_try_compile "$LINENO"; then :
11628 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11631 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634 $as_echo "yes" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
11641 $as_echo_n "checking gethostbyname_r with 5 args... " >&6; }
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11645 # include <netdb.h>
11652 struct hostent *he;
11657 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
11663 if ac_fn_c_try_compile "$LINENO"; then :
11665 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11668 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11671 $as_echo "yes" >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
11678 $as_echo_n "checking gethostbyname_r with 3 args... " >&6; }
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11682 # include <netdb.h>
11689 struct hostent *he;
11690 struct hostent_data data;
11692 (void) gethostbyname_r(name, he, &data);
11698 if ac_fn_c_try_compile "$LINENO"; then :
11700 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
11703 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11706 $as_echo "yes" >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711 $as_echo "no" >&6; }
11714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725 for ac_func in gethostbyname
11727 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
11728 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
11729 cat >>confdefs.h <<_ACEOF
11730 #define HAVE_GETHOSTBYNAME 1
11745 # checks for system services
11748 # Linux requires this for correct f.p. operations
11749 ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
11750 if test "x$ac_cv_func___fpu_control" = x""yes; then :
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
11754 $as_echo_n "checking for __fpu_control in -lieee... " >&6; }
11755 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11758 ac_check_lib_save_LIBS=$LIBS
11759 LIBS="-lieee $LIBS"
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11763 /* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11769 char __fpu_control ();
11773 return __fpu_control ();
11778 if ac_fn_c_try_link "$LINENO"; then :
11779 ac_cv_lib_ieee___fpu_control=yes
11781 ac_cv_lib_ieee___fpu_control=no
11783 rm -f core conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
11788 $as_echo "$ac_cv_lib_ieee___fpu_control" >&6; }
11789 if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then :
11790 cat >>confdefs.h <<_ACEOF
11791 #define HAVE_LIBIEEE 1
11794 LIBS="-lieee $LIBS"
11802 # Check for --with-fpectl
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5
11804 $as_echo_n "checking for --with-fpectl... " >&6; }
11806 # Check whether --with-fpectl was given.
11807 if test "${with_fpectl+set}" = set; then :
11808 withval=$with_fpectl;
11809 if test "$withval" != no
11812 $as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11815 $as_echo "yes" >&6; }
11816 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821 $as_echo "no" >&6; }
11825 # check for --with-libm=...
11827 case $ac_sys_system in
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
11833 $as_echo_n "checking for --with-libm=STRING... " >&6; }
11835 # Check whether --with-libm was given.
11836 if test "${with_libm+set}" = set; then :
11837 withval=$with_libm;
11838 if test "$withval" = no
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
11841 $as_echo "force LIBM empty" >&6; }
11842 elif test "$withval" != yes
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
11845 $as_echo "set LIBM=\"$withval\"" >&6; }
11846 else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
11850 $as_echo "default LIBM=\"$LIBM\"" >&6; }
11854 # check for --with-libc=...
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
11857 $as_echo_n "checking for --with-libc=STRING... " >&6; }
11859 # Check whether --with-libc was given.
11860 if test "${with_libc+set}" = set; then :
11861 withval=$with_libc;
11862 if test "$withval" = no
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
11865 $as_echo "force LIBC empty" >&6; }
11866 elif test "$withval" != yes
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
11869 $as_echo "set LIBC=\"$withval\"" >&6; }
11870 else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
11874 $as_echo "default LIBC=\"$LIBC\"" >&6; }
11878 # **************************************************
11879 # * Check for various properties of floating point *
11880 # **************************************************
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5
11883 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; }
11884 if test "${ac_cv_little_endian_double+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11888 if test "$cross_compiling" = yes; then :
11889 ac_cv_little_endian_double=no
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11894 #include <string.h>
11896 double x = 9006104071832581.0;
11897 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
11904 if ac_fn_c_try_run "$LINENO"; then :
11905 ac_cv_little_endian_double=yes
11907 ac_cv_little_endian_double=no
11909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11910 conftest.$ac_objext conftest.beam conftest.$ac_ext
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5
11916 $as_echo "$ac_cv_little_endian_double" >&6; }
11917 if test "$ac_cv_little_endian_double" = yes
11920 $as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5
11925 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; }
11926 if test "${ac_cv_big_endian_double+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11930 if test "$cross_compiling" = yes; then :
11931 ac_cv_big_endian_double=no
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11936 #include <string.h>
11938 double x = 9006104071832581.0;
11939 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
11946 if ac_fn_c_try_run "$LINENO"; then :
11947 ac_cv_big_endian_double=yes
11949 ac_cv_big_endian_double=no
11951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11952 conftest.$ac_objext conftest.beam conftest.$ac_ext
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5
11958 $as_echo "$ac_cv_big_endian_double" >&6; }
11959 if test "$ac_cv_big_endian_double" = yes
11962 $as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
11966 # Some ARM platforms use a mixed-endian representation for doubles.
11967 # While Python doesn't currently have full support for these platforms
11968 # (see e.g., issue 1762561), we can at least make sure that float <-> string
11969 # conversions work.
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
11971 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; }
11972 if test "${ac_cv_mixed_endian_double+set}" = set; then :
11973 $as_echo_n "(cached) " >&6
11976 if test "$cross_compiling" = yes; then :
11977 ac_cv_mixed_endian_double=no
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11982 #include <string.h>
11984 double x = 9006104071832581.0;
11985 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
11992 if ac_fn_c_try_run "$LINENO"; then :
11993 ac_cv_mixed_endian_double=yes
11995 ac_cv_mixed_endian_double=no
11997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11998 conftest.$ac_objext conftest.beam conftest.$ac_ext
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5
12004 $as_echo "$ac_cv_mixed_endian_double" >&6; }
12005 if test "$ac_cv_mixed_endian_double" = yes
12008 $as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
12012 # The short float repr introduced in Python 3.1 requires the
12013 # correctly-rounded string <-> double conversion functions from
12014 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
12015 # rounding; this is a problem on x86, where the x87 FPU has a default
12016 # rounding precision of 64 bits. For gcc/x86, we can fix this by
12017 # using inline assembler to get and set the x87 FPU control word.
12019 # This inline assembler syntax may also work for suncc and icc,
12020 # so we try it on all platforms.
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
12023 $as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12032 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
12033 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
12039 if ac_fn_c_try_compile "$LINENO"; then :
12040 have_gcc_asm_for_x87=yes
12042 have_gcc_asm_for_x87=no
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5
12046 $as_echo "$have_gcc_asm_for_x87" >&6; }
12047 if test "$have_gcc_asm_for_x87" = yes
12050 $as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
12054 # Detect whether system arithmetic is subject to x87-style double
12055 # rounding issues. The result of this test has little meaning on non
12056 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
12057 # mode is round-to-nearest and double rounding issues are present, and
12058 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
12060 $as_echo_n "checking for x87-style double rounding... " >&6; }
12061 # $BASECFLAGS may affect the result
12063 CC="$CC $BASECFLAGS"
12064 if test "$cross_compiling" = yes; then :
12065 ac_cv_x87_double_rounding=no
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12070 #include <stdlib.h>
12073 volatile double x, y, z;
12074 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
12075 x = 0.99999999999999989; /* 1-2**-53 */
12079 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
12085 /* both tests show evidence of double rounding */
12090 if ac_fn_c_try_run "$LINENO"; then :
12091 ac_cv_x87_double_rounding=no
12093 ac_cv_x87_double_rounding=yes
12095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12096 conftest.$ac_objext conftest.beam conftest.$ac_ext
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
12101 $as_echo "$ac_cv_x87_double_rounding" >&6; }
12102 if test "$ac_cv_x87_double_rounding" = yes
12105 $as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
12109 # ************************************
12110 # * Check for mathematical functions *
12111 # ************************************
12116 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
12117 # -0. on some architectures.
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5
12119 $as_echo_n "checking whether tanh preserves the sign of zero... " >&6; }
12120 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12124 if test "$cross_compiling" = yes; then :
12125 ac_cv_tanh_preserves_zero_sign=no
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12131 #include <stdlib.h>
12133 /* return 0 if either negative zeros don't exist
12134 on this platform or if negative zeros exist
12135 and tanh(-0.) == -0. */
12136 if (atan2(0., -1.) == atan2(-0., -1.) ||
12137 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
12142 if ac_fn_c_try_run "$LINENO"; then :
12143 ac_cv_tanh_preserves_zero_sign=yes
12145 ac_cv_tanh_preserves_zero_sign=no
12147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12148 conftest.$ac_objext conftest.beam conftest.$ac_ext
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5
12154 $as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; }
12155 if test "$ac_cv_tanh_preserves_zero_sign" = yes
12158 $as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h
12162 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
12164 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12165 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12166 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12167 cat >>confdefs.h <<_ACEOF
12168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12174 for ac_func in hypot lgamma log1p round tgamma
12176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12177 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12178 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12179 cat >>confdefs.h <<_ACEOF
12180 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12186 ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
12188 if test "x$ac_cv_have_decl_isinf" = x""yes; then :
12194 cat >>confdefs.h <<_ACEOF
12195 #define HAVE_DECL_ISINF $ac_have_decl
12197 ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
12199 if test "x$ac_cv_have_decl_isnan" = x""yes; then :
12205 cat >>confdefs.h <<_ACEOF
12206 #define HAVE_DECL_ISNAN $ac_have_decl
12208 ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
12210 if test "x$ac_cv_have_decl_isfinite" = x""yes; then :
12216 cat >>confdefs.h <<_ACEOF
12217 #define HAVE_DECL_ISFINITE $ac_have_decl
12223 # For multiprocessing module, check that sem_open
12224 # actually works. For FreeBSD versions <= 7.2,
12225 # the kernel module that provides POSIX semaphores
12226 # isn't loaded by default, so an attempt to call
12227 # sem_open results in a 'Signal 12' error.
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
12229 $as_echo_n "checking whether POSIX semaphores are enabled... " >&6; }
12230 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12233 if test "$cross_compiling" = yes; then :
12234 ac_cv_posix_semaphores_enabled=yes
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12239 #include <unistd.h>
12242 #include <semaphore.h>
12243 #include <sys/stat.h>
12246 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
12247 if (a == SEM_FAILED) {
12248 perror("sem_open");
12252 sem_unlink("/autoconf");
12257 if ac_fn_c_try_run "$LINENO"; then :
12258 ac_cv_posix_semaphores_enabled=yes
12260 ac_cv_posix_semaphores_enabled=no
12262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12263 conftest.$ac_objext conftest.beam conftest.$ac_ext
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
12270 $as_echo "$ac_cv_posix_semaphores_enabled" >&6; }
12271 if test $ac_cv_posix_semaphores_enabled = no
12274 $as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
12278 # Multiprocessing check for broken sem_getvalue
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
12280 $as_echo_n "checking for broken sem_getvalue... " >&6; }
12281 if test "${ac_cv_broken_sem_getvalue+set}" = set; then :
12282 $as_echo_n "(cached) " >&6
12284 if test "$cross_compiling" = yes; then :
12285 ac_cv_broken_sem_getvalue=yes
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12290 #include <unistd.h>
12293 #include <semaphore.h>
12294 #include <sys/stat.h>
12297 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
12301 perror("sem_open");
12305 res = sem_getvalue(a, &count);
12307 sem_unlink("/autocftw");
12308 return res==-1 ? 1 : 0;
12312 if ac_fn_c_try_run "$LINENO"; then :
12313 ac_cv_broken_sem_getvalue=no
12315 ac_cv_broken_sem_getvalue=yes
12317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12318 conftest.$ac_objext conftest.beam conftest.$ac_ext
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
12325 $as_echo "$ac_cv_broken_sem_getvalue" >&6; }
12326 if test $ac_cv_broken_sem_getvalue = yes
12329 $as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
12333 # determine what size digit to use for Python's longs
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
12335 $as_echo_n "checking digit size for Python's longs... " >&6; }
12336 # Check whether --enable-big-digits was given.
12337 if test "${enable_big_digits+set}" = set; then :
12338 enableval=$enable_big_digits; case $enable_big_digits in
12340 enable_big_digits=30 ;;
12342 enable_big_digits=15 ;;
12346 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
12349 $as_echo "$enable_big_digits" >&6; }
12351 cat >>confdefs.h <<_ACEOF
12352 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
12358 $as_echo "no value specified" >&6; }
12362 # check for wchar.h
12363 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
12364 if test "x$ac_cv_header_wchar_h" = x""yes; then :
12367 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
12378 # determine wchar_t size
12379 if test "$wchar_h" = yes
12381 # The cast to long int works around a bug in the HP C Compiler
12382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12384 # This bug is HP SR number 8606223364.
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
12386 $as_echo_n "checking size of wchar_t... " >&6; }
12387 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
12388 $as_echo_n "(cached) " >&6
12390 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
12394 if test "$ac_cv_type_wchar_t" = yes; then
12395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12397 as_fn_error 77 "cannot compute sizeof (wchar_t)
12398 See \`config.log' for more details" "$LINENO" 5 ; }
12400 ac_cv_sizeof_wchar_t=0
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
12406 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
12410 cat >>confdefs.h <<_ACEOF
12411 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5
12418 $as_echo_n "checking for UCS-4 tcl... " >&6; }
12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12424 #if TCL_UTF_MAX != 6
12425 # error "NOT UCS4_TCL"
12435 if ac_fn_c_try_compile "$LINENO"; then :
12438 $as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5
12445 $as_echo "$have_ucs4_tcl" >&6; }
12447 # check whether wchar_t is signed or not
12448 if test "$wchar_h" = yes
12450 # check whether wchar_t is signed or not
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
12452 $as_echo_n "checking whether wchar_t is signed... " >&6; }
12453 if test "${ac_cv_wchar_t_signed+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
12457 if test "$cross_compiling" = yes; then :
12458 ac_cv_wchar_t_signed=yes
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12466 /* Success: exit code 0 */
12467 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
12471 if ac_fn_c_try_run "$LINENO"; then :
12472 ac_cv_wchar_t_signed=yes
12474 ac_cv_wchar_t_signed=no
12476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12477 conftest.$ac_objext conftest.beam conftest.$ac_ext
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
12483 $as_echo "$ac_cv_wchar_t_signed" >&6; }
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5
12487 $as_echo_n "checking what type to use for unicode... " >&6; }
12488 # Check whether --enable-unicode was given.
12489 if test "${enable_unicode+set}" = set; then :
12490 enableval=$enable_unicode;
12496 if test $enable_unicode = yes
12498 # Without any arguments, Py_UNICODE defaults to two-byte mode
12499 case "$have_ucs4_tcl" in
12500 yes) enable_unicode="ucs4"
12502 *) enable_unicode="ucs2"
12508 case "$enable_unicode" in
12509 ucs2) unicode_size="2"
12510 $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h
12513 ucs4) unicode_size="4"
12514 $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h
12517 *) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;;
12523 if test "$enable_unicode" = "no"
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5
12527 $as_echo "not used" >&6; }
12529 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
12531 $as_echo "#define Py_USING_UNICODE 1" >>confdefs.h
12534 # wchar_t is only usable if it maps to an unsigned type
12535 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
12536 -a "$ac_cv_wchar_t_signed" = "no"
12538 PY_UNICODE_TYPE="wchar_t"
12540 $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
12542 $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h
12544 elif test "$ac_cv_sizeof_short" = "$unicode_size"
12546 PY_UNICODE_TYPE="unsigned short"
12547 $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h
12549 elif test "$ac_cv_sizeof_long" = "$unicode_size"
12551 PY_UNICODE_TYPE="unsigned long"
12552 $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h
12555 PY_UNICODE_TYPE="no type found"
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5
12558 $as_echo "$PY_UNICODE_TYPE" >&6; }
12561 # check for endianness
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12563 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12564 if test "${ac_cv_c_bigendian+set}" = set; then :
12565 $as_echo_n "(cached) " >&6
12567 ac_cv_c_bigendian=unknown
12568 # See if we're dealing with a universal compiler.
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571 #ifndef __APPLE_CC__
12572 not a universal capable compiler
12577 if ac_fn_c_try_compile "$LINENO"; then :
12579 # Check for potential -arch flags. It is not universal unless
12580 # there are at least two -arch flags with different values.
12583 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12584 if test -n "$ac_prev"; then
12586 i?86 | x86_64 | ppc | ppc64)
12587 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12590 ac_cv_c_bigendian=universal
12596 elif test "x$ac_word" = "x-arch"; then
12601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12602 if test $ac_cv_c_bigendian = unknown; then
12603 # See if sys/param.h defines the BYTE_ORDER macro.
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606 #include <sys/types.h>
12607 #include <sys/param.h>
12612 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12613 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12615 bogus endian macros
12622 if ac_fn_c_try_compile "$LINENO"; then :
12623 # It does; now see whether it defined to BIG_ENDIAN or not.
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 #include <sys/types.h>
12627 #include <sys/param.h>
12632 #if BYTE_ORDER != BIG_ENDIAN
12640 if ac_fn_c_try_compile "$LINENO"; then :
12641 ac_cv_c_bigendian=yes
12643 ac_cv_c_bigendian=no
12645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12649 if test $ac_cv_c_bigendian = unknown; then
12650 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 #include <limits.h>
12658 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12659 bogus endian macros
12666 if ac_fn_c_try_compile "$LINENO"; then :
12667 # It does; now see whether it defined to _BIG_ENDIAN or not.
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670 #include <limits.h>
12675 #ifndef _BIG_ENDIAN
12683 if ac_fn_c_try_compile "$LINENO"; then :
12684 ac_cv_c_bigendian=yes
12686 ac_cv_c_bigendian=no
12688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692 if test $ac_cv_c_bigendian = unknown; then
12693 # Compile a test program.
12694 if test "$cross_compiling" = yes; then :
12695 # Try to guess by grepping values from an object file.
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12698 short int ascii_mm[] =
12699 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12700 short int ascii_ii[] =
12701 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12702 int use_ascii (int i) {
12703 return ascii_mm[i] + ascii_ii[i];
12705 short int ebcdic_ii[] =
12706 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12707 short int ebcdic_mm[] =
12708 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12709 int use_ebcdic (int i) {
12710 return ebcdic_mm[i] + ebcdic_ii[i];
12717 return use_ascii (foo) == use_ebcdic (foo);
12722 if ac_fn_c_try_compile "$LINENO"; then :
12723 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12724 ac_cv_c_bigendian=yes
12726 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12727 if test "$ac_cv_c_bigendian" = unknown; then
12728 ac_cv_c_bigendian=no
12730 # finding both strings is unlikely to happen, but who knows?
12731 ac_cv_c_bigendian=unknown
12735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12739 $ac_includes_default
12744 /* Are we little or big endian? From Harbison&Steele. */
12748 char c[sizeof (long int)];
12751 return u.c[sizeof (long int) - 1] == 1;
12757 if ac_fn_c_try_run "$LINENO"; then :
12758 ac_cv_c_bigendian=no
12760 ac_cv_c_bigendian=yes
12762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12763 conftest.$ac_objext conftest.beam conftest.$ac_ext
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12769 $as_echo "$ac_cv_c_bigendian" >&6; }
12770 case $ac_cv_c_bigendian in #(
12772 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12778 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12782 as_fn_error $? "unknown endianness
12783 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12787 # Check whether right shifting a negative integer extends the sign bit
12788 # or fills with zeros (like the Cray J90, according to Tim Peters).
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
12790 $as_echo_n "checking whether right shift extends the sign bit... " >&6; }
12791 if test "${ac_cv_rshift_extends_sign+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12795 if test "$cross_compiling" = yes; then :
12796 ac_cv_rshift_extends_sign=yes
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12803 exit(((-1)>>3 == -1) ? 0 : 1);
12807 if ac_fn_c_try_run "$LINENO"; then :
12808 ac_cv_rshift_extends_sign=yes
12810 ac_cv_rshift_extends_sign=no
12812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12813 conftest.$ac_objext conftest.beam conftest.$ac_ext
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
12819 $as_echo "$ac_cv_rshift_extends_sign" >&6; }
12820 if test "$ac_cv_rshift_extends_sign" = no
12823 $as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
12827 # check for getc_unlocked and related locking functions
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
12829 $as_echo_n "checking for getc_unlocked() and friends... " >&6; }
12830 if test "${ac_cv_have_getc_unlocked+set}" = set; then :
12831 $as_echo_n "(cached) " >&6
12834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h. */
12841 FILE *f = fopen("/dev/null", "r");
12850 if ac_fn_c_try_link "$LINENO"; then :
12851 ac_cv_have_getc_unlocked=yes
12853 ac_cv_have_getc_unlocked=no
12855 rm -f core conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
12860 $as_echo "$ac_cv_have_getc_unlocked" >&6; }
12861 if test "$ac_cv_have_getc_unlocked" = yes
12864 $as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
12868 # check where readline lives
12869 # save the value of LIBS so we don't actually link Python with readline
12870 LIBS_no_readline=$LIBS
12872 # On some systems we need to link readline to a termcap compatible
12873 # library. NOTE: Keep the precedence of listed libraries synchronised
12875 py_cv_lib_readline=no
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5
12877 $as_echo_n "checking how to link readline libs... " >&6; }
12878 for py_libtermcap in "" ncursesw ncurses curses termcap; do
12879 if test -z "$py_libtermcap"; then
12880 READLINE_LIBS="-lreadline"
12882 READLINE_LIBS="-lreadline -l$py_libtermcap"
12884 LIBS="$READLINE_LIBS $LIBS_no_readline"
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12888 /* Override any GCC internal prototype to avoid an error.
12889 Use char because int might match the return type of a GCC
12890 builtin and then its argument prototype would still apply. */
12898 return readline ();
12903 if ac_fn_c_try_link "$LINENO"; then :
12904 py_cv_lib_readline=yes
12906 rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908 if test $py_cv_lib_readline = yes; then
12912 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
12913 #AC_SUBST([READLINE_LIBS])
12914 if test $py_cv_lib_readline = no; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12916 $as_echo "none" >&6; }
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5
12919 $as_echo "$READLINE_LIBS" >&6; }
12921 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12925 # check for readline 2.1
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
12927 $as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
12928 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then :
12929 $as_echo_n "(cached) " >&6
12931 ac_check_lib_save_LIBS=$LIBS
12932 LIBS="-lreadline $READLINE_LIBS $LIBS"
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12936 /* Override any GCC internal prototype to avoid an error.
12937 Use char because int might match the return type of a GCC
12938 builtin and then its argument prototype would still apply. */
12942 char rl_callback_handler_install ();
12946 return rl_callback_handler_install ();
12951 if ac_fn_c_try_link "$LINENO"; then :
12952 ac_cv_lib_readline_rl_callback_handler_install=yes
12954 ac_cv_lib_readline_rl_callback_handler_install=no
12956 rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12958 LIBS=$ac_check_lib_save_LIBS
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
12961 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
12962 if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then :
12964 $as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
12969 # check for readline 2.2
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972 #include <readline/readline.h>
12974 if ac_fn_c_try_cpp "$LINENO"; then :
12980 rm -f conftest.err conftest.i conftest.$ac_ext
12981 if test $have_readline = yes
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12985 #include <readline/readline.h>
12988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12989 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then :
12991 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998 #include <readline/readline.h>
13001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13002 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then :
13004 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
13011 # check for readline 4.0
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5
13013 $as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; }
13014 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
13017 ac_check_lib_save_LIBS=$LIBS
13018 LIBS="-lreadline $READLINE_LIBS $LIBS"
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13022 /* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13028 char rl_pre_input_hook ();
13032 return rl_pre_input_hook ();
13037 if ac_fn_c_try_link "$LINENO"; then :
13038 ac_cv_lib_readline_rl_pre_input_hook=yes
13040 ac_cv_lib_readline_rl_pre_input_hook=no
13042 rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
13047 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
13048 if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then :
13050 $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5
13057 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; }
13058 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then :
13059 $as_echo_n "(cached) " >&6
13061 ac_check_lib_save_LIBS=$LIBS
13062 LIBS="-lreadline $READLINE_LIBS $LIBS"
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13066 /* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13072 char rl_completion_display_matches_hook ();
13076 return rl_completion_display_matches_hook ();
13081 if ac_fn_c_try_link "$LINENO"; then :
13082 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
13084 ac_cv_lib_readline_rl_completion_display_matches_hook=no
13086 rm -f core conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088 LIBS=$ac_check_lib_save_LIBS
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
13091 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
13092 if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then :
13094 $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
13099 # check for readline 4.2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
13101 $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
13102 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then :
13103 $as_echo_n "(cached) " >&6
13105 ac_check_lib_save_LIBS=$LIBS
13106 LIBS="-lreadline $READLINE_LIBS $LIBS"
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13110 /* Override any GCC internal prototype to avoid an error.
13111 Use char because int might match the return type of a GCC
13112 builtin and then its argument prototype would still apply. */
13116 char rl_completion_matches ();
13120 return rl_completion_matches ();
13125 if ac_fn_c_try_link "$LINENO"; then :
13126 ac_cv_lib_readline_rl_completion_matches=yes
13128 ac_cv_lib_readline_rl_completion_matches=no
13130 rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
13132 LIBS=$ac_check_lib_save_LIBS
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
13135 $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
13136 if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then :
13138 $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
13143 # also in readline 4.2
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146 #include <readline/readline.h>
13148 if ac_fn_c_try_cpp "$LINENO"; then :
13154 rm -f conftest.err conftest.i conftest.$ac_ext
13155 if test $have_readline = yes
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13159 #include <readline/readline.h>
13162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13163 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then :
13165 $as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
13172 # End of readline checks: restore LIBS
13173 LIBS=$LIBS_no_readline
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
13176 $as_echo_n "checking for broken nice()... " >&6; }
13177 if test "${ac_cv_broken_nice+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13181 if test "$cross_compiling" = yes; then :
13182 ac_cv_broken_nice=no
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13189 int val1 = nice(1);
13190 if (val1 != -1 && val1 == nice(2))
13196 if ac_fn_c_try_run "$LINENO"; then :
13197 ac_cv_broken_nice=yes
13199 ac_cv_broken_nice=no
13201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13202 conftest.$ac_objext conftest.beam conftest.$ac_ext
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
13208 $as_echo "$ac_cv_broken_nice" >&6; }
13209 if test "$ac_cv_broken_nice" = yes
13212 $as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
13217 $as_echo_n "checking for broken poll()... " >&6; }
13218 if test "${ac_cv_broken_poll+set}" = set; then :
13219 $as_echo_n "(cached) " >&6
13221 if test "$cross_compiling" = yes; then :
13222 ac_cv_broken_poll=no
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13231 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
13236 poll_test = poll(&poll_struct, 1, 0);
13239 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
13246 if ac_fn_c_try_run "$LINENO"; then :
13247 ac_cv_broken_poll=yes
13249 ac_cv_broken_poll=no
13251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13252 conftest.$ac_objext conftest.beam conftest.$ac_ext
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
13258 $as_echo "$ac_cv_broken_poll" >&6; }
13259 if test "$ac_cv_broken_poll" = yes
13262 $as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h
13266 # Before we can test tzset, we need to check if struct tm has a tm_zone
13267 # (which is not required by ISO C or UNIX spec) and/or if we support
13269 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13270 #include <$ac_cv_struct_tm>
13273 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
13275 cat >>confdefs.h <<_ACEOF
13276 #define HAVE_STRUCT_TM_TM_ZONE 1
13282 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13284 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
13287 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13289 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
13295 cat >>confdefs.h <<_ACEOF
13296 #define HAVE_DECL_TZNAME $ac_have_decl
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13300 $as_echo_n "checking for tzname... " >&6; }
13301 if test "${ac_cv_var_tzname+set}" = set; then :
13302 $as_echo_n "(cached) " >&6
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13307 #if !HAVE_DECL_TZNAME
13308 extern char *tzname[];
13314 return tzname[0][0];
13319 if ac_fn_c_try_link "$LINENO"; then :
13320 ac_cv_var_tzname=yes
13322 ac_cv_var_tzname=no
13324 rm -f core conftest.err conftest.$ac_objext \
13325 conftest$ac_exeext conftest.$ac_ext
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13328 $as_echo "$ac_cv_var_tzname" >&6; }
13329 if test $ac_cv_var_tzname = yes; then
13331 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
13337 # check tzset(3) exists and works like we expect it to
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
13339 $as_echo_n "checking for working tzset()... " >&6; }
13340 if test "${ac_cv_working_tzset+set}" = set; then :
13341 $as_echo_n "(cached) " >&6
13344 if test "$cross_compiling" = yes; then :
13345 ac_cv_working_tzset=no
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13350 #include <stdlib.h>
13352 #include <string.h>
13355 extern char *tzname[];
13360 /* Note that we need to ensure that not only does tzset(3)
13361 do 'something' with localtime, but it works as documented
13362 in the library reference and as expected by the test suite.
13363 This includes making sure that tzname is set properly if
13364 tm->tm_zone does not exist since it is the alternative way
13365 of getting timezone info.
13367 Red Hat 6.2 doesn't understand the southern hemisphere
13368 after New Year's Day.
13371 time_t groundhogday = 1044144000; /* GMT-based */
13372 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
13374 putenv("TZ=UTC+0");
13376 if (localtime(&groundhogday)->tm_hour != 0)
13379 /* For UTC, tzname[1] is sometimes "", sometimes " " */
13380 if (strcmp(tzname[0], "UTC") ||
13381 (tzname[1][0] != 0 && tzname[1][0] != ' '))
13385 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
13387 if (localtime(&groundhogday)->tm_hour != 19)
13390 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
13394 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
13396 if (localtime(&groundhogday)->tm_hour != 11)
13399 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
13403 #if HAVE_STRUCT_TM_TM_ZONE
13404 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
13406 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
13414 if ac_fn_c_try_run "$LINENO"; then :
13415 ac_cv_working_tzset=yes
13417 ac_cv_working_tzset=no
13419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13420 conftest.$ac_objext conftest.beam conftest.$ac_ext
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
13426 $as_echo "$ac_cv_working_tzset" >&6; }
13427 if test "$ac_cv_working_tzset" = yes
13430 $as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h
13434 # Look for subsecond timestamps in struct stat
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
13436 $as_echo_n "checking for tv_nsec in struct stat... " >&6; }
13437 if test "${ac_cv_stat_tv_nsec+set}" = set; then :
13438 $as_echo_n "(cached) " >&6
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13442 #include <sys/stat.h>
13448 st.st_mtim.tv_nsec = 1;
13454 if ac_fn_c_try_compile "$LINENO"; then :
13455 ac_cv_stat_tv_nsec=yes
13457 ac_cv_stat_tv_nsec=no
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
13463 $as_echo "$ac_cv_stat_tv_nsec" >&6; }
13464 if test "$ac_cv_stat_tv_nsec" = yes
13467 $as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
13471 # Look for BSD style subsecond timestamps in struct stat
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
13473 $as_echo_n "checking for tv_nsec2 in struct stat... " >&6; }
13474 if test "${ac_cv_stat_tv_nsec2+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479 #include <sys/stat.h>
13485 st.st_mtimespec.tv_nsec = 1;
13491 if ac_fn_c_try_compile "$LINENO"; then :
13492 ac_cv_stat_tv_nsec2=yes
13494 ac_cv_stat_tv_nsec2=no
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
13500 $as_echo "$ac_cv_stat_tv_nsec2" >&6; }
13501 if test "$ac_cv_stat_tv_nsec2" = yes
13504 $as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
13508 # On HP/UX 11.0, mvwdelch is a block with a return statement
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
13510 $as_echo_n "checking whether mvwdelch is an expression... " >&6; }
13511 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then :
13512 $as_echo_n "(cached) " >&6
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13516 #include <curses.h>
13522 rtn = mvwdelch(0,0,0);
13528 if ac_fn_c_try_compile "$LINENO"; then :
13529 ac_cv_mvwdelch_is_expression=yes
13531 ac_cv_mvwdelch_is_expression=no
13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
13537 $as_echo "$ac_cv_mvwdelch_is_expression" >&6; }
13539 if test "$ac_cv_mvwdelch_is_expression" = yes
13542 $as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
13547 $as_echo_n "checking whether WINDOW has _flags... " >&6; }
13548 if test "${ac_cv_window_has_flags+set}" = set; then :
13549 $as_echo_n "(cached) " >&6
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13553 #include <curses.h>
13565 if ac_fn_c_try_compile "$LINENO"; then :
13566 ac_cv_window_has_flags=yes
13568 ac_cv_window_has_flags=no
13570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
13574 $as_echo "$ac_cv_window_has_flags" >&6; }
13577 if test "$ac_cv_window_has_flags" = yes
13580 $as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5
13585 $as_echo_n "checking for is_term_resized... " >&6; }
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 #include <curses.h>
13592 void *x=is_term_resized
13597 if ac_fn_c_try_compile "$LINENO"; then :
13599 $as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13602 $as_echo "yes" >&6; }
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5
13611 $as_echo_n "checking for resize_term... " >&6; }
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614 #include <curses.h>
13618 void *x=resize_term
13623 if ac_fn_c_try_compile "$LINENO"; then :
13625 $as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13628 $as_echo "yes" >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631 $as_echo "no" >&6; }
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5
13637 $as_echo_n "checking for resizeterm... " >&6; }
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13640 #include <curses.h>
13649 if ac_fn_c_try_compile "$LINENO"; then :
13651 $as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13654 $as_echo "yes" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
13663 $as_echo_n "checking for /dev/ptmx... " >&6; }
13665 if test -r /dev/ptmx
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13668 $as_echo "yes" >&6; }
13670 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674 $as_echo "no" >&6; }
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
13678 $as_echo_n "checking for /dev/ptc... " >&6; }
13680 if test -r /dev/ptc
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13683 $as_echo "yes" >&6; }
13685 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13689 $as_echo "no" >&6; }
13692 if test "$have_long_long" = yes
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5
13695 $as_echo_n "checking for %lld and %llu printf() format support... " >&6; }
13696 if test "${ac_cv_have_long_long_format+set}" = set; then :
13697 $as_echo_n "(cached) " >&6
13699 if test "$cross_compiling" = yes; then :
13700 ac_cv_have_long_long_format=no
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13706 #include <stddef.h>
13707 #include <string.h>
13709 #ifdef HAVE_SYS_TYPES_H
13710 #include <sys/types.h>
13717 if (sprintf(buffer, "%lld", (long long)123) < 0)
13719 if (strcmp(buffer, "123"))
13722 if (sprintf(buffer, "%lld", (long long)-123) < 0)
13724 if (strcmp(buffer, "-123"))
13727 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
13729 if (strcmp(buffer, "123"))
13736 if ac_fn_c_try_run "$LINENO"; then :
13737 ac_cv_have_long_long_format=yes
13739 ac_cv_have_long_long_format=no
13741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13742 conftest.$ac_objext conftest.beam conftest.$ac_ext
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5
13749 $as_echo "$ac_cv_have_long_long_format" >&6; }
13752 if test "$ac_cv_have_long_long_format" = yes
13755 $as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h
13759 if test $ac_sys_system = Darwin
13761 LIBS="$LIBS -framework CoreFoundation"
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
13766 $as_echo_n "checking for %zd printf() format support... " >&6; }
13767 if test "${ac_cv_have_size_t_format+set}" = set; then :
13768 $as_echo_n "(cached) " >&6
13770 if test "$cross_compiling" = yes; then :
13771 ac_cv_have_size_t_format="cross -- assuming yes"
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13778 #include <stddef.h>
13779 #include <string.h>
13781 #ifdef HAVE_SYS_TYPES_H
13782 #include <sys/types.h>
13785 #ifdef HAVE_SSIZE_T
13786 typedef ssize_t Py_ssize_t;
13787 #elif SIZEOF_VOID_P == SIZEOF_LONG
13788 typedef long Py_ssize_t;
13790 typedef int Py_ssize_t;
13797 if(sprintf(buffer, "%zd", (size_t)123) < 0)
13800 if (strcmp(buffer, "123"))
13803 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
13806 if (strcmp(buffer, "-123"))
13813 if ac_fn_c_try_run "$LINENO"; then :
13814 ac_cv_have_size_t_format=yes
13816 ac_cv_have_size_t_format=no
13818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13819 conftest.$ac_objext conftest.beam conftest.$ac_ext
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5
13824 $as_echo "$ac_cv_have_size_t_format" >&6; }
13825 if test "$ac_cv_have_size_t_format" != no ; then
13827 $as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h
13831 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13832 #ifdef HAVE_SYS_TYPES_H
13833 #include <sys/types.h>
13835 #ifdef HAVE_SYS_SOCKET_H
13836 #include <sys/socket.h>
13840 if test "x$ac_cv_type_socklen_t" = x""yes; then :
13844 $as_echo "#define socklen_t int" >>confdefs.h
13849 case $ac_sys_system in
13852 $as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
13859 for h in `(cd $srcdir;echo Python/thread_*.h)`
13861 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
13865 SRCDIRS="Parser Grammar Objects Python Modules Mac"
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
13867 $as_echo_n "checking for build directories... " >&6; }
13868 for dir in $SRCDIRS; do
13869 if test ! -d $dir; then
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13874 $as_echo "done" >&6; }
13876 # generate output files
13877 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
13879 ac_config_files="$ac_config_files Modules/ld_so_aix"
13881 cat >confcache <<\_ACEOF
13882 # This file is a shell script that caches the results of configure
13883 # tests run on this system so they can be shared between configure
13884 # scripts and configure runs, see configure's option --config-cache.
13885 # It is not useful on other systems. If it contains results you don't
13886 # want to keep, you may remove or edit it.
13888 # config.status only pays attention to the cache file if you give it
13889 # the --recheck option to rerun configure.
13891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13893 # following values.
13897 # The following way of writing the cache mishandles newlines in values,
13898 # but we know of no workaround that is simple, portable, and efficient.
13899 # So, we kill variables containing newlines.
13900 # Ultrix sh set writes to stderr and can't be redirected directly,
13901 # and sets the high bit in the cache file unless we assign to the vars.
13903 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13904 eval ac_val=\$$ac_var
13908 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13909 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13912 _ | IFS | as_nl) ;; #(
13913 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13914 *) { eval $ac_var=; unset $ac_var;} ;;
13920 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13921 *${as_nl}ac_space=\ *)
13922 # `set' does not quote correctly, so add quotes: double-quote
13923 # substitution turns \\\\ into \\, and sed turns \\ into \.
13926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13929 # `set' quotes correctly as required by POSIX, so do not add quotes.
13930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13939 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13941 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13943 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13944 if test -w "$cache_file"; then
13945 test "x$cache_file" != "x/dev/null" &&
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13947 $as_echo "$as_me: updating cache $cache_file" >&6;}
13948 cat confcache >$cache_file
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13951 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13956 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13957 # Let make expand exec_prefix.
13958 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13960 DEFS=-DHAVE_CONFIG_H
13965 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13966 # 1. Remove the extension, and $U if already installed.
13967 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13968 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13969 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13970 # will be set to the directory where LIBOBJS objects are built.
13971 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13972 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13974 LIBOBJS=$ac_libobjs
13976 LTLIBOBJS=$ac_ltlibobjs
13981 : ${CONFIG_STATUS=./config.status}
13983 ac_clean_files_save=$ac_clean_files
13984 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13986 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13988 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13990 # Generated by $as_me.
13991 # Run this file to recreate the current configuration.
13992 # Compiler output produced by configure, useful for debugging
13993 # configure, is in config.log if it exists.
13996 ac_cs_recheck=false
13999 SHELL=\${CONFIG_SHELL-$SHELL}
14002 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14003 ## -------------------- ##
14004 ## M4sh Initialization. ##
14005 ## -------------------- ##
14007 # Be more Bourne compatible
14008 DUALCASE=1; export DUALCASE # for MKS sh
14009 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14012 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14013 # is contrary to our usage. Disable this feature.
14014 alias -g '${1+"$@"}'='"$@"'
14015 setopt NO_GLOB_SUBST
14017 case `(set -o) 2>/dev/null` in #(
14029 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14030 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14031 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14032 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14033 # Prefer a ksh shell builtin over an external printf program on Solaris,
14034 # but without wasting forks for bash or zsh.
14035 if test -z "$BASH_VERSION$ZSH_VERSION" \
14036 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14037 as_echo='print -r --'
14038 as_echo_n='print -rn --'
14039 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14040 as_echo='printf %s\n'
14041 as_echo_n='printf %s'
14043 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14044 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14045 as_echo_n='/usr/ucb/echo -n'
14047 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14048 as_echo_n_body='eval
14052 expr "X$arg" : "X\\(.*\\)$as_nl";
14053 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14055 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14057 export as_echo_n_body
14058 as_echo_n='sh -c $as_echo_n_body as_echo'
14060 export as_echo_body
14061 as_echo='sh -c $as_echo_body as_echo'
14064 # The user is always right.
14065 if test "${PATH_SEPARATOR+set}" != set; then
14067 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14068 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14075 # We need space, tab and new line, in precisely that order. Quoting is
14076 # there to prevent editors from complaining about space-tab.
14077 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14078 # splitting by setting IFS to empty value.)
14081 # Find who we are. Look in the path if we contain no directory separator.
14083 *[\\/]* ) as_myself=$0 ;;
14084 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14085 for as_dir in $PATH
14088 test -z "$as_dir" && as_dir=.
14089 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14095 # We did not find ourselves, most probably we were run as `sh COMMAND'
14096 # in which case we are not to be found in the path.
14097 if test "x$as_myself" = x; then
14100 if test ! -f "$as_myself"; then
14101 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14105 # Unset variables that we do not need and which cause bugs (e.g. in
14106 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14107 # suppresses any "Segmentation fault" message there. '((' could
14108 # trigger a bug in pdksh 5.2.14.
14109 for as_var in BASH_ENV ENV MAIL MAILPATH
14110 do eval test x\${$as_var+set} = xset \
14111 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14124 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14127 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14128 # ----------------------------------------
14129 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14130 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14131 # script with STATUS, using 1 if that was 0.
14134 as_status=$1; test $as_status -eq 0 && as_status=1
14136 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14137 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14139 $as_echo "$as_me: error: $2" >&2
14140 as_fn_exit $as_status
14144 # as_fn_set_status STATUS
14145 # -----------------------
14146 # Set $? to STATUS, without forking.
14147 as_fn_set_status ()
14150 } # as_fn_set_status
14152 # as_fn_exit STATUS
14153 # -----------------
14154 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14158 as_fn_set_status $1
14164 # Portably unset VAR.
14167 { eval $1=; unset $1;}
14169 as_unset=as_fn_unset
14170 # as_fn_append VAR VALUE
14171 # ----------------------
14172 # Append the text in VALUE to the end of the definition contained in VAR. Take
14173 # advantage of any shell optimizations that allow amortized linear growth over
14174 # repeated appends, instead of the typical quadratic growth present in naive
14176 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14177 eval 'as_fn_append ()
14188 # as_fn_arith ARG...
14189 # ------------------
14190 # Perform arithmetic evaluation on the ARGs, and store the result in the
14191 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14192 # must be portable across $(()) and expr.
14193 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14194 eval 'as_fn_arith ()
14201 as_val=`expr "$@" || test $? -eq 1`
14206 if expr a : '\(a\)' >/dev/null 2>&1 &&
14207 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14213 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14214 as_basename=basename
14219 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14225 as_me=`$as_basename -- "$0" ||
14226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14227 X"$0" : 'X\(//\)$' \| \
14228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14230 sed '/^.*\/\([^/][^/]*\)\/*$/{
14244 # Avoid depending upon Character Ranges.
14245 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14246 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14247 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14248 as_cr_digits='0123456789'
14249 as_cr_alnum=$as_cr_Letters$as_cr_digits
14251 ECHO_C= ECHO_N= ECHO_T=
14252 case `echo -n x` in #(((((
14254 case `echo 'xy\c'` in
14255 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14257 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14264 rm -f conf$$ conf$$.exe conf$$.file
14265 if test -d conf$$.dir; then
14266 rm -f conf$$.dir/conf$$.file
14269 mkdir conf$$.dir 2>/dev/null
14271 if (echo >conf$$.file) 2>/dev/null; then
14272 if ln -s conf$$.file conf$$ 2>/dev/null; then
14274 # ... but there are two gotchas:
14275 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14276 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14277 # In both cases, we have to default to `cp -p'.
14278 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14280 elif ln conf$$.file conf$$ 2>/dev/null; then
14288 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14289 rmdir conf$$.dir 2>/dev/null
14294 # Create "$as_dir" as a directory, including parents if necessary.
14299 -*) as_dir=./$as_dir;;
14301 test -d "$as_dir" || eval $as_mkdir_p || {
14305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14306 *) as_qdir=$as_dir;;
14308 as_dirs="'$as_qdir' $as_dirs"
14309 as_dir=`$as_dirname -- "$as_dir" ||
14310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14311 X"$as_dir" : 'X\(//\)[^/]' \| \
14312 X"$as_dir" : 'X\(//\)$' \| \
14313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14314 $as_echo X"$as_dir" |
14315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14319 /^X\(\/\/\)[^/].*/{
14332 test -d "$as_dir" && break
14334 test -z "$as_dirs" || eval "mkdir $as_dirs"
14335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14339 if mkdir -p . 2>/dev/null; then
14340 as_mkdir_p='mkdir -p "$as_dir"'
14342 test -d ./-p && rmdir ./-p
14346 if test -x / >/dev/null 2>&1; then
14347 as_test_x='test -x'
14349 if ls -dL / >/dev/null 2>&1; then
14356 if test -d "$1"; then
14362 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14363 ???[sx]*):;;*)false;;esac;fi
14367 as_executable_p=$as_test_x
14369 # Sed expression to map a string onto a valid CPP name.
14370 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14372 # Sed expression to map a string onto a valid variable name.
14373 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14377 ## ----------------------------------- ##
14378 ## Main body of $CONFIG_STATUS script. ##
14379 ## ----------------------------------- ##
14381 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14384 # Save the log message, to keep $0 and so on meaningful, and to
14385 # report actual input values of CONFIG_FILES etc. instead of their
14386 # values after options handling.
14388 This file was extended by python $as_me 2.7, which was
14389 generated by GNU Autoconf 2.67. Invocation command line was
14391 CONFIG_FILES = $CONFIG_FILES
14392 CONFIG_HEADERS = $CONFIG_HEADERS
14393 CONFIG_LINKS = $CONFIG_LINKS
14394 CONFIG_COMMANDS = $CONFIG_COMMANDS
14397 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14402 case $ac_config_files in *"
14403 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14406 case $ac_config_headers in *"
14407 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14412 # Files that config.status was made for.
14413 config_files="$ac_config_files"
14414 config_headers="$ac_config_headers"
14418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14420 \`$as_me' instantiates files and other configuration actions
14421 from templates according to the current configuration. Unless the files
14422 and actions are specified as TAGs, all are instantiated by default.
14424 Usage: $0 [OPTION]... [TAG]...
14426 -h, --help print this help, then exit
14427 -V, --version print version number and configuration settings, then exit
14428 --config print configuration, then exit
14429 -q, --quiet, --silent
14430 do not print progress messages
14431 -d, --debug don't remove temporary files
14432 --recheck update $as_me by reconfiguring in the same conditions
14433 --file=FILE[:TEMPLATE]
14434 instantiate the configuration file FILE
14435 --header=FILE[:TEMPLATE]
14436 instantiate the configuration header FILE
14438 Configuration files:
14441 Configuration headers:
14444 Report bugs to <http://bugs.python.org/>."
14447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14448 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14450 python config.status 2.7
14451 configured by $0, generated by GNU Autoconf 2.67,
14452 with options \\"\$ac_cs_config\\"
14454 Copyright (C) 2010 Free Software Foundation, Inc.
14455 This config.status script is free software; the Free Software Foundation
14456 gives unlimited permission to copy, distribute and modify it."
14461 test -n "\$AWK" || AWK=awk
14464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14465 # The default lists apply if the user does not specify any file.
14471 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14472 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14476 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14488 # Handling of the options.
14489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14491 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14492 $as_echo "$ac_cs_version"; exit ;;
14493 --config | --confi | --conf | --con | --co | --c )
14494 $as_echo "$ac_cs_config"; exit ;;
14495 --debug | --debu | --deb | --de | --d | -d )
14497 --file | --fil | --fi | --f )
14500 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14501 '') as_fn_error $? "missing file argument" ;;
14503 as_fn_append CONFIG_FILES " '$ac_optarg'"
14504 ac_need_defaults=false;;
14505 --header | --heade | --head | --hea )
14508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14510 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14511 ac_need_defaults=false;;
14513 # Conflict between --help and --header
14514 as_fn_error $? "ambiguous option: \`$1'
14515 Try \`$0 --help' for more information.";;
14516 --help | --hel | -h )
14517 $as_echo "$ac_cs_usage"; exit ;;
14518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14522 # This is an error.
14523 -*) as_fn_error $? "unrecognized option: \`$1'
14524 Try \`$0 --help' for more information." ;;
14526 *) as_fn_append ac_config_targets " $1"
14527 ac_need_defaults=false ;;
14533 ac_configure_extra_args=
14535 if $ac_cs_silent; then
14537 ac_configure_extra_args="$ac_configure_extra_args --silent"
14541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14542 if \$ac_cs_recheck; then
14543 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14545 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14546 CONFIG_SHELL='$SHELL'
14547 export CONFIG_SHELL
14552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14557 ## Running $as_me. ##
14563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14568 # Handling of arguments.
14569 for ac_config_target in $ac_config_targets
14571 case $ac_config_target in
14572 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;;
14573 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;;
14574 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
14575 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;;
14576 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
14577 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
14578 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;;
14579 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;;
14580 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;;
14581 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;;
14583 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
14588 # If the user did not use the arguments to specify the items to instantiate,
14589 # then the envvar interface is used. Set only those that are not.
14590 # We use the long form for the default assignment because of an extremely
14591 # bizarre bug on SunOS 4.1.3.
14592 if $ac_need_defaults; then
14593 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14594 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14597 # Have a temporary directory for convenience. Make it in the build tree
14598 # simply because there is no reason against having it here, and in addition,
14599 # creating and moving files from /tmp can sometimes cause problems.
14600 # Hook for its removal unless debugging.
14601 # Note that there is a small window in which the directory will not be cleaned:
14602 # after its creation but before its name has been assigned to `$tmp'.
14606 trap 'exit_status=$?
14607 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14609 trap 'as_fn_exit 1' 1 2 13 15
14611 # Create a (secure) tmp directory for tmp files.
14614 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14615 test -n "$tmp" && test -d "$tmp"
14618 tmp=./conf$$-$RANDOM
14619 (umask 077 && mkdir "$tmp")
14620 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14622 # Set up the scripts for CONFIG_FILES section.
14623 # No need to generate them if there are no CONFIG_FILES.
14624 # This happens for instance with `./config.status config.h'.
14625 if test -n "$CONFIG_FILES"; then
14628 ac_cr=`echo X | tr X '\015'`
14629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14630 # But we know of no other shell where ac_cr would be empty at this
14631 # point, so we can use a bashism as a fallback.
14632 if test "x$ac_cr" = x; then
14633 eval ac_cr=\$\'\\r\'
14635 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14639 ac_cs_awk_cr=$ac_cr
14642 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14647 echo "cat >conf$$subs.awk <<_ACEOF" &&
14648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14650 } >conf$$subs.sh ||
14651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14652 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14654 for ac_last_try in false false false false false :; do
14655 . ./conf$$subs.sh ||
14656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14659 if test $ac_delim_n = $ac_delim_num; then
14661 elif $ac_last_try; then
14662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14667 rm -f conf$$subs.sh
14669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14670 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14674 s/^/S["/; s/!.*/"]=/
14684 s/\(.\{148\}\)..*/\1/
14686 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14698 s/\(.\{148\}\)..*/\1/
14700 s/["\\]/\\&/g; s/^/"/; s/$/"/
14704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14709 ' <conf$$subs.awk | sed '
14714 ' >>$CONFIG_STATUS || ac_write_fail=1
14715 rm -f conf$$subs.awk
14716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14718 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14719 for (key in S) S_is_set[key] = 1
14725 nfields = split(line, field, "@")
14727 len = length(field[1])
14728 for (i = 2; i < nfields; i++) {
14730 keylen = length(key)
14731 if (S_is_set[key]) {
14733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14734 len += length(value) + length(field[++i])
14745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14746 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14750 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14751 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14754 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14755 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14756 # trailing colons and then remove the whole line if VPATH becomes empty
14757 # (actually we leave an empty line to preserve line numbers).
14758 if test "x$srcdir" = x.; then
14759 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14778 fi # test -n "$CONFIG_FILES"
14780 # Set up the scripts for CONFIG_HEADERS section.
14781 # No need to generate them if there are no CONFIG_HEADERS.
14782 # This happens for instance with `./config.status Makefile'.
14783 if test -n "$CONFIG_HEADERS"; then
14784 cat >"$tmp/defines.awk" <<\_ACAWK ||
14788 # Transform confdefs.h into an awk script `defines.awk', embedded as
14789 # here-document in config.status, that substitutes the proper values into
14790 # config.h.in to produce config.h.
14792 # Create a delimiter string that does not exist in confdefs.h, to ease
14793 # handling of long lines.
14795 for ac_last_try in false false :; do
14796 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14797 if test -z "$ac_t"; then
14799 elif $ac_last_try; then
14800 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14806 # For the awk script, D is an array of macro values keyed by name,
14807 # likewise P contains macro parameters if any. Preserve backslash
14808 # newline sequences.
14810 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14812 s/.\{148\}/&'"$ac_delim"'/g
14815 s/^[ ]*#[ ]*define[ ][ ]*/ /
14822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14824 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14829 D["\1"]=" \3\\\\\\n"\\/p
14831 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14836 s/.\{148\}/&'"$ac_delim"'/g
14841 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14844 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14846 ' <confdefs.h | sed '
14847 s/'"$ac_delim"'/"\\\
14848 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14851 for (key in D) D_is_set[key] = 1
14854 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14856 split(line, arg, " ")
14857 if (arg[1] == "#") {
14861 defundef = substr(arg[1], 2)
14864 split(mac1, mac2, "(") #)
14866 prefix = substr(line, 1, index(line, defundef) - 1)
14867 if (D_is_set[macro]) {
14868 # Preserve the white space surrounding the "#".
14869 print prefix "define", macro P[macro] D[macro]
14872 # Replace #undef with comments. This is necessary, for example,
14873 # in the case of _POSIX_SOURCE, which is predefined and required
14874 # on some systems where configure will not decide to define it.
14875 if (defundef == "undef") {
14876 print "/*", prefix defundef, macro, "*/"
14884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14885 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14886 fi # test -n "$CONFIG_HEADERS"
14889 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
14894 :[FHLC]) ac_mode=$ac_tag; continue;;
14896 case $ac_mode$ac_tag in
14898 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
14899 :[FH]-) ac_tag=-:-;;
14900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14917 -) ac_f="$tmp/stdin";;
14918 *) # Look for the file first in the build tree, then in the source tree
14919 # (if the path is not absolute). The absolute path cannot be DOS-style,
14920 # because $ac_f cannot contain `:'.
14924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14926 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
14928 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14929 as_fn_append ac_file_inputs " '$ac_f'"
14932 # Let's still pretend it is `configure' which instantiates (i.e., don't
14933 # use $as_me), people would be surprised to read:
14934 # /* config.h. Generated by config.status. */
14935 configure_input='Generated from '`
14936 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14938 if test x"$ac_file" != x-; then
14939 configure_input="$ac_file. $configure_input"
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14941 $as_echo "$as_me: creating $ac_file" >&6;}
14943 # Neutralize special characters interpreted by sed in replacement strings.
14944 case $configure_input in #(
14945 *\&* | *\|* | *\\* )
14946 ac_sed_conf_input=`$as_echo "$configure_input" |
14947 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14948 *) ac_sed_conf_input=$configure_input;;
14952 *:-:* | *:-) cat >"$tmp/stdin" \
14953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14958 ac_dir=`$as_dirname -- "$ac_file" ||
14959 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14960 X"$ac_file" : 'X\(//\)[^/]' \| \
14961 X"$ac_file" : 'X\(//\)$' \| \
14962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14963 $as_echo X"$ac_file" |
14964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14968 /^X\(\/\/\)[^/].*/{
14981 as_dir="$ac_dir"; as_fn_mkdir_p
14985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14987 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14988 # A ".." for each directory in $ac_dir_suffix.
14989 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14990 case $ac_top_builddir_sub in
14991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14995 ac_abs_top_builddir=$ac_pwd
14996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14997 # for backward compatibility:
14998 ac_top_builddir=$ac_top_build_prefix
15001 .) # We are building in place.
15003 ac_top_srcdir=$ac_top_builddir_sub
15004 ac_abs_top_srcdir=$ac_pwd ;;
15005 [\\/]* | ?:[\\/]* ) # Absolute name.
15006 ac_srcdir=$srcdir$ac_dir_suffix;
15007 ac_top_srcdir=$srcdir
15008 ac_abs_top_srcdir=$srcdir ;;
15009 *) # Relative name.
15010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15011 ac_top_srcdir=$ac_top_build_prefix$srcdir
15012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15030 # If the template does not know about datarootdir, expand it.
15031 # FIXME: This hack should be removed a few years after 2.60.
15032 ac_datarootdir_hack=; ac_datarootdir_seen=
15043 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15044 *datarootdir*) ac_datarootdir_seen=yes;;
15045 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15047 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15050 ac_datarootdir_hack='
15051 s&@datadir@&$datadir&g
15052 s&@docdir@&$docdir&g
15053 s&@infodir@&$infodir&g
15054 s&@localedir@&$localedir&g
15055 s&@mandir@&$mandir&g
15056 s&\\\${datarootdir}&$datarootdir&g' ;;
15060 # Neutralize VPATH when `$srcdir' = `.'.
15061 # Shell code in configure.ac might set extrasub.
15062 # FIXME: do we really want to maintain this feature?
15063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15064 ac_sed_extra="$ac_vpsub
15067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15070 s|@configure_input@|$ac_sed_conf_input|;t t
15071 s&@top_builddir@&$ac_top_builddir_sub&;t t
15072 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15073 s&@srcdir@&$ac_srcdir&;t t
15074 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15075 s&@top_srcdir@&$ac_top_srcdir&;t t
15076 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15077 s&@builddir@&$ac_builddir&;t t
15078 s&@abs_builddir@&$ac_abs_builddir&;t t
15079 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15080 s&@INSTALL@&$ac_INSTALL&;t t
15081 $ac_datarootdir_hack
15083 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15086 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15087 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15088 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15090 which seems to be undefined. Please make sure it is defined" >&5
15091 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15092 which seems to be undefined. Please make sure it is defined" >&2;}
15096 -) cat "$tmp/out" && rm -f "$tmp/out";;
15097 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15099 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15105 if test x"$ac_file" != x-; then
15107 $as_echo "/* $configure_input */" \
15108 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15109 } >"$tmp/config.h" \
15110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15111 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15113 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15116 mv "$tmp/config.h" "$ac_file" \
15117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15120 $as_echo "/* $configure_input */" \
15121 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15122 || as_fn_error $? "could not create -" "$LINENO" 5
15130 case $ac_file$ac_mode in
15131 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
15139 ac_clean_files=$ac_clean_files_save
15141 test $ac_write_fail = 0 ||
15142 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15145 # configure is writing to config.log, and then calls config.status.
15146 # config.status does its own redirection, appending to config.log.
15147 # Unfortunately, on DOS this fails, as config.log is still kept open
15148 # by configure, so config.status won't be able to write to it; its
15149 # output is simply discarded. So we exec the FD to /dev/null,
15150 # effectively closing config.log, so it can be properly (re)opened and
15151 # appended to by config.status. When coming back to configure, we
15152 # need to make the FD available again.
15153 if test "$no_create" != yes; then
15155 ac_config_status_args=
15156 test "$silent" = yes &&
15157 ac_config_status_args="$ac_config_status_args --quiet"
15159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15162 # would make configure fail if this is the last instruction.
15163 $ac_cs_success || as_fn_exit 1
15165 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15167 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15171 echo "creating Modules/Setup"
15172 if test ! -f Modules/Setup
15174 cp $srcdir/Modules/Setup.dist Modules/Setup
15177 echo "creating Modules/Setup.local"
15178 if test ! -f Modules/Setup.local
15180 echo "# Edit this file for local setup changes" >Modules/Setup.local
15183 echo "creating Makefile"
15184 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
15185 -s Modules Modules/Setup.config \
15186 Modules/Setup.local Modules/Setup
15188 case $ac_sys_system in
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15192 Support for BeOS is deprecated as of Python 2.6.
15193 See PEP 11 for the gory details.
15195 $as_echo "$as_me: WARNING:
15197 Support for BeOS is deprecated as of Python 2.6.
15198 See PEP 11 for the gory details.
15204 mv config.c Modules