2 # From configure.in Revision: 72114 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='2.7'
579 PACKAGE_STRING
='python 2.7'
580 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
739 ac_precious_vars
='build_alias
750 # Initialize some variables set by options.
752 ac_init_version
=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
762 program_transform_name
=s
,x
,x
,
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir
='${exec_prefix}/bin'
777 sbindir
='${exec_prefix}/sbin'
778 libexecdir
='${exec_prefix}/libexec'
779 datarootdir
='${prefix}/share'
780 datadir
='${datarootdir}'
781 sysconfdir
='${prefix}/etc'
782 sharedstatedir
='${prefix}/com'
783 localstatedir
='${prefix}/var'
784 includedir
='${prefix}/include'
785 oldincludedir
='/usr/include'
786 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir
='${datarootdir}/info'
792 libdir
='${exec_prefix}/lib'
793 localedir
='${datarootdir}/locale'
794 mandir
='${datarootdir}/man'
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\
$ac_option
808 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 # Accept the important Cygnus configure options, so we can diagnose typos.
814 case $ac_dashdash$ac_option in
818 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
820 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
823 -build |
--build |
--buil |
--bui |
--bu)
824 ac_prev
=build_alias
;;
825 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
826 build_alias
=$ac_optarg ;;
828 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
829 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
830 ac_prev
=cache_file
;;
831 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
832 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
833 cache_file
=$ac_optarg ;;
836 cache_file
=config.cache
;;
838 -datadir |
--datadir |
--datadi |
--datad)
840 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
841 datadir
=$ac_optarg ;;
843 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
844 |
--dataroo |
--dataro |
--datar)
845 ac_prev
=datarootdir
;;
846 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
847 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
848 datarootdir
=$ac_optarg ;;
850 -disable-* |
--disable-*)
851 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_
$ac_feature=no
;;
859 -docdir |
--docdir |
--docdi |
--doc |
--do)
861 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
864 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
866 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
869 -enable-* |
--enable-*)
870 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_
$ac_feature=\
$ac_optarg ;;
878 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
879 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
880 |
--exec |
--exe |
--ex)
881 ac_prev
=exec_prefix
;;
882 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
883 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
884 |
--exec=* |
--exe=* |
--ex=*)
885 exec_prefix
=$ac_optarg ;;
887 -gas |
--gas |
--ga |
--g)
888 # Obsolete; use --with-gas.
891 -help |
--help |
--hel |
--he |
-h)
893 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
894 ac_init_help
=recursive
;;
895 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
896 ac_init_help
=short
;;
898 -host |
--host |
--hos |
--ho)
899 ac_prev
=host_alias
;;
900 -host=* |
--host=* |
--hos=* |
--ho=*)
901 host_alias
=$ac_optarg ;;
903 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
905 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
907 htmldir
=$ac_optarg ;;
909 -includedir |
--includedir |
--includedi |
--included |
--include \
910 |
--includ |
--inclu |
--incl |
--inc)
911 ac_prev
=includedir
;;
912 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
913 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
914 includedir
=$ac_optarg ;;
916 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
918 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
919 infodir
=$ac_optarg ;;
921 -libdir |
--libdir |
--libdi |
--libd)
923 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
926 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
927 |
--libexe |
--libex |
--libe)
928 ac_prev
=libexecdir
;;
929 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
930 |
--libexe=* |
--libex=* |
--libe=*)
931 libexecdir
=$ac_optarg ;;
933 -localedir |
--localedir |
--localedi |
--localed |
--locale)
935 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
936 localedir
=$ac_optarg ;;
938 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
939 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
940 ac_prev
=localstatedir
;;
941 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
942 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
943 localstatedir
=$ac_optarg ;;
945 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
947 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
951 # Obsolete; use --without-fp.
954 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
955 |
--no-cr |
--no-c |
-n)
958 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
959 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
962 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
963 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
964 |
--oldin |
--oldi |
--old |
--ol |
--o)
965 ac_prev
=oldincludedir
;;
966 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
967 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
968 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
969 oldincludedir
=$ac_optarg ;;
971 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
973 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
976 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
977 |
--program-pre |
--program-pr |
--program-p)
978 ac_prev
=program_prefix
;;
979 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
980 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
981 program_prefix
=$ac_optarg ;;
983 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
984 |
--program-suf |
--program-su |
--program-s)
985 ac_prev
=program_suffix
;;
986 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
987 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
988 program_suffix
=$ac_optarg ;;
990 -program-transform-name |
--program-transform-name \
991 |
--program-transform-nam |
--program-transform-na \
992 |
--program-transform-n |
--program-transform- \
993 |
--program-transform |
--program-transfor \
994 |
--program-transfo |
--program-transf \
995 |
--program-trans |
--program-tran \
996 |
--progr-tra |
--program-tr |
--program-t)
997 ac_prev
=program_transform_name
;;
998 -program-transform-name=* |
--program-transform-name=* \
999 |
--program-transform-nam=* |
--program-transform-na=* \
1000 |
--program-transform-n=* |
--program-transform-=* \
1001 |
--program-transform=* |
--program-transfor=* \
1002 |
--program-transfo=* |
--program-transf=* \
1003 |
--program-trans=* |
--program-tran=* \
1004 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1005 program_transform_name
=$ac_optarg ;;
1007 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1009 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1010 pdfdir
=$ac_optarg ;;
1012 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1014 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1017 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1018 |
-silent |
--silent |
--silen |
--sile |
--sil)
1021 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1023 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1025 sbindir
=$ac_optarg ;;
1027 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1028 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1029 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1031 ac_prev
=sharedstatedir
;;
1032 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1033 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1034 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1036 sharedstatedir
=$ac_optarg ;;
1038 -site |
--site |
--sit)
1040 -site=* |
--site=* |
--sit=*)
1043 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1045 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1046 srcdir
=$ac_optarg ;;
1048 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1049 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1050 ac_prev
=sysconfdir
;;
1051 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1052 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1053 sysconfdir
=$ac_optarg ;;
1055 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1056 ac_prev
=target_alias
;;
1057 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1058 target_alias
=$ac_optarg ;;
1060 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1063 -version |
--version |
--versio |
--versi |
--vers |
-V)
1064 ac_init_version
=: ;;
1067 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_
$ac_package=\
$ac_optarg ;;
1075 -without-* |
--without-*)
1076 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_
$ac_package=no
;;
1085 # Obsolete; use --with-x.
1088 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1089 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1090 ac_prev
=x_includes
;;
1091 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1092 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1093 x_includes
=$ac_optarg ;;
1095 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1096 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1097 ac_prev
=x_libraries
;;
1098 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1099 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1100 x_libraries
=$ac_optarg ;;
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1108 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\
$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 if test -n "$ac_prev"; then
1128 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1133 # Be sure to have absolute directory names.
1134 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val
=\$
$ac_var
1141 [\\/$
]* | ?
:[\\/]* ) continue;;
1142 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1153 target
=$target_alias
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x
; then
1157 if test "x$build_alias" = x
; then
1158 cross_compiling
=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1167 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1169 test "$silent" = yes && exec 6>/dev
/null
1172 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di
=`ls -di .` &&
1174 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted
=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir
=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1214 ac_srcdir_defaulted
=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1221 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1234 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 for ac_var
in $ac_precious_vars; do
1237 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1239 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1250 \`configure' configures python 2.7 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive
) echo "Configuration of python 2.7:";;
1316 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1317 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1318 --enable-universalsdk[=SDKDIR
]
1319 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1320 --enable-framework[=INSTALLDIR
]
1321 Build
(MacOSX|Darwin
) framework
1322 --enable-shared disable
/enable building shared python library
1323 --enable-profiling enable C-level code profiling
1324 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1325 --enable-ipv6 Enable ipv6
(with ipv4
) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS
]
1328 use big digits
for Python longs
[BITS
=30]
1329 --enable-unicode[=ucs
[24]]
1330 Enable Unicode
strings (default is
yes)
1333 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1334 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1335 --with-universal-archs=ARCH
1336 select architectures
for universal build
("32-bit",
1338 --with-framework-name=FRAMEWORK
1339 specify an alternate name of the framework built
1340 with
--enable-framework
1341 --without-gcc never use gcc
1342 --with-cxx-main=<compiler
>
1343 compile main
() and link python executable with C
++
1345 --with-suffix=.exe
set executable suffix
1346 --with-pydebug build with Py_DEBUG defined
1347 --with-libs='lib1 ...' link against additional libs
1348 --with-system-ffi build _ctypes module using an installed ffi library
1349 --with-dbmliborder=db1
:db2
:...
1350 order to check db backends
for dbm. Valid value is a
1351 colon separated string with the backend names
1352 `ndbm', `gdbm
' and `bdb'.
1353 --with-signal-module disable
/enable signal module
1354 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1355 --with(out
)-threads[=DIRECTORY
]
1356 disable
/enable thread support
1357 --with(out
)-thread[=DIRECTORY
]
1358 deprecated
; use
--with(out
)-threads
1359 --with-pth use GNU pth threading libraries
1360 --with(out
)-doc-strings disable
/enable documentation
strings
1361 --with(out
)-tsc enable
/disable timestamp counter profile
1362 --with(out
)-pymalloc disable
/enable specialized mallocs
1363 --with-wctype-functions use wctype.h functions
1364 --with-fpectl enable SIGFPE catching
1365 --with-libm=STRING math library
1366 --with-libc=STRING C library
1368 Some influential environment variables
:
1369 CC C compiler
command
1370 CFLAGS C compiler flags
1371 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1372 nonstandard directory
<lib dir
>
1373 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1374 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1375 you have headers
in a nonstandard directory
<include dir
>
1378 Use these variables to override the choices made by
`configure' or to help
1379 it to find libraries and programs with nonstandard names/locations.
1381 Report bugs to <http://www.python.org/python-bugs>.
1386 if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1389 test -d "$ac_dir" || continue
1393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 ac_abs_top_builddir=$ac_pwd
1404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405 # for backward compatibility:
1406 ac_top_builddir=$ac_top_build_prefix
1409 .) # We are building in place.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for guested configure.
1426 if test -f "$ac_srcdir/configure.gnu"; then
1428 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1429 elif test -f "$ac_srcdir/configure"; then
1431 $SHELL "$ac_srcdir/configure" --help=recursive
1433 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 cd "$ac_pwd" || { ac_status=$?; break; }
1439 test -n "$ac_init_help" && exit $ac_status
1440 if $ac_init_version; then
1442 python configure 2.7
1443 generated by GNU Autoconf 2.61
1445 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1446 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1447 This configure script is free software; the Free Software Foundation
1448 gives unlimited permission to copy, distribute and modify it.
1452 cat >config.log <<_ACEOF
1453 This file contains any messages produced by compilers while
1454 running configure, to aid debugging if configure makes a mistake.
1456 It was created by python $as_me 2.7, which was
1457 generated by GNU Autoconf 2.61. Invocation command line was
1469 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1470 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1471 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1472 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1473 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1475 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1476 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1478 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1479 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1480 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1481 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1482 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1483 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1484 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir=.
1493 echo "PATH: $as_dir"
1509 # Keep a trace of the command line.
1510 # Strip out --no-create and --no-recursion so they do not pile up.
1511 # Strip out --silent because we don't want to record it for future runs.
1512 # Also quote any args containing shell meta-characters.
1513 # Make two passes to allow for proper duplicate-argument suppression.
1517 ac_must_keep_next=false
1523 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1525 | -silent | --silent | --silen | --sile | --sil)
1528 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1531 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1533 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1534 if test $ac_must_keep_next = true; then
1535 ac_must_keep_next=false # Got value, back to normal.
1538 *=* | --config-cache | -C | -disable-* | --disable-* \
1539 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1540 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1541 | -with-* | --with-* | -without-* | --without-* | --x)
1542 case "$ac_configure_args0 " in
1543 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546 -* ) ac_must_keep_next=true ;;
1549 ac_configure_args="$ac_configure_args '$ac_arg'"
1554 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1555 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1557 # When interrupted or exit'd, cleanup temporary files, and complete
1558 # config.log. We remove comments because anyway the quotes in there
1559 # would cause problems or look ugly.
1560 # WARNING: Use '\'' to represent an apostrophe within the trap.
1561 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1562 trap 'exit_status=$?
1563 # Save into config.log some information that might help in debugging.
1568 ## ---------------- ##
1569 ## Cache variables. ##
1570 ## ---------------- ##
1573 # The following way of writing the cache mishandles newlines in values,
1575 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1576 eval ac_val=\$$ac_var
1580 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1581 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1584 _ | IFS | as_nl) ;; #(
1585 *) $as_unset $ac_var ;;
1590 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1591 *${as_nl}ac_space=\ *)
1593 "s/'\''/'\''\\\\'\'''\''/g;
1594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1605 ## ----------------- ##
1606 ## Output variables. ##
1607 ## ----------------- ##
1610 for ac_var in $ac_subst_vars
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1620 if test -n "$ac_subst_files"; then
1622 ## ------------------- ##
1623 ## File substitutions. ##
1624 ## ------------------- ##
1627 for ac_var in $ac_subst_files
1629 eval ac_val=\$$ac_var
1631 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1633 echo "$ac_var='\''$ac_val'\''"
1638 if test -s confdefs.h; then
1648 test "$ac_signal" != 0 &&
1649 echo "$as_me: caught signal $ac_signal"
1650 echo "$as_me: exit $exit_status"
1652 rm -f core *.core core.conftest.* &&
1653 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1656 for ac_signal in 1 2 13 15; do
1657 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1662 rm -f -r conftest* confdefs.h
1664 # Predefined preprocessor variables.
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_NAME "$PACKAGE_NAME"
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_STRING "$PACKAGE_STRING"
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691 # Let the site file select an alternate cache file if it wants to.
1692 # Prefer explicitly selected file to automatically selected ones.
1693 if test -n "$CONFIG_SITE"; then
1694 set x "$CONFIG_SITE"
1695 elif test "x$prefix" != xNONE; then
1696 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1698 set x "$ac_default_prefix/share/config.site" \
1699 "$ac_default_prefix/etc/config.site"
1704 if test -r "$ac_site_file"; then
1705 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1706 echo "$as_me: loading site script $ac_site_file" >&6;}
1707 sed 's/^/| /' "$ac_site_file" >&5
1712 if test -r "$cache_file"; then
1713 # Some versions of bash will fail to source /dev/null (special
1714 # files actually), so we avoid doing that.
1715 if test -f "$cache_file"; then
1716 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1717 echo "$as_me: loading cache $cache_file" >&6;}
1719 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1720 *) . "./$cache_file";;
1724 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1725 echo "$as_me: creating cache $cache_file" >&6;}
1729 # Check that the precious variables saved in the cache have kept the same
1731 ac_cache_corrupted=false
1732 for ac_var in $ac_precious_vars; do
1733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1734 eval ac_new_set=\$ac_env_${ac_var}_set
1735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1736 eval ac_new_val=\$ac_env_${ac_var}_value
1737 case $ac_old_set,$ac_new_set in
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1740 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1744 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
1749 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1750 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1751 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1752 echo "$as_me: former value
: $ac_old_val" >&2;}
1753 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1754 echo "$as_me: current value
: $ac_new_val" >&2;}
1755 ac_cache_corrupted=:
1758 # Pass precious variables to config.status.
1759 if test "$ac_new_set" = set; then
1761 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1762 *) ac_arg=$ac_var=$ac_new_val ;;
1764 case " $ac_configure_args " in
1765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1766 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1770 if $ac_cache_corrupted; then
1771 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1772 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1773 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1774 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1775 { (exit 1); exit 1; }; }
1803 ac_cpp='$CPP $CPPFLAGS'
1804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810 ac_config_headers="$ac_config_headers pyconfig.h"
1814 if test "$prefix" != "/"; then
1815 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1823 # We don't use PACKAGE_ variables, and they cause conflicts
1824 # with other autoconf-based packages that include Python.h
1825 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1827 mv confdefs.h.new confdefs.h
1835 # The later defininition of _XOPEN_SOURCE disables certain features
1836 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1838 cat >>confdefs.h <<\_ACEOF
1839 #define _GNU_SOURCE 1
1843 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1844 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1847 cat >>confdefs.h <<\_ACEOF
1848 #define _NETBSD_SOURCE 1
1852 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1853 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1856 cat >>confdefs.h <<\_ACEOF
1857 #define __BSD_VISIBLE 1
1861 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1862 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1864 cat >>confdefs.h <<\_ACEOF
1865 #define _BSD_TYPES 1
1869 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1870 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1873 cat >>confdefs.h <<\_ACEOF
1874 #define _DARWIN_C_SOURCE 1
1879 define_xopen_source=yes
1881 # Arguments passed to configure.
1883 CONFIG_ARGS="$ac_configure_args"
1885 # Check whether --enable-universalsdk was given.
1886 if test "${enable_universalsdk+set}" = set; then
1887 enableval=$enable_universalsdk;
1890 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1896 enable_universalsdk=
1899 UNIVERSALSDK=$enableval
1906 enable_universalsdk=
1915 UNIVERSAL_ARCHS="32-bit"
1916 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1917 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1919 # Check whether --with-universal-archs was given.
1920 if test "${with_universal_archs+set}" = set; then
1921 withval=$with_universal_archs;
1922 { echo "$as_me:$LINENO: result: $withval" >&5
1923 echo "${ECHO_T}$withval" >&6; }
1924 UNIVERSAL_ARCHS="$withval"
1928 { echo "$as_me:$LINENO: result: 32-bit" >&5
1929 echo "${ECHO_T}32-bit" >&6; }
1937 # Check whether --with-framework-name was given.
1938 if test "${with_framework_name+set}" = set; then
1939 withval=$with_framework_name;
1940 PYTHONFRAMEWORK=${withval}
1941 PYTHONFRAMEWORKDIR=${withval}.framework
1942 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1946 PYTHONFRAMEWORK=Python
1947 PYTHONFRAMEWORKDIR=Python.framework
1948 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1952 # Check whether --enable-framework was given.
1953 if test "${enable_framework+set}" = set; then
1954 enableval=$enable_framework;
1957 enableval=/Library/Frameworks
1962 PYTHONFRAMEWORKDIR=no-framework
1963 PYTHONFRAMEWORKPREFIX=
1964 PYTHONFRAMEWORKINSTALLDIR=
1965 FRAMEWORKINSTALLFIRST=
1966 FRAMEWORKINSTALLLAST=
1967 FRAMEWORKALTINSTALLFIRST=
1968 FRAMEWORKALTINSTALLLAST=
1969 if test "x${prefix}" = "xNONE"; then
1970 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1972 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1977 PYTHONFRAMEWORKPREFIX=$enableval
1978 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1979 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1980 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1981 if test "$UNIVERSAL_ARCHS" = "all"
1983 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1984 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1986 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1987 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1990 if test "x${prefix}" = "xNONE" ; then
1991 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1993 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1995 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1997 # Add files for Mac specific code to the list of output
1999 ac_config_files="$ac_config_files Mac/Makefile"
2001 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2003 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2005 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2007 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2014 PYTHONFRAMEWORKDIR=no-framework
2015 PYTHONFRAMEWORKPREFIX=
2016 PYTHONFRAMEWORKINSTALLDIR=
2017 FRAMEWORKINSTALLFIRST=
2018 FRAMEWORKINSTALLLAST=
2019 FRAMEWORKALTINSTALLFIRST=
2020 FRAMEWORKALTINSTALLLAST=
2021 if test "x${prefix}" = "xNONE" ; then
2022 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2024 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2028 if test "$UNIVERSAL_ARCHS" = "all"
2030 FRAMEWORKINSTALLLAST=update4wayuniversal
2031 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2048 ## AC_HELP_STRING(--with-dyld,
2049 ## Use (OpenStep|Rhapsody) dynamic linker))
2051 # Set name for machine-dependent library files
2053 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2054 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2055 if test -z "$MACHDEP"
2057 ac_sys_system=`uname
-s`
2058 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2059 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2060 ac_sys_release=`uname
-v`
2062 ac_sys_release=`uname
-r`
2064 ac_md_system=`echo $ac_sys_system |
2065 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2066 ac_md_release=`echo $ac_sys_release |
2067 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2068 MACHDEP="$ac_md_system$ac_md_release"
2071 cygwin*) MACHDEP="cygwin";;
2072 darwin*) MACHDEP="darwin";;
2073 atheos*) MACHDEP="atheos";;
2074 irix646) MACHDEP="irix6";;
2075 '') MACHDEP="unknown";;
2079 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2080 # disable features if it is defined, without any means to access these
2081 # features as extensions. For these systems, we skip the definition of
2082 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2083 # some feature, make sure there is no alternative way to access this
2084 # feature. Also, when using wildcards, make sure you have verified the
2085 # need for not defining _XOPEN_SOURCE on all systems matching the
2086 # wildcard, and that the wildcard does not include future systems
2087 # (which may remove their limitations).
2088 case $ac_sys_system/$ac_sys_release in
2089 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2090 # even though select is a POSIX function. Reported by J. Ribbens.
2091 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2092 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2093 define_xopen_source=no
2094 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2095 # also defined. This can be overridden by defining _BSD_SOURCE
2096 # As this has a different meaning on Linux, only define it on OpenBSD
2098 cat >>confdefs.h <<\_ACEOF
2099 #define _BSD_SOURCE 1
2103 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2104 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2106 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2107 define_xopen_source=no;;
2108 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2109 # of union __?sigval. Reported by Stuart Bishop.
2111 define_xopen_source=no;;
2112 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2113 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2114 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2115 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2116 define_xopen_source=no;;
2117 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2118 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2120 define_xopen_source=no;;
2121 # On FreeBSD 4, the math functions C89 does not cover are never defined
2122 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2124 define_xopen_source=no;;
2125 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2126 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2127 # identifies itself as Darwin/7.*
2128 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2129 # disables platform specific features beyond repair.
2130 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2131 # has no effect, don't bother defining them
2133 define_xopen_source=no;;
2134 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2135 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2136 # or has another value. By not (re)defining it, the defaults come in place.
2138 define_xopen_source=no;;
2140 if test `uname
-r` -eq 1; then
2141 define_xopen_source=no
2144 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2145 # defining NI_NUMERICHOST.
2147 define_xopen_source=no
2152 if test $define_xopen_source = yes
2154 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2155 # defined precisely as g++ defines it
2156 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2158 case $ac_sys_system/$ac_sys_release in
2159 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2161 cat >>confdefs.h <<\_ACEOF
2162 #define _XOPEN_SOURCE 500
2168 cat >>confdefs.h <<\_ACEOF
2169 #define _XOPEN_SOURCE 600
2175 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2176 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2177 # several APIs are not declared. Since this is also needed in some
2178 # cases for HP-UX, we define it globally.
2179 # except for Solaris 10, where it must not be defined,
2180 # as it implies XPG4.2
2181 case $ac_sys_system/$ac_sys_release in
2186 cat >>confdefs.h <<\_ACEOF
2187 #define _XOPEN_SOURCE_EXTENDED 1
2194 cat >>confdefs.h <<\_ACEOF
2195 #define _POSIX_C_SOURCE 200112L
2202 # SGI compilers allow the specification of the both the ABI and the
2203 # ISA on the command line. Depending on the values of these switches,
2204 # different and often incompatable code will be generated.
2206 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2207 # thus supply support for various ABI/ISA combinations. The MACHDEP
2208 # variable is also adjusted.
2211 if test ! -z "$SGI_ABI"
2214 LDFLAGS="$SGI_ABI $LDFLAGS"
2215 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2217 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2218 echo "${ECHO_T}$MACHDEP" >&6; }
2220 # And add extra plat-mac for darwin
2223 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2224 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2225 if test -z "$EXTRAPLATDIR"
2229 EXTRAPLATDIR="\$(PLATMACDIRS)"
2230 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2238 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2239 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2241 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2242 # it may influence the way we can build extensions, so distutils
2246 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2247 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2249 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2250 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2251 ac_sys_machine=`uname
-m`
2252 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2253 echo "${ECHO_T}$ac_sys_machine" >&6; }
2255 # checks for alternative programs
2257 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2258 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2259 # just to get things to compile and link. Users are free to override OPT
2260 # when running configure or make. The build should not break if they do.
2261 # BASECFLAGS should generally not be messed with, however.
2263 # XXX shouldn't some/most/all of this code be merged with the stuff later
2264 # on that fiddles with OPT and BASECFLAGS?
2265 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2266 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2268 # Check whether --with-gcc was given.
2269 if test "${with_gcc+set}" = set; then
2277 without_gcc=$withval;;
2281 case $ac_sys_system in
2285 case $BE_HOST_CPU in
2289 BASECFLAGS="$BASECFLAGS -export pragma"
2291 LDFLAGS="$LDFLAGS -nodup"
2299 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2300 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2301 { (exit 1); exit 1; }; }
2304 AR="\$(srcdir)/Modules/ar_beos"
2314 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2315 echo "${ECHO_T}$without_gcc" >&6; }
2317 # If the user switches compilers, we can't believe the cache
2318 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2320 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2321 (it is also a good idea to do 'make clean' before compiling)" >&5
2322 echo "$as_me: error: cached CC is different -- throw away $cache_file
2323 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2324 { (exit 1); exit 1; }; }
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 if test -n "$CC"; then
2362 { echo "$as_me:$LINENO: result: $CC" >&5
2363 echo "${ECHO_T}$CC" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2371 if test -z "$ac_cv_prog_CC"; then
2373 # Extract the first word of "gcc", so it can be a program name with args.
2374 set dummy gcc; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 if test -n "$ac_ct_CC"; then
2381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_ac_ct_CC="gcc"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2401 if test -n "$ac_ct_CC"; then
2402 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2403 echo "${ECHO_T}$ac_ct_CC" >&6; }
2405 { echo "$as_me:$LINENO: result: no" >&5
2406 echo "${ECHO_T}no" >&6; }
2409 if test "x$ac_ct_CC" = x; then
2412 case $cross_compiling:$ac_tool_warned in
2414 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&5
2417 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet. If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2420 ac_tool_warned=yes ;;
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}cc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC="${ac_tool_prefix}cc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2469 if test -z "$CC"; then
2470 # Extract the first word of "cc", so it can be a program name with args.
2471 set dummy cc; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC="$CC" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2489 ac_prog_rejected=yes
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 if test $ac_prog_rejected = yes; then
2501 # We found a bogon in the path, so make sure we never use it.
2502 set dummy $ac_cv_prog_CC
2504 if test $# != 0; then
2505 # We chose a different compiler from the bogus one.
2506 # However, it has the same basename, so the bogon will be chosen
2507 # first if we set CC to just the basename; use the full file name.
2509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2515 if test -n "$CC"; then
2516 { echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6; }
2519 { echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6; }
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 for ac_prog in cl.exe
2529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 if test -n "$CC"; then
2558 { echo "$as_me:$LINENO: result: $CC" >&5
2559 echo "${ECHO_T}$CC" >&6; }
2561 { echo "$as_me:$LINENO: result: no" >&5
2562 echo "${ECHO_T}no" >&6; }
2566 test -n "$CC" && break
2569 if test -z "$CC"; then
2571 for ac_prog in cl.exe
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy $ac_prog; ac_word=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590 ac_cv_prog_ac_ct_CC="$ac_prog"
2591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2603 echo "${ECHO_T}$ac_ct_CC" >&6; }
2605 { echo "$as_me:$LINENO: result: no" >&5
2606 echo "${ECHO_T}no" >&6; }
2610 test -n "$ac_ct_CC" && break
2613 if test "x$ac_ct_CC" = x; then
2616 case $cross_compiling:$ac_tool_warned in
2618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2619 whose name does not start with the host triplet. If you think this
2620 configuration is useful to you, please write to autoconf@gnu.org." >&5
2621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2622 whose name does not start with the host triplet. If you think this
2623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2624 ac_tool_warned=yes ;;
2633 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2634 See \`config.log
' for more details." >&5
2635 echo "$as_me: error: no acceptable C compiler found in \$PATH
2636 See \`config.log' for more details.
" >&2;}
2637 { (exit 1); exit 1; }; }
2639 # Provide some information about the compiler.
2640 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2641 ac_compiler=`set X $ac_compile; echo $2`
2642 { (ac_try="$ac_compiler --version >&5"
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler --version >&5") 2>&5
2650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -v >&5"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler -v >&5") 2>&5
2660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2661 (exit $ac_status); }
2662 { (ac_try="$ac_compiler -V >&5"
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compiler -V >&5") 2>&5
2670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2671 (exit $ac_status); }
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 ac_clean_files_save=$ac_clean_files
2689 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2690 # Try to create an executable without -o first, disregard a.out.
2691 # It will help us diagnose broken compilers, and finding out an intuition
2693 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2694 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2695 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2697 # List of possible output files, starting from the most likely.
2698 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2699 # only as a last resort. b.out is created by i960 compilers.
2700 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2702 # The IRIX 6 linker writes into existing files which may not be
2703 # executable, retaining their permissions. Remove them first so a
2704 # subsequent execution test works.
2706 for ac_file in $ac_files
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2710 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2715 if { (ac_try="$ac_link_default"
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2721 (eval "$ac_link_default") 2>&5
2723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2724 (exit $ac_status); }; then
2725 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2726 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2727 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2728 # so that the user can short-circuit this test for compilers unknown to
2730 for ac_file in $ac_files ''
2732 test -f "$ac_file" || continue
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2737 # We found the default executable, but exeext='' is most
2741 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2743 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2745 # We set ac_cv_exeext here because the later test for it is not
2746 # safe: cross compilers may not add the suffix if given an `-o'
2747 # argument, so we may need to know it at that point already.
2748 # Even if this section looks crufty: it has the advantage of
2755 test "$ac_cv_exeext" = no && ac_cv_exeext=
2761 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2762 echo "${ECHO_T}$ac_file" >&6; }
2763 if test -z "$ac_file"; then
2764 echo "$as_me: failed program was
:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2768 See \
`config.log' for more details." >&5
2769 echo "$as_me: error: C compiler cannot create executables
2770 See \`config.log
' for more details." >&2;}
2771 { (exit 77); exit 77; }; }
2774 ac_exeext=$ac_cv_exeext
2776 # Check that the compiler produces executables we can run. If not, either
2777 # the compiler is broken, or we cross compile.
2778 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2779 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2780 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2781 # If not cross compiling, check that we can run a simple program.
2782 if test "$cross_compiling" != yes; then
2783 if { ac_try='.
/$ac_file'
2784 { (case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_try") 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2795 if test "$cross_compiling" = maybe; then
2798 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2799 If you meant to cross compile, use \`--host'.
2800 See \
`config.log' for more details." >&5
2801 echo "$as_me: error: cannot run C compiled programs.
2802 If you meant to cross compile, use \`--host'.
2803 See \`config.log' for more details.
" >&2;}
2804 { (exit 1); exit 1; }; }
2808 { echo "$as_me:$LINENO: result
: yes" >&5
2809 echo "${ECHO_T}yes" >&6; }
2811 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2812 ac_clean_files=$ac_clean_files_save
2813 # Check that the compiler produces executables we can run. If not, either
2814 # the compiler is broken, or we cross compile.
2815 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2816 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2817 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2818 echo "${ECHO_T}$cross_compiling" >&6; }
2820 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2821 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2822 if { (ac_try="$ac_link"
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_link") 2>&5
2830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2831 (exit $ac_status); }; then
2832 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2833 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2834 # work properly (i.e., refer to `conftest.exe'), while it won't with
2836 for ac_file in conftest.exe conftest conftest.*; do
2837 test -f "$ac_file" || continue
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2847 See \
`config.log' for more details." >&5
2848 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2849 See \`config.log
' for more details." >&2;}
2850 { (exit 1); exit 1; }; }
2853 rm -f conftest$ac_cv_exeext
2854 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2855 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2857 rm -f conftest.$ac_ext
2858 EXEEXT=$ac_cv_exeext
2860 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2861 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2862 if test "${ac_cv_objext+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 cat >conftest.$ac_ext <<_ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2880 rm -f conftest.o conftest.obj
2881 if { (ac_try="$ac_compile"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compile") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; then
2891 for ac_file in conftest.o conftest.obj conftest.*; do
2892 test -f "$ac_file" || continue;
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2895 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2900 echo "$as_me: failed program was:" >&5
2901 sed 's
/^
/|
/' conftest.$ac_ext >&5
2903 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2904 See \`config.log' for more details.
" >&5
2905 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2906 See \
`config.log' for more details." >&2;}
2907 { (exit 1); exit 1; }; }
2910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2912 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2913 echo "${ECHO_T}$ac_cv_objext" >&6; }
2914 OBJEXT=$ac_cv_objext
2916 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2917 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2918 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2939 rm -f conftest.$ac_objext
2940 if { (ac_try="$ac_compile"
2942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2943 *) ac_try_echo
=$ac_try;;
2945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2946 (eval "$ac_compile") 2>conftest.er1
2948 grep -v '^ *+' conftest.er1
>conftest.err
2950 cat conftest.err
>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } && {
2953 test -z "$ac_c_werror_flag" ||
2954 test ! -s conftest.err
2955 } && test -s conftest.
$ac_objext; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.
$ac_ext >&5
2964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2965 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2968 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2969 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2970 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2971 ac_test_CFLAGS
=${CFLAGS+set}
2972 ac_save_CFLAGS
=$CFLAGS
2973 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2974 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2975 if test "${ac_cv_prog_cc_g+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 ac_save_c_werror_flag
=$ac_c_werror_flag
2979 ac_c_werror_flag
=yes
2982 cat >conftest.
$ac_ext <<_ACEOF
2985 cat confdefs.h
>>conftest.
$ac_ext
2986 cat >>conftest.
$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2997 rm -f conftest.
$ac_objext
2998 if { (ac_try
="$ac_compile"
3000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && {
3011 test -z "$ac_c_werror_flag" ||
3012 test ! -s conftest.err
3013 } && test -s conftest.$ac_objext; then
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3039 *) ac_try_echo
=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1
>conftest.err
3046 cat conftest.err
>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } && {
3049 test -z "$ac_c_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.
$ac_objext; then
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.
$ac_ext >&5
3057 ac_c_werror_flag
=$ac_save_c_werror_flag
3059 cat >conftest.
$ac_ext <<_ACEOF
3062 cat confdefs.h
>>conftest.
$ac_ext
3063 cat >>conftest.
$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3074 rm -f conftest.
$ac_objext
3075 if { (ac_try
="$ac_compile"
3077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } && {
3088 test -z "$ac_c_werror_flag" ||
3089 test ! -s conftest.err
3090 } && test -s conftest.$ac_objext; then
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3108 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3109 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3110 if test "$ac_test_CFLAGS" = set; then
3111 CFLAGS=$ac_save_CFLAGS
3112 elif test $ac_cv_prog_cc_g = yes; then
3113 if test "$GCC" = yes; then
3119 if test "$GCC" = yes; then
3125 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3126 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3127 if test "${ac_cv_prog_cc_c89+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 ac_cv_prog_cc_c89=no
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3140 #include <sys/types.h>
3141 #include <sys/stat.h>
3142 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3143 struct buf { int x; };
3144 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3145 static char *e (p, i)
3151 static char *f (char * (*g) (char **, int), char **p, ...)
3156 s = g (p, va_arg (v,int));
3161 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3162 function prototypes and stuff, but not '\xHH' hex character constants.
3163 These don't provoke an error unfortunately, instead are silently treated
3164 as 'x'. The following induces an error, until -std is added to get
3165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3166 array size at least. It's necessary to write '\x00'==0 to get something
3167 that's true only with -std. */
3168 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3170 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3171 inside strings and character constants. */
3173 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3175 int test (int i, double x);
3176 struct s1 {int (*f) (int a);};
3177 struct s2 {int (*f) (double a);};
3178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3192 CC="$ac_save_CC $ac_arg"
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3197 *) ac_try_echo
=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3202 grep -v '^ *+' conftest.er1
>conftest.err
3204 cat conftest.err
>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } && {
3207 test -z "$ac_c_werror_flag" ||
3208 test ! -s conftest.err
3209 } && test -s conftest.
$ac_objext; then
3210 ac_cv_prog_cc_c89
=$ac_arg
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.
$ac_ext >&5
3218 rm -f core conftest.err conftest.
$ac_objext
3219 test "x$ac_cv_prog_cc_c89" != "xno" && break
3221 rm -f conftest.
$ac_ext
3226 case "x$ac_cv_prog_cc_c89" in
3228 { echo "$as_me:$LINENO: result: none needed" >&5
3229 echo "${ECHO_T}none needed" >&6; } ;;
3231 { echo "$as_me:$LINENO: result: unsupported" >&5
3232 echo "${ECHO_T}unsupported" >&6; } ;;
3234 CC
="$CC $ac_cv_prog_cc_c89"
3235 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3236 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3241 ac_cpp
='$CPP $CPPFLAGS'
3242 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3249 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3250 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3252 # Check whether --with-cxx_main was given.
3253 if test "${with_cxx_main+set}" = set; then
3254 withval
=$with_cxx_main;
3257 no
) with_cxx_main
=no
3259 yes) with_cxx_main
=yes
3261 *) with_cxx_main
=yes
3275 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3276 echo "${ECHO_T}$with_cxx_main" >&6; }
3282 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3283 set dummy g
++; ac_word
=$2
3284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3286 if test "${ac_cv_path_CXX+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3295 for as_dir
in notfound
3298 test -z "$as_dir" && as_dir
=.
3299 for ac_exec_ext
in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3314 if test -n "$CXX"; then
3315 { echo "$as_me:$LINENO: result: $CXX" >&5
3316 echo "${ECHO_T}$CXX" >&6; }
3318 { echo "$as_me:$LINENO: result: no" >&5
3319 echo "${ECHO_T}no" >&6; }
3323 cc
) # Extract the first word of "c++", so it can be a program name with args.
3324 set dummy c
++; ac_word
=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_path_CXX+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3336 for as_dir
in notfound
3339 test -z "$as_dir" && as_dir
=.
3340 for ac_exec_ext
in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3355 if test -n "$CXX"; then
3356 { echo "$as_me:$LINENO: result: $CXX" >&5
3357 echo "${ECHO_T}$CXX" >&6; }
3359 { echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6; }
3365 if test "$CXX" = "notfound"
3372 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3374 # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy
$ac_prog; ac_word
=$2
3376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3378 if test "${ac_cv_prog_CXX+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 if test -n "$CXX"; then
3382 ac_cv_prog_CXX
="$CXX" # 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 ac_cv_prog_CXX
="$ac_prog"
3392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 if test -n "$CXX"; then
3403 { echo "$as_me:$LINENO: result: $CXX" >&5
3404 echo "${ECHO_T}$CXX" >&6; }
3406 { echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6; }
3411 test -n "$CXX" && break
3413 test -n "$CXX" || CXX
="notfound"
3415 if test "$CXX" = "notfound"
3420 if test "$preset_cxx" != "$CXX"
3422 { echo "$as_me:$LINENO: WARNING:
3424 By default, distutils will build C++ extension modules with \"$CXX\".
3425 If this is not intended, then set CXX on the configure command line.
3427 echo "$as_me: WARNING:
3429 By default, distutils will build C++ extension modules with \"$CXX\".
3430 If this is not intended, then set CXX on the configure command line.
3435 # checks for UNIX variants that set C preprocessor variables
3438 ac_cpp
='$CPP $CPPFLAGS'
3439 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3442 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3443 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3444 # On Suns, sometimes $CPP names a directory.
3445 if test -n "$CPP" && test -d "$CPP"; then
3448 if test -z "$CPP"; then
3449 if test "${ac_cv_prog_CPP+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 # Double quotes because CPP needs to be expanded
3453 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3456 for ac_c_preproc_warn_flag
in '' yes
3458 # Use a header file that comes with gcc, so configuring glibc
3459 # with a fresh cross-compiler works.
3460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3461 # <limits.h> exists even on freestanding compilers.
3462 # On the NeXT, cc -E runs the code through the compiler's parser,
3463 # not just through cpp. "Syntax error" is here to catch this case.
3464 cat >conftest.
$ac_ext <<_ACEOF
3467 cat confdefs.h
>>conftest.
$ac_ext
3468 cat >>conftest.
$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3471 # include <limits.h>
3473 # include <assert.h>
3477 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } >/dev/null && {
3490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 # Broken: fails on valid input.
3502 rm -f conftest.err conftest.$ac_ext
3504 # OK, works on sane cases. Now check whether nonexistent headers
3505 # can be detected and how.
3506 cat >conftest.$ac_ext <<_ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3512 #include <ac_nonexistent.h>
3514 if { (ac_try="$ac_cpp conftest.$ac_ext"
3516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3517 *) ac_try_echo
=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1
>conftest.err
3524 cat conftest.err
>&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev
/null
&& {
3527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3528 test ! -s conftest.err
3530 # Broken: success on invalid input.
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.
$ac_ext >&5
3536 # Passes both tests.
3541 rm -f conftest.err conftest.
$ac_ext
3544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3545 rm -f conftest.err conftest.
$ac_ext
3546 if $ac_preproc_ok; then
3558 { echo "$as_me:$LINENO: result: $CPP" >&5
3559 echo "${ECHO_T}$CPP" >&6; }
3561 for ac_c_preproc_warn_flag
in '' yes
3563 # Use a header file that comes with gcc, so configuring glibc
3564 # with a fresh cross-compiler works.
3565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566 # <limits.h> exists even on freestanding compilers.
3567 # On the NeXT, cc -E runs the code through the compiler's parser,
3568 # not just through cpp. "Syntax error" is here to catch this case.
3569 cat >conftest.
$ac_ext <<_ACEOF
3572 cat confdefs.h
>>conftest.
$ac_ext
3573 cat >>conftest.
$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3576 # include <limits.h>
3578 # include <assert.h>
3582 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3590 grep -v '^ *+' conftest.er1 >conftest.err
3592 cat conftest.err >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } >/dev/null && {
3595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3596 test ! -s conftest.err
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 # Broken: fails on valid input.
3607 rm -f conftest.err conftest.$ac_ext
3609 # OK, works on sane cases. Now check whether nonexistent headers
3610 # can be detected and how.
3611 cat >conftest.$ac_ext <<_ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 #include <ac_nonexistent.h>
3619 if { (ac_try="$ac_cpp conftest.$ac_ext"
3621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3622 *) ac_try_echo
=$ac_try;;
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3627 grep -v '^ *+' conftest.er1
>conftest.err
3629 cat conftest.err
>&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev
/null
&& {
3632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3635 # Broken: success on invalid input.
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.
$ac_ext >&5
3641 # Passes both tests.
3646 rm -f conftest.err conftest.
$ac_ext
3649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3650 rm -f conftest.err conftest.
$ac_ext
3651 if $ac_preproc_ok; then
3654 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3655 See \`config.log' for more details." >&5
3656 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3657 See \`config.log' for more details." >&2;}
3658 { (exit 1); exit 1; }; }
3662 ac_cpp
='$CPP $CPPFLAGS'
3663 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3668 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3669 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3670 if test "${ac_cv_path_GREP+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 # Extract the first word of "grep ggrep" to use in msg output
3674 if test -z "$GREP"; then
3675 set dummy
grep ggrep
; ac_prog_name
=$2
3676 if test "${ac_cv_path_GREP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 ac_path_GREP_found
=false
3680 # Loop through the user's path and test for each of PROGNAME-LIST
3681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3682 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3685 test -z "$as_dir" && as_dir
=.
3686 for ac_prog
in grep ggrep
; do
3687 for ac_exec_ext
in '' $ac_executable_extensions; do
3688 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3689 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3690 # Check for GNU ac_path_GREP and select it if it is found.
3691 # Check for GNU $ac_path_GREP
3692 case `"$ac_path_GREP" --version 2>&1` in
3694 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3697 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3700 cat "conftest.in" "conftest.in" >"conftest.tmp"
3701 mv "conftest.tmp" "conftest.in"
3702 cp "conftest.in" "conftest.nl"
3703 echo 'GREP' >> "conftest.nl"
3704 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3705 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3706 ac_count
=`expr $ac_count + 1`
3707 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3708 # Best one so far, save it but keep looking for a better one
3709 ac_cv_path_GREP
="$ac_path_GREP"
3710 ac_path_GREP_max
=$ac_count
3712 # 10*(2^10) chars as input seems more than enough
3713 test $ac_count -gt 10 && break
3715 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3719 $ac_path_GREP_found && break 3
3729 GREP
="$ac_cv_path_GREP"
3730 if test -z "$GREP"; then
3731 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3732 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3733 { (exit 1); exit 1; }; }
3737 ac_cv_path_GREP
=$GREP
3742 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3743 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3744 GREP
="$ac_cv_path_GREP"
3747 { echo "$as_me:$LINENO: checking for egrep" >&5
3748 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3749 if test "${ac_cv_path_EGREP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3753 then ac_cv_path_EGREP
="$GREP -E"
3755 # Extract the first word of "egrep" to use in msg output
3756 if test -z "$EGREP"; then
3757 set dummy
egrep; ac_prog_name
=$2
3758 if test "${ac_cv_path_EGREP+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 ac_path_EGREP_found
=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3764 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3767 test -z "$as_dir" && as_dir
=.
3768 for ac_prog
in egrep; do
3769 for ac_exec_ext
in '' $ac_executable_extensions; do
3770 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3771 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3772 # Check for GNU ac_path_EGREP and select it if it is found.
3773 # Check for GNU $ac_path_EGREP
3774 case `"$ac_path_EGREP" --version 2>&1` in
3776 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3779 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3782 cat "conftest.in" "conftest.in" >"conftest.tmp"
3783 mv "conftest.tmp" "conftest.in"
3784 cp "conftest.in" "conftest.nl"
3785 echo 'EGREP' >> "conftest.nl"
3786 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3787 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3788 ac_count
=`expr $ac_count + 1`
3789 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3790 # Best one so far, save it but keep looking for a better one
3791 ac_cv_path_EGREP
="$ac_path_EGREP"
3792 ac_path_EGREP_max
=$ac_count
3794 # 10*(2^10) chars as input seems more than enough
3795 test $ac_count -gt 10 && break
3797 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3801 $ac_path_EGREP_found && break 3
3811 EGREP
="$ac_cv_path_EGREP"
3812 if test -z "$EGREP"; then
3813 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3814 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3815 { (exit 1); exit 1; }; }
3819 ac_cv_path_EGREP
=$EGREP
3825 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3826 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3827 EGREP
="$ac_cv_path_EGREP"
3831 { echo "$as_me:$LINENO: checking for AIX" >&5
3832 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3833 cat >conftest.
$ac_ext <<_ACEOF
3836 cat confdefs.h
>>conftest.
$ac_ext
3837 cat >>conftest.
$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3845 $EGREP "yes" >/dev
/null
2>&1; then
3846 { echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6; }
3848 cat >>confdefs.h
<<\_ACEOF
3849 #define _ALL_SOURCE 1
3853 { echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6; }
3860 # Check for unsupported systems
3861 case $ac_sys_system/$ac_sys_release in
3863 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3864 echo See README
for details.
3869 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3870 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3872 # Check whether --with-suffix was given.
3873 if test "${with_suffix+set}" = set; then
3874 withval
=$with_suffix;
3878 *) EXEEXT
=$withval;;
3882 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3883 echo "${ECHO_T}$EXEEXT" >&6; }
3885 # Test whether we're running on a non-case-sensitive system, in which
3886 # case we give a warning if no ext is given
3888 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3889 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3890 if test ! -d CaseSensitiveTestDir
; then
3891 mkdir CaseSensitiveTestDir
3894 if test -d casesensitivetestdir
3896 { echo "$as_me:$LINENO: result: yes" >&5
3897 echo "${ECHO_T}yes" >&6; }
3900 { echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6; }
3904 rmdir CaseSensitiveTestDir
3909 gcc
) CC
="$CC -D_HAVE_BSDI";;
3913 case $ac_sys_system in
3916 cc|
*/cc
) CC
="$CC -Ae";;
3920 cc
) CC
="$CC -Wl,-Bexport";;
3923 # Some functions have a prototype only with that define, e.g. confstr
3925 cat >>confdefs.h
<<\_ACEOF
3926 #define __EXTENSIONS__ 1
3934 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3935 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3936 if test -z "$LIBRARY"
3938 LIBRARY
='libpython$(VERSION).a'
3940 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3941 echo "${ECHO_T}$LIBRARY" >&6; }
3943 # LDLIBRARY is the name of the library to link against (as opposed to the
3944 # name of the library into which to insert object files). BLDLIBRARY is also
3945 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3946 # is blank as the main program is not linked directly against LDLIBRARY.
3947 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3948 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3949 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3950 # DLLLIBRARY is the shared (i.e., DLL) library.
3952 # RUNSHARED is used to run shared python without installed libraries
3954 # INSTSONAME is the name of the shared library that will be use to install
3955 # on the system - some systems like version suffix, others don't
3962 LDLIBRARY
="$LIBRARY"
3963 BLDLIBRARY
='$(LDLIBRARY)'
3964 INSTSONAME
='$(LDLIBRARY)'
3969 # LINKCC is the command that links the python executable -- default is $(CC).
3970 # If CXX is set, and if it is needed to link a main function that was
3971 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3972 # python might then depend on the C++ runtime
3973 # This is altered for AIX in order to build the export list before
3976 { echo "$as_me:$LINENO: checking LINKCC" >&5
3977 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3978 if test -z "$LINKCC"
3980 LINKCC
='$(PURIFY) $(MAINCC)'
3981 case $ac_sys_system in
3984 if test $ac_sys_release -ge 5 -o \
3985 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3988 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3990 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3992 # qcc must be used because the other compilers do not
3997 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3998 echo "${ECHO_T}$LINKCC" >&6; }
4000 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4001 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4002 # Check whether --enable-shared was given.
4003 if test "${enable_shared+set}" = set; then
4004 enableval
=$enable_shared;
4008 if test -z "$enable_shared"
4010 case $ac_sys_system in
4012 enable_shared
="yes";;
4014 enable_shared
="no";;
4017 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4018 echo "${ECHO_T}$enable_shared" >&6; }
4020 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4021 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4022 # Check whether --enable-profiling was given.
4023 if test "${enable_profiling+set}" = set; then
4024 enableval
=$enable_profiling; ac_save_cc
="$CC"
4026 if test "$cross_compiling" = yes; then
4027 ac_enable_profiling
="no"
4029 cat >conftest.
$ac_ext <<_ACEOF
4032 cat confdefs.h
>>conftest.
$ac_ext
4033 cat >>conftest.
$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4035 int main() { return 0; }
4037 rm -f conftest
$ac_exeext
4038 if { (ac_try
="$ac_link"
4040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_link") 2>&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4050 *) ac_try_echo
=$ac_try;;
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_enable_profiling
="yes"
4059 echo "$as_me: program exited with status $ac_status" >&5
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.
$ac_ext >&5
4064 ac_enable_profiling
="no"
4066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4073 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4074 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4076 case "$ac_enable_profiling" in
4078 BASECFLAGS
="-pg $BASECFLAGS"
4079 LDFLAGS
="-pg $LDFLAGS"
4083 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4084 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4086 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4087 # library that we build, but we do not want to link against it (we
4088 # will find it with a -framework option). For this reason there is an
4089 # extra variable BLDLIBRARY against which Python and the extension
4090 # modules are linked, BLDLIBRARY. This is normally the same as
4091 # LDLIBRARY, but empty for MacOSX framework builds.
4092 if test "$enable_framework"
4094 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4095 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4098 BLDLIBRARY
='$(LDLIBRARY)'
4101 # Other platforms follow
4102 if test $enable_shared = "yes"; then
4104 cat >>confdefs.h
<<\_ACEOF
4105 #define Py_ENABLE_SHARED 1
4108 case $ac_sys_system in
4110 LDLIBRARY
='libpython$(VERSION).so'
4113 LDLIBRARY
='libpython$(VERSION).dll.a'
4114 DLLLIBRARY
='libpython$(VERSION).dll'
4117 LDLIBRARY
='libpython$(VERSION).so'
4118 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4119 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4120 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4122 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4123 LDLIBRARY
='libpython$(VERSION).so'
4124 BLDLIBRARY
='-L. -lpython$(VERSION)'
4125 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4126 case $ac_sys_system in
4128 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4131 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4136 LDLIBRARY
='libpython$(VERSION).so'
4139 LDLIBRARY
='libpython$(VERSION).sl'
4142 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4143 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4146 LDLIBRARY
='libpython$(VERSION).so'
4147 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4148 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4151 LDLIBRARY
='libpython$(VERSION).so'
4152 BLDLIBRARY
='-L. -lpython$(VERSION)'
4153 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4156 LDLIBRARY
='libpython$(VERSION).dylib'
4157 BLDLIBRARY
='-L. -lpython$(VERSION)'
4158 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4162 else # shared is disabled
4163 case $ac_sys_system in
4165 BLDLIBRARY
='$(LIBRARY)'
4166 LDLIBRARY
='libpython$(VERSION).dll.a'
4171 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4172 echo "${ECHO_T}$LDLIBRARY" >&6; }
4174 if test -n "$ac_tool_prefix"; then
4175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4176 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4179 if test "${ac_cv_prog_RANLIB+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 if test -n "$RANLIB"; then
4183 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir
=.
4190 for ac_exec_ext
in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 RANLIB
=$ac_cv_prog_RANLIB
4203 if test -n "$RANLIB"; then
4204 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4205 echo "${ECHO_T}$RANLIB" >&6; }
4207 { echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6; }
4213 if test -z "$ac_cv_prog_RANLIB"; then
4214 ac_ct_RANLIB
=$RANLIB
4215 # Extract the first word of "ranlib", so it can be a program name with args.
4216 set dummy ranlib
; ac_word
=$2
4217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4219 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 if test -n "$ac_ct_RANLIB"; then
4223 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir
=.
4230 for ac_exec_ext
in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4243 if test -n "$ac_ct_RANLIB"; then
4244 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4245 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4247 { echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6; }
4251 if test "x$ac_ct_RANLIB" = x
; then
4254 case $cross_compiling:$ac_tool_warned in
4256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4257 whose name does not start with the host triplet. If you think this
4258 configuration is useful to you, please write to autoconf@gnu.org." >&5
4259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4260 whose name does not start with the host triplet. If you think this
4261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4262 ac_tool_warned
=yes ;;
4264 RANLIB
=$ac_ct_RANLIB
4267 RANLIB
="$ac_cv_prog_RANLIB"
4271 for ac_prog
in ar aal
4273 # Extract the first word of "$ac_prog", so it can be a program name with args.
4274 set dummy
$ac_prog; ac_word
=$2
4275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4277 if test "${ac_cv_prog_AR+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$AR"; then
4281 ac_cv_prog_AR
="$AR" # Let the user override the test.
4283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir
=.
4288 for ac_exec_ext
in '' $ac_executable_extensions; do
4289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290 ac_cv_prog_AR
="$ac_prog"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 if test -n "$AR"; then
4302 { echo "$as_me:$LINENO: result: $AR" >&5
4303 echo "${ECHO_T}$AR" >&6; }
4305 { echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6; }
4310 test -n "$AR" && break
4312 test -n "$AR" || AR
="ar"
4316 # Extract the first word of "svnversion", so it can be a program name with args.
4317 set dummy svnversion
; ac_word
=$2
4318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 if test -n "$SVNVERSION"; then
4324 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir
=.
4331 for ac_exec_ext
in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_prog_SVNVERSION
="found"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4344 SVNVERSION
=$ac_cv_prog_SVNVERSION
4345 if test -n "$SVNVERSION"; then
4346 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4347 echo "${ECHO_T}$SVNVERSION" >&6; }
4349 { echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6; }
4354 if test $SVNVERSION = found
4356 SVNVERSION
="svnversion \$(srcdir)"
4358 SVNVERSION
="echo exported"
4363 # install -d does not work on BSDI or HP-UX
4364 if test -z "$INSTALL"
4366 INSTALL
="${srcdir}/install-sh -c"
4370 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4371 if test -f "$ac_dir/install-sh"; then
4373 ac_install_sh
="$ac_aux_dir/install-sh -c"
4375 elif test -f "$ac_dir/install.sh"; then
4377 ac_install_sh
="$ac_aux_dir/install.sh -c"
4379 elif test -f "$ac_dir/shtool"; then
4381 ac_install_sh
="$ac_aux_dir/shtool install -c"
4385 if test -z "$ac_aux_dir"; then
4386 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4387 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4388 { (exit 1); exit 1; }; }
4391 # These three variables are undocumented and unsupported,
4392 # and are intended to be withdrawn in a future Autoconf release.
4393 # They can cause serious problems if a builder's source tree is in a directory
4394 # whose full name contains unusual characters.
4395 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4396 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4397 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4400 # Find a good install program. We prefer a C program (faster),
4401 # so one script is as good as another. But avoid the broken or
4402 # incompatible versions:
4403 # SysV /etc/install, /usr/sbin/install
4404 # SunOS /usr/etc/install
4405 # IRIX /sbin/install
4407 # AmigaOS /C/install, which installs bootblocks on floppy discs
4408 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4409 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4410 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4411 # OS/2's system install, which has a completely different semantic
4412 # ./install, which can be erroneously created by make from ./install.sh.
4413 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4414 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4415 if test -z "$INSTALL"; then
4416 if test "${ac_cv_path_install+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir
=.
4424 # Account for people who put trailing slashes in PATH elements.
4426 .
/ | .
// |
/cC
/* | \
4427 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4428 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4431 # OSF1 and SCO ODT 3.0 have their own names for install.
4432 # Don't use installbsd from OSF since it installs stuff as root
4434 for ac_prog
in ginstall scoinst
install; do
4435 for ac_exec_ext
in '' $ac_executable_extensions; do
4436 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4437 if test $ac_prog = install &&
4438 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4439 # AIX install. It has an incompatible calling convention.
4441 elif test $ac_prog = install &&
4442 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4443 # program-specific install script used by HP pwplus--don't use.
4446 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4459 if test "${ac_cv_path_install+set}" = set; then
4460 INSTALL
=$ac_cv_path_install
4462 # As a last resort, use the slow shell script. Don't cache a
4463 # value for INSTALL within a source directory, because that will
4464 # break other packages using the cache if that directory is
4465 # removed, or if the value is a relative name.
4466 INSTALL
=$ac_install_sh
4469 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4470 echo "${ECHO_T}$INSTALL" >&6; }
4472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4473 # It thinks the first close brace ends the variable substitution.
4474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4478 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4481 # Not every filesystem supports hard links
4483 if test -z "$LN" ; then
4484 case $ac_sys_system in
4486 CYGWIN
*) LN
="ln -s";;
4487 atheos
*) LN
="ln -s";;
4492 # Check for --with-pydebug
4493 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4494 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4496 # Check whether --with-pydebug was given.
4497 if test "${with_pydebug+set}" = set; then
4498 withval
=$with_pydebug;
4499 if test "$withval" != no
4502 cat >>confdefs.h
<<\_ACEOF
4506 { echo "$as_me:$LINENO: result: yes" >&5
4507 echo "${ECHO_T}yes" >&6; };
4509 else { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4513 { echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6; }
4518 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4519 # merged with this chunk of code?
4521 # Optimizer/debugger flags
4522 # ------------------------
4523 # (The following bit of code is complicated enough - please keep things
4524 # indented properly. Just pretend you're editing Python code. ;-)
4526 # There are two parallel sets of case statements below, one that checks to
4527 # see if OPT was set and one that does BASECFLAGS setting based upon
4528 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4531 # tweak OPT based on compiler and platform, only if the user didn't set
4532 # it on the command line
4538 if test "$CC" != 'g++' ; then
4539 STRICT_PROTO
="-Wstrict-prototypes"
4541 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4542 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4545 case $ac_cv_prog_cc_g in
4547 if test "$Py_DEBUG" = 'true' ; then
4548 # Optimization messes up debuggers, so turn it off for
4550 OPT
="-g -Wall $STRICT_PROTO"
4552 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4556 OPT
="-O3 -Wall $STRICT_PROTO"
4559 case $ac_sys_system in
4560 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4570 # The current (beta) Monterey compiler dies with optimizations
4571 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4572 case $ac_sys_system in
4582 # The -arch flags for universal builds on OSX
4583 UNIVERSAL_ARCH_FLAGS
=
4586 # tweak BASECFLAGS based on compiler and platform
4589 # Python violates C99 rules, by casting between incompatible
4590 # pointer types. GCC may generate bad code as a result of that,
4591 # so use -fno-strict-aliasing if supported.
4592 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4593 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4595 CC
="$CC -fno-strict-aliasing"
4596 if test "$cross_compiling" = yes; then
4597 ac_cv_no_strict_aliasing_ok
=no
4599 cat >conftest.
$ac_ext <<_ACEOF
4602 cat confdefs.h
>>conftest.
$ac_ext
4603 cat >>conftest.
$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 int main() { return 0; }
4607 rm -f conftest
$ac_exeext
4608 if { (ac_try
="$ac_link"
4610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_link") 2>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4618 { (case "(($ac_try" in
4619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4620 *) ac_try_echo
=$ac_try;;
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_try") 2>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
4627 ac_cv_no_strict_aliasing_ok
=yes
4629 echo "$as_me: program exited with status $ac_status" >&5
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.
$ac_ext >&5
4634 ac_cv_no_strict_aliasing_ok
=no
4636 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4641 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4642 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4643 if test $ac_cv_no_strict_aliasing_ok = yes
4645 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4648 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4649 # support. Without this, treatment of subnormals doesn't follow
4651 case $ac_sys_machine in
4653 BASECFLAGS
="$BASECFLAGS -mieee"
4657 case $ac_sys_system in
4659 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4661 # is there any other compiler on Darwin besides gcc?
4663 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4664 # used to be here, but non-Apple gcc doesn't accept them.
4667 if test "${enable_universalsdk}"; then
4668 UNIVERSAL_ARCH_FLAGS
=""
4669 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4670 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4673 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4674 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4676 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4677 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4678 ARCH_RUN_32BIT
="arch -i386 -ppc"
4681 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4682 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4683 { (exit 1); exit 1; }; }
4688 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4689 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4690 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4691 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4695 # Calculate the right deployment target for this build.
4697 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4698 if test ${cur_target} '>' 10.2; then
4701 if test "${UNIVERSAL_ARCHS}" = "all"; then
4702 # Ensure that the default platform for a 4-way
4703 # universal build is OSX 10.5, that's the first
4704 # OS release where 4-way builds make sense.
4707 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4709 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4710 # environment with a value that is the same as what we'll use
4711 # in the Makefile to ensure that we'll get the same compiler
4712 # environment during configure and build time.
4713 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4714 export MACOSX_DEPLOYMENT_TARGET
4715 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4719 BASECFLAGS
="$BASECFLAGS -mieee"
4725 case $ac_sys_system in
4726 OpenUNIX
*|UnixWare
*)
4727 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4730 BASECFLAGS
="$BASECFLAGS -ieee -std"
4733 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4739 if test "$Py_DEBUG" = 'true'; then
4745 if test "$ac_arch_flags"
4747 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4750 # disable check for icc since it seems to pass, but generates a warning
4753 ac_cv_opt_olimit_ok
=no
4756 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4757 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4758 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4762 CC
="$CC -OPT:Olimit=0"
4763 if test "$cross_compiling" = yes; then
4764 ac_cv_opt_olimit_ok
=no
4766 cat >conftest.
$ac_ext <<_ACEOF
4769 cat confdefs.h
>>conftest.
$ac_ext
4770 cat >>conftest.
$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 int main() { return 0; }
4774 rm -f conftest
$ac_exeext
4775 if { (ac_try
="$ac_link"
4777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_link") 2>&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4785 { (case "(($ac_try" in
4786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4787 *) ac_try_echo
=$ac_try;;
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_try") 2>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_opt_olimit_ok
=yes
4796 echo "$as_me: program exited with status $ac_status" >&5
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.
$ac_ext >&5
4801 ac_cv_opt_olimit_ok
=no
4803 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4810 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4811 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4812 if test $ac_cv_opt_olimit_ok = yes; then
4813 case $ac_sys_system in
4814 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4815 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4820 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4824 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4825 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4826 if test "${ac_cv_olimit_ok+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 CC
="$CC -Olimit 1500"
4831 if test "$cross_compiling" = yes; then
4834 cat >conftest.
$ac_ext <<_ACEOF
4837 cat confdefs.h
>>conftest.
$ac_ext
4838 cat >>conftest.
$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 int main() { return 0; }
4842 rm -f conftest
$ac_exeext
4843 if { (ac_try
="$ac_link"
4845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_link") 2>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4853 { (case "(($ac_try" in
4854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4855 *) ac_try_echo
=$ac_try;;
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_try") 2>&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4864 echo "$as_me: program exited with status $ac_status" >&5
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.
$ac_ext >&5
4871 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4878 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4879 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4880 if test $ac_cv_olimit_ok = yes; then
4881 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4885 # Check whether GCC supports PyArg_ParseTuple format
4886 if test "$GCC" = "yes"
4888 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4889 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4891 CFLAGS
="$CFLAGS -Werror"
4892 cat >conftest.
$ac_ext <<_ACEOF
4895 cat confdefs.h
>>conftest.
$ac_ext
4896 cat >>conftest.
$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4899 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4909 rm -f conftest.
$ac_objext
4910 if { (ac_try
="$ac_compile"
4912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_compile") 2>conftest.er1
4918 grep -v '^ *+' conftest.er1 >conftest.err
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } && {
4923 test -z "$ac_c_werror_flag" ||
4924 test ! -s conftest.err
4925 } && test -s conftest.$ac_objext; then
4927 cat >>confdefs.h <<\_ACEOF
4928 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4931 { echo "$as_me:$LINENO: result: yes" >&5
4932 echo "${ECHO_T}yes" >&6; }
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 # On some compilers, pthreads are available without further options
4947 # (e.g. MacOS X). On some of these systems, the compiler will not
4948 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4949 # So we have to see first whether pthreads are available without
4950 # options before we can check whether -Kpthread improves anything.
4951 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4952 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4953 if test "${ac_cv_pthread_is_default+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 if test "$cross_compiling" = yes; then
4957 ac_cv_pthread_is_default=no
4959 cat >conftest.$ac_ext <<_ACEOF
4962 cat confdefs.h >>conftest.$ac_ext
4963 cat >>conftest.$ac_ext <<_ACEOF
4964 /* end confdefs.h. */
4966 #include <pthread.h>
4968 void* routine(void* p){return NULL;}
4972 if(pthread_create(&p,NULL,routine,NULL)!=0)
4974 (void)pthread_detach(p);
4979 rm -f conftest$ac_exeext
4980 if { (ac_try="$ac_link"
4982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4983 *) ac_try_echo
=$ac_try;;
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_link") 2>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4990 { (case "(($ac_try" in
4991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_try") 2>&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
5000 ac_cv_pthread_is_default=yes
5005 echo "$as_me: program exited with status $ac_status" >&5
5006 echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5010 ac_cv_pthread_is_default=no
5012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5019 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5020 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5023 if test $ac_cv_pthread_is_default = yes
5027 # -Kpthread, if available, provides the right #defines
5028 # and linker options to make pthread_create available
5029 # Some compilers won't report that they do not support -Kpthread,
5030 # so we need to run a program to see whether it really made the
5031 # function available.
5032 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5033 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5034 if test "${ac_cv_kpthread+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 if test "$cross_compiling" = yes; then
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5049 #include <pthread.h>
5051 void* routine(void* p){return NULL;}
5055 if(pthread_create(&p,NULL,routine,NULL)!=0)
5057 (void)pthread_detach(p);
5062 rm -f conftest$ac_exeext
5063 if { (ac_try="$ac_link"
5065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5066 *) ac_try_echo
=$ac_try;;
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_link") 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5073 { (case "(($ac_try" in
5074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_try") 2>&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5084 echo "$as_me: program exited with status $ac_status" >&5
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5098 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5099 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5102 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5104 # -Kthread, if available, provides the right #defines
5105 # and linker options to make pthread_create available
5106 # Some compilers won't report that they do not support -Kthread,
5107 # so we need to run a program to see whether it really made the
5108 # function available.
5109 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5110 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5111 if test "${ac_cv_kthread+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 if test "$cross_compiling" = yes; then
5119 cat >conftest.$ac_ext <<_ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5126 #include <pthread.h>
5128 void* routine(void* p){return NULL;}
5132 if(pthread_create(&p,NULL,routine,NULL)!=0)
5134 (void)pthread_detach(p);
5139 rm -f conftest$ac_exeext
5140 if { (ac_try="$ac_link"
5142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5143 *) ac_try_echo
=$ac_try;;
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_link") 2>&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5150 { (case "(($ac_try" in
5151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_try") 2>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5161 echo "$as_me: program exited with status $ac_status" >&5
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5175 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5176 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5179 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5181 # -pthread, if available, provides the right #defines
5182 # and linker options to make pthread_create available
5183 # Some compilers won't report that they do not support -pthread,
5184 # so we need to run a program to see whether it really made the
5185 # function available.
5186 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5187 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5188 if test "${ac_cv_thread+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 if test "$cross_compiling" = yes; then
5196 cat >conftest.$ac_ext <<_ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5203 #include <pthread.h>
5205 void* routine(void* p){return NULL;}
5209 if(pthread_create(&p,NULL,routine,NULL)!=0)
5211 (void)pthread_detach(p);
5216 rm -f conftest$ac_exeext
5217 if { (ac_try="$ac_link"
5219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5220 *) ac_try_echo
=$ac_try;;
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_link") 2>&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5227 { (case "(($ac_try" in
5228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_try") 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5238 echo "$as_me: program exited with status $ac_status" >&5
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5252 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5253 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5256 # If we have set a CC compiler flag for thread support then
5257 # check if it works for CXX, too.
5261 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5262 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5265 if test "$ac_cv_kpthread" = "yes"
5267 CXX="$CXX -Kpthread"
5268 ac_cv_cxx_thread=yes
5269 elif test "$ac_cv_kthread" = "yes"
5272 ac_cv_cxx_thread=yes
5273 elif test "$ac_cv_pthread" = "yes"
5276 ac_cv_cxx_thread=yes
5279 if test $ac_cv_cxx_thread = yes
5281 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5282 $CXX -c conftest.$ac_ext 2>&5
5283 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5284 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5286 ac_cv_cxx_thread=yes
5292 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5293 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5298 # checks for header files
5299 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5300 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5301 if test "${ac_cv_header_stdc+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
5326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5327 *) ac_try_echo
=$ac_try;;
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_compile") 2>conftest.er1
5332 grep -v '^ *+' conftest.er1
>conftest.err
5334 cat conftest.err
>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } && {
5337 test -z "$ac_c_werror_flag" ||
5338 test ! -s conftest.err
5339 } && test -s conftest.
$ac_objext; then
5340 ac_cv_header_stdc
=yes
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.
$ac_ext >&5
5345 ac_cv_header_stdc
=no
5348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5350 if test $ac_cv_header_stdc = yes; then
5351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5352 cat >conftest.
$ac_ext <<_ACEOF
5355 cat confdefs.h
>>conftest.
$ac_ext
5356 cat >>conftest.
$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5362 $EGREP "memchr" >/dev
/null
2>&1; then
5365 ac_cv_header_stdc
=no
5371 if test $ac_cv_header_stdc = yes; then
5372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5373 cat >conftest.
$ac_ext <<_ACEOF
5376 cat confdefs.h
>>conftest.
$ac_ext
5377 cat >>conftest.
$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5383 $EGREP "free" >/dev
/null
2>&1; then
5386 ac_cv_header_stdc
=no
5392 if test $ac_cv_header_stdc = yes; then
5393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5394 if test "$cross_compiling" = yes; then
5397 cat >conftest.
$ac_ext <<_ACEOF
5400 cat confdefs.h
>>conftest.
$ac_ext
5401 cat >>conftest.
$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5405 #if ((' ' & 0x0FF) == 0x020)
5406 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5407 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5409 # define ISLOWER(c) \
5410 (('a' <= (c) && (c) <= 'i') \
5411 || ('j' <= (c) && (c) <= 'r') \
5412 || ('s' <= (c) && (c) <= 'z'))
5413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5421 for (i = 0; i < 256; i++)
5422 if (XOR (islower (i), ISLOWER (i))
5423 || toupper (i) != TOUPPER (i))
5428 rm -f conftest
$ac_exeext
5429 if { (ac_try
="$ac_link"
5431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_link") 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5441 *) ac_try_echo
=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5450 echo "$as_me: program exited with status $ac_status" >&5
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.
$ac_ext >&5
5455 ac_cv_header_stdc
=no
5457 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5463 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5464 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5465 if test $ac_cv_header_stdc = yes; then
5467 cat >>confdefs.h
<<\_ACEOF
5468 #define STDC_HEADERS 1
5473 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5483 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5484 inttypes.h stdint.h unistd.h
5486 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5489 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 cat >conftest.
$ac_ext <<_ACEOF
5495 cat confdefs.h
>>conftest.
$ac_ext
5496 cat >>conftest.
$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 $ac_includes_default
5500 #include <$ac_header>
5502 rm -f conftest.
$ac_objext
5503 if { (ac_try
="$ac_compile"
5505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5511 grep -v '^ *+' conftest.er1 >conftest.err
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5519 eval "$as_ac_Header=yes"
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5524 eval "$as_ac_Header=no"
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 ac_res=`eval echo '${'$as_ac_Header'}'`
5530 { echo "$as_me:$LINENO: result: $ac_res" >&5
5531 echo "${ECHO_T}$ac_res" >&6; }
5532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5533 cat >>confdefs.h <<_ACEOF
5534 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5596 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5598 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5599 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5601 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5602 sys/lock.h sys/mkdev.h sys/modem.h \
5603 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5604 sys/termio.h sys/time.h \
5605 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5606 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5607 bluetooth/bluetooth.h linux/tipc.h
5609 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 ac_res=`eval echo '${'$as_ac_Header'}'`
5617 { echo "$as_me:$LINENO: result: $ac_res" >&5
5618 echo "${ECHO_T}$ac_res" >&6; }
5620 # Is the header compilable?
5621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5623 cat >conftest.$ac_ext <<_ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629 $ac_includes_default
5630 #include <$ac_header>
5632 rm -f conftest.$ac_objext
5633 if { (ac_try="$ac_compile"
5635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5636 *) ac_try_echo
=$ac_try;;
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_compile") 2>conftest.er1
5641 grep -v '^ *+' conftest.er1
>conftest.err
5643 cat conftest.err
>&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_c_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest.
$ac_objext; then
5649 ac_header_compiler
=yes
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.
$ac_ext >&5
5654 ac_header_compiler
=no
5657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5659 echo "${ECHO_T}$ac_header_compiler" >&6; }
5661 # Is the header present?
5662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5664 cat >conftest.
$ac_ext <<_ACEOF
5667 cat confdefs.h
>>conftest.
$ac_ext
5668 cat >>conftest.
$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5670 #include <$ac_header>
5672 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } >/dev/null && {
5685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5686 test ! -s conftest.err
5688 ac_header_preproc=yes
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5693 ac_header_preproc=no
5696 rm -f conftest.err conftest.$ac_ext
5697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5698 echo "${ECHO_T}$ac_header_preproc" >&6; }
5700 # So? What about this header?
5701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5707 ac_header_preproc=yes
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5723 ## ------------------------------------------------ ##
5724 ## Report this to http://www.python.org/python-bugs ##
5725 ## ------------------------------------------------ ##
5727 ) | sed "s/^/$as_me: WARNING: /" >&2
5730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 eval "$as_ac_Header=\$ac_header_preproc"
5737 ac_res=`eval echo '${'$as_ac_Header'}'`
5738 { echo "$as_me:$LINENO: result: $ac_res" >&5
5739 echo "${ECHO_T}$ac_res" >&6; }
5742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5743 cat >>confdefs.h <<_ACEOF
5744 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5757 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5758 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5759 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5760 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 cat >conftest.$ac_ext <<_ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 #include <sys/types.h>
5782 rm -f conftest.$ac_objext
5783 if { (ac_try="$ac_compile"
5785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5786 *) ac_try_echo
=$ac_try;;
5788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5791 grep -v '^ *+' conftest.er1
>conftest.err
5793 cat conftest.err
>&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.
$ac_objext; then
5799 eval "$as_ac_Header=yes"
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.
$ac_ext >&5
5804 eval "$as_ac_Header=no"
5807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5809 ac_res
=`eval echo '${'$as_ac_Header'}'`
5810 { echo "$as_me:$LINENO: result: $ac_res" >&5
5811 echo "${ECHO_T}$ac_res" >&6; }
5812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5813 cat >>confdefs.h
<<_ACEOF
5814 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5817 ac_header_dirent
=$ac_hdr; break
5821 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5822 if test $ac_header_dirent = dirent.h
; then
5823 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5824 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5825 if test "${ac_cv_search_opendir+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 ac_func_search_save_LIBS
=$LIBS
5829 cat >conftest.
$ac_ext <<_ACEOF
5832 cat confdefs.h
>>conftest.
$ac_ext
5833 cat >>conftest.
$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5836 /* Override any GCC internal prototype to avoid an error.
5837 Use char because int might match the return type of a GCC
5838 builtin and then its argument prototype would still apply. */
5851 for ac_lib
in '' dir
; do
5852 if test -z "$ac_lib"; then
5853 ac_res
="none required"
5856 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5858 rm -f conftest.
$ac_objext conftest
$ac_exeext
5859 if { (ac_try
="$ac_link"
5861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_link") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1 >conftest.err
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest$ac_exeext &&
5875 $as_test_x conftest$ac_exeext; then
5876 ac_cv_search_opendir=$ac_res
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5886 if test "${ac_cv_search_opendir+set}" = set; then
5890 if test "${ac_cv_search_opendir+set}" = set; then
5893 ac_cv_search_opendir=no
5896 LIBS=$ac_func_search_save_LIBS
5898 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5899 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5900 ac_res=$ac_cv_search_opendir
5901 if test "$ac_res" != no; then
5902 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5907 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5908 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5909 if test "${ac_cv_search_opendir+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 ac_func_search_save_LIBS=$LIBS
5913 cat >conftest.$ac_ext <<_ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5920 /* Override any GCC internal prototype to avoid an error.
5921 Use char because int might match the return type of a GCC
5922 builtin and then its argument prototype would still apply. */
5935 for ac_lib in '' x; do
5936 if test -z "$ac_lib"; then
5937 ac_res="none required"
5940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5942 rm -f conftest.$ac_objext conftest$ac_exeext
5943 if { (ac_try="$ac_link"
5945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5946 *) ac_try_echo
=$ac_try;;
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_link") 2>conftest.er1
5951 grep -v '^ *+' conftest.er1
>conftest.err
5953 cat conftest.err
>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } && {
5956 test -z "$ac_c_werror_flag" ||
5957 test ! -s conftest.err
5958 } && test -s conftest
$ac_exeext &&
5959 $as_test_x conftest
$ac_exeext; then
5960 ac_cv_search_opendir
=$ac_res
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.
$ac_ext >&5
5968 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5970 if test "${ac_cv_search_opendir+set}" = set; then
5974 if test "${ac_cv_search_opendir+set}" = set; then
5977 ac_cv_search_opendir
=no
5980 LIBS
=$ac_func_search_save_LIBS
5982 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5983 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5984 ac_res
=$ac_cv_search_opendir
5985 if test "$ac_res" != no
; then
5986 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5992 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5993 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5994 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 cat >conftest.
$ac_ext <<_ACEOF
6000 cat confdefs.h
>>conftest.
$ac_ext
6001 cat >>conftest.
$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 #include <sys/types.h>
6007 return makedev(0, 0);
6012 rm -f conftest.
$ac_objext conftest
$ac_exeext
6013 if { (ac_try
="$ac_link"
6015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_link") 2>conftest.er1
6021 grep -v '^ *+' conftest.er1 >conftest.err
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest$ac_exeext &&
6029 $as_test_x conftest$ac_exeext; then
6030 ac_cv_header_sys_types_h_makedev=yes
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.$ac_ext >&5
6035 ac_cv_header_sys_types_h_makedev=no
6038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6039 conftest$ac_exeext conftest.$ac_ext
6042 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6043 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6045 if test $ac_cv_header_sys_types_h_makedev = no; then
6046 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6047 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6048 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6049 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6053 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6055 # Is the header compilable?
6056 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6057 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6058 cat >conftest.$ac_ext <<_ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064 $ac_includes_default
6065 #include <sys/mkdev.h>
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6071 *) ac_try_echo
=$ac_try;;
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_compile") 2>conftest.er1
6076 grep -v '^ *+' conftest.er1
>conftest.err
6078 cat conftest.err
>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest.
$ac_objext; then
6084 ac_header_compiler
=yes
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.
$ac_ext >&5
6089 ac_header_compiler
=no
6092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6094 echo "${ECHO_T}$ac_header_compiler" >&6; }
6096 # Is the header present?
6097 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6098 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6099 cat >conftest.
$ac_ext <<_ACEOF
6102 cat confdefs.h
>>conftest.
$ac_ext
6103 cat >>conftest.
$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <sys/mkdev.h>
6107 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6115 grep -v '^ *+' conftest.er1 >conftest.err
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } >/dev/null && {
6120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6121 test ! -s conftest.err
6123 ac_header_preproc=yes
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6128 ac_header_preproc=no
6131 rm -f conftest.err conftest.$ac_ext
6132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6133 echo "${ECHO_T}$ac_header_preproc" >&6; }
6135 # So? What about this header?
6136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6139 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6141 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6142 ac_header_preproc=yes
6145 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6146 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6148 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6150 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6151 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6152 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6154 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6156 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6158 ## ------------------------------------------------ ##
6159 ## Report this to http://www.python.org/python-bugs ##
6160 ## ------------------------------------------------ ##
6162 ) | sed "s/^/$as_me: WARNING: /" >&2
6165 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6166 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6167 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6172 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6173 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6176 if test $ac_cv_header_sys_mkdev_h = yes; then
6178 cat >>confdefs.h <<\_ACEOF
6179 #define MAJOR_IN_MKDEV 1
6186 if test $ac_cv_header_sys_mkdev_h = no; then
6187 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6188 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6189 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6190 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6194 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6196 # Is the header compilable?
6197 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6198 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6199 cat >conftest.$ac_ext <<_ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 $ac_includes_default
6206 #include <sys/sysmacros.h>
6208 rm -f conftest.$ac_objext
6209 if { (ac_try="$ac_compile"
6211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6212 *) ac_try_echo
=$ac_try;;
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_compile") 2>conftest.er1
6217 grep -v '^ *+' conftest.er1
>conftest.err
6219 cat conftest.err
>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } && {
6222 test -z "$ac_c_werror_flag" ||
6223 test ! -s conftest.err
6224 } && test -s conftest.
$ac_objext; then
6225 ac_header_compiler
=yes
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.
$ac_ext >&5
6230 ac_header_compiler
=no
6233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6235 echo "${ECHO_T}$ac_header_compiler" >&6; }
6237 # Is the header present?
6238 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6239 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6240 cat >conftest.
$ac_ext <<_ACEOF
6243 cat confdefs.h
>>conftest.
$ac_ext
6244 cat >>conftest.
$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6246 #include <sys/sysmacros.h>
6248 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6256 grep -v '^ *+' conftest.er1 >conftest.err
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } >/dev/null && {
6261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6264 ac_header_preproc=yes
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6269 ac_header_preproc=no
6272 rm -f conftest.err conftest.$ac_ext
6273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6274 echo "${ECHO_T}$ac_header_preproc" >&6; }
6276 # So? What about this header?
6277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6280 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6282 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6283 ac_header_preproc=yes
6286 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6287 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6289 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6290 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6291 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6293 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6294 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6295 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6296 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6297 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6299 ## ------------------------------------------------ ##
6300 ## Report this to http://www.python.org/python-bugs ##
6301 ## ------------------------------------------------ ##
6303 ) | sed "s/^/$as_me: WARNING: /" >&2
6306 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6307 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6308 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6313 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6314 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6317 if test $ac_cv_header_sys_sysmacros_h = yes; then
6319 cat >>confdefs.h <<\_ACEOF
6320 #define MAJOR_IN_SYSMACROS 1
6330 # On Solaris, term.h requires curses.h
6332 for ac_header in term.h
6334 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 cat >conftest.$ac_ext <<_ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6347 #ifdef HAVE_CURSES_H
6352 #include <$ac_header>
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6358 *) ac_try_echo
=$ac_try;;
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compile") 2>conftest.er1
6363 grep -v '^ *+' conftest.er1
>conftest.err
6365 cat conftest.err
>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } && {
6368 test -z "$ac_c_werror_flag" ||
6369 test ! -s conftest.err
6370 } && test -s conftest.
$ac_objext; then
6371 eval "$as_ac_Header=yes"
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.
$ac_ext >&5
6376 eval "$as_ac_Header=no"
6379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6381 ac_res
=`eval echo '${'$as_ac_Header'}'`
6382 { echo "$as_me:$LINENO: result: $ac_res" >&5
6383 echo "${ECHO_T}$ac_res" >&6; }
6384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6385 cat >>confdefs.h
<<_ACEOF
6386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6394 # On Linux, netlink.h requires asm/types.h
6396 for ac_header
in linux
/netlink.h
6398 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6401 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6404 cat >conftest.
$ac_ext <<_ACEOF
6407 cat confdefs.h
>>conftest.
$ac_ext
6408 cat >>conftest.
$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6411 #ifdef HAVE_ASM_TYPES_H
6412 #include <asm/types.h>
6414 #ifdef HAVE_SYS_SOCKET_H
6415 #include <sys/socket.h>
6419 #include <$ac_header>
6421 rm -f conftest.
$ac_objext
6422 if { (ac_try
="$ac_compile"
6424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6425 *) ac_try_echo=$ac_try;;
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428 (eval "$ac_compile") 2>conftest.er1
6430 grep -v '^ *+' conftest.er1 >conftest.err
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
6437 } && test -s conftest.$ac_objext; then
6438 eval "$as_ac_Header=yes"
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6443 eval "$as_ac_Header=no"
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 ac_res=`eval echo '${'$as_ac_Header'}'`
6449 { echo "$as_me:$LINENO: result: $ac_res" >&5
6450 echo "${ECHO_T}$ac_res" >&6; }
6451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6452 cat >>confdefs.h <<_ACEOF
6453 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6461 # checks for typedefs
6463 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6464 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6465 cat >conftest.$ac_ext <<_ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6475 $EGREP "clock_t" >/dev/null 2>&1; then
6480 cat >>confdefs.h <<\_ACEOF
6481 #define clock_t long
6488 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6489 echo "${ECHO_T}$was_it_defined" >&6; }
6491 # Check whether using makedev requires defining _OSF_SOURCE
6492 { echo "$as_me:$LINENO: checking for makedev" >&5
6493 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6494 cat >conftest.$ac_ext <<_ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <sys/types.h>
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (ac_try="$ac_link"
6512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6513 *) ac_try_echo
=$ac_try;;
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_link") 2>conftest.er1
6518 grep -v '^ *+' conftest.er1
>conftest.err
6520 cat conftest.err
>&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest
$ac_exeext &&
6526 $as_test_x conftest
$ac_exeext; then
6527 ac_cv_has_makedev
=yes
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.
$ac_ext >&5
6532 ac_cv_has_makedev
=no
6535 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6536 conftest
$ac_exeext conftest.
$ac_ext
6537 if test "$ac_cv_has_makedev" = "no"; then
6538 # we didn't link, try if _OSF_SOURCE will allow us to link
6539 cat >conftest.
$ac_ext <<_ACEOF
6542 cat confdefs.h
>>conftest.
$ac_ext
6543 cat >>conftest.
$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6546 #define _OSF_SOURCE 1
6547 #include <sys/types.h>
6557 rm -f conftest.
$ac_objext conftest
$ac_exeext
6558 if { (ac_try
="$ac_link"
6560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_link") 2>conftest.er1
6566 grep -v '^ *+' conftest.er1 >conftest.err
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest$ac_exeext &&
6574 $as_test_x conftest$ac_exeext; then
6575 ac_cv_has_makedev=yes
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6580 ac_cv_has_makedev=no
6583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6584 conftest$ac_exeext conftest.$ac_ext
6585 if test "$ac_cv_has_makedev" = "yes"; then
6587 cat >>confdefs.h <<\_ACEOF
6588 #define _OSF_SOURCE 1
6593 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6594 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6595 if test "$ac_cv_has_makedev" = "yes"; then
6597 cat >>confdefs.h <<\_ACEOF
6598 #define HAVE_MAKEDEV 1
6603 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6604 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6605 # defined, but the compiler does not support pragma redefine_extname,
6606 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6607 # structures (such as rlimit64) without declaring them. As a
6608 # work-around, disable LFS on such configurations
6611 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6612 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6613 cat >conftest.$ac_ext <<_ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6620 #define _LARGEFILE_SOURCE 1
6621 #define _FILE_OFFSET_BITS 64
6622 #include <sys/resource.h>
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6636 *) ac_try_echo
=$ac_try;;
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6641 grep -v '^ *+' conftest.er1
>conftest.err
6643 cat conftest.err
>&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.
$ac_objext; then
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.
$ac_ext >&5
6657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6658 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6659 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6660 if test "$sol_lfs_bug" = "yes"; then
6664 if test "$use_lfs" = "yes"; then
6665 # Two defines needed to enable largefile support on various platforms
6666 # These may affect some typedefs
6668 cat >>confdefs.h
<<\_ACEOF
6669 #define _LARGEFILE_SOURCE 1
6673 cat >>confdefs.h
<<\_ACEOF
6674 #define _FILE_OFFSET_BITS 64
6679 # Add some code to confdefs.h so that the test for off_t works on SCO
6680 cat >> confdefs.h
<<\EOF
6686 # Type availability checks
6687 { echo "$as_me:$LINENO: checking for mode_t" >&5
6688 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6689 if test "${ac_cv_type_mode_t+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 cat >conftest.
$ac_ext <<_ACEOF
6695 cat confdefs.h
>>conftest.
$ac_ext
6696 cat >>conftest.
$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 $ac_includes_default
6699 typedef mode_t ac__type_new_;
6703 if ((ac__type_new_ *) 0)
6705 if (sizeof (ac__type_new_))
6711 rm -f conftest.
$ac_objext
6712 if { (ac_try
="$ac_compile"
6714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6720 grep -v '^ *+' conftest.er1 >conftest.err
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest.$ac_objext; then
6728 ac_cv_type_mode_t=yes
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_cv_type_mode_t=no
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6739 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6740 if test $ac_cv_type_mode_t = yes; then
6744 cat >>confdefs.h <<_ACEOF
6750 { echo "$as_me:$LINENO: checking for off_t" >&5
6751 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6752 if test "${ac_cv_type_off_t+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 cat >conftest.$ac_ext <<_ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 $ac_includes_default
6762 typedef off_t ac__type_new_;
6766 if ((ac__type_new_ *) 0)
6768 if (sizeof (ac__type_new_))
6774 rm -f conftest.$ac_objext
6775 if { (ac_try="$ac_compile"
6777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6778 *) ac_try_echo
=$ac_try;;
6780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6781 (eval "$ac_compile") 2>conftest.er1
6783 grep -v '^ *+' conftest.er1
>conftest.err
6785 cat conftest.err
>&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } && {
6788 test -z "$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6790 } && test -s conftest.
$ac_objext; then
6791 ac_cv_type_off_t
=yes
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.
$ac_ext >&5
6799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6801 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6802 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6803 if test $ac_cv_type_off_t = yes; then
6807 cat >>confdefs.h
<<_ACEOF
6808 #define off_t long int
6813 { echo "$as_me:$LINENO: checking for pid_t" >&5
6814 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6815 if test "${ac_cv_type_pid_t+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 cat >conftest.
$ac_ext <<_ACEOF
6821 cat confdefs.h
>>conftest.
$ac_ext
6822 cat >>conftest.
$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 $ac_includes_default
6825 typedef pid_t ac__type_new_;
6829 if ((ac__type_new_ *) 0)
6831 if (sizeof (ac__type_new_))
6837 rm -f conftest.
$ac_objext
6838 if { (ac_try
="$ac_compile"
6840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844 (eval "$ac_compile") 2>conftest.er1
6846 grep -v '^ *+' conftest.er1 >conftest.err
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } && {
6851 test -z "$ac_c_werror_flag" ||
6852 test ! -s conftest.err
6853 } && test -s conftest.$ac_objext; then
6854 ac_cv_type_pid_t=yes
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6865 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6866 if test $ac_cv_type_pid_t = yes; then
6870 cat >>confdefs.h <<_ACEOF
6876 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6877 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6878 if test "${ac_cv_type_signal+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 cat >conftest.$ac_ext <<_ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <sys/types.h>
6893 return *(signal (0, 0)) (0) == 1;
6898 rm -f conftest.$ac_objext
6899 if { (ac_try="$ac_compile"
6901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6902 *) ac_try_echo
=$ac_try;;
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_compile") 2>conftest.er1
6907 grep -v '^ *+' conftest.er1
>conftest.err
6909 cat conftest.err
>&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest.
$ac_objext; then
6915 ac_cv_type_signal
=int
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.
$ac_ext >&5
6920 ac_cv_type_signal
=void
6923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6925 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6926 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6928 cat >>confdefs.h
<<_ACEOF
6929 #define RETSIGTYPE $ac_cv_type_signal
6933 { echo "$as_me:$LINENO: checking for size_t" >&5
6934 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6935 if test "${ac_cv_type_size_t+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 cat >conftest.
$ac_ext <<_ACEOF
6941 cat confdefs.h
>>conftest.
$ac_ext
6942 cat >>conftest.
$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6944 $ac_includes_default
6945 typedef size_t ac__type_new_;
6949 if ((ac__type_new_ *) 0)
6951 if (sizeof (ac__type_new_))
6957 rm -f conftest.
$ac_objext
6958 if { (ac_try
="$ac_compile"
6960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_compile") 2>conftest.er1
6966 grep -v '^ *+' conftest.er1 >conftest.err
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && {
6971 test -z "$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6973 } && test -s conftest.$ac_objext; then
6974 ac_cv_type_size_t=yes
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 ac_cv_type_size_t=no
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6985 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6986 if test $ac_cv_type_size_t = yes; then
6990 cat >>confdefs.h <<_ACEOF
6991 #define size_t unsigned int
6996 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6997 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6998 if test "${ac_cv_type_uid_t+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 cat >conftest.$ac_ext <<_ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 #include <sys/types.h>
7010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7011 $EGREP "uid_t" >/dev/null 2>&1; then
7012 ac_cv_type_uid_t=yes
7019 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7020 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7021 if test $ac_cv_type_uid_t = no; then
7023 cat >>confdefs.h <<\_ACEOF
7028 cat >>confdefs.h <<\_ACEOF
7035 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7036 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7037 if test "${ac_cv_c_uint32_t+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7042 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7043 cat >conftest.$ac_ext <<_ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h. */
7049 $ac_includes_default
7053 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7060 rm -f conftest.$ac_objext
7061 if { (ac_try="$ac_compile"
7063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7064 *) ac_try_echo
=$ac_try;;
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7069 grep -v '^ *+' conftest.er1
>conftest.err
7071 cat conftest.err
>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.
$ac_objext; then
7078 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7079 *) ac_cv_c_uint32_t
=$ac_type ;;
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.
$ac_ext >&5
7089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7090 test "$ac_cv_c_uint32_t" != no
&& break
7093 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7094 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7095 case $ac_cv_c_uint32_t in #(
7099 cat >>confdefs.h
<<\_ACEOF
7104 cat >>confdefs.h
<<_ACEOF
7105 #define uint32_t $ac_cv_c_uint32_t
7111 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7112 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7113 if test "${ac_cv_c_uint64_t+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7118 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7119 cat >conftest.
$ac_ext <<_ACEOF
7122 cat confdefs.h
>>conftest.
$ac_ext
7123 cat >>conftest.
$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7129 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7136 rm -f conftest.
$ac_objext
7137 if { (ac_try
="$ac_compile"
7139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7145 grep -v '^ *+' conftest.er1 >conftest.err
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest.$ac_objext; then
7154 uint64_t) ac_cv_c_uint64_t=yes ;;
7155 *) ac_cv_c_uint64_t=$ac_type ;;
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 test "$ac_cv_c_uint64_t" != no && break
7169 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7170 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7171 case $ac_cv_c_uint64_t in #(
7175 cat >>confdefs.h <<\_ACEOF
7180 cat >>confdefs.h <<_ACEOF
7181 #define uint64_t $ac_cv_c_uint64_t
7187 { echo "$as_me:$LINENO: checking for int32_t" >&5
7188 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7189 if test "${ac_cv_c_int32_t+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 for ac_type in 'int32_t' 'int' 'long int' \
7194 'long long int' 'short int' 'signed char'; do
7195 cat >conftest.$ac_ext <<_ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 $ac_includes_default
7205 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7216 *) ac_try_echo
=$ac_try;;
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7221 grep -v '^ *+' conftest.er1
>conftest.err
7223 cat conftest.err
>&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.
$ac_objext; then
7229 cat >conftest.
$ac_ext <<_ACEOF
7232 cat confdefs.h
>>conftest.
$ac_ext
7233 cat >>conftest.
$ac_ext <<_ACEOF
7234 /* end confdefs.h. */
7235 $ac_includes_default
7239 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7240 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7247 rm -f conftest.
$ac_objext
7248 if { (ac_try
="$ac_compile"
7250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7256 grep -v '^ *+' conftest.er1 >conftest.err
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7270 int32_t) ac_cv_c_int32_t=yes ;;
7271 *) ac_cv_c_int32_t=$ac_type ;;
7276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 test "$ac_cv_c_int32_t" != no && break
7288 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7289 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7290 case $ac_cv_c_int32_t in #(
7294 cat >>confdefs.h <<_ACEOF
7295 #define int32_t $ac_cv_c_int32_t
7301 { echo "$as_me:$LINENO: checking for int64_t" >&5
7302 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7303 if test "${ac_cv_c_int64_t+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 for ac_type in 'int64_t' 'int' 'long int' \
7308 'long long int' 'short int' 'signed char'; do
7309 cat >conftest.$ac_ext <<_ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7319 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7326 rm -f conftest.$ac_objext
7327 if { (ac_try="$ac_compile"
7329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7330 *) ac_try_echo
=$ac_try;;
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_compile") 2>conftest.er1
7335 grep -v '^ *+' conftest.er1
>conftest.err
7337 cat conftest.err
>&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest.
$ac_objext; then
7343 cat >conftest.
$ac_ext <<_ACEOF
7346 cat confdefs.h
>>conftest.
$ac_ext
7347 cat >>conftest.
$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 $ac_includes_default
7353 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7354 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7361 rm -f conftest.
$ac_objext
7362 if { (ac_try
="$ac_compile"
7364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7365 *) ac_try_echo=$ac_try;;
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_compile") 2>conftest.er1
7370 grep -v '^ *+' conftest.er1 >conftest.err
7372 cat conftest.err >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest.$ac_objext; then
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7384 int64_t) ac_cv_c_int64_t=yes ;;
7385 *) ac_cv_c_int64_t=$ac_type ;;
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399 test "$ac_cv_c_int64_t" != no && break
7402 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7403 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7404 case $ac_cv_c_int64_t in #(
7408 cat >>confdefs.h <<_ACEOF
7409 #define int64_t $ac_cv_c_int64_t
7414 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7415 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7416 if test "${ac_cv_type_ssize_t+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 cat >conftest.$ac_ext <<_ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 $ac_includes_default
7426 typedef ssize_t ac__type_new_;
7430 if ((ac__type_new_ *) 0)
7432 if (sizeof (ac__type_new_))
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7442 *) ac_try_echo
=$ac_try;;
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1
>conftest.err
7449 cat conftest.err
>&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.
$ac_objext; then
7455 ac_cv_type_ssize_t
=yes
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.
$ac_ext >&5
7460 ac_cv_type_ssize_t
=no
7463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7465 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7466 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7467 if test $ac_cv_type_ssize_t = yes; then
7469 cat >>confdefs.h
<<\_ACEOF
7470 #define HAVE_SSIZE_T 1
7476 # Sizes of various common basic types
7477 # ANSI C requires sizeof(char) == 1, so no need to check it
7478 { echo "$as_me:$LINENO: checking for int" >&5
7479 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7480 if test "${ac_cv_type_int+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 cat >conftest.
$ac_ext <<_ACEOF
7486 cat confdefs.h
>>conftest.
$ac_ext
7487 cat >>conftest.
$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 $ac_includes_default
7490 typedef int ac__type_new_;
7494 if ((ac__type_new_ *) 0)
7496 if (sizeof (ac__type_new_))
7502 rm -f conftest.
$ac_objext
7503 if { (ac_try
="$ac_compile"
7505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7530 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7532 # The cast to long int works around a bug in the HP C Compiler
7533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7534 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7535 # This bug is HP SR number 8606223364.
7536 { echo "$as_me:$LINENO: checking size of int" >&5
7537 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7538 if test "${ac_cv_sizeof_int+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 if test "$cross_compiling" = yes; then
7542 # Depending upon the size, compute the lo and hi bounds.
7543 cat >conftest.$ac_ext <<_ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 $ac_includes_default
7550 typedef int ac__type_sizeof_;
7554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_compile") 2>conftest.er1
7570 grep -v '^
*+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } && {
7575 test -z "$ac_c_werror_flag" ||
7576 test ! -s conftest.err
7577 } && test -s conftest.$ac_objext; then
7580 cat >conftest.$ac_ext <<_ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7586 $ac_includes_default
7587 typedef int ac__type_sizeof_;
7591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7598 rm -f conftest.$ac_objext
7599 if { (ac_try="$ac_compile"
7601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602 *) ac_try_echo=$ac_try;;
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605 (eval "$ac_compile") 2>conftest.er1
7607 grep -v '^
*+' conftest.er1 >conftest.err
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && {
7612 test -z "$ac_c_werror_flag" ||
7613 test ! -s conftest.err
7614 } && test -s conftest.$ac_objext; then
7615 ac_hi=$ac_mid; break
7617 echo "$as_me: failed program was:" >&5
7618 sed 's
/^
/|
/' conftest.$ac_ext >&5
7620 ac_lo=`expr $ac_mid + 1`
7621 if test $ac_lo -le $ac_mid; then
7625 ac_mid=`expr 2 '*' $ac_mid + 1`
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 echo "$as_me: failed program was:" >&5
7632 sed 's
/^
/|
/' conftest.$ac_ext >&5
7634 cat >conftest.$ac_ext <<_ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 $ac_includes_default
7641 typedef int ac__type_sizeof_;
7645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7652 rm -f conftest.$ac_objext
7653 if { (ac_try="$ac_compile"
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_compile") 2>conftest.er1
7661 grep -v '^
*+' conftest.er1 >conftest.err
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && {
7666 test -z "$ac_c_werror_flag" ||
7667 test ! -s conftest.err
7668 } && test -s conftest.$ac_objext; then
7671 cat >conftest.$ac_ext <<_ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 $ac_includes_default
7678 typedef int ac__type_sizeof_;
7682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7698 grep -v '^
*+' conftest.er1 >conftest.err
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
7706 ac_lo=$ac_mid; break
7708 echo "$as_me: failed program was:" >&5
7709 sed 's
/^
/|
/' conftest.$ac_ext >&5
7711 ac_hi=`expr '(' $ac_mid ')' - 1`
7712 if test $ac_mid -le $ac_hi; then
7716 ac_mid=`expr 2 '*' $ac_mid`
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 echo "$as_me: failed program was:" >&5
7723 sed 's
/^
/|
/' conftest.$ac_ext >&5
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 # Binary search between lo and hi bounds.
7733 while test "x$ac_lo" != "x$ac_hi"; do
7734 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7735 cat >conftest.$ac_ext <<_ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 $ac_includes_default
7742 typedef int ac__type_sizeof_;
7746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7753 rm -f conftest.$ac_objext
7754 if { (ac_try="$ac_compile"
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_compile") 2>conftest.er1
7762 grep -v '^
*+' conftest.er1 >conftest.err
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest.$ac_objext; then
7772 echo "$as_me: failed program was:" >&5
7773 sed 's
/^
/|
/' conftest.$ac_ext >&5
7775 ac_lo=`expr '(' $ac_mid ')' + 1`
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 ?*) ac_cv_sizeof_int=$ac_lo;;
7782 '') if test "$ac_cv_type_int" = yes; then
7783 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7784 See \`config.log' for more details.
" >&5
7785 echo "$as_me: error
: cannot compute sizeof
(int
)
7786 See \
`config.log' for more details." >&2;}
7787 { (exit 77); exit 77; }; }
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 $ac_includes_default
7800 typedef int ac__type_sizeof_;
7801 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7802 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7809 FILE *f = fopen ("conftest.val", "w");
7812 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7814 long int i = longval ();
7815 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7817 fprintf (f, "%ld\n", i);
7821 unsigned long int i = ulongval ();
7822 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7824 fprintf (f, "%lu\n", i);
7826 return ferror (f) || fclose (f) != 0;
7832 rm -f conftest$ac_exeext
7833 if { (ac_try="$ac_link"
7835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7836 *) ac_try_echo
=$ac_try;;
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_link") 2>&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7843 { (case "(($ac_try" in
7844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_try") 2>&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7852 ac_cv_sizeof_int=`cat conftest.val
`
7854 echo "$as_me: program exited with status $ac_status" >&5
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7859 if test "$ac_cv_type_int" = yes; then
7860 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7861 See \`config.log
' for more details." >&5
7862 echo "$as_me: error: cannot compute sizeof (int)
7863 See \`config.log' for more details.
" >&2;}
7864 { (exit 77); exit 77; }; }
7869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7873 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7874 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7878 cat >>confdefs.h <<_ACEOF
7879 #define SIZEOF_INT $ac_cv_sizeof_int
7883 { echo "$as_me:$LINENO: checking
for long
" >&5
7884 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7885 if test "${ac_cv_type_long+set}" = set; then
7886 echo $ECHO_N "(cached
) $ECHO_C" >&6
7888 cat >conftest.$ac_ext <<_ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 $ac_includes_default
7895 typedef long ac__type_new_;
7899 if ((ac__type_new_ *) 0)
7901 if (sizeof (ac__type_new_))
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7926 echo "$as_me: failed program was
:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7935 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7937 # The cast to long int works around a bug in the HP C Compiler
7938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7939 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7940 # This bug is HP SR number 8606223364.
7941 { echo "$as_me:$LINENO: checking size of long
" >&5
7942 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7943 if test "${ac_cv_sizeof_long+set}" = set; then
7944 echo $ECHO_N "(cached
) $ECHO_C" >&6
7946 if test "$cross_compiling" = yes; then
7947 # Depending upon the size, compute the lo and hi bounds.
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 $ac_includes_default
7955 typedef long ac__type_sizeof_;
7959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7966 rm -f conftest.$ac_objext
7967 if { (ac_try="$ac_compile"
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_compile") 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7979 (exit $ac_status); } && {
7980 test -z "$ac_c_werror_flag" ||
7981 test ! -s conftest.err
7982 } && test -s conftest.$ac_objext; then
7985 cat >conftest.$ac_ext <<_ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 $ac_includes_default
7992 typedef long ac__type_sizeof_;
7996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8012 grep -v '^ *+' conftest.er1 >conftest.err
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 ac_hi=$ac_mid; break
8022 echo "$as_me: failed program was
:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 ac_lo=`expr $ac_mid + 1`
8026 if test $ac_lo -le $ac_mid; then
8030 ac_mid=`expr 2 '*' $ac_mid + 1`
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 echo "$as_me: failed program was
:" >&5
8037 sed 's/^/| /' conftest.$ac_ext >&5
8039 cat >conftest.$ac_ext <<_ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h. */
8045 $ac_includes_default
8046 typedef long ac__type_sizeof_;
8050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8057 rm -f conftest.$ac_objext
8058 if { (ac_try="$ac_compile"
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_compile") 2>conftest.er1
8066 grep -v '^ *+' conftest.er1 >conftest.err
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8070 (exit $ac_status); } && {
8071 test -z "$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 } && test -s conftest.$ac_objext; then
8076 cat >conftest.$ac_ext <<_ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8082 $ac_includes_default
8083 typedef long ac__type_sizeof_;
8087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8094 rm -f conftest.$ac_objext
8095 if { (ac_try="$ac_compile"
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_compile") 2>conftest.er1
8103 grep -v '^ *+' conftest.er1 >conftest.err
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8107 (exit $ac_status); } && {
8108 test -z "$ac_c_werror_flag" ||
8109 test ! -s conftest.err
8110 } && test -s conftest.$ac_objext; then
8111 ac_lo=$ac_mid; break
8113 echo "$as_me: failed program was
:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8116 ac_hi=`expr '(' $ac_mid ')' - 1`
8117 if test $ac_mid -le $ac_hi; then
8121 ac_mid=`expr 2 '*' $ac_mid`
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 echo "$as_me: failed program was
:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 # Binary search between lo and hi bounds.
8138 while test "x
$ac_lo" != "x
$ac_hi"; do
8139 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8140 cat >conftest.$ac_ext <<_ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 $ac_includes_default
8147 typedef long ac__type_sizeof_;
8151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8167 grep -v '^ *+' conftest.er1 >conftest.err
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then
8177 echo "$as_me: failed program was
:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_lo=`expr '(' $ac_mid ')' + 1`
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 ?*) ac_cv_sizeof_long=$ac_lo;;
8187 '') if test "$ac_cv_type_long" = yes; then
8188 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8189 See \
`config.log' for more details." >&5
8190 echo "$as_me: error: cannot compute sizeof (long)
8191 See \`config.log
' for more details." >&2;}
8192 { (exit 77); exit 77; }; }
8198 cat >conftest.$ac_ext <<_ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8204 $ac_includes_default
8205 typedef long ac__type_sizeof_;
8206 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8207 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8214 FILE *f = fopen ("conftest.val", "w");
8217 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8219 long int i = longval ();
8220 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8222 fprintf (f, "%ld\n", i);
8226 unsigned long int i = ulongval ();
8227 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8229 fprintf (f, "%lu\n", i);
8231 return ferror (f) || fclose (f) != 0;
8237 rm -f conftest$ac_exeext
8238 if { (ac_try="$ac_link"
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_link") 2>&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8248 { (case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_try") 2>&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_sizeof_long=`cat conftest.val`
8259 echo "$as_me: program exited with status $ac_status" >&5
8260 echo "$as_me: failed program was:" >&5
8261 sed 's
/^
/|
/' conftest.$ac_ext >&5
8264 if test "$ac_cv_type_long" = yes; then
8265 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8266 See \`config.log' for more details.
" >&5
8267 echo "$as_me: error
: cannot compute sizeof
(long
)
8268 See \
`config.log' for more details." >&2;}
8269 { (exit 77); exit 77; }; }
8274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8278 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8279 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8283 cat >>confdefs.h <<_ACEOF
8284 #define SIZEOF_LONG $ac_cv_sizeof_long
8288 { echo "$as_me:$LINENO: checking for void *" >&5
8289 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8290 if test "${ac_cv_type_void_p+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 cat >conftest.$ac_ext <<_ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 $ac_includes_default
8300 typedef void * ac__type_new_;
8304 if ((ac__type_new_ *) 0)
8306 if (sizeof (ac__type_new_))
8312 rm -f conftest.$ac_objext
8313 if { (ac_try="$ac_compile"
8315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8316 *) ac_try_echo
=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_compile") 2>conftest.er1
8321 grep -v '^ *+' conftest.er1
>conftest.err
8323 cat conftest.err
>&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest.
$ac_objext; then
8329 ac_cv_type_void_p
=yes
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.
$ac_ext >&5
8334 ac_cv_type_void_p
=no
8337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8339 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8340 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8342 # The cast to long int works around a bug in the HP C Compiler
8343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8345 # This bug is HP SR number 8606223364.
8346 { echo "$as_me:$LINENO: checking size of void *" >&5
8347 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8348 if test "${ac_cv_sizeof_void_p+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 if test "$cross_compiling" = yes; then
8352 # Depending upon the size, compute the lo and hi bounds.
8353 cat >conftest.
$ac_ext <<_ACEOF
8356 cat confdefs.h
>>conftest.
$ac_ext
8357 cat >>conftest.
$ac_ext <<_ACEOF
8358 /* end confdefs.h. */
8359 $ac_includes_default
8360 typedef void * ac__type_sizeof_;
8364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8371 rm -f conftest.
$ac_objext
8372 if { (ac_try
="$ac_compile"
8374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8380 grep -v '^ *+' conftest.er1 >conftest.err
8382 cat conftest.err >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } && {
8385 test -z "$ac_c_werror_flag" ||
8386 test ! -s conftest.err
8387 } && test -s conftest.$ac_objext; then
8390 cat >conftest.$ac_ext <<_ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8397 typedef void * ac__type_sizeof_;
8401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8408 rm -f conftest.$ac_objext
8409 if { (ac_try="$ac_compile"
8411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8412 *) ac_try_echo
=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8417 grep -v '^ *+' conftest.er1
>conftest.err
8419 cat conftest.err
>&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.
$ac_objext; then
8425 ac_hi
=$ac_mid; break
8427 echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.
$ac_ext >&5
8430 ac_lo
=`expr $ac_mid + 1`
8431 if test $ac_lo -le $ac_mid; then
8435 ac_mid
=`expr 2 '*' $ac_mid + 1`
8438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.
$ac_ext >&5
8444 cat >conftest.
$ac_ext <<_ACEOF
8447 cat confdefs.h
>>conftest.
$ac_ext
8448 cat >>conftest.
$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 $ac_includes_default
8451 typedef void * ac__type_sizeof_;
8455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8462 rm -f conftest.
$ac_objext
8463 if { (ac_try
="$ac_compile"
8465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8488 typedef void * ac__type_sizeof_;
8492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8499 rm -f conftest.$ac_objext
8500 if { (ac_try="$ac_compile"
8502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8503 *) ac_try_echo
=$ac_try;;
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_compile") 2>conftest.er1
8508 grep -v '^ *+' conftest.er1
>conftest.err
8510 cat conftest.err
>&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && {
8513 test -z "$ac_c_werror_flag" ||
8514 test ! -s conftest.err
8515 } && test -s conftest.
$ac_objext; then
8516 ac_lo
=$ac_mid; break
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.
$ac_ext >&5
8521 ac_hi
=`expr '(' $ac_mid ')' - 1`
8522 if test $ac_mid -le $ac_hi; then
8526 ac_mid
=`expr 2 '*' $ac_mid`
8529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.
$ac_ext >&5
8538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8542 # Binary search between lo and hi bounds.
8543 while test "x$ac_lo" != "x$ac_hi"; do
8544 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8545 cat >conftest.
$ac_ext <<_ACEOF
8548 cat confdefs.h
>>conftest.
$ac_ext
8549 cat >>conftest.
$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 $ac_includes_default
8552 typedef void * ac__type_sizeof_;
8556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8563 rm -f conftest.
$ac_objext
8564 if { (ac_try
="$ac_compile"
8566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_lo=`expr '(' $ac_mid ')' + 1`
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8592 '') if test "$ac_cv_type_void_p" = yes; then
8593 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8594 See \`config.log
' for more details." >&5
8595 echo "$as_me: error: cannot compute sizeof (void *)
8596 See \`config.log' for more details.
" >&2;}
8597 { (exit 77); exit 77; }; }
8599 ac_cv_sizeof_void_p=0
8603 cat >conftest.$ac_ext <<_ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 $ac_includes_default
8610 typedef void * ac__type_sizeof_;
8611 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8612 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8619 FILE *f = fopen ("conftest.val
", "w
");
8622 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8624 long int i = longval ();
8625 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8627 fprintf (f, "%ld
\n", i);
8631 unsigned long int i = ulongval ();
8632 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8634 fprintf (f, "%lu
\n", i);
8636 return ferror (f) || fclose (f) != 0;
8642 rm -f conftest$ac_exeext
8643 if { (ac_try="$ac_link"
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_link") 2>&5
8651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8653 { (case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_try") 2>&5
8660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_cv_sizeof_void_p=`cat conftest.val`
8664 echo "$as_me: program exited with status
$ac_status" >&5
8665 echo "$as_me: failed program was
:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8669 if test "$ac_cv_type_void_p" = yes; then
8670 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8671 See \
`config.log' for more details." >&5
8672 echo "$as_me: error: cannot compute sizeof (void *)
8673 See \`config.log
' for more details." >&2;}
8674 { (exit 77); exit 77; }; }
8676 ac_cv_sizeof_void_p=0
8679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8683 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8684 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8688 cat >>confdefs.h <<_ACEOF
8689 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8693 { echo "$as_me:$LINENO: checking for short" >&5
8694 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8695 if test "${ac_cv_type_short+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8698 cat >conftest.$ac_ext <<_ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8705 typedef short ac__type_new_;
8709 if ((ac__type_new_ *) 0)
8711 if (sizeof (ac__type_new_))
8717 rm -f conftest.$ac_objext
8718 if { (ac_try="$ac_compile"
8720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_compile") 2>conftest.er1
8726 grep -v '^
*+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && {
8731 test -z "$ac_c_werror_flag" ||
8732 test ! -s conftest.err
8733 } && test -s conftest.$ac_objext; then
8734 ac_cv_type_short=yes
8736 echo "$as_me: failed program was:" >&5
8737 sed 's
/^
/|
/' conftest.$ac_ext >&5
8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8745 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8747 # The cast to long int works around a bug in the HP C Compiler
8748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8750 # This bug is HP SR number 8606223364.
8751 { echo "$as_me:$LINENO: checking size of short" >&5
8752 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8753 if test "${ac_cv_sizeof_short+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 if test "$cross_compiling" = yes; then
8757 # Depending upon the size, compute the lo and hi bounds.
8758 cat >conftest.
$ac_ext <<_ACEOF
8761 cat confdefs.h
>>conftest.
$ac_ext
8762 cat >>conftest.
$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 $ac_includes_default
8765 typedef short ac__type_sizeof_;
8769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8776 rm -f conftest.
$ac_objext
8777 if { (ac_try
="$ac_compile"
8779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783 (eval "$ac_compile") 2>conftest.er1
8785 grep -v '^ *+' conftest.er1 >conftest.err
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } && {
8790 test -z "$ac_c_werror_flag" ||
8791 test ! -s conftest.err
8792 } && test -s conftest.$ac_objext; then
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 $ac_includes_default
8802 typedef short ac__type_sizeof_;
8806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8813 rm -f conftest.$ac_objext
8814 if { (ac_try="$ac_compile"
8816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8817 *) ac_try_echo
=$ac_try;;
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820 (eval "$ac_compile") 2>conftest.er1
8822 grep -v '^ *+' conftest.er1
>conftest.err
8824 cat conftest.err
>&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && {
8827 test -z "$ac_c_werror_flag" ||
8828 test ! -s conftest.err
8829 } && test -s conftest.
$ac_objext; then
8830 ac_hi
=$ac_mid; break
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.
$ac_ext >&5
8835 ac_lo
=`expr $ac_mid + 1`
8836 if test $ac_lo -le $ac_mid; then
8840 ac_mid
=`expr 2 '*' $ac_mid + 1`
8843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.
$ac_ext >&5
8849 cat >conftest.
$ac_ext <<_ACEOF
8852 cat confdefs.h
>>conftest.
$ac_ext
8853 cat >>conftest.
$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 $ac_includes_default
8856 typedef short ac__type_sizeof_;
8860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8867 rm -f conftest.
$ac_objext
8868 if { (ac_try
="$ac_compile"
8870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_compile") 2>conftest.er1
8876 grep -v '^ *+' conftest.er1 >conftest.err
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } && {
8881 test -z "$ac_c_werror_flag" ||
8882 test ! -s conftest.err
8883 } && test -s conftest.$ac_objext; then
8886 cat >conftest.$ac_ext <<_ACEOF
8889 cat confdefs.h >>conftest.$ac_ext
8890 cat >>conftest.$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 $ac_includes_default
8893 typedef short ac__type_sizeof_;
8897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8904 rm -f conftest.$ac_objext
8905 if { (ac_try="$ac_compile"
8907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8908 *) ac_try_echo
=$ac_try;;
8910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_compile") 2>conftest.er1
8913 grep -v '^ *+' conftest.er1
>conftest.err
8915 cat conftest.err
>&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } && {
8918 test -z "$ac_c_werror_flag" ||
8919 test ! -s conftest.err
8920 } && test -s conftest.
$ac_objext; then
8921 ac_lo
=$ac_mid; break
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.
$ac_ext >&5
8926 ac_hi
=`expr '(' $ac_mid ')' - 1`
8927 if test $ac_mid -le $ac_hi; then
8931 ac_mid
=`expr 2 '*' $ac_mid`
8934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.
$ac_ext >&5
8943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8947 # Binary search between lo and hi bounds.
8948 while test "x$ac_lo" != "x$ac_hi"; do
8949 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8950 cat >conftest.
$ac_ext <<_ACEOF
8953 cat confdefs.h
>>conftest.
$ac_ext
8954 cat >>conftest.
$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8956 $ac_includes_default
8957 typedef short ac__type_sizeof_;
8961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8968 rm -f conftest.
$ac_objext
8969 if { (ac_try
="$ac_compile"
8971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_compile") 2>conftest.er1
8977 grep -v '^ *+' conftest.er1 >conftest.err
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_c_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest.$ac_objext; then
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 ac_lo=`expr '(' $ac_mid ')' + 1`
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 ?*) ac_cv_sizeof_short=$ac_lo;;
8997 '') if test "$ac_cv_type_short" = yes; then
8998 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8999 See \`config.log
' for more details." >&5
9000 echo "$as_me: error: cannot compute sizeof (short)
9001 See \`config.log' for more details.
" >&2;}
9002 { (exit 77); exit 77; }; }
9004 ac_cv_sizeof_short=0
9008 cat >conftest.$ac_ext <<_ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 $ac_includes_default
9015 typedef short ac__type_sizeof_;
9016 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9017 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9024 FILE *f = fopen ("conftest.val
", "w
");
9027 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9029 long int i = longval ();
9030 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9032 fprintf (f, "%ld
\n", i);
9036 unsigned long int i = ulongval ();
9037 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9039 fprintf (f, "%lu
\n", i);
9041 return ferror (f) || fclose (f) != 0;
9047 rm -f conftest$ac_exeext
9048 if { (ac_try="$ac_link"
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_link") 2>&5
9056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9058 { (case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_try") 2>&5
9065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_sizeof_short=`cat conftest.val`
9069 echo "$as_me: program exited with status
$ac_status" >&5
9070 echo "$as_me: failed program was
:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9074 if test "$ac_cv_type_short" = yes; then
9075 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9076 See \
`config.log' for more details." >&5
9077 echo "$as_me: error: cannot compute sizeof (short)
9078 See \`config.log
' for more details." >&2;}
9079 { (exit 77); exit 77; }; }
9081 ac_cv_sizeof_short=0
9084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9088 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9089 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9093 cat >>confdefs.h <<_ACEOF
9094 #define SIZEOF_SHORT $ac_cv_sizeof_short
9098 { echo "$as_me:$LINENO: checking for float" >&5
9099 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9100 if test "${ac_cv_type_float+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9109 $ac_includes_default
9110 typedef float ac__type_new_;
9114 if ((ac__type_new_ *) 0)
9116 if (sizeof (ac__type_new_))
9122 rm -f conftest.$ac_objext
9123 if { (ac_try="$ac_compile"
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_compile") 2>conftest.er1
9131 grep -v '^
*+' conftest.er1 >conftest.err
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && {
9136 test -z "$ac_c_werror_flag" ||
9137 test ! -s conftest.err
9138 } && test -s conftest.$ac_objext; then
9139 ac_cv_type_float=yes
9141 echo "$as_me: failed program was:" >&5
9142 sed 's
/^
/|
/' conftest.$ac_ext >&5
9147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9149 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9150 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9152 # The cast to long int works around a bug in the HP C Compiler
9153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9155 # This bug is HP SR number 8606223364.
9156 { echo "$as_me:$LINENO: checking size of float" >&5
9157 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9158 if test "${ac_cv_sizeof_float+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 if test "$cross_compiling" = yes; then
9162 # Depending upon the size, compute the lo and hi bounds.
9163 cat >conftest.
$ac_ext <<_ACEOF
9166 cat confdefs.h
>>conftest.
$ac_ext
9167 cat >>conftest.
$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9169 $ac_includes_default
9170 typedef float ac__type_sizeof_;
9174 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9181 rm -f conftest.
$ac_objext
9182 if { (ac_try
="$ac_compile"
9184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_compile") 2>conftest.er1
9190 grep -v '^ *+' conftest.er1 >conftest.err
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } && {
9195 test -z "$ac_c_werror_flag" ||
9196 test ! -s conftest.err
9197 } && test -s conftest.$ac_objext; then
9200 cat >conftest.$ac_ext <<_ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 $ac_includes_default
9207 typedef float ac__type_sizeof_;
9211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9218 rm -f conftest.$ac_objext
9219 if { (ac_try="$ac_compile"
9221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9222 *) ac_try_echo
=$ac_try;;
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_compile") 2>conftest.er1
9227 grep -v '^ *+' conftest.er1
>conftest.err
9229 cat conftest.err
>&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest.
$ac_objext; then
9235 ac_hi
=$ac_mid; break
9237 echo "$as_me: failed program was:" >&5
9238 sed 's/^/| /' conftest.
$ac_ext >&5
9240 ac_lo
=`expr $ac_mid + 1`
9241 if test $ac_lo -le $ac_mid; then
9245 ac_mid
=`expr 2 '*' $ac_mid + 1`
9248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.
$ac_ext >&5
9254 cat >conftest.
$ac_ext <<_ACEOF
9257 cat confdefs.h
>>conftest.
$ac_ext
9258 cat >>conftest.
$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9260 $ac_includes_default
9261 typedef float ac__type_sizeof_;
9265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9272 rm -f conftest.
$ac_objext
9273 if { (ac_try
="$ac_compile"
9275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_compile") 2>conftest.er1
9281 grep -v '^ *+' conftest.er1 >conftest.err
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest.$ac_objext; then
9291 cat >conftest.$ac_ext <<_ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9297 $ac_includes_default
9298 typedef float ac__type_sizeof_;
9302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9309 rm -f conftest.$ac_objext
9310 if { (ac_try="$ac_compile"
9312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9313 *) ac_try_echo
=$ac_try;;
9315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316 (eval "$ac_compile") 2>conftest.er1
9318 grep -v '^ *+' conftest.er1
>conftest.err
9320 cat conftest.err
>&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } && {
9323 test -z "$ac_c_werror_flag" ||
9324 test ! -s conftest.err
9325 } && test -s conftest.
$ac_objext; then
9326 ac_lo
=$ac_mid; break
9328 echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.
$ac_ext >&5
9331 ac_hi
=`expr '(' $ac_mid ')' - 1`
9332 if test $ac_mid -le $ac_hi; then
9336 ac_mid
=`expr 2 '*' $ac_mid`
9339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.
$ac_ext >&5
9348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9352 # Binary search between lo and hi bounds.
9353 while test "x$ac_lo" != "x$ac_hi"; do
9354 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9355 cat >conftest.
$ac_ext <<_ACEOF
9358 cat confdefs.h
>>conftest.
$ac_ext
9359 cat >>conftest.
$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361 $ac_includes_default
9362 typedef float ac__type_sizeof_;
9366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9373 rm -f conftest.
$ac_objext
9374 if { (ac_try
="$ac_compile"
9376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9382 grep -v '^ *+' conftest.er1 >conftest.err
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.$ac_objext; then
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9395 ac_lo=`expr '(' $ac_mid ')' + 1`
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 ?*) ac_cv_sizeof_float=$ac_lo;;
9402 '') if test "$ac_cv_type_float" = yes; then
9403 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9404 See \`config.log
' for more details." >&5
9405 echo "$as_me: error: cannot compute sizeof (float)
9406 See \`config.log' for more details.
" >&2;}
9407 { (exit 77); exit 77; }; }
9409 ac_cv_sizeof_float=0
9413 cat >conftest.$ac_ext <<_ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 $ac_includes_default
9420 typedef float ac__type_sizeof_;
9421 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9422 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9429 FILE *f = fopen ("conftest.val
", "w
");
9432 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9434 long int i = longval ();
9435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9437 fprintf (f, "%ld
\n", i);
9441 unsigned long int i = ulongval ();
9442 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9444 fprintf (f, "%lu
\n", i);
9446 return ferror (f) || fclose (f) != 0;
9452 rm -f conftest$ac_exeext
9453 if { (ac_try="$ac_link"
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_link") 2>&5
9461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9463 { (case "(($ac_try" in
9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_try") 2>&5
9470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9471 (exit $ac_status); }; }; then
9472 ac_cv_sizeof_float=`cat conftest.val`
9474 echo "$as_me: program exited with status
$ac_status" >&5
9475 echo "$as_me: failed program was
:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9479 if test "$ac_cv_type_float" = yes; then
9480 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9481 See \
`config.log' for more details." >&5
9482 echo "$as_me: error: cannot compute sizeof (float)
9483 See \`config.log
' for more details." >&2;}
9484 { (exit 77); exit 77; }; }
9486 ac_cv_sizeof_float=0
9489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9493 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9494 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9498 cat >>confdefs.h <<_ACEOF
9499 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9503 { echo "$as_me:$LINENO: checking for double" >&5
9504 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9505 if test "${ac_cv_type_double+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 $ac_includes_default
9515 typedef double ac__type_new_;
9519 if ((ac__type_new_ *) 0)
9521 if (sizeof (ac__type_new_))
9527 rm -f conftest.$ac_objext
9528 if { (ac_try="$ac_compile"
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_compile") 2>conftest.er1
9536 grep -v '^
*+' conftest.er1 >conftest.err
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest.$ac_objext; then
9544 ac_cv_type_double=yes
9546 echo "$as_me: failed program was:" >&5
9547 sed 's
/^
/|
/' conftest.$ac_ext >&5
9549 ac_cv_type_double=no
9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9555 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9557 # The cast to long int works around a bug in the HP C Compiler
9558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9560 # This bug is HP SR number 8606223364.
9561 { echo "$as_me:$LINENO: checking size of double" >&5
9562 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9563 if test "${ac_cv_sizeof_double+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 if test "$cross_compiling" = yes; then
9567 # Depending upon the size, compute the lo and hi bounds.
9568 cat >conftest.
$ac_ext <<_ACEOF
9571 cat confdefs.h
>>conftest.
$ac_ext
9572 cat >>conftest.
$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574 $ac_includes_default
9575 typedef double ac__type_sizeof_;
9579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9586 rm -f conftest.
$ac_objext
9587 if { (ac_try
="$ac_compile"
9589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_compile") 2>conftest.er1
9595 grep -v '^ *+' conftest.er1 >conftest.err
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } && {
9600 test -z "$ac_c_werror_flag" ||
9601 test ! -s conftest.err
9602 } && test -s conftest.$ac_objext; then
9605 cat >conftest.$ac_ext <<_ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 $ac_includes_default
9612 typedef double ac__type_sizeof_;
9616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9623 rm -f conftest.$ac_objext
9624 if { (ac_try="$ac_compile"
9626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9627 *) ac_try_echo
=$ac_try;;
9629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_compile") 2>conftest.er1
9632 grep -v '^ *+' conftest.er1
>conftest.err
9634 cat conftest.err
>&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } && {
9637 test -z "$ac_c_werror_flag" ||
9638 test ! -s conftest.err
9639 } && test -s conftest.
$ac_objext; then
9640 ac_hi
=$ac_mid; break
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.
$ac_ext >&5
9645 ac_lo
=`expr $ac_mid + 1`
9646 if test $ac_lo -le $ac_mid; then
9650 ac_mid
=`expr 2 '*' $ac_mid + 1`
9653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.
$ac_ext >&5
9659 cat >conftest.
$ac_ext <<_ACEOF
9662 cat confdefs.h
>>conftest.
$ac_ext
9663 cat >>conftest.
$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 $ac_includes_default
9666 typedef double ac__type_sizeof_;
9670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9677 rm -f conftest.
$ac_objext
9678 if { (ac_try
="$ac_compile"
9680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9681 *) ac_try_echo=$ac_try;;
9683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684 (eval "$ac_compile") 2>conftest.er1
9686 grep -v '^ *+' conftest.er1 >conftest.err
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } && {
9691 test -z "$ac_c_werror_flag" ||
9692 test ! -s conftest.err
9693 } && test -s conftest.$ac_objext; then
9696 cat >conftest.$ac_ext <<_ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9702 $ac_includes_default
9703 typedef double ac__type_sizeof_;
9707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9714 rm -f conftest.$ac_objext
9715 if { (ac_try="$ac_compile"
9717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9718 *) ac_try_echo
=$ac_try;;
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_compile") 2>conftest.er1
9723 grep -v '^ *+' conftest.er1
>conftest.err
9725 cat conftest.err
>&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } && {
9728 test -z "$ac_c_werror_flag" ||
9729 test ! -s conftest.err
9730 } && test -s conftest.
$ac_objext; then
9731 ac_lo
=$ac_mid; break
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.
$ac_ext >&5
9736 ac_hi
=`expr '(' $ac_mid ')' - 1`
9737 if test $ac_mid -le $ac_hi; then
9741 ac_mid
=`expr 2 '*' $ac_mid`
9744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.
$ac_ext >&5
9753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9757 # Binary search between lo and hi bounds.
9758 while test "x$ac_lo" != "x$ac_hi"; do
9759 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9760 cat >conftest.
$ac_ext <<_ACEOF
9763 cat confdefs.h
>>conftest.
$ac_ext
9764 cat >>conftest.
$ac_ext <<_ACEOF
9765 /* end confdefs.h. */
9766 $ac_includes_default
9767 typedef double ac__type_sizeof_;
9771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9778 rm -f conftest.
$ac_objext
9779 if { (ac_try
="$ac_compile"
9781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_compile") 2>conftest.er1
9787 grep -v '^ *+' conftest.er1 >conftest.err
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } && {
9792 test -z "$ac_c_werror_flag" ||
9793 test ! -s conftest.err
9794 } && test -s conftest.$ac_objext; then
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_lo=`expr '(' $ac_mid ')' + 1`
9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 ?*) ac_cv_sizeof_double=$ac_lo;;
9807 '') if test "$ac_cv_type_double" = yes; then
9808 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9809 See \`config.log
' for more details." >&5
9810 echo "$as_me: error: cannot compute sizeof (double)
9811 See \`config.log' for more details.
" >&2;}
9812 { (exit 77); exit 77; }; }
9814 ac_cv_sizeof_double=0
9818 cat >conftest.$ac_ext <<_ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 $ac_includes_default
9825 typedef double ac__type_sizeof_;
9826 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9827 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9834 FILE *f = fopen ("conftest.val
", "w
");
9837 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9839 long int i = longval ();
9840 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9842 fprintf (f, "%ld
\n", i);
9846 unsigned long int i = ulongval ();
9847 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9849 fprintf (f, "%lu
\n", i);
9851 return ferror (f) || fclose (f) != 0;
9857 rm -f conftest$ac_exeext
9858 if { (ac_try="$ac_link"
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_link") 2>&5
9866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_try") 2>&5
9875 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_sizeof_double=`cat conftest.val`
9879 echo "$as_me: program exited with status
$ac_status" >&5
9880 echo "$as_me: failed program was
:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9884 if test "$ac_cv_type_double" = yes; then
9885 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9886 See \
`config.log' for more details." >&5
9887 echo "$as_me: error: cannot compute sizeof (double)
9888 See \`config.log
' for more details." >&2;}
9889 { (exit 77); exit 77; }; }
9891 ac_cv_sizeof_double=0
9894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9898 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9899 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9903 cat >>confdefs.h <<_ACEOF
9904 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9908 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9909 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9910 if test "${ac_cv_type_fpos_t+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 cat >conftest.$ac_ext <<_ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h. */
9919 $ac_includes_default
9920 typedef fpos_t ac__type_new_;
9924 if ((ac__type_new_ *) 0)
9926 if (sizeof (ac__type_new_))
9932 rm -f conftest.$ac_objext
9933 if { (ac_try="$ac_compile"
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_compile") 2>conftest.er1
9941 grep -v '^
*+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest.$ac_objext; then
9949 ac_cv_type_fpos_t=yes
9951 echo "$as_me: failed program was:" >&5
9952 sed 's
/^
/|
/' conftest.$ac_ext >&5
9954 ac_cv_type_fpos_t=no
9957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9960 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9962 # The cast to long int works around a bug in the HP C Compiler
9963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9965 # This bug is HP SR number 8606223364.
9966 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9967 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9968 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 if test "$cross_compiling" = yes; then
9972 # Depending upon the size, compute the lo and hi bounds.
9973 cat >conftest.
$ac_ext <<_ACEOF
9976 cat confdefs.h
>>conftest.
$ac_ext
9977 cat >>conftest.
$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 $ac_includes_default
9980 typedef fpos_t ac__type_sizeof_;
9984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9991 rm -f conftest.
$ac_objext
9992 if { (ac_try
="$ac_compile"
9994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_compile") 2>conftest.er1
10000 grep -v '^ *+' conftest.er1 >conftest.err
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest.$ac_objext; then
10010 cat >conftest.$ac_ext <<_ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 $ac_includes_default
10017 typedef fpos_t ac__type_sizeof_;
10021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10028 rm -f conftest.$ac_objext
10029 if { (ac_try="$ac_compile"
10030 case "(($ac_try" in
10031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10032 *) ac_try_echo
=$ac_try;;
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_compile") 2>conftest.er1
10037 grep -v '^ *+' conftest.er1
>conftest.err
10039 cat conftest.err
>&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } && {
10042 test -z "$ac_c_werror_flag" ||
10043 test ! -s conftest.err
10044 } && test -s conftest.
$ac_objext; then
10045 ac_hi
=$ac_mid; break
10047 echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.
$ac_ext >&5
10050 ac_lo
=`expr $ac_mid + 1`
10051 if test $ac_lo -le $ac_mid; then
10055 ac_mid
=`expr 2 '*' $ac_mid + 1`
10058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.
$ac_ext >&5
10064 cat >conftest.
$ac_ext <<_ACEOF
10067 cat confdefs.h
>>conftest.
$ac_ext
10068 cat >>conftest.
$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 $ac_includes_default
10071 typedef fpos_t ac__type_sizeof_;
10075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10082 rm -f conftest.
$ac_objext
10083 if { (ac_try
="$ac_compile"
10084 case "(($ac_try" in
10085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_compile") 2>conftest.er1
10091 grep -v '^ *+' conftest.er1 >conftest.err
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } && {
10096 test -z "$ac_c_werror_flag" ||
10097 test ! -s conftest.err
10098 } && test -s conftest.$ac_objext; then
10101 cat >conftest.$ac_ext <<_ACEOF
10104 cat confdefs.h >>conftest.$ac_ext
10105 cat >>conftest.$ac_ext <<_ACEOF
10106 /* end confdefs.h. */
10107 $ac_includes_default
10108 typedef fpos_t ac__type_sizeof_;
10112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10119 rm -f conftest.$ac_objext
10120 if { (ac_try="$ac_compile"
10121 case "(($ac_try" in
10122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10123 *) ac_try_echo
=$ac_try;;
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_compile") 2>conftest.er1
10128 grep -v '^ *+' conftest.er1
>conftest.err
10130 cat conftest.err
>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } && {
10133 test -z "$ac_c_werror_flag" ||
10134 test ! -s conftest.err
10135 } && test -s conftest.
$ac_objext; then
10136 ac_lo
=$ac_mid; break
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.
$ac_ext >&5
10141 ac_hi
=`expr '(' $ac_mid ')' - 1`
10142 if test $ac_mid -le $ac_hi; then
10146 ac_mid
=`expr 2 '*' $ac_mid`
10149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10152 echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.
$ac_ext >&5
10158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10162 # Binary search between lo and hi bounds.
10163 while test "x$ac_lo" != "x$ac_hi"; do
10164 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10165 cat >conftest.
$ac_ext <<_ACEOF
10168 cat confdefs.h
>>conftest.
$ac_ext
10169 cat >>conftest.
$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171 $ac_includes_default
10172 typedef fpos_t ac__type_sizeof_;
10176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10183 rm -f conftest.
$ac_objext
10184 if { (ac_try
="$ac_compile"
10185 case "(($ac_try" in
10186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_compile") 2>conftest.er1
10192 grep -v '^ *+' conftest.er1 >conftest.err
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } && {
10197 test -z "$ac_c_werror_flag" ||
10198 test ! -s conftest.err
10199 } && test -s conftest.$ac_objext; then
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_lo=`expr '(' $ac_mid ')' + 1`
10208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10211 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10212 '') if test "$ac_cv_type_fpos_t" = yes; then
10213 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10214 See \`config.log
' for more details." >&5
10215 echo "$as_me: error: cannot compute sizeof (fpos_t)
10216 See \`config.log' for more details.
" >&2;}
10217 { (exit 77); exit 77; }; }
10219 ac_cv_sizeof_fpos_t=0
10223 cat >conftest.$ac_ext <<_ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 $ac_includes_default
10230 typedef fpos_t ac__type_sizeof_;
10231 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10232 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10234 #include <stdlib.h>
10239 FILE *f = fopen ("conftest.val
", "w
");
10242 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10244 long int i = longval ();
10245 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10247 fprintf (f, "%ld
\n", i);
10251 unsigned long int i = ulongval ();
10252 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10254 fprintf (f, "%lu
\n", i);
10256 return ferror (f) || fclose (f) != 0;
10262 rm -f conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_link") 2>&5
10271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
10280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_sizeof_fpos_t=`cat conftest.val`
10284 echo "$as_me: program exited with status
$ac_status" >&5
10285 echo "$as_me: failed program was
:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10288 ( exit $ac_status )
10289 if test "$ac_cv_type_fpos_t" = yes; then
10290 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10291 See \
`config.log' for more details." >&5
10292 echo "$as_me: error: cannot compute sizeof (fpos_t)
10293 See \`config.log
' for more details." >&2;}
10294 { (exit 77); exit 77; }; }
10296 ac_cv_sizeof_fpos_t=0
10299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10303 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10304 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10308 cat >>confdefs.h <<_ACEOF
10309 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10313 { echo "$as_me:$LINENO: checking for size_t" >&5
10314 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10315 if test "${ac_cv_type_size_t+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 $ac_includes_default
10325 typedef size_t ac__type_new_;
10329 if ((ac__type_new_ *) 0)
10331 if (sizeof (ac__type_new_))
10337 rm -f conftest.$ac_objext
10338 if { (ac_try="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_compile") 2>conftest.er1
10346 grep -v '^
*+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest.$ac_objext; then
10354 ac_cv_type_size_t=yes
10356 echo "$as_me: failed program was:" >&5
10357 sed 's
/^
/|
/' conftest.$ac_ext >&5
10359 ac_cv_type_size_t=no
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10365 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10367 # The cast to long int works around a bug in the HP C Compiler
10368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10370 # This bug is HP SR number 8606223364.
10371 { echo "$as_me:$LINENO: checking size of size_t" >&5
10372 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10373 if test "${ac_cv_sizeof_size_t+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 if test "$cross_compiling" = yes; then
10377 # Depending upon the size, compute the lo and hi bounds.
10378 cat >conftest.
$ac_ext <<_ACEOF
10381 cat confdefs.h
>>conftest.
$ac_ext
10382 cat >>conftest.
$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 $ac_includes_default
10385 typedef size_t ac__type_sizeof_;
10389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10396 rm -f conftest.
$ac_objext
10397 if { (ac_try
="$ac_compile"
10398 case "(($ac_try" in
10399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_compile") 2>conftest.er1
10405 grep -v '^ *+' conftest.er1 >conftest.err
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && {
10410 test -z "$ac_c_werror_flag" ||
10411 test ! -s conftest.err
10412 } && test -s conftest.$ac_objext; then
10415 cat >conftest.$ac_ext <<_ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 $ac_includes_default
10422 typedef size_t ac__type_sizeof_;
10426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10433 rm -f conftest.$ac_objext
10434 if { (ac_try="$ac_compile"
10435 case "(($ac_try" in
10436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10437 *) ac_try_echo
=$ac_try;;
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_compile") 2>conftest.er1
10442 grep -v '^ *+' conftest.er1
>conftest.err
10444 cat conftest.err
>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest.
$ac_objext; then
10450 ac_hi
=$ac_mid; break
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.
$ac_ext >&5
10455 ac_lo
=`expr $ac_mid + 1`
10456 if test $ac_lo -le $ac_mid; then
10460 ac_mid
=`expr 2 '*' $ac_mid + 1`
10463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.
$ac_ext >&5
10469 cat >conftest.
$ac_ext <<_ACEOF
10472 cat confdefs.h
>>conftest.
$ac_ext
10473 cat >>conftest.
$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 $ac_includes_default
10476 typedef size_t ac__type_sizeof_;
10480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10487 rm -f conftest.
$ac_objext
10488 if { (ac_try
="$ac_compile"
10489 case "(($ac_try" in
10490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_compile") 2>conftest.er1
10496 grep -v '^ *+' conftest.er1 >conftest.err
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } && {
10501 test -z "$ac_c_werror_flag" ||
10502 test ! -s conftest.err
10503 } && test -s conftest.$ac_objext; then
10506 cat >conftest.$ac_ext <<_ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512 $ac_includes_default
10513 typedef size_t ac__type_sizeof_;
10517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10524 rm -f conftest.$ac_objext
10525 if { (ac_try="$ac_compile"
10526 case "(($ac_try" in
10527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10528 *) ac_try_echo
=$ac_try;;
10530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531 (eval "$ac_compile") 2>conftest.er1
10533 grep -v '^ *+' conftest.er1
>conftest.err
10535 cat conftest.err
>&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } && {
10538 test -z "$ac_c_werror_flag" ||
10539 test ! -s conftest.err
10540 } && test -s conftest.
$ac_objext; then
10541 ac_lo
=$ac_mid; break
10543 echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.
$ac_ext >&5
10546 ac_hi
=`expr '(' $ac_mid ')' - 1`
10547 if test $ac_mid -le $ac_hi; then
10551 ac_mid
=`expr 2 '*' $ac_mid`
10554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10557 echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.
$ac_ext >&5
10563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10567 # Binary search between lo and hi bounds.
10568 while test "x$ac_lo" != "x$ac_hi"; do
10569 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10570 cat >conftest.
$ac_ext <<_ACEOF
10573 cat confdefs.h
>>conftest.
$ac_ext
10574 cat >>conftest.
$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 $ac_includes_default
10577 typedef size_t ac__type_sizeof_;
10581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10588 rm -f conftest.
$ac_objext
10589 if { (ac_try
="$ac_compile"
10590 case "(($ac_try" in
10591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_compile") 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest.$ac_objext; then
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10610 ac_lo=`expr '(' $ac_mid ')' + 1`
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10617 '') if test "$ac_cv_type_size_t" = yes; then
10618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10619 See \`config.log
' for more details." >&5
10620 echo "$as_me: error: cannot compute sizeof (size_t)
10621 See \`config.log' for more details.
" >&2;}
10622 { (exit 77); exit 77; }; }
10624 ac_cv_sizeof_size_t=0
10628 cat >conftest.$ac_ext <<_ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 $ac_includes_default
10635 typedef size_t ac__type_sizeof_;
10636 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10637 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10639 #include <stdlib.h>
10644 FILE *f = fopen ("conftest.val
", "w
");
10647 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10649 long int i = longval ();
10650 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10652 fprintf (f, "%ld
\n", i);
10656 unsigned long int i = ulongval ();
10657 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10659 fprintf (f, "%lu
\n", i);
10661 return ferror (f) || fclose (f) != 0;
10667 rm -f conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_link") 2>&5
10676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10678 { (case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_try") 2>&5
10685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10686 (exit $ac_status); }; }; then
10687 ac_cv_sizeof_size_t=`cat conftest.val`
10689 echo "$as_me: program exited with status
$ac_status" >&5
10690 echo "$as_me: failed program was
:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ( exit $ac_status )
10694 if test "$ac_cv_type_size_t" = yes; then
10695 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10696 See \
`config.log' for more details." >&5
10697 echo "$as_me: error: cannot compute sizeof (size_t)
10698 See \`config.log
' for more details." >&2;}
10699 { (exit 77); exit 77; }; }
10701 ac_cv_sizeof_size_t=0
10704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10708 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10709 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10713 cat >>confdefs.h <<_ACEOF
10714 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10718 { echo "$as_me:$LINENO: checking for pid_t" >&5
10719 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10720 if test "${ac_cv_type_pid_t+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 cat >conftest.$ac_ext <<_ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h. */
10729 $ac_includes_default
10730 typedef pid_t ac__type_new_;
10734 if ((ac__type_new_ *) 0)
10736 if (sizeof (ac__type_new_))
10742 rm -f conftest.$ac_objext
10743 if { (ac_try="$ac_compile"
10744 case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_compile") 2>conftest.er1
10751 grep -v '^
*+' conftest.er1 >conftest.err
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && {
10756 test -z "$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 } && test -s conftest.$ac_objext; then
10759 ac_cv_type_pid_t=yes
10761 echo "$as_me: failed program was:" >&5
10762 sed 's
/^
/|
/' conftest.$ac_ext >&5
10764 ac_cv_type_pid_t=no
10767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10770 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10772 # The cast to long int works around a bug in the HP C Compiler
10773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10775 # This bug is HP SR number 8606223364.
10776 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10777 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10778 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 if test "$cross_compiling" = yes; then
10782 # Depending upon the size, compute the lo and hi bounds.
10783 cat >conftest.
$ac_ext <<_ACEOF
10786 cat confdefs.h
>>conftest.
$ac_ext
10787 cat >>conftest.
$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 $ac_includes_default
10790 typedef pid_t ac__type_sizeof_;
10794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10801 rm -f conftest.
$ac_objext
10802 if { (ac_try
="$ac_compile"
10803 case "(($ac_try" in
10804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_compile") 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && {
10815 test -z "$ac_c_werror_flag" ||
10816 test ! -s conftest.err
10817 } && test -s conftest.$ac_objext; then
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 $ac_includes_default
10827 typedef pid_t ac__type_sizeof_;
10831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10838 rm -f conftest.$ac_objext
10839 if { (ac_try="$ac_compile"
10840 case "(($ac_try" in
10841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10842 *) ac_try_echo
=$ac_try;;
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_compile") 2>conftest.er1
10847 grep -v '^ *+' conftest.er1
>conftest.err
10849 cat conftest.err
>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && {
10852 test -z "$ac_c_werror_flag" ||
10853 test ! -s conftest.err
10854 } && test -s conftest.
$ac_objext; then
10855 ac_hi
=$ac_mid; break
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.
$ac_ext >&5
10860 ac_lo
=`expr $ac_mid + 1`
10861 if test $ac_lo -le $ac_mid; then
10865 ac_mid
=`expr 2 '*' $ac_mid + 1`
10868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.
$ac_ext >&5
10874 cat >conftest.
$ac_ext <<_ACEOF
10877 cat confdefs.h
>>conftest.
$ac_ext
10878 cat >>conftest.
$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 $ac_includes_default
10881 typedef pid_t ac__type_sizeof_;
10885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10892 rm -f conftest.
$ac_objext
10893 if { (ac_try
="$ac_compile"
10894 case "(($ac_try" in
10895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_compile") 2>conftest.er1
10901 grep -v '^ *+' conftest.er1 >conftest.err
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && {
10906 test -z "$ac_c_werror_flag" ||
10907 test ! -s conftest.err
10908 } && test -s conftest.$ac_objext; then
10911 cat >conftest.$ac_ext <<_ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10917 $ac_includes_default
10918 typedef pid_t ac__type_sizeof_;
10922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
10931 case "(($ac_try" in
10932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10933 *) ac_try_echo
=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_compile") 2>conftest.er1
10938 grep -v '^ *+' conftest.er1
>conftest.err
10940 cat conftest.err
>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } && {
10943 test -z "$ac_c_werror_flag" ||
10944 test ! -s conftest.err
10945 } && test -s conftest.
$ac_objext; then
10946 ac_lo
=$ac_mid; break
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.
$ac_ext >&5
10951 ac_hi
=`expr '(' $ac_mid ')' - 1`
10952 if test $ac_mid -le $ac_hi; then
10956 ac_mid
=`expr 2 '*' $ac_mid`
10959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.
$ac_ext >&5
10968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10972 # Binary search between lo and hi bounds.
10973 while test "x$ac_lo" != "x$ac_hi"; do
10974 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10975 cat >conftest.
$ac_ext <<_ACEOF
10978 cat confdefs.h
>>conftest.
$ac_ext
10979 cat >>conftest.
$ac_ext <<_ACEOF
10980 /* end confdefs.h. */
10981 $ac_includes_default
10982 typedef pid_t ac__type_sizeof_;
10986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10993 rm -f conftest.
$ac_objext
10994 if { (ac_try
="$ac_compile"
10995 case "(($ac_try" in
10996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_compile") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && {
11007 test -z "$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest.$ac_objext; then
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ac_lo=`expr '(' $ac_mid ')' + 1`
11018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11022 '') if test "$ac_cv_type_pid_t" = yes; then
11023 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11024 See \`config.log
' for more details." >&5
11025 echo "$as_me: error: cannot compute sizeof (pid_t)
11026 See \`config.log' for more details.
" >&2;}
11027 { (exit 77); exit 77; }; }
11029 ac_cv_sizeof_pid_t=0
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 $ac_includes_default
11040 typedef pid_t ac__type_sizeof_;
11041 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11042 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11044 #include <stdlib.h>
11049 FILE *f = fopen ("conftest.val
", "w
");
11052 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11054 long int i = longval ();
11055 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11057 fprintf (f, "%ld
\n", i);
11061 unsigned long int i = ulongval ();
11062 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11064 fprintf (f, "%lu
\n", i);
11066 return ferror (f) || fclose (f) != 0;
11072 rm -f conftest$ac_exeext
11073 if { (ac_try="$ac_link"
11074 case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_link") 2>&5
11081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11083 { (case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_try") 2>&5
11090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_cv_sizeof_pid_t=`cat conftest.val`
11094 echo "$as_me: program exited with status
$ac_status" >&5
11095 echo "$as_me: failed program was
:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 ( exit $ac_status )
11099 if test "$ac_cv_type_pid_t" = yes; then
11100 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11101 See \
`config.log' for more details." >&5
11102 echo "$as_me: error: cannot compute sizeof (pid_t)
11103 See \`config.log
' for more details." >&2;}
11104 { (exit 77); exit 77; }; }
11106 ac_cv_sizeof_pid_t=0
11109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11113 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11114 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11118 cat >>confdefs.h <<_ACEOF
11119 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11124 { echo "$as_me:$LINENO: checking for long long support" >&5
11125 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11137 long long x; x = (long long)0;
11142 rm -f conftest.$ac_objext
11143 if { (ac_try="$ac_compile"
11144 case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_compile") 2>conftest.er1
11151 grep -v '^
*+' conftest.er1 >conftest.err
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest.$ac_objext; then
11161 cat >>confdefs.h <<\_ACEOF
11162 #define HAVE_LONG_LONG 1
11168 echo "$as_me: failed program was:" >&5
11169 sed 's
/^
/|
/' conftest.$ac_ext >&5
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11176 echo "${ECHO_T}$have_long_long" >&6; }
11177 if test "$have_long_long" = yes ; then
11178 { echo "$as_me:$LINENO: checking for long long" >&5
11179 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11180 if test "${ac_cv_type_long_long+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 $ac_includes_default
11190 typedef long long ac__type_new_;
11194 if ((ac__type_new_ *) 0)
11196 if (sizeof (ac__type_new_))
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_compile") 2>conftest.er1
11211 grep -v '^
*+' conftest.er1 >conftest.err
11213 cat conftest.err >&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && {
11216 test -z "$ac_c_werror_flag" ||
11217 test ! -s conftest.err
11218 } && test -s conftest.$ac_objext; then
11219 ac_cv_type_long_long=yes
11221 echo "$as_me: failed program was:" >&5
11222 sed 's
/^
/|
/' conftest.$ac_ext >&5
11224 ac_cv_type_long_long=no
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11230 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11232 # The cast to long int works around a bug in the HP C Compiler
11233 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11234 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11235 # This bug is HP SR number 8606223364.
11236 { echo "$as_me:$LINENO: checking size of long long" >&5
11237 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11238 if test "${ac_cv_sizeof_long_long+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 if test "$cross_compiling" = yes; then
11242 # Depending upon the size, compute the lo and hi bounds.
11243 cat >conftest.
$ac_ext <<_ACEOF
11246 cat confdefs.h
>>conftest.
$ac_ext
11247 cat >>conftest.
$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 $ac_includes_default
11250 typedef long long ac__type_sizeof_;
11254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11261 rm -f conftest.
$ac_objext
11262 if { (ac_try
="$ac_compile"
11263 case "(($ac_try" in
11264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_compile") 2>conftest.er1
11270 grep -v '^ *+' conftest.er1 >conftest.err
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_c_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest.$ac_objext; then
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 $ac_includes_default
11287 typedef long long ac__type_sizeof_;
11291 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11298 rm -f conftest.$ac_objext
11299 if { (ac_try="$ac_compile"
11300 case "(($ac_try" in
11301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11302 *) ac_try_echo
=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_compile") 2>conftest.er1
11307 grep -v '^ *+' conftest.er1
>conftest.err
11309 cat conftest.err
>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } && {
11312 test -z "$ac_c_werror_flag" ||
11313 test ! -s conftest.err
11314 } && test -s conftest.
$ac_objext; then
11315 ac_hi
=$ac_mid; break
11317 echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.
$ac_ext >&5
11320 ac_lo
=`expr $ac_mid + 1`
11321 if test $ac_lo -le $ac_mid; then
11325 ac_mid
=`expr 2 '*' $ac_mid + 1`
11328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.
$ac_ext >&5
11334 cat >conftest.
$ac_ext <<_ACEOF
11337 cat confdefs.h
>>conftest.
$ac_ext
11338 cat >>conftest.
$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 $ac_includes_default
11341 typedef long long ac__type_sizeof_;
11345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11352 rm -f conftest.
$ac_objext
11353 if { (ac_try
="$ac_compile"
11354 case "(($ac_try" in
11355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11361 grep -v '^ *+' conftest.er1 >conftest.err
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11371 cat >conftest.$ac_ext <<_ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 $ac_includes_default
11378 typedef long long ac__type_sizeof_;
11382 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11389 rm -f conftest.$ac_objext
11390 if { (ac_try="$ac_compile"
11391 case "(($ac_try" in
11392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11393 *) ac_try_echo
=$ac_try;;
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_compile") 2>conftest.er1
11398 grep -v '^ *+' conftest.er1
>conftest.err
11400 cat conftest.err
>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } && {
11403 test -z "$ac_c_werror_flag" ||
11404 test ! -s conftest.err
11405 } && test -s conftest.
$ac_objext; then
11406 ac_lo
=$ac_mid; break
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.
$ac_ext >&5
11411 ac_hi
=`expr '(' $ac_mid ')' - 1`
11412 if test $ac_mid -le $ac_hi; then
11416 ac_mid
=`expr 2 '*' $ac_mid`
11419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.
$ac_ext >&5
11428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11432 # Binary search between lo and hi bounds.
11433 while test "x$ac_lo" != "x$ac_hi"; do
11434 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11435 cat >conftest.
$ac_ext <<_ACEOF
11438 cat confdefs.h
>>conftest.
$ac_ext
11439 cat >>conftest.
$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 $ac_includes_default
11442 typedef long long ac__type_sizeof_;
11446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11453 rm -f conftest.
$ac_objext
11454 if { (ac_try
="$ac_compile"
11455 case "(($ac_try" in
11456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_compile") 2>conftest.er1
11462 grep -v '^ *+' conftest.er1 >conftest.err
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest.$ac_objext; then
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_lo=`expr '(' $ac_mid ')' + 1`
11478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11482 '') if test "$ac_cv_type_long_long" = yes; then
11483 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11484 See \`config.log
' for more details." >&5
11485 echo "$as_me: error: cannot compute sizeof (long long)
11486 See \`config.log' for more details.
" >&2;}
11487 { (exit 77); exit 77; }; }
11489 ac_cv_sizeof_long_long=0
11493 cat >conftest.$ac_ext <<_ACEOF
11496 cat confdefs.h >>conftest.$ac_ext
11497 cat >>conftest.$ac_ext <<_ACEOF
11498 /* end confdefs.h. */
11499 $ac_includes_default
11500 typedef long long ac__type_sizeof_;
11501 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11502 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11504 #include <stdlib.h>
11509 FILE *f = fopen ("conftest.val
", "w
");
11512 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11514 long int i = longval ();
11515 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11517 fprintf (f, "%ld
\n", i);
11521 unsigned long int i = ulongval ();
11522 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11524 fprintf (f, "%lu
\n", i);
11526 return ferror (f) || fclose (f) != 0;
11532 rm -f conftest$ac_exeext
11533 if { (ac_try="$ac_link"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_link") 2>&5
11541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11543 { (case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11547 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_try") 2>&5
11550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 ac_cv_sizeof_long_long=`cat conftest.val`
11554 echo "$as_me: program exited with status
$ac_status" >&5
11555 echo "$as_me: failed program was
:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 ( exit $ac_status )
11559 if test "$ac_cv_type_long_long" = yes; then
11560 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11561 See \
`config.log' for more details." >&5
11562 echo "$as_me: error: cannot compute sizeof (long long)
11563 See \`config.log
' for more details." >&2;}
11564 { (exit 77); exit 77; }; }
11566 ac_cv_sizeof_long_long=0
11569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11573 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11574 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11578 cat >>confdefs.h <<_ACEOF
11579 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11585 { echo "$as_me:$LINENO: checking for long double support" >&5
11586 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11587 have_long_double=no
11588 cat >conftest.$ac_ext <<_ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11598 long double x; x = (long double)0.;
11603 rm -f conftest.$ac_objext
11604 if { (ac_try="$ac_compile"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_compile") 2>conftest.er1
11612 grep -v '^
*+' conftest.er1 >conftest.err
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } && {
11617 test -z "$ac_c_werror_flag" ||
11618 test ! -s conftest.err
11619 } && test -s conftest.$ac_objext; then
11622 cat >>confdefs.h <<\_ACEOF
11623 #define HAVE_LONG_DOUBLE 1
11626 have_long_double=yes
11629 echo "$as_me: failed program was:" >&5
11630 sed 's
/^
/|
/' conftest.$ac_ext >&5
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11637 echo "${ECHO_T}$have_long_double" >&6; }
11638 if test "$have_long_double" = yes ; then
11639 { echo "$as_me:$LINENO: checking for long double" >&5
11640 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11641 if test "${ac_cv_type_long_double+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 cat >conftest.$ac_ext <<_ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 $ac_includes_default
11651 typedef long double ac__type_new_;
11655 if ((ac__type_new_ *) 0)
11657 if (sizeof (ac__type_new_))
11663 rm -f conftest.$ac_objext
11664 if { (ac_try="$ac_compile"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_compile") 2>conftest.er1
11672 grep -v '^
*+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest.$ac_objext; then
11680 ac_cv_type_long_double=yes
11682 echo "$as_me: failed program was:" >&5
11683 sed 's
/^
/|
/' conftest.$ac_ext >&5
11685 ac_cv_type_long_double=no
11688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11691 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11693 # The cast to long int works around a bug in the HP C Compiler
11694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11696 # This bug is HP SR number 8606223364.
11697 { echo "$as_me:$LINENO: checking size of long double" >&5
11698 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11699 if test "${ac_cv_sizeof_long_double+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 if test "$cross_compiling" = yes; then
11703 # Depending upon the size, compute the lo and hi bounds.
11704 cat >conftest.
$ac_ext <<_ACEOF
11707 cat confdefs.h
>>conftest.
$ac_ext
11708 cat >>conftest.
$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 $ac_includes_default
11711 typedef long double ac__type_sizeof_;
11715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11722 rm -f conftest.
$ac_objext
11723 if { (ac_try
="$ac_compile"
11724 case "(($ac_try" in
11725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_compile") 2>conftest.er1
11731 grep -v '^ *+' conftest.er1 >conftest.err
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } && {
11736 test -z "$ac_c_werror_flag" ||
11737 test ! -s conftest.err
11738 } && test -s conftest.$ac_objext; then
11741 cat >conftest.$ac_ext <<_ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11748 typedef long double ac__type_sizeof_;
11752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11759 rm -f conftest.$ac_objext
11760 if { (ac_try="$ac_compile"
11761 case "(($ac_try" in
11762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11763 *) ac_try_echo
=$ac_try;;
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_compile") 2>conftest.er1
11768 grep -v '^ *+' conftest.er1
>conftest.err
11770 cat conftest.err
>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest.
$ac_objext; then
11776 ac_hi
=$ac_mid; break
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.
$ac_ext >&5
11781 ac_lo
=`expr $ac_mid + 1`
11782 if test $ac_lo -le $ac_mid; then
11786 ac_mid
=`expr 2 '*' $ac_mid + 1`
11789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.
$ac_ext >&5
11795 cat >conftest.
$ac_ext <<_ACEOF
11798 cat confdefs.h
>>conftest.
$ac_ext
11799 cat >>conftest.
$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 $ac_includes_default
11802 typedef long double ac__type_sizeof_;
11806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11813 rm -f conftest.
$ac_objext
11814 if { (ac_try
="$ac_compile"
11815 case "(($ac_try" in
11816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_compile") 2>conftest.er1
11822 grep -v '^ *+' conftest.er1 >conftest.err
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } && {
11827 test -z "$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 } && test -s conftest.$ac_objext; then
11832 cat >conftest.$ac_ext <<_ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838 $ac_includes_default
11839 typedef long double ac__type_sizeof_;
11843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11850 rm -f conftest.$ac_objext
11851 if { (ac_try="$ac_compile"
11852 case "(($ac_try" in
11853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11854 *) ac_try_echo
=$ac_try;;
11856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11857 (eval "$ac_compile") 2>conftest.er1
11859 grep -v '^ *+' conftest.er1
>conftest.err
11861 cat conftest.err
>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); } && {
11864 test -z "$ac_c_werror_flag" ||
11865 test ! -s conftest.err
11866 } && test -s conftest.
$ac_objext; then
11867 ac_lo
=$ac_mid; break
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.
$ac_ext >&5
11872 ac_hi
=`expr '(' $ac_mid ')' - 1`
11873 if test $ac_mid -le $ac_hi; then
11877 ac_mid
=`expr 2 '*' $ac_mid`
11880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.
$ac_ext >&5
11889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11893 # Binary search between lo and hi bounds.
11894 while test "x$ac_lo" != "x$ac_hi"; do
11895 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11896 cat >conftest.
$ac_ext <<_ACEOF
11899 cat confdefs.h
>>conftest.
$ac_ext
11900 cat >>conftest.
$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 $ac_includes_default
11903 typedef long double ac__type_sizeof_;
11907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11914 rm -f conftest.
$ac_objext
11915 if { (ac_try
="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11923 grep -v '^ *+' conftest.er1 >conftest.err
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_lo=`expr '(' $ac_mid ')' + 1`
11939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11943 '') if test "$ac_cv_type_long_double" = yes; then
11944 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11945 See \`config.log
' for more details." >&5
11946 echo "$as_me: error: cannot compute sizeof (long double)
11947 See \`config.log' for more details.
" >&2;}
11948 { (exit 77); exit 77; }; }
11950 ac_cv_sizeof_long_double=0
11954 cat >conftest.$ac_ext <<_ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 $ac_includes_default
11961 typedef long double ac__type_sizeof_;
11962 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11963 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11965 #include <stdlib.h>
11970 FILE *f = fopen ("conftest.val
", "w
");
11973 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11975 long int i = longval ();
11976 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11978 fprintf (f, "%ld
\n", i);
11982 unsigned long int i = ulongval ();
11983 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11985 fprintf (f, "%lu
\n", i);
11987 return ferror (f) || fclose (f) != 0;
11993 rm -f conftest$ac_exeext
11994 if { (ac_try="$ac_link"
11995 case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_link") 2>&5
12002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12004 { (case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_try") 2>&5
12011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 ac_cv_sizeof_long_double=`cat conftest.val`
12015 echo "$as_me: program exited with status
$ac_status" >&5
12016 echo "$as_me: failed program was
:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ( exit $ac_status )
12020 if test "$ac_cv_type_long_double" = yes; then
12021 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12022 See \
`config.log' for more details." >&5
12023 echo "$as_me: error: cannot compute sizeof (long double)
12024 See \`config.log
' for more details." >&2;}
12025 { (exit 77); exit 77; }; }
12027 ac_cv_sizeof_long_double=0
12030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12034 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12035 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12039 cat >>confdefs.h <<_ACEOF
12040 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12046 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12047 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12049 cat >conftest.$ac_ext <<_ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12059 _Bool x; x = (_Bool)0;
12064 rm -f conftest.$ac_objext
12065 if { (ac_try="$ac_compile"
12066 case "(($ac_try" in
12067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12068 *) ac_try_echo=$ac_try;;
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_compile") 2>conftest.er1
12073 grep -v '^
*+' conftest.er1 >conftest.err
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } && {
12078 test -z "$ac_c_werror_flag" ||
12079 test ! -s conftest.err
12080 } && test -s conftest.$ac_objext; then
12083 cat >>confdefs.h <<\_ACEOF
12084 #define HAVE_C99_BOOL 1
12090 echo "$as_me: failed program was:" >&5
12091 sed 's
/^
/|
/' conftest.$ac_ext >&5
12096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12097 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12098 echo "${ECHO_T}$have_c99_bool" >&6; }
12099 if test "$have_c99_bool" = yes ; then
12100 { echo "$as_me:$LINENO: checking for _Bool" >&5
12101 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12102 if test "${ac_cv_type__Bool+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 cat >conftest.$ac_ext <<_ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 $ac_includes_default
12112 typedef _Bool ac__type_new_;
12116 if ((ac__type_new_ *) 0)
12118 if (sizeof (ac__type_new_))
12124 rm -f conftest.$ac_objext
12125 if { (ac_try="$ac_compile"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_compile") 2>conftest.er1
12133 grep -v '^
*+' conftest.er1 >conftest.err
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && {
12138 test -z "$ac_c_werror_flag" ||
12139 test ! -s conftest.err
12140 } && test -s conftest.$ac_objext; then
12141 ac_cv_type__Bool=yes
12143 echo "$as_me: failed program was:" >&5
12144 sed 's
/^
/|
/' conftest.$ac_ext >&5
12146 ac_cv_type__Bool=no
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12151 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12152 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12154 # The cast to long int works around a bug in the HP C Compiler
12155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12157 # This bug is HP SR number 8606223364.
12158 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12159 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12160 if test "${ac_cv_sizeof__Bool+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 if test "$cross_compiling" = yes; then
12164 # Depending upon the size, compute the lo and hi bounds.
12165 cat >conftest.
$ac_ext <<_ACEOF
12168 cat confdefs.h
>>conftest.
$ac_ext
12169 cat >>conftest.
$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 $ac_includes_default
12172 typedef _Bool ac__type_sizeof_;
12176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12183 rm -f conftest.
$ac_objext
12184 if { (ac_try
="$ac_compile"
12185 case "(($ac_try" in
12186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_compile") 2>conftest.er1
12192 grep -v '^ *+' conftest.er1 >conftest.err
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest.$ac_objext; then
12202 cat >conftest.$ac_ext <<_ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 $ac_includes_default
12209 typedef _Bool ac__type_sizeof_;
12213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12220 rm -f conftest.$ac_objext
12221 if { (ac_try="$ac_compile"
12222 case "(($ac_try" in
12223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12224 *) ac_try_echo
=$ac_try;;
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_compile") 2>conftest.er1
12229 grep -v '^ *+' conftest.er1
>conftest.err
12231 cat conftest.err
>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } && {
12234 test -z "$ac_c_werror_flag" ||
12235 test ! -s conftest.err
12236 } && test -s conftest.
$ac_objext; then
12237 ac_hi
=$ac_mid; break
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.
$ac_ext >&5
12242 ac_lo
=`expr $ac_mid + 1`
12243 if test $ac_lo -le $ac_mid; then
12247 ac_mid
=`expr 2 '*' $ac_mid + 1`
12250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.
$ac_ext >&5
12256 cat >conftest.
$ac_ext <<_ACEOF
12259 cat confdefs.h
>>conftest.
$ac_ext
12260 cat >>conftest.
$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12262 $ac_includes_default
12263 typedef _Bool ac__type_sizeof_;
12267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12274 rm -f conftest.
$ac_objext
12275 if { (ac_try
="$ac_compile"
12276 case "(($ac_try" in
12277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_compile") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest.$ac_objext; then
12293 cat >conftest.$ac_ext <<_ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12299 $ac_includes_default
12300 typedef _Bool ac__type_sizeof_;
12304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12311 rm -f conftest.$ac_objext
12312 if { (ac_try="$ac_compile"
12313 case "(($ac_try" in
12314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12315 *) ac_try_echo
=$ac_try;;
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_compile") 2>conftest.er1
12320 grep -v '^ *+' conftest.er1
>conftest.err
12322 cat conftest.err
>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } && {
12325 test -z "$ac_c_werror_flag" ||
12326 test ! -s conftest.err
12327 } && test -s conftest.
$ac_objext; then
12328 ac_lo
=$ac_mid; break
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.
$ac_ext >&5
12333 ac_hi
=`expr '(' $ac_mid ')' - 1`
12334 if test $ac_mid -le $ac_hi; then
12338 ac_mid
=`expr 2 '*' $ac_mid`
12341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.
$ac_ext >&5
12350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12354 # Binary search between lo and hi bounds.
12355 while test "x$ac_lo" != "x$ac_hi"; do
12356 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12357 cat >conftest.
$ac_ext <<_ACEOF
12360 cat confdefs.h
>>conftest.
$ac_ext
12361 cat >>conftest.
$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12363 $ac_includes_default
12364 typedef _Bool ac__type_sizeof_;
12368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12375 rm -f conftest.
$ac_objext
12376 if { (ac_try
="$ac_compile"
12377 case "(($ac_try" in
12378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_compile") 2>conftest.er1
12384 grep -v '^ *+' conftest.er1 >conftest.err
12386 cat conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest.$ac_objext; then
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12397 ac_lo=`expr '(' $ac_mid ')' + 1`
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12404 '') if test "$ac_cv_type__Bool" = yes; then
12405 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12406 See \`config.log
' for more details." >&5
12407 echo "$as_me: error: cannot compute sizeof (_Bool)
12408 See \`config.log' for more details.
" >&2;}
12409 { (exit 77); exit 77; }; }
12411 ac_cv_sizeof__Bool=0
12415 cat >conftest.$ac_ext <<_ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 $ac_includes_default
12422 typedef _Bool ac__type_sizeof_;
12423 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12424 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12426 #include <stdlib.h>
12431 FILE *f = fopen ("conftest.val
", "w
");
12434 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12436 long int i = longval ();
12437 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12439 fprintf (f, "%ld
\n", i);
12443 unsigned long int i = ulongval ();
12444 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12446 fprintf (f, "%lu
\n", i);
12448 return ferror (f) || fclose (f) != 0;
12454 rm -f conftest$ac_exeext
12455 if { (ac_try="$ac_link"
12456 case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_link") 2>&5
12463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12465 { (case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_try") 2>&5
12472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_cv_sizeof__Bool=`cat conftest.val`
12476 echo "$as_me: program exited with status
$ac_status" >&5
12477 echo "$as_me: failed program was
:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12480 ( exit $ac_status )
12481 if test "$ac_cv_type__Bool" = yes; then
12482 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12483 See \
`config.log' for more details." >&5
12484 echo "$as_me: error: cannot compute sizeof (_Bool)
12485 See \`config.log
' for more details." >&2;}
12486 { (exit 77); exit 77; }; }
12488 ac_cv_sizeof__Bool=0
12491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12495 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12496 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12500 cat >>confdefs.h <<_ACEOF
12501 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12507 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12508 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12509 if test "${ac_cv_type_uintptr_t+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518 #ifdef HAVE_STDINT_H
12519 #include <stdint.h>
12522 typedef uintptr_t ac__type_new_;
12526 if ((ac__type_new_ *) 0)
12528 if (sizeof (ac__type_new_))
12534 rm -f conftest.$ac_objext
12535 if { (ac_try="$ac_compile"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_compile") 2>conftest.er1
12543 grep -v '^
*+' conftest.er1 >conftest.err
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest.$ac_objext; then
12551 ac_cv_type_uintptr_t=yes
12553 echo "$as_me: failed program was:" >&5
12554 sed 's
/^
/|
/' conftest.$ac_ext >&5
12556 ac_cv_type_uintptr_t=no
12559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12562 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12563 if test $ac_cv_type_uintptr_t = yes; then
12565 cat >>confdefs.h <<_ACEOF
12566 #define HAVE_UINTPTR_T 1
12569 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12570 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12571 if test "${ac_cv_type_uintptr_t+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 cat >conftest.$ac_ext <<_ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 $ac_includes_default
12581 typedef uintptr_t ac__type_new_;
12585 if ((ac__type_new_ *) 0)
12587 if (sizeof (ac__type_new_))
12593 rm -f conftest.$ac_objext
12594 if { (ac_try="$ac_compile"
12595 case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_compile") 2>conftest.er1
12602 grep -v '^
*+' conftest.er1 >conftest.err
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } && {
12607 test -z "$ac_c_werror_flag" ||
12608 test ! -s conftest.err
12609 } && test -s conftest.$ac_objext; then
12610 ac_cv_type_uintptr_t=yes
12612 echo "$as_me: failed program was:" >&5
12613 sed 's
/^
/|
/' conftest.$ac_ext >&5
12615 ac_cv_type_uintptr_t=no
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12621 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12623 # The cast to long int works around a bug in the HP C Compiler
12624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12626 # This bug is HP SR number 8606223364.
12627 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12628 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12629 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 if test "$cross_compiling" = yes; then
12633 # Depending upon the size, compute the lo and hi bounds.
12634 cat >conftest.
$ac_ext <<_ACEOF
12637 cat confdefs.h
>>conftest.
$ac_ext
12638 cat >>conftest.
$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12640 $ac_includes_default
12641 typedef uintptr_t ac__type_sizeof_;
12645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12652 rm -f conftest.
$ac_objext
12653 if { (ac_try
="$ac_compile"
12654 case "(($ac_try" in
12655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_compile") 2>conftest.er1
12661 grep -v '^ *+' conftest.er1 >conftest.err
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } && {
12666 test -z "$ac_c_werror_flag" ||
12667 test ! -s conftest.err
12668 } && test -s conftest.$ac_objext; then
12671 cat >conftest.$ac_ext <<_ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 $ac_includes_default
12678 typedef uintptr_t ac__type_sizeof_;
12682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12689 rm -f conftest.$ac_objext
12690 if { (ac_try="$ac_compile"
12691 case "(($ac_try" in
12692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12693 *) ac_try_echo
=$ac_try;;
12695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12696 (eval "$ac_compile") 2>conftest.er1
12698 grep -v '^ *+' conftest.er1
>conftest.err
12700 cat conftest.err
>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && {
12703 test -z "$ac_c_werror_flag" ||
12704 test ! -s conftest.err
12705 } && test -s conftest.
$ac_objext; then
12706 ac_hi
=$ac_mid; break
12708 echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.
$ac_ext >&5
12711 ac_lo
=`expr $ac_mid + 1`
12712 if test $ac_lo -le $ac_mid; then
12716 ac_mid
=`expr 2 '*' $ac_mid + 1`
12719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.
$ac_ext >&5
12725 cat >conftest.
$ac_ext <<_ACEOF
12728 cat confdefs.h
>>conftest.
$ac_ext
12729 cat >>conftest.
$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12731 $ac_includes_default
12732 typedef uintptr_t ac__type_sizeof_;
12736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12743 rm -f conftest.
$ac_objext
12744 if { (ac_try
="$ac_compile"
12745 case "(($ac_try" in
12746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_compile") 2>conftest.er1
12752 grep -v '^ *+' conftest.er1 >conftest.err
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } && {
12757 test -z "$ac_c_werror_flag" ||
12758 test ! -s conftest.err
12759 } && test -s conftest.$ac_objext; then
12762 cat >conftest.$ac_ext <<_ACEOF
12765 cat confdefs.h >>conftest.$ac_ext
12766 cat >>conftest.$ac_ext <<_ACEOF
12767 /* end confdefs.h. */
12768 $ac_includes_default
12769 typedef uintptr_t ac__type_sizeof_;
12773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12780 rm -f conftest.$ac_objext
12781 if { (ac_try="$ac_compile"
12782 case "(($ac_try" in
12783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12784 *) ac_try_echo
=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_compile") 2>conftest.er1
12789 grep -v '^ *+' conftest.er1
>conftest.err
12791 cat conftest.err
>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest.
$ac_objext; then
12797 ac_lo
=$ac_mid; break
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.
$ac_ext >&5
12802 ac_hi
=`expr '(' $ac_mid ')' - 1`
12803 if test $ac_mid -le $ac_hi; then
12807 ac_mid
=`expr 2 '*' $ac_mid`
12810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12813 echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.
$ac_ext >&5
12819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12823 # Binary search between lo and hi bounds.
12824 while test "x$ac_lo" != "x$ac_hi"; do
12825 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12826 cat >conftest.
$ac_ext <<_ACEOF
12829 cat confdefs.h
>>conftest.
$ac_ext
12830 cat >>conftest.
$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832 $ac_includes_default
12833 typedef uintptr_t ac__type_sizeof_;
12837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12844 rm -f conftest.
$ac_objext
12845 if { (ac_try
="$ac_compile"
12846 case "(($ac_try" in
12847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_compile") 2>conftest.er1
12853 grep -v '^ *+' conftest.er1 >conftest.err
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest.$ac_objext; then
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_lo=`expr '(' $ac_mid ')' + 1`
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12873 '') if test "$ac_cv_type_uintptr_t" = yes; then
12874 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12875 See \`config.log
' for more details." >&5
12876 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12877 See \`config.log' for more details.
" >&2;}
12878 { (exit 77); exit 77; }; }
12880 ac_cv_sizeof_uintptr_t=0
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 typedef uintptr_t ac__type_sizeof_;
12892 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12893 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12895 #include <stdlib.h>
12900 FILE *f = fopen ("conftest.val
", "w
");
12903 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12905 long int i = longval ();
12906 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12908 fprintf (f, "%ld
\n", i);
12912 unsigned long int i = ulongval ();
12913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12915 fprintf (f, "%lu
\n", i);
12917 return ferror (f) || fclose (f) != 0;
12923 rm -f conftest$ac_exeext
12924 if { (ac_try="$ac_link"
12925 case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_link") 2>&5
12932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12934 { (case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12939 (eval "$ac_try") 2>&5
12941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12945 echo "$as_me: program exited with status
$ac_status" >&5
12946 echo "$as_me: failed program was
:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 ( exit $ac_status )
12950 if test "$ac_cv_type_uintptr_t" = yes; then
12951 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12952 See \
`config.log' for more details." >&5
12953 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12954 See \`config.log
' for more details." >&2;}
12955 { (exit 77); exit 77; }; }
12957 ac_cv_sizeof_uintptr_t=0
12960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12964 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12965 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12969 cat >>confdefs.h <<_ACEOF
12970 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12978 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12979 { echo "$as_me:$LINENO: checking size of off_t" >&5
12980 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12981 if test "${ac_cv_sizeof_off_t+set}" = set; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 if test "$cross_compiling" = yes; then
12985 ac_cv_sizeof_off_t
=4
12987 cat >conftest.
$ac_ext <<_ACEOF
12990 cat confdefs.h
>>conftest.
$ac_ext
12991 cat >>conftest.
$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12994 #include <sys/types.h>
12997 FILE *f=fopen("conftestval", "w");
12999 fprintf(f, "%d\n", sizeof(off_t));
13003 rm -f conftest
$ac_exeext
13004 if { (ac_try
="$ac_link"
13005 case "(($ac_try" in
13006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_link") 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13014 { (case "(($ac_try" in
13015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13016 *) ac_try_echo
=$ac_try;;
13018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_try") 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_cv_sizeof_off_t
=`cat conftestval`
13025 echo "$as_me: program exited with status $ac_status" >&5
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.
$ac_ext >&5
13029 ( exit $ac_status )
13030 ac_cv_sizeof_off_t
=0
13032 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13039 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13040 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13042 cat >>confdefs.h
<<_ACEOF
13043 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13047 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13048 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13049 if test "$have_long_long" = yes -a \
13050 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13051 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13053 cat >>confdefs.h
<<\_ACEOF
13054 #define HAVE_LARGEFILE_SUPPORT 1
13057 { echo "$as_me:$LINENO: result: yes" >&5
13058 echo "${ECHO_T}yes" >&6; }
13060 { echo "$as_me:$LINENO: result: no" >&5
13061 echo "${ECHO_T}no" >&6; }
13064 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13065 { echo "$as_me:$LINENO: checking size of time_t" >&5
13066 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13067 if test "${ac_cv_sizeof_time_t+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 if test "$cross_compiling" = yes; then
13071 ac_cv_sizeof_time_t
=4
13073 cat >conftest.
$ac_ext <<_ACEOF
13076 cat confdefs.h
>>conftest.
$ac_ext
13077 cat >>conftest.
$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13083 FILE *f=fopen("conftestval", "w");
13085 fprintf(f, "%d\n", sizeof(time_t));
13089 rm -f conftest
$ac_exeext
13090 if { (ac_try
="$ac_link"
13091 case "(($ac_try" in
13092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_link") 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13100 { (case "(($ac_try" in
13101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13102 *) ac_try_echo
=$ac_try;;
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105 (eval "$ac_try") 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_sizeof_time_t
=`cat conftestval`
13111 echo "$as_me: program exited with status $ac_status" >&5
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.
$ac_ext >&5
13115 ( exit $ac_status )
13116 ac_cv_sizeof_time_t
=0
13118 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13125 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13126 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13128 cat >>confdefs.h
<<_ACEOF
13129 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13134 # if have pthread_t then define SIZEOF_PTHREAD_T
13136 if test "$ac_cv_kpthread" = "yes"
13137 then CC
="$CC -Kpthread"
13138 elif test "$ac_cv_kthread" = "yes"
13139 then CC
="$CC -Kthread"
13140 elif test "$ac_cv_pthread" = "yes"
13141 then CC
="$CC -pthread"
13143 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13144 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13146 cat >conftest.
$ac_ext <<_ACEOF
13149 cat confdefs.h
>>conftest.
$ac_ext
13150 cat >>conftest.
$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 #include <pthread.h>
13156 pthread_t x; x = *(pthread_t*)0;
13161 rm -f conftest.
$ac_objext
13162 if { (ac_try
="$ac_compile"
13163 case "(($ac_try" in
13164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_compile") 2>conftest.er1
13170 grep -v '^ *+' conftest.er1 >conftest.err
13172 cat conftest.err >&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } && {
13175 test -z "$ac_c_werror_flag" ||
13176 test ! -s conftest.err
13177 } && test -s conftest.$ac_objext; then
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13188 echo "${ECHO_T}$have_pthread_t" >&6; }
13189 if test "$have_pthread_t" = yes ; then
13190 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13191 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13192 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13193 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13196 if test "$cross_compiling" = yes; then
13197 ac_cv_sizeof_pthread_t=4
13199 cat >conftest.$ac_ext <<_ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13206 #include <pthread.h>
13209 FILE *f=fopen("conftestval", "w");
13211 fprintf(f, "%d\n", sizeof(pthread_t));
13215 rm -f conftest$ac_exeext
13216 if { (ac_try="$ac_link"
13217 case "(($ac_try" in
13218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13219 *) ac_try_echo
=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_link") 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13226 { (case "(($ac_try" in
13227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_try") 2>&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); }; }; then
13235 ac_cv_sizeof_pthread_t=`cat conftestval
`
13237 echo "$as_me: program exited with status $ac_status" >&5
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ( exit $ac_status )
13242 ac_cv_sizeof_pthread_t=0
13244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13251 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13252 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13254 cat >>confdefs.h <<_ACEOF
13255 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13261 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13262 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13263 # Check whether --enable-toolbox-glue was given.
13264 if test "${enable_toolbox_glue+set}" = set; then
13265 enableval=$enable_toolbox_glue;
13269 if test -z "$enable_toolbox_glue"
13271 case $ac_sys_system/$ac_sys_release in
13273 enable_toolbox_glue="yes";;
13275 enable_toolbox_glue="no";;
13278 case "$enable_toolbox_glue" in
13280 extra_machdep_objs="Python/mactoolboxglue.o"
13281 extra_undefs="-u _PyMac_Error"
13283 cat >>confdefs.h <<\_ACEOF
13284 #define USE_TOOLBOX_OBJECT_GLUE 1
13289 extra_machdep_objs=""
13293 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13294 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13298 case $ac_sys_system/$ac_sys_release in
13299 Darwin/[01567]\..*)
13300 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13303 OTHER_LIBTOOL_OPT=""
13308 case $ac_sys_system/$ac_sys_release in
13309 Darwin/[01567]\..*)
13310 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13311 if test "${enable_universalsdk}"; then
13314 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
13316 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13317 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13319 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
13320 if test ${gcc_version} '<' 4.0
13322 LIBTOOL_CRUFT="-lcc_dynamic"
13326 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
13327 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13328 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13331 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13332 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13333 if test "$enable_framework"
13335 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13336 # -F. is needed to allow linking to the framework while
13337 # in the build location.
13339 cat >>confdefs.h <<\_ACEOF
13340 #define WITH_NEXT_FRAMEWORK 1
13343 { echo "$as_me:$LINENO: result: yes" >&5
13344 echo "${ECHO_T}yes" >&6; }
13346 { echo "$as_me:$LINENO: result: no" >&5
13347 echo "${ECHO_T}no" >&6; }
13350 { echo "$as_me:$LINENO: checking for dyld" >&5
13351 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13352 case $ac_sys_system/$ac_sys_release in
13355 cat >>confdefs.h <<\_ACEOF
13356 #define WITH_DYLD 1
13359 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13360 echo "${ECHO_T}always on for Darwin" >&6; }
13363 { echo "$as_me:$LINENO: result: no" >&5
13364 echo "${ECHO_T}no" >&6; }
13368 # Set info about shared libraries.
13374 # SO is the extension of shared libraries `(including the dot
!)
13375 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13376 { echo "$as_me:$LINENO: checking SO" >&5
13377 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13380 case $ac_sys_system in
13391 # this might also be a termcap variable, see #610332
13393 echo '====================================================================='
13395 echo '+ WARNING: You have set SO in your environment. +'
13396 echo '+ Do you really mean to change the extension for shared libraries? +'
13397 echo '+ Continuing in 10 seconds to let you to ponder. +'
13399 echo '====================================================================='
13402 { echo "$as_me:$LINENO: result: $SO" >&5
13403 echo "${ECHO_T}$SO" >&6; }
13406 cat >>confdefs.h
<<_ACEOF
13407 #define SHLIB_EXT "$SO"
13410 # LDSHARED is the ld *command* used to create shared library
13411 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13412 # (Shared libraries in this instance are shared modules to be loaded into
13413 # Python, as opposed to building Python itself as a shared library.)
13414 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13415 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13416 if test -z "$LDSHARED"
13418 case $ac_sys_system/$ac_sys_release in
13420 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13421 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13424 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13425 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13427 IRIX
/5*) LDSHARED
="ld -shared";;
13428 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13430 if test "$GCC" = "yes"
13431 then LDSHARED
='$(CC) -shared'
13432 else LDSHARED
='$(CC) -G';
13435 if test "$GCC" = "yes"
13436 then LDSHARED
='$(CC) -shared'
13437 else LDSHARED
='ld -b';
13439 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13441 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13442 if test "$enable_framework" ; then
13443 # Link against the framework. All externals should be defined.
13444 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13445 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13447 # No framework. Ignore undefined symbols, assuming they come from Python
13448 LDSHARED
="$LDSHARED -undefined suppress"
13450 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13451 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13452 if test "$enable_framework" ; then
13453 # Link against the framework. All externals should be defined.
13454 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13455 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13457 # No framework, use the Python app as bundle-loader
13458 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13459 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13462 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13463 # This allows an extension to be used in any Python
13465 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13467 if test "${enable_universalsdk}"; then
13468 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13470 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13471 BLDSHARED
="$LDSHARED"
13473 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13474 if test "$enable_framework" ; then
13475 # Link against the framework. All externals should be defined.
13476 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13477 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13479 # No framework, use the Python app as bundle-loader
13480 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13481 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13485 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13486 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13488 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13490 LDSHARED
="$CC -shared ${LDFLAGS}"
13492 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13495 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13497 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13500 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13501 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13504 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13508 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13509 OpenUNIX
*|UnixWare
*)
13510 if test "$GCC" = "yes"
13511 then LDSHARED
='$(CC) -shared'
13512 else LDSHARED
='$(CC) -G'
13514 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13515 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13516 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13517 atheos
*) LDSHARED
="gcc -shared";;
13521 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13522 echo "${ECHO_T}$LDSHARED" >&6; }
13523 BLDSHARED
=${BLDSHARED-$LDSHARED}
13524 # CCSHARED are the C *flags* used to create objects to go into a shared
13525 # library (module) -- this is only needed for a few systems
13526 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13527 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13528 if test -z "$CCSHARED"
13530 case $ac_sys_system/$ac_sys_release in
13531 SunOS
*) if test "$GCC" = yes;
13532 then CCSHARED
="-fPIC";
13533 elif test `uname -p` = sparc
;
13534 then CCSHARED
="-xcode=pic32";
13535 else CCSHARED
="-Kpic";
13537 hp
*|HP
*) if test "$GCC" = yes;
13538 then CCSHARED
="-fPIC";
13539 else CCSHARED
="+z";
13541 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13542 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13543 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13544 OpenUNIX
*|UnixWare
*)
13545 if test "$GCC" = "yes"
13546 then CCSHARED
="-fPIC"
13547 else CCSHARED
="-KPIC"
13550 if test "$GCC" = "yes"
13551 then CCSHARED
="-fPIC"
13552 else CCSHARED
="-Kpic -belf"
13554 Monterey
*) CCSHARED
="-G";;
13555 IRIX
*/6*) case $CC in
13556 *gcc
*) CCSHARED
="-shared";;
13559 atheos
*) CCSHARED
="-fPIC";;
13562 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13563 echo "${ECHO_T}$CCSHARED" >&6; }
13564 # LINKFORSHARED are the flags passed to the $(CC) command that links
13565 # the python executable -- this is only needed for a few systems
13566 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13567 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13568 if test -z "$LINKFORSHARED"
13570 case $ac_sys_system/$ac_sys_release in
13571 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13573 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13574 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13575 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13576 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13577 # -u libsys_s pulls in all symbols in libsys
13579 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13581 # not used by the core itself but which needs to be in the core so
13582 # that dynamically loaded extension modules have access to it.
13583 # -prebind is no longer used, because it actually seems to give a
13584 # slowdown in stead of a speedup, maybe due to the large number of
13585 # dynamic loads Python does.
13587 LINKFORSHARED
="$extra_undefs"
13588 if test "$enable_framework"
13590 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13592 LINKFORSHARED
="$LINKFORSHARED";;
13593 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13594 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13595 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13596 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13597 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13599 LINKFORSHARED
="-Wl,--export-dynamic"
13601 SunOS
/5*) case $CC in
13603 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13605 LINKFORSHARED
="-Xlinker --export-dynamic"
13609 if test $enable_shared = "no"
13611 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13614 # -Wl,-E causes the symbols to be added to the dynamic
13615 # symbol table so that they can be found when a module
13616 # is loaded. -N 2048K causes the stack size to be set
13617 # to 2048 kilobytes so that the stack doesn't overflow
13618 # when running test_compile.py.
13619 LINKFORSHARED
='-Wl,-E -N 2048K';;
13622 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13623 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13627 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13628 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13629 if test ! "$LIBRARY" = "$LDLIBRARY"
13631 case $ac_sys_system in
13633 # Cygwin needs CCSHARED when building extension DLLs
13634 # but not when building the interpreter DLL.
13635 CFLAGSFORSHARED
='';;
13637 CFLAGSFORSHARED
='$(CCSHARED)'
13640 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13641 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13643 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13644 # library (with --enable-shared).
13645 # For platforms on which shared libraries are not allowed to have unresolved
13646 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13647 # if it is not required, since it creates a dependency of the shared library
13648 # to LIBS. This, in turn, means that applications linking the shared libpython
13649 # don't need to link LIBS explicitly. The default should be only changed
13650 # on systems where this approach causes problems.
13652 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13653 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13654 case "$ac_sys_system" in
13658 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13659 echo "${ECHO_T}$SHLIBS" >&6; }
13662 # checks for libraries
13664 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13665 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 ac_check_lib_save_LIBS
=$LIBS
13671 cat >conftest.
$ac_ext <<_ACEOF
13674 cat confdefs.h
>>conftest.
$ac_ext
13675 cat >>conftest.
$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13693 rm -f conftest.
$ac_objext conftest
$ac_exeext
13694 if { (ac_try
="$ac_link"
13695 case "(($ac_try" in
13696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>conftest.er1
13702 grep -v '^ *+' conftest.er1 >conftest.err
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && {
13707 test -z "$ac_c_werror_flag" ||
13708 test ! -s conftest.err
13709 } && test -s conftest$ac_exeext &&
13710 $as_test_x conftest$ac_exeext; then
13711 ac_cv_lib_dl_dlopen=yes
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13716 ac_cv_lib_dl_dlopen=no
13719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13724 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13725 if test $ac_cv_lib_dl_dlopen = yes; then
13726 cat >>confdefs.h <<_ACEOF
13727 #define HAVE_LIBDL 1
13733 # Dynamic linking for SunOS/Solaris and SYSV
13735 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13736 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13737 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 ac_check_lib_save_LIBS=$LIBS
13742 cat >conftest.$ac_ext <<_ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13749 /* Override any GCC internal prototype to avoid an error.
13750 Use char because int might match the return type of a GCC
13751 builtin and then its argument prototype would still apply. */
13759 return shl_load ();
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (ac_try="$ac_link"
13766 case "(($ac_try" in
13767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13768 *) ac_try_echo
=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_link") 2>conftest.er1
13773 grep -v '^ *+' conftest.er1
>conftest.err
13775 cat conftest.err
>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } && {
13778 test -z "$ac_c_werror_flag" ||
13779 test ! -s conftest.err
13780 } && test -s conftest
$ac_exeext &&
13781 $as_test_x conftest
$ac_exeext; then
13782 ac_cv_lib_dld_shl_load
=yes
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.
$ac_ext >&5
13787 ac_cv_lib_dld_shl_load
=no
13790 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13791 conftest
$ac_exeext conftest.
$ac_ext
13792 LIBS
=$ac_check_lib_save_LIBS
13794 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13795 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13796 if test $ac_cv_lib_dld_shl_load = yes; then
13797 cat >>confdefs.h
<<_ACEOF
13798 #define HAVE_LIBDLD 1
13804 # Dynamic linking for HP-UX
13806 # only check for sem_init if thread support is requested
13807 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13808 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13809 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13810 if test "${ac_cv_search_sem_init+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 ac_func_search_save_LIBS
=$LIBS
13814 cat >conftest.
$ac_ext <<_ACEOF
13817 cat confdefs.h
>>conftest.
$ac_ext
13818 cat >>conftest.
$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13821 /* Override any GCC internal prototype to avoid an error.
13822 Use char because int might match the return type of a GCC
13823 builtin and then its argument prototype would still apply. */
13831 return sem_init ();
13836 for ac_lib
in '' pthread rt posix4
; do
13837 if test -z "$ac_lib"; then
13838 ac_res
="none required"
13841 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13843 rm -f conftest.
$ac_objext conftest
$ac_exeext
13844 if { (ac_try
="$ac_link"
13845 case "(($ac_try" in
13846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_link") 2>conftest.er1
13852 grep -v '^ *+' conftest.er1 >conftest.err
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } && {
13857 test -z "$ac_c_werror_flag" ||
13858 test ! -s conftest.err
13859 } && test -s conftest$ac_exeext &&
13860 $as_test_x conftest$ac_exeext; then
13861 ac_cv_search_sem_init=$ac_res
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13871 if test "${ac_cv_search_sem_init+set}" = set; then
13875 if test "${ac_cv_search_sem_init+set}" = set; then
13878 ac_cv_search_sem_init=no
13880 rm conftest.$ac_ext
13881 LIBS=$ac_func_search_save_LIBS
13883 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13884 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13885 ac_res=$ac_cv_search_sem_init
13886 if test "$ac_res" != no; then
13887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13890 # 'Real Time' functions on Solaris
13891 # posix4 on Solaris 2.6
13892 # pthread (first!) on Linux
13895 # check if we need libintl for locale functions
13896 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13897 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13898 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 ac_check_lib_save_LIBS=$LIBS
13902 LIBS="-lintl $LIBS"
13903 cat >conftest.$ac_ext <<_ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13910 /* Override any GCC internal prototype to avoid an error.
13911 Use char because int might match the return type of a GCC
13912 builtin and then its argument prototype would still apply. */
13916 char textdomain ();
13920 return textdomain ();
13925 rm -f conftest.$ac_objext conftest$ac_exeext
13926 if { (ac_try="$ac_link"
13927 case "(($ac_try" in
13928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13929 *) ac_try_echo
=$ac_try;;
13931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13932 (eval "$ac_link") 2>conftest.er1
13934 grep -v '^ *+' conftest.er1
>conftest.err
13936 cat conftest.err
>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && {
13939 test -z "$ac_c_werror_flag" ||
13940 test ! -s conftest.err
13941 } && test -s conftest
$ac_exeext &&
13942 $as_test_x conftest
$ac_exeext; then
13943 ac_cv_lib_intl_textdomain
=yes
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.
$ac_ext >&5
13948 ac_cv_lib_intl_textdomain
=no
13951 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13952 conftest
$ac_exeext conftest.
$ac_ext
13953 LIBS
=$ac_check_lib_save_LIBS
13955 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13956 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13957 if test $ac_cv_lib_intl_textdomain = yes; then
13959 cat >>confdefs.h
<<\_ACEOF
13960 #define WITH_LIBINTL 1
13966 # checks for system dependent C++ extensions support
13967 case "$ac_sys_system" in
13968 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13969 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13970 cat >conftest.
$ac_ext <<_ACEOF
13973 cat confdefs.h
>>conftest.
$ac_ext
13974 cat >>conftest.
$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 #include "/usr/lpp/xlC/include/load.h"
13980 loadAndInit("", 0, "")
13985 rm -f conftest.
$ac_objext conftest
$ac_exeext
13986 if { (ac_try
="$ac_link"
13987 case "(($ac_try" in
13988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_link") 2>conftest.er1
13994 grep -v '^ *+' conftest.er1 >conftest.err
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } && {
13999 test -z "$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14001 } && test -s conftest$ac_exeext &&
14002 $as_test_x conftest$ac_exeext; then
14004 cat >>confdefs.h <<\_ACEOF
14005 #define AIX_GENUINE_CPLUSPLUS 1
14008 { echo "$as_me:$LINENO: result: yes" >&5
14009 echo "${ECHO_T}yes" >&6; }
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 { echo "$as_me:$LINENO: result: no" >&5
14015 echo "${ECHO_T}no" >&6; }
14018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14019 conftest$ac_exeext conftest.$ac_ext;;
14023 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14024 # BeOS' sockets are stashed in libnet.
14025 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14026 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14027 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 ac_check_lib_save_LIBS=$LIBS
14032 cat >conftest.$ac_ext <<_ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14039 /* Override any GCC internal prototype to avoid an error.
14040 Use char because int might match the return type of a GCC
14041 builtin and then its argument prototype would still apply. */
14054 rm -f conftest.$ac_objext conftest$ac_exeext
14055 if { (ac_try="$ac_link"
14056 case "(($ac_try" in
14057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14058 *) ac_try_echo
=$ac_try;;
14060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061 (eval "$ac_link") 2>conftest.er1
14063 grep -v '^ *+' conftest.er1
>conftest.err
14065 cat conftest.err
>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } && {
14068 test -z "$ac_c_werror_flag" ||
14069 test ! -s conftest.err
14070 } && test -s conftest
$ac_exeext &&
14071 $as_test_x conftest
$ac_exeext; then
14072 ac_cv_lib_nsl_t_open
=yes
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.
$ac_ext >&5
14077 ac_cv_lib_nsl_t_open
=no
14080 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14081 conftest
$ac_exeext conftest.
$ac_ext
14082 LIBS
=$ac_check_lib_save_LIBS
14084 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14085 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14086 if test $ac_cv_lib_nsl_t_open = yes; then
14090 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14091 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14092 if test "${ac_cv_lib_socket_socket+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 ac_check_lib_save_LIBS
=$LIBS
14096 LIBS
="-lsocket $LIBS $LIBS"
14097 cat >conftest.
$ac_ext <<_ACEOF
14100 cat confdefs.h
>>conftest.
$ac_ext
14101 cat >>conftest.
$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14104 /* Override any GCC internal prototype to avoid an error.
14105 Use char because int might match the return type of a GCC
14106 builtin and then its argument prototype would still apply. */
14119 rm -f conftest.
$ac_objext conftest
$ac_exeext
14120 if { (ac_try
="$ac_link"
14121 case "(($ac_try" in
14122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_link") 2>conftest.er1
14128 grep -v '^ *+' conftest.er1 >conftest.err
14130 cat conftest.err >&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } && {
14133 test -z "$ac_c_werror_flag" ||
14134 test ! -s conftest.err
14135 } && test -s conftest$ac_exeext &&
14136 $as_test_x conftest$ac_exeext; then
14137 ac_cv_lib_socket_socket=yes
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14142 ac_cv_lib_socket_socket=no
14145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14146 conftest$ac_exeext conftest.$ac_ext
14147 LIBS=$ac_check_lib_save_LIBS
14149 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14150 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14151 if test $ac_cv_lib_socket_socket = yes; then
14152 LIBS="-lsocket $LIBS"
14156 case "$ac_sys_system" in
14158 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14159 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14160 if test "${ac_cv_lib_net_socket+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 ac_check_lib_save_LIBS=$LIBS
14164 LIBS="-lnet $LIBS $LIBS"
14165 cat >conftest.$ac_ext <<_ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14172 /* Override any GCC internal prototype to avoid an error.
14173 Use char because int might match the return type of a GCC
14174 builtin and then its argument prototype would still apply. */
14187 rm -f conftest.$ac_objext conftest$ac_exeext
14188 if { (ac_try="$ac_link"
14189 case "(($ac_try" in
14190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14191 *) ac_try_echo
=$ac_try;;
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_link") 2>conftest.er1
14196 grep -v '^ *+' conftest.er1
>conftest.err
14198 cat conftest.err
>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } && {
14201 test -z "$ac_c_werror_flag" ||
14202 test ! -s conftest.err
14203 } && test -s conftest
$ac_exeext &&
14204 $as_test_x conftest
$ac_exeext; then
14205 ac_cv_lib_net_socket
=yes
14207 echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.
$ac_ext >&5
14210 ac_cv_lib_net_socket
=no
14213 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14214 conftest
$ac_exeext conftest.
$ac_ext
14215 LIBS
=$ac_check_lib_save_LIBS
14217 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14218 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14219 if test $ac_cv_lib_net_socket = yes; then
14226 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14227 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14229 # Check whether --with-libs was given.
14230 if test "${with_libs+set}" = set; then
14231 withval
=$with_libs;
14232 { echo "$as_me:$LINENO: result: $withval" >&5
14233 echo "${ECHO_T}$withval" >&6; }
14234 LIBS
="$withval $LIBS"
14237 { echo "$as_me:$LINENO: result: no" >&5
14238 echo "${ECHO_T}no" >&6; }
14242 # Check for use of the system libffi library
14243 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14244 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14246 # Check whether --with-system_ffi was given.
14247 if test "${with_system_ffi+set}" = set; then
14248 withval
=$with_system_ffi;
14252 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14253 echo "${ECHO_T}$with_system_ffi" >&6; }
14255 # Check for --with-dbmliborder
14256 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14257 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14259 # Check whether --with-dbmliborder was given.
14260 if test "${with_dbmliborder+set}" = set; then
14261 withval
=$with_dbmliborder;
14262 if test x
$with_dbmliborder = xyes
14264 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14265 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14266 { (exit 1); exit 1; }; }
14268 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14269 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
14271 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14272 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14273 { (exit 1); exit 1; }; }
14279 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14280 echo "${ECHO_T}$with_dbmliborder" >&6; }
14282 # Determine if signalmodule should be used.
14285 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14286 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14288 # Check whether --with-signal-module was given.
14289 if test "${with_signal_module+set}" = set; then
14290 withval
=$with_signal_module;
14294 if test -z "$with_signal_module"
14295 then with_signal_module
="yes"
14297 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14298 echo "${ECHO_T}$with_signal_module" >&6; }
14300 if test "${with_signal_module}" = "yes"; then
14301 USE_SIGNAL_MODULE
=""
14304 USE_SIGNAL_MODULE
="#"
14305 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
14308 # This is used to generate Setup.config
14310 USE_THREAD_MODULE
=""
14312 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14313 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14316 # Check whether --with-dec-threads was given.
14317 if test "${with_dec_threads+set}" = set; then
14318 withval
=$with_dec_threads;
14319 { echo "$as_me:$LINENO: result: $withval" >&5
14320 echo "${ECHO_T}$withval" >&6; }
14322 if test "${with_thread+set}" != set; then
14323 with_thread
="$withval";
14326 { echo "$as_me:$LINENO: result: no" >&5
14327 echo "${ECHO_T}no" >&6; }
14331 # Templates for things AC_DEFINEd more than once.
14332 # For a single AC_DEFINE, no template is needed.
14340 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14341 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14343 # Check whether --with-threads was given.
14344 if test "${with_threads+set}" = set; then
14345 withval
=$with_threads;
14349 # --with-thread is deprecated, but check for it anyway
14351 # Check whether --with-thread was given.
14352 if test "${with_thread+set}" = set; then
14353 withval
=$with_thread; with_threads
=$with_thread
14357 if test -z "$with_threads"
14358 then with_threads
="yes"
14360 { echo "$as_me:$LINENO: result: $with_threads" >&5
14361 echo "${ECHO_T}$with_threads" >&6; }
14364 if test "$with_threads" = "no"
14366 USE_THREAD_MODULE
="#"
14367 elif test "$ac_cv_pthread_is_default" = yes
14369 cat >>confdefs.h
<<\_ACEOF
14370 #define WITH_THREAD 1
14373 # Defining _REENTRANT on system with POSIX threads should not hurt.
14374 cat >>confdefs.h
<<\_ACEOF
14375 #define _REENTRANT 1
14379 THREADOBJ
="Python/thread.o"
14380 elif test "$ac_cv_kpthread" = "yes"
14383 if test "$ac_cv_cxx_thread" = "yes"; then
14384 CXX
="$CXX -Kpthread"
14386 cat >>confdefs.h
<<\_ACEOF
14387 #define WITH_THREAD 1
14391 THREADOBJ
="Python/thread.o"
14392 elif test "$ac_cv_kthread" = "yes"
14395 if test "$ac_cv_cxx_thread" = "yes"; then
14396 CXX
="$CXX -Kthread"
14398 cat >>confdefs.h
<<\_ACEOF
14399 #define WITH_THREAD 1
14403 THREADOBJ
="Python/thread.o"
14404 elif test "$ac_cv_pthread" = "yes"
14407 if test "$ac_cv_cxx_thread" = "yes"; then
14408 CXX
="$CXX -pthread"
14410 cat >>confdefs.h
<<\_ACEOF
14411 #define WITH_THREAD 1
14415 THREADOBJ
="Python/thread.o"
14417 if test ! -z "$with_threads" -a -d "$with_threads"
14418 then LDFLAGS
="$LDFLAGS -L$with_threads"
14420 if test ! -z "$withval" -a -d "$withval"
14421 then LDFLAGS
="$LDFLAGS -L$withval"
14424 # According to the POSIX spec, a pthreads implementation must
14425 # define _POSIX_THREADS in unistd.h. Some apparently don't
14426 # (e.g. gnu pth with pthread emulation)
14427 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14428 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14429 cat >conftest.
$ac_ext <<_ACEOF
14432 cat confdefs.h
>>conftest.
$ac_ext
14433 cat >>conftest.
$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14436 #include <unistd.h>
14437 #ifdef _POSIX_THREADS
14442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14443 $EGREP "yes" >/dev
/null
2>&1; then
14444 unistd_defines_pthreads
=yes
14446 unistd_defines_pthreads
=no
14450 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14451 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14453 cat >>confdefs.h
<<\_ACEOF
14454 #define _REENTRANT 1
14457 if test "${ac_cv_header_cthreads_h+set}" = set; then
14458 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14459 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14460 if test "${ac_cv_header_cthreads_h+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14464 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14466 # Is the header compilable?
14467 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14468 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14469 cat >conftest.
$ac_ext <<_ACEOF
14472 cat confdefs.h
>>conftest.
$ac_ext
14473 cat >>conftest.
$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 $ac_includes_default
14476 #include <cthreads.h>
14478 rm -f conftest.
$ac_objext
14479 if { (ac_try
="$ac_compile"
14480 case "(($ac_try" in
14481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_compile") 2>conftest.er1
14487 grep -v '^ *+' conftest.er1 >conftest.err
14489 cat conftest.err >&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } && {
14492 test -z "$ac_c_werror_flag" ||
14493 test ! -s conftest.err
14494 } && test -s conftest.$ac_objext; then
14495 ac_header_compiler=yes
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14500 ac_header_compiler=no
14503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14505 echo "${ECHO_T}$ac_header_compiler" >&6; }
14507 # Is the header present?
14508 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14509 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14516 #include <cthreads.h>
14518 if { (ac_try="$ac_cpp conftest.$ac_ext"
14519 case "(($ac_try" in
14520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14521 *) ac_try_echo
=$ac_try;;
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14526 grep -v '^ *+' conftest.er1
>conftest.err
14528 cat conftest.err
>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } >/dev
/null
&& {
14531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14532 test ! -s conftest.err
14534 ac_header_preproc
=yes
14536 echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.
$ac_ext >&5
14539 ac_header_preproc
=no
14542 rm -f conftest.err conftest.
$ac_ext
14543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14544 echo "${ECHO_T}$ac_header_preproc" >&6; }
14546 # So? What about this header?
14547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14549 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14550 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14552 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14553 ac_header_preproc
=yes
14556 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14557 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14559 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14561 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14562 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14563 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14564 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14565 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14566 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14567 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14569 ## ------------------------------------------------ ##
14570 ## Report this to http://www.python.org/python-bugs ##
14571 ## ------------------------------------------------ ##
14573 ) |
sed "s/^/$as_me: WARNING: /" >&2
14576 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14577 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14578 if test "${ac_cv_header_cthreads_h+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 ac_cv_header_cthreads_h
=$ac_header_preproc
14583 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14584 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14587 if test $ac_cv_header_cthreads_h = yes; then
14588 cat >>confdefs.h
<<\_ACEOF
14589 #define WITH_THREAD 1
14592 cat >>confdefs.h
<<\_ACEOF
14593 #define C_THREADS 1
14597 cat >>confdefs.h
<<\_ACEOF
14598 #define HURD_C_THREADS 1
14601 LIBS
="$LIBS -lthreads"
14602 THREADOBJ
="Python/thread.o"
14605 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14606 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14607 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14608 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14612 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14614 # Is the header compilable?
14615 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14616 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14617 cat >conftest.
$ac_ext <<_ACEOF
14620 cat confdefs.h
>>conftest.
$ac_ext
14621 cat >>conftest.
$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 $ac_includes_default
14624 #include <mach/cthreads.h>
14626 rm -f conftest.
$ac_objext
14627 if { (ac_try
="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14635 grep -v '^ *+' conftest.er1 >conftest.err
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest.$ac_objext; then
14643 ac_header_compiler=yes
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14648 ac_header_compiler=no
14651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14653 echo "${ECHO_T}$ac_header_compiler" >&6; }
14655 # Is the header present?
14656 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14657 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14658 cat >conftest.$ac_ext <<_ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #include <mach/cthreads.h>
14666 if { (ac_try="$ac_cpp conftest.$ac_ext"
14667 case "(($ac_try" in
14668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14669 *) ac_try_echo
=$ac_try;;
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14674 grep -v '^ *+' conftest.er1
>conftest.err
14676 cat conftest.err
>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } >/dev
/null
&& {
14679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14680 test ! -s conftest.err
14682 ac_header_preproc
=yes
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.
$ac_ext >&5
14687 ac_header_preproc
=no
14690 rm -f conftest.err conftest.
$ac_ext
14691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14692 echo "${ECHO_T}$ac_header_preproc" >&6; }
14694 # So? What about this header?
14695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14697 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14698 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14700 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14701 ac_header_preproc
=yes
14704 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14705 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14707 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14708 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14709 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14711 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14713 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14715 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14717 ## ------------------------------------------------ ##
14718 ## Report this to http://www.python.org/python-bugs ##
14719 ## ------------------------------------------------ ##
14721 ) |
sed "s/^/$as_me: WARNING: /" >&2
14724 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14725 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14726 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
14731 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14732 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14735 if test $ac_cv_header_mach_cthreads_h = yes; then
14736 cat >>confdefs.h
<<\_ACEOF
14737 #define WITH_THREAD 1
14740 cat >>confdefs.h
<<\_ACEOF
14741 #define C_THREADS 1
14745 cat >>confdefs.h
<<\_ACEOF
14746 #define MACH_C_THREADS 1
14749 THREADOBJ
="Python/thread.o"
14752 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14753 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14755 # Check whether --with-pth was given.
14756 if test "${with_pth+set}" = set; then
14757 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14758 echo "${ECHO_T}$withval" >&6; }
14759 cat >>confdefs.h
<<\_ACEOF
14760 #define WITH_THREAD 1
14764 cat >>confdefs.h
<<\_ACEOF
14769 THREADOBJ
="Python/thread.o"
14771 { echo "$as_me:$LINENO: result: no" >&5
14772 echo "${ECHO_T}no" >&6; }
14774 # Just looking for pthread_create in libpthread is not enough:
14775 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14776 # So we really have to include pthread.h, and then link.
14778 LIBS
="$LIBS -lpthread"
14779 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14780 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14781 cat >conftest.
$ac_ext <<_ACEOF
14784 cat confdefs.h
>>conftest.
$ac_ext
14785 cat >>conftest.
$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 #include <pthread.h>
14789 void * start_routine (void *arg) { exit (0); }
14794 pthread_create (NULL, NULL, start_routine, NULL)
14799 rm -f conftest.
$ac_objext conftest
$ac_exeext
14800 if { (ac_try
="$ac_link"
14801 case "(($ac_try" in
14802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_link") 2>conftest.er1
14808 grep -v '^ *+' conftest.er1 >conftest.err
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } && {
14813 test -z "$ac_c_werror_flag" ||
14814 test ! -s conftest.err
14815 } && test -s conftest$ac_exeext &&
14816 $as_test_x conftest$ac_exeext; then
14818 { echo "$as_me:$LINENO: result: yes" >&5
14819 echo "${ECHO_T}yes" >&6; }
14820 cat >>confdefs.h <<\_ACEOF
14821 #define WITH_THREAD 1
14825 THREADOBJ="Python/thread.o"
14827 echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14832 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14833 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14834 if test "${ac_cv_func_pthread_detach+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14845 #define pthread_detach innocuous_pthread_detach
14847 /* System header to define __stub macros and hopefully few prototypes,
14848 which can conflict with char pthread_detach (); below.
14849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14850 <limits.h> exists even on freestanding compilers. */
14853 # include <limits.h>
14855 # include <assert.h>
14858 #undef pthread_detach
14860 /* Override any GCC internal prototype to avoid an error.
14861 Use char because int might match the return type of a GCC
14862 builtin and then its argument prototype would still apply. */
14866 char pthread_detach ();
14867 /* The GNU C library defines this for functions which it implements
14868 to always fail with ENOSYS. Some functions are actually named
14869 something starting with __ and the normal name is an alias. */
14870 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14877 return pthread_detach ();
14882 rm -f conftest.$ac_objext conftest$ac_exeext
14883 if { (ac_try="$ac_link"
14884 case "(($ac_try" in
14885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14886 *) ac_try_echo
=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_link") 2>conftest.er1
14891 grep -v '^ *+' conftest.er1
>conftest.err
14893 cat conftest.err
>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } && {
14896 test -z "$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest
$ac_exeext &&
14899 $as_test_x conftest
$ac_exeext; then
14900 ac_cv_func_pthread_detach
=yes
14902 echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.
$ac_ext >&5
14905 ac_cv_func_pthread_detach
=no
14908 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14909 conftest
$ac_exeext conftest.
$ac_ext
14911 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14912 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14913 if test $ac_cv_func_pthread_detach = yes; then
14914 cat >>confdefs.h
<<\_ACEOF
14915 #define WITH_THREAD 1
14919 THREADOBJ
="Python/thread.o"
14922 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14923 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14924 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14925 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14926 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14929 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14931 # Is the header compilable?
14932 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14933 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14934 cat >conftest.
$ac_ext <<_ACEOF
14937 cat confdefs.h
>>conftest.
$ac_ext
14938 cat >>conftest.
$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 $ac_includes_default
14941 #include <atheos/threads.h>
14943 rm -f conftest.
$ac_objext
14944 if { (ac_try
="$ac_compile"
14945 case "(($ac_try" in
14946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_compile") 2>conftest.er1
14952 grep -v '^ *+' conftest.er1 >conftest.err
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest.$ac_objext; then
14960 ac_header_compiler=yes
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ac_header_compiler=no
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970 echo "${ECHO_T}$ac_header_compiler" >&6; }
14972 # Is the header present?
14973 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14974 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 #include <atheos/threads.h>
14983 if { (ac_try="$ac_cpp conftest.$ac_ext"
14984 case "(($ac_try" in
14985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14986 *) ac_try_echo
=$ac_try;;
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14991 grep -v '^ *+' conftest.er1
>conftest.err
14993 cat conftest.err
>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } >/dev
/null
&& {
14996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14997 test ! -s conftest.err
14999 ac_header_preproc
=yes
15001 echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.
$ac_ext >&5
15004 ac_header_preproc
=no
15007 rm -f conftest.err conftest.
$ac_ext
15008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009 echo "${ECHO_T}$ac_header_preproc" >&6; }
15011 # So? What about this header?
15012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15014 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15015 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15017 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15018 ac_header_preproc
=yes
15021 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15022 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15024 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15026 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15028 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15030 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15032 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15034 ## ------------------------------------------------ ##
15035 ## Report this to http://www.python.org/python-bugs ##
15036 ## ------------------------------------------------ ##
15038 ) |
sed "s/^/$as_me: WARNING: /" >&2
15041 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15042 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15043 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 ac_cv_header_atheos_threads_h
=$ac_header_preproc
15048 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15049 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15052 if test $ac_cv_header_atheos_threads_h = yes; then
15053 cat >>confdefs.h
<<\_ACEOF
15054 #define WITH_THREAD 1
15058 cat >>confdefs.h
<<\_ACEOF
15059 #define ATHEOS_THREADS 1
15062 THREADOBJ
="Python/thread.o"
15065 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15066 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15067 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15068 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15072 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15074 # Is the header compilable?
15075 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15076 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15077 cat >conftest.
$ac_ext <<_ACEOF
15080 cat confdefs.h
>>conftest.
$ac_ext
15081 cat >>conftest.
$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 $ac_includes_default
15084 #include <kernel/OS.h>
15086 rm -f conftest.
$ac_objext
15087 if { (ac_try
="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_compile") 2>conftest.er1
15095 grep -v '^ *+' conftest.er1 >conftest.err
15097 cat conftest.err >&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } && {
15100 test -z "$ac_c_werror_flag" ||
15101 test ! -s conftest.err
15102 } && test -s conftest.$ac_objext; then
15103 ac_header_compiler=yes
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 ac_header_compiler=no
15111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15113 echo "${ECHO_T}$ac_header_compiler" >&6; }
15115 # Is the header present?
15116 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15117 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 #include <kernel/OS.h>
15126 if { (ac_try="$ac_cpp conftest.$ac_ext"
15127 case "(($ac_try" in
15128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15129 *) ac_try_echo
=$ac_try;;
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15134 grep -v '^ *+' conftest.er1
>conftest.err
15136 cat conftest.err
>&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } >/dev
/null
&& {
15139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15140 test ! -s conftest.err
15142 ac_header_preproc
=yes
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.
$ac_ext >&5
15147 ac_header_preproc
=no
15150 rm -f conftest.err conftest.
$ac_ext
15151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15152 echo "${ECHO_T}$ac_header_preproc" >&6; }
15154 # So? What about this header?
15155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15157 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15158 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15160 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15161 ac_header_preproc
=yes
15164 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15165 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15167 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15168 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15169 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15171 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15173 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15175 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15177 ## ------------------------------------------------ ##
15178 ## Report this to http://www.python.org/python-bugs ##
15179 ## ------------------------------------------------ ##
15181 ) |
sed "s/^/$as_me: WARNING: /" >&2
15184 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15185 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15186 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 ac_cv_header_kernel_OS_h
=$ac_header_preproc
15191 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15192 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15195 if test $ac_cv_header_kernel_OS_h = yes; then
15196 cat >>confdefs.h
<<\_ACEOF
15197 #define WITH_THREAD 1
15201 cat >>confdefs.h
<<\_ACEOF
15202 #define BEOS_THREADS 1
15205 THREADOBJ
="Python/thread.o"
15208 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15209 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15210 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 ac_check_lib_save_LIBS
=$LIBS
15214 LIBS
="-lpthreads $LIBS"
15215 cat >conftest.
$ac_ext <<_ACEOF
15218 cat confdefs.h
>>conftest.
$ac_ext
15219 cat >>conftest.
$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15222 /* Override any GCC internal prototype to avoid an error.
15223 Use char because int might match the return type of a GCC
15224 builtin and then its argument prototype would still apply. */
15228 char pthread_create ();
15232 return pthread_create ();
15237 rm -f conftest.
$ac_objext conftest
$ac_exeext
15238 if { (ac_try
="$ac_link"
15239 case "(($ac_try" in
15240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_link") 2>conftest.er1
15246 grep -v '^ *+' conftest.er1 >conftest.err
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } && {
15251 test -z "$ac_c_werror_flag" ||
15252 test ! -s conftest.err
15253 } && test -s conftest$ac_exeext &&
15254 $as_test_x conftest$ac_exeext; then
15255 ac_cv_lib_pthreads_pthread_create=yes
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 ac_cv_lib_pthreads_pthread_create=no
15263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15264 conftest$ac_exeext conftest.$ac_ext
15265 LIBS=$ac_check_lib_save_LIBS
15267 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15268 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15269 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15270 cat >>confdefs.h <<\_ACEOF
15271 #define WITH_THREAD 1
15275 LIBS="$LIBS -lpthreads"
15276 THREADOBJ="Python/thread.o"
15279 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15280 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15281 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 ac_check_lib_save_LIBS=$LIBS
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15299 char pthread_create ();
15303 return pthread_create ();
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15312 *) ac_try_echo
=$ac_try;;
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_link") 2>conftest.er1
15317 grep -v '^ *+' conftest.er1
>conftest.err
15319 cat conftest.err
>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } && {
15322 test -z "$ac_c_werror_flag" ||
15323 test ! -s conftest.err
15324 } && test -s conftest
$ac_exeext &&
15325 $as_test_x conftest
$ac_exeext; then
15326 ac_cv_lib_c_r_pthread_create
=yes
15328 echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.
$ac_ext >&5
15331 ac_cv_lib_c_r_pthread_create
=no
15334 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15335 conftest
$ac_exeext conftest.
$ac_ext
15336 LIBS
=$ac_check_lib_save_LIBS
15338 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15339 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15340 if test $ac_cv_lib_c_r_pthread_create = yes; then
15341 cat >>confdefs.h
<<\_ACEOF
15342 #define WITH_THREAD 1
15347 THREADOBJ
="Python/thread.o"
15350 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15351 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15352 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 ac_check_lib_save_LIBS
=$LIBS
15356 LIBS
="-lpthread $LIBS"
15357 cat >conftest.
$ac_ext <<_ACEOF
15360 cat confdefs.h
>>conftest.
$ac_ext
15361 cat >>conftest.
$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15364 /* Override any GCC internal prototype to avoid an error.
15365 Use char because int might match the return type of a GCC
15366 builtin and then its argument prototype would still apply. */
15370 char __pthread_create_system ();
15374 return __pthread_create_system ();
15379 rm -f conftest.
$ac_objext conftest
$ac_exeext
15380 if { (ac_try
="$ac_link"
15381 case "(($ac_try" in
15382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386 (eval "$ac_link") 2>conftest.er1
15388 grep -v '^ *+' conftest.er1 >conftest.err
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } && {
15393 test -z "$ac_c_werror_flag" ||
15394 test ! -s conftest.err
15395 } && test -s conftest$ac_exeext &&
15396 $as_test_x conftest$ac_exeext; then
15397 ac_cv_lib_pthread___pthread_create_system=yes
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15402 ac_cv_lib_pthread___pthread_create_system=no
15405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15406 conftest$ac_exeext conftest.$ac_ext
15407 LIBS=$ac_check_lib_save_LIBS
15409 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15410 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15411 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15412 cat >>confdefs.h <<\_ACEOF
15413 #define WITH_THREAD 1
15417 LIBS="$LIBS -lpthread"
15418 THREADOBJ="Python/thread.o"
15421 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15422 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15423 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 ac_check_lib_save_LIBS=$LIBS
15428 cat >conftest.$ac_ext <<_ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15441 char pthread_create ();
15445 return pthread_create ();
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (ac_try="$ac_link"
15452 case "(($ac_try" in
15453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15454 *) ac_try_echo
=$ac_try;;
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_link") 2>conftest.er1
15459 grep -v '^ *+' conftest.er1
>conftest.err
15461 cat conftest.err
>&5
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } && {
15464 test -z "$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15466 } && test -s conftest
$ac_exeext &&
15467 $as_test_x conftest
$ac_exeext; then
15468 ac_cv_lib_cma_pthread_create
=yes
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.
$ac_ext >&5
15473 ac_cv_lib_cma_pthread_create
=no
15476 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15477 conftest
$ac_exeext conftest.
$ac_ext
15478 LIBS
=$ac_check_lib_save_LIBS
15480 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15481 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15482 if test $ac_cv_lib_cma_pthread_create = yes; then
15483 cat >>confdefs.h
<<\_ACEOF
15484 #define WITH_THREAD 1
15489 THREADOBJ
="Python/thread.o"
15492 USE_THREAD_MODULE
="#"
15512 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15513 conftest
$ac_exeext conftest.
$ac_ext
15523 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15524 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15525 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15526 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 ac_check_lib_save_LIBS
=$LIBS
15530 cat >conftest.
$ac_ext <<_ACEOF
15533 cat confdefs.h
>>conftest.
$ac_ext
15534 cat >>conftest.
$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15537 /* Override any GCC internal prototype to avoid an error.
15538 Use char because int might match the return type of a GCC
15539 builtin and then its argument prototype would still apply. */
15547 return usconfig ();
15552 rm -f conftest.
$ac_objext conftest
$ac_exeext
15553 if { (ac_try
="$ac_link"
15554 case "(($ac_try" in
15555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_link") 2>conftest.er1
15561 grep -v '^ *+' conftest.er1 >conftest.err
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } && {
15566 test -z "$ac_c_werror_flag" ||
15567 test ! -s conftest.err
15568 } && test -s conftest$ac_exeext &&
15569 $as_test_x conftest$ac_exeext; then
15570 ac_cv_lib_mpc_usconfig=yes
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_cv_lib_mpc_usconfig=no
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579 conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15582 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15583 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15584 if test $ac_cv_lib_mpc_usconfig = yes; then
15585 cat >>confdefs.h <<\_ACEOF
15586 #define WITH_THREAD 1
15590 THREADOBJ="Python/thread.o"
15591 USE_THREAD_MODULE=""
15595 if test "$posix_threads" != "yes"; then
15596 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15597 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15598 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-lthread $LIBS"
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 /* Override any GCC internal prototype to avoid an error.
15611 Use char because int might match the return type of a GCC
15612 builtin and then its argument prototype would still apply. */
15616 char thr_create ();
15620 return thr_create ();
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (ac_try="$ac_link"
15627 case "(($ac_try" in
15628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15629 *) ac_try_echo
=$ac_try;;
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_link") 2>conftest.er1
15634 grep -v '^ *+' conftest.er1
>conftest.err
15636 cat conftest.err
>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } && {
15639 test -z "$ac_c_werror_flag" ||
15640 test ! -s conftest.err
15641 } && test -s conftest
$ac_exeext &&
15642 $as_test_x conftest
$ac_exeext; then
15643 ac_cv_lib_thread_thr_create
=yes
15645 echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.
$ac_ext >&5
15648 ac_cv_lib_thread_thr_create
=no
15651 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15652 conftest
$ac_exeext conftest.
$ac_ext
15653 LIBS
=$ac_check_lib_save_LIBS
15655 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15656 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15657 if test $ac_cv_lib_thread_thr_create = yes; then
15658 cat >>confdefs.h
<<\_ACEOF
15659 #define WITH_THREAD 1
15662 LIBS
="$LIBS -lthread"
15663 THREADOBJ
="Python/thread.o"
15664 USE_THREAD_MODULE
=""
15669 if test "$USE_THREAD_MODULE" != "#"
15671 # If the above checks didn't disable threads, (at least) OSF1
15672 # needs this '-threads' argument during linking.
15673 case $ac_sys_system in
15674 OSF1
) LDLAST
=-threads;;
15679 if test "$posix_threads" = "yes"; then
15680 if test "$unistd_defines_pthreads" = "no"; then
15682 cat >>confdefs.h
<<\_ACEOF
15683 #define _POSIX_THREADS 1
15688 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15689 case $ac_sys_system/$ac_sys_release in
15691 cat >>confdefs.h
<<\_ACEOF
15692 #define HAVE_PTHREAD_DESTRUCTOR 1
15697 cat >>confdefs.h
<<\_ACEOF
15698 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15703 cat >>confdefs.h
<<\_ACEOF
15704 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15710 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15711 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15712 if test "${ac_cv_pthread_system_supported+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 if test "$cross_compiling" = yes; then
15716 ac_cv_pthread_system_supported
=no
15718 cat >conftest.
$ac_ext <<_ACEOF
15721 cat confdefs.h
>>conftest.
$ac_ext
15722 cat >>conftest.
$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <pthread.h>
15725 void *foo(void *parm) {
15729 pthread_attr_t attr;
15731 if (pthread_attr_init(&attr)) exit(-1);
15732 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15733 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15737 rm -f conftest
$ac_exeext
15738 if { (ac_try
="$ac_link"
15739 case "(($ac_try" in
15740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_link") 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15748 { (case "(($ac_try" in
15749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15750 *) ac_try_echo
=$ac_try;;
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_try") 2>&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_cv_pthread_system_supported
=yes
15759 echo "$as_me: program exited with status $ac_status" >&5
15760 echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.
$ac_ext >&5
15763 ( exit $ac_status )
15764 ac_cv_pthread_system_supported
=no
15766 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15773 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15774 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15775 if test "$ac_cv_pthread_system_supported" = "yes"; then
15777 cat >>confdefs.h
<<\_ACEOF
15778 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15783 for ac_func
in pthread_sigmask
15785 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15786 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15788 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 cat >conftest.
$ac_ext <<_ACEOF
15794 cat confdefs.h
>>conftest.
$ac_ext
15795 cat >>conftest.
$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15799 #define $ac_func innocuous_$ac_func
15801 /* System header to define __stub macros and hopefully few prototypes,
15802 which can conflict with char $ac_func (); below.
15803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15804 <limits.h> exists even on freestanding compilers. */
15807 # include <limits.h>
15809 # include <assert.h>
15814 /* Override any GCC internal prototype to avoid an error.
15815 Use char because int might match the return type of a GCC
15816 builtin and then its argument prototype would still apply. */
15821 /* The GNU C library defines this for functions which it implements
15822 to always fail with ENOSYS. Some functions are actually named
15823 something starting with __ and the normal name is an alias. */
15824 #if defined __stub_$ac_func || defined __stub___$ac_func
15831 return $ac_func ();
15836 rm -f conftest.
$ac_objext conftest
$ac_exeext
15837 if { (ac_try
="$ac_link"
15838 case "(($ac_try" in
15839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_link") 2>conftest.er1
15845 grep -v '^ *+' conftest.er1 >conftest.err
15847 cat conftest.err >&5
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } && {
15850 test -z "$ac_c_werror_flag" ||
15851 test ! -s conftest.err
15852 } && test -s conftest$ac_exeext &&
15853 $as_test_x conftest$ac_exeext; then
15854 eval "$as_ac_var=yes"
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15859 eval "$as_ac_var=no"
15862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15863 conftest$ac_exeext conftest.$ac_ext
15865 ac_res=`eval echo '${'$as_ac_var'}'`
15866 { echo "$as_me:$LINENO: result: $ac_res" >&5
15867 echo "${ECHO_T}$ac_res" >&6; }
15868 if test `eval echo '${'$as_ac_var'}'` = yes; then
15869 cat >>confdefs.h <<_ACEOF
15870 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15872 case $ac_sys_system in
15875 cat >>confdefs.h <<\_ACEOF
15876 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15887 # Check for enable-ipv6
15890 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15891 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15892 # Check whether --enable-ipv6 was given.
15893 if test "${enable_ipv6+set}" = set; then
15894 enableval=$enable_ipv6; case "$enableval" in
15896 { echo "$as_me:$LINENO: result: no" >&5
15897 echo "${ECHO_T}no" >&6; }
15900 *) { echo "$as_me:$LINENO: result: yes" >&5
15901 echo "${ECHO_T}yes" >&6; }
15902 cat >>confdefs.h <<\_ACEOF
15903 #define ENABLE_IPV6 1
15911 if test "$cross_compiling" = yes; then
15912 { echo "$as_me:$LINENO: result: no" >&5
15913 echo "${ECHO_T}no" >&6; }
15917 cat >conftest.$ac_ext <<_ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 /* AF_INET6 available check */
15924 #include <sys/types.h>
15925 #include <sys/socket.h>
15928 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15935 rm -f conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15939 *) ac_try_echo
=$ac_try;;
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_link") 2>&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15946 { (case "(($ac_try" in
15947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_try") 2>&5
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 { echo "$as_me:$LINENO: result: yes" >&5
15956 echo "${ECHO_T}yes" >&6; }
15959 echo "$as_me: program exited with status $ac_status" >&5
15960 echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15963 ( exit $ac_status )
15964 { echo "$as_me:$LINENO: result: no" >&5
15965 echo "${ECHO_T}no" >&6; }
15968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15973 if test "$ipv6" = "yes"; then
15974 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15975 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15976 cat >conftest.$ac_ext <<_ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15982 #include <sys/types.h>
15983 #include <netinet/in.h>
15987 struct sockaddr_in6 x;
15993 rm -f conftest.$ac_objext
15994 if { (ac_try="$ac_compile"
15995 case "(($ac_try" in
15996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15997 *) ac_try_echo
=$ac_try;;
15999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_compile") 2>conftest.er1
16002 grep -v '^ *+' conftest.er1
>conftest.err
16004 cat conftest.err
>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } && {
16007 test -z "$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16009 } && test -s conftest.
$ac_objext; then
16010 { echo "$as_me:$LINENO: result: yes" >&5
16011 echo "${ECHO_T}yes" >&6; }
16014 echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.
$ac_ext >&5
16017 { echo "$as_me:$LINENO: result: no" >&5
16018 echo "${ECHO_T}no" >&6; }
16022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16025 if test "$ipv6" = "yes"; then
16026 cat >>confdefs.h
<<\_ACEOF
16027 #define ENABLE_IPV6 1
16039 if test "$ipv6" = "yes"; then
16040 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16041 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16042 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
16046 cat >conftest.
$ac_ext <<_ACEOF
16049 cat confdefs.h
>>conftest.
$ac_ext
16050 cat >>conftest.
$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16053 #include <netinet/in.h>
16054 #ifdef IPV6_INRIA_VERSION
16058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16059 $EGREP "yes" >/dev
/null
2>&1; then
16066 cat >conftest.
$ac_ext <<_ACEOF
16069 cat confdefs.h
>>conftest.
$ac_ext
16070 cat >>conftest.
$ac_ext <<_ACEOF
16071 /* end confdefs.h. */
16073 #include <netinet/in.h>
16078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16079 $EGREP "yes" >/dev
/null
2>&1; then
16082 ipv6libdir
=/usr
/local
/v
6/lib
16089 cat >conftest.
$ac_ext <<_ACEOF
16092 cat confdefs.h
>>conftest.
$ac_ext
16093 cat >>conftest.
$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16096 #include <features.h>
16097 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16102 $EGREP "yes" >/dev
/null
2>&1; then
16110 if test -d /usr
/inet6
; then
16113 ipv6libdir
=/usr
/inet
6/lib
16114 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
16118 if test -f /etc
/netconfig
; then
16119 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
16126 cat >conftest.
$ac_ext <<_ACEOF
16129 cat confdefs.h
>>conftest.
$ac_ext
16130 cat >>conftest.
$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16133 #include <sys/param.h>
16134 #ifdef _TOSHIBA_INET6
16138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16139 $EGREP "yes" >/dev
/null
2>&1; then
16142 ipv6libdir
=/usr
/local
/v
6/lib
16148 cat >conftest.
$ac_ext <<_ACEOF
16151 cat confdefs.h
>>conftest.
$ac_ext
16152 cat >>conftest.
$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16155 #include </usr/local/v6/include/sys/v6config.h>
16160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16161 $EGREP "yes" >/dev
/null
2>&1; then
16164 ipv6libdir
=/usr
/local
/v
6/lib
;
16165 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
16171 cat >conftest.
$ac_ext <<_ACEOF
16174 cat confdefs.h
>>conftest.
$ac_ext
16175 cat >>conftest.
$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16178 #include <sys/param.h>
16179 #ifdef _ZETA_MINAMI_INET6
16183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16184 $EGREP "yes" >/dev
/null
2>&1; then
16187 ipv6libdir
=/usr
/local
/v
6/lib
16193 if test "$ipv6type" != "unknown"; then
16197 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16198 echo "${ECHO_T}$ipv6type" >&6; }
16201 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16202 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
16203 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
16204 echo "using lib$ipv6lib"
16206 if test $ipv6trylibc = "yes"; then
16209 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16210 echo "You need to fetch lib$ipv6lib.a from appropriate"
16211 echo 'ipv6 kit and compile beforehand.'
16217 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16218 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16219 cat >conftest.
$ac_ext <<_ACEOF
16222 cat confdefs.h
>>conftest.
$ac_ext
16223 cat >>conftest.
$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 #include <Carbon/Carbon.h>
16229 FSIORefNum fRef = 0
16234 rm -f conftest.
$ac_objext
16235 if { (ac_try
="$ac_compile"
16236 case "(($ac_try" in
16237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_compile") 2>conftest.er1
16243 grep -v '^ *+' conftest.er1 >conftest.err
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } && {
16248 test -z "$ac_c_werror_flag" ||
16249 test ! -s conftest.err
16250 } && test -s conftest.$ac_objext; then
16252 cat >>confdefs.h <<\_ACEOF
16253 #define HAVE_OSX105_SDK 1
16256 { echo "$as_me:$LINENO: result: yes" >&5
16257 echo "${ECHO_T}yes" >&6; }
16259 echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 { echo "$as_me:$LINENO: result: no" >&5
16263 echo "${ECHO_T}no" >&6; }
16267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 # Check for --with-doc-strings
16270 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16271 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16273 # Check whether --with-doc-strings was given.
16274 if test "${with_doc_strings+set}" = set; then
16275 withval=$with_doc_strings;
16279 if test -z "$with_doc_strings"
16280 then with_doc_strings="yes"
16282 if test "$with_doc_strings" != "no"
16285 cat >>confdefs.h <<\_ACEOF
16286 #define WITH_DOC_STRINGS 1
16290 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16291 echo "${ECHO_T}$with_doc_strings" >&6; }
16293 # Check for Python-specific malloc support
16294 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16295 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16297 # Check whether --with-tsc was given.
16298 if test "${with_tsc+set}" = set; then
16300 if test "$withval" != no
16303 cat >>confdefs.h <<\_ACEOF
16307 { echo "$as_me:$LINENO: result: yes" >&5
16308 echo "${ECHO_T}yes" >&6; }
16309 else { echo "$as_me:$LINENO: result: no" >&5
16310 echo "${ECHO_T}no" >&6; }
16313 { echo "$as_me:$LINENO: result: no" >&5
16314 echo "${ECHO_T}no" >&6; }
16318 # Check for Python-specific malloc support
16319 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16320 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16322 # Check whether --with-pymalloc was given.
16323 if test "${with_pymalloc+set}" = set; then
16324 withval=$with_pymalloc;
16328 if test -z "$with_pymalloc"
16329 then with_pymalloc="yes"
16331 if test "$with_pymalloc" != "no"
16334 cat >>confdefs.h <<\_ACEOF
16335 #define WITH_PYMALLOC 1
16339 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16340 echo "${ECHO_T}$with_pymalloc" >&6; }
16342 # Check for --with-wctype-functions
16343 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16344 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16346 # Check whether --with-wctype-functions was given.
16347 if test "${with_wctype_functions+set}" = set; then
16348 withval=$with_wctype_functions;
16349 if test "$withval" != no
16352 cat >>confdefs.h <<\_ACEOF
16353 #define WANT_WCTYPE_FUNCTIONS 1
16356 { echo "$as_me:$LINENO: result: yes" >&5
16357 echo "${ECHO_T}yes" >&6; }
16358 else { echo "$as_me:$LINENO: result: no" >&5
16359 echo "${ECHO_T}no" >&6; }
16362 { echo "$as_me:$LINENO: result: no" >&5
16363 echo "${ECHO_T}no" >&6; }
16367 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16371 # the dlopen() function means we might want to use dynload_shlib.o. some
16372 # platforms, such as AIX, have dlopen(), but don't want to use it.
16374 for ac_func in dlopen
16376 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 cat >conftest.$ac_ext <<_ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16390 #define $ac_func innocuous_$ac_func
16392 /* System header to define __stub macros and hopefully few prototypes,
16393 which can conflict with char $ac_func (); below.
16394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16395 <limits.h> exists even on freestanding compilers. */
16398 # include <limits.h>
16400 # include <assert.h>
16405 /* Override any GCC internal prototype to avoid an error.
16406 Use char because int might match the return type of a GCC
16407 builtin and then its argument prototype would still apply. */
16412 /* The GNU C library defines this for functions which it implements
16413 to always fail with ENOSYS. Some functions are actually named
16414 something starting with __ and the normal name is an alias. */
16415 #if defined __stub_$ac_func || defined __stub___$ac_func
16422 return $ac_func ();
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (ac_try="$ac_link"
16429 case "(($ac_try" in
16430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16431 *) ac_try_echo
=$ac_try;;
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_link") 2>conftest.er1
16436 grep -v '^ *+' conftest.er1
>conftest.err
16438 cat conftest.err
>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && {
16441 test -z "$ac_c_werror_flag" ||
16442 test ! -s conftest.err
16443 } && test -s conftest
$ac_exeext &&
16444 $as_test_x conftest
$ac_exeext; then
16445 eval "$as_ac_var=yes"
16447 echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.
$ac_ext >&5
16450 eval "$as_ac_var=no"
16453 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16454 conftest
$ac_exeext conftest.
$ac_ext
16456 ac_res
=`eval echo '${'$as_ac_var'}'`
16457 { echo "$as_me:$LINENO: result: $ac_res" >&5
16458 echo "${ECHO_T}$ac_res" >&6; }
16459 if test `eval echo '${'$as_ac_var'}'` = yes; then
16460 cat >>confdefs.h
<<_ACEOF
16461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16468 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16469 # loading of modules.
16471 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16472 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16473 if test -z "$DYNLOADFILE"
16475 case $ac_sys_system/$ac_sys_release in
16476 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16477 if test "$ac_cv_func_dlopen" = yes
16478 then DYNLOADFILE
="dynload_shlib.o"
16479 else DYNLOADFILE
="dynload_aix.o"
16482 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
16483 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
16484 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16485 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
16486 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
16488 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16489 # out any dynamic loading
16490 if test "$ac_cv_func_dlopen" = yes
16491 then DYNLOADFILE
="dynload_shlib.o"
16492 else DYNLOADFILE
="dynload_stub.o"
16497 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16498 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16499 if test "$DYNLOADFILE" != "dynload_stub.o"
16502 cat >>confdefs.h
<<\_ACEOF
16503 #define HAVE_DYNAMIC_LOADING 1
16508 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16511 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16512 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16513 if test -z "$MACHDEP_OBJS"
16515 MACHDEP_OBJS
=$extra_machdep_objs
16517 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
16519 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16520 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16522 # checks for library functions
16608 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
16609 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16610 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16611 getpriority getpwent getspnam getspent getsid getwd \
16612 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
16613 mremap nice pathconf pause plock poll pthread_init \
16614 putenv readlink realpath \
16615 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16617 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16618 sigaction siginterrupt sigrelse strftime \
16619 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
16620 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16622 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16625 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 cat >conftest.
$ac_ext <<_ACEOF
16631 cat confdefs.h
>>conftest.
$ac_ext
16632 cat >>conftest.
$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16636 #define $ac_func innocuous_$ac_func
16638 /* System header to define __stub macros and hopefully few prototypes,
16639 which can conflict with char $ac_func (); below.
16640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16641 <limits.h> exists even on freestanding compilers. */
16644 # include <limits.h>
16646 # include <assert.h>
16651 /* Override any GCC internal prototype to avoid an error.
16652 Use char because int might match the return type of a GCC
16653 builtin and then its argument prototype would still apply. */
16658 /* The GNU C library defines this for functions which it implements
16659 to always fail with ENOSYS. Some functions are actually named
16660 something starting with __ and the normal name is an alias. */
16661 #if defined __stub_$ac_func || defined __stub___$ac_func
16668 return $ac_func ();
16673 rm -f conftest.
$ac_objext conftest
$ac_exeext
16674 if { (ac_try
="$ac_link"
16675 case "(($ac_try" in
16676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_link") 2>conftest.er1
16682 grep -v '^ *+' conftest.er1 >conftest.err
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } && {
16687 test -z "$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 } && test -s conftest$ac_exeext &&
16690 $as_test_x conftest$ac_exeext; then
16691 eval "$as_ac_var=yes"
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16696 eval "$as_ac_var=no"
16699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16700 conftest$ac_exeext conftest.$ac_ext
16702 ac_res=`eval echo '${'$as_ac_var'}'`
16703 { echo "$as_me:$LINENO: result: $ac_res" >&5
16704 echo "${ECHO_T}$ac_res" >&6; }
16705 if test `eval echo '${'$as_ac_var'}'` = yes; then
16706 cat >>confdefs.h <<_ACEOF
16707 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16714 # For some functions, having a definition is not sufficient, since
16715 # we want to take their address.
16716 { echo "$as_me:$LINENO: checking for chroot" >&5
16717 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16718 cat >conftest.$ac_ext <<_ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724 #include <unistd.h>
16733 rm -f conftest.$ac_objext
16734 if { (ac_try="$ac_compile"
16735 case "(($ac_try" in
16736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16737 *) ac_try_echo
=$ac_try;;
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_compile") 2>conftest.er1
16742 grep -v '^ *+' conftest.er1
>conftest.err
16744 cat conftest.err
>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && {
16747 test -z "$ac_c_werror_flag" ||
16748 test ! -s conftest.err
16749 } && test -s conftest.
$ac_objext; then
16751 cat >>confdefs.h
<<\_ACEOF
16752 #define HAVE_CHROOT 1
16755 { echo "$as_me:$LINENO: result: yes" >&5
16756 echo "${ECHO_T}yes" >&6; }
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.
$ac_ext >&5
16761 { echo "$as_me:$LINENO: result: no" >&5
16762 echo "${ECHO_T}no" >&6; }
16766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16767 { echo "$as_me:$LINENO: checking for link" >&5
16768 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16769 cat >conftest.
$ac_ext <<_ACEOF
16772 cat confdefs.h
>>conftest.
$ac_ext
16773 cat >>conftest.
$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16775 #include <unistd.h>
16784 rm -f conftest.
$ac_objext
16785 if { (ac_try
="$ac_compile"
16786 case "(($ac_try" in
16787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_compile") 2>conftest.er1
16793 grep -v '^ *+' conftest.er1 >conftest.err
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest.$ac_objext; then
16802 cat >>confdefs.h <<\_ACEOF
16803 #define HAVE_LINK 1
16806 { echo "$as_me:$LINENO: result: yes" >&5
16807 echo "${ECHO_T}yes" >&6; }
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 { echo "$as_me:$LINENO: result: no" >&5
16813 echo "${ECHO_T}no" >&6; }
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 { echo "$as_me:$LINENO: checking for symlink" >&5
16819 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16820 cat >conftest.$ac_ext <<_ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16826 #include <unistd.h>
16835 rm -f conftest.$ac_objext
16836 if { (ac_try="$ac_compile"
16837 case "(($ac_try" in
16838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16839 *) ac_try_echo
=$ac_try;;
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_compile") 2>conftest.er1
16844 grep -v '^ *+' conftest.er1
>conftest.err
16846 cat conftest.err
>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } && {
16849 test -z "$ac_c_werror_flag" ||
16850 test ! -s conftest.err
16851 } && test -s conftest.
$ac_objext; then
16853 cat >>confdefs.h
<<\_ACEOF
16854 #define HAVE_SYMLINK 1
16857 { echo "$as_me:$LINENO: result: yes" >&5
16858 echo "${ECHO_T}yes" >&6; }
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.
$ac_ext >&5
16863 { echo "$as_me:$LINENO: result: no" >&5
16864 echo "${ECHO_T}no" >&6; }
16868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16869 { echo "$as_me:$LINENO: checking for fchdir" >&5
16870 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16871 cat >conftest.
$ac_ext <<_ACEOF
16874 cat confdefs.h
>>conftest.
$ac_ext
16875 cat >>conftest.
$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 #include <unistd.h>
16886 rm -f conftest.
$ac_objext
16887 if { (ac_try
="$ac_compile"
16888 case "(($ac_try" in
16889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_compile") 2>conftest.er1
16895 grep -v '^ *+' conftest.er1 >conftest.err
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } && {
16900 test -z "$ac_c_werror_flag" ||
16901 test ! -s conftest.err
16902 } && test -s conftest.$ac_objext; then
16904 cat >>confdefs.h <<\_ACEOF
16905 #define HAVE_FCHDIR 1
16908 { echo "$as_me:$LINENO: result: yes" >&5
16909 echo "${ECHO_T}yes" >&6; }
16911 echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16914 { echo "$as_me:$LINENO: result: no" >&5
16915 echo "${ECHO_T}no" >&6; }
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 { echo "$as_me:$LINENO: checking for fsync" >&5
16921 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16922 cat >conftest.$ac_ext <<_ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 #include <unistd.h>
16937 rm -f conftest.$ac_objext
16938 if { (ac_try="$ac_compile"
16939 case "(($ac_try" in
16940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16941 *) ac_try_echo
=$ac_try;;
16943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_compile") 2>conftest.er1
16946 grep -v '^ *+' conftest.er1
>conftest.err
16948 cat conftest.err
>&5
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); } && {
16951 test -z "$ac_c_werror_flag" ||
16952 test ! -s conftest.err
16953 } && test -s conftest.
$ac_objext; then
16955 cat >>confdefs.h
<<\_ACEOF
16956 #define HAVE_FSYNC 1
16959 { echo "$as_me:$LINENO: result: yes" >&5
16960 echo "${ECHO_T}yes" >&6; }
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.
$ac_ext >&5
16965 { echo "$as_me:$LINENO: result: no" >&5
16966 echo "${ECHO_T}no" >&6; }
16970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16971 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16972 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16973 cat >conftest.
$ac_ext <<_ACEOF
16976 cat confdefs.h
>>conftest.
$ac_ext
16977 cat >>conftest.
$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 #include <unistd.h>
16988 rm -f conftest.
$ac_objext
16989 if { (ac_try
="$ac_compile"
16990 case "(($ac_try" in
16991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_compile") 2>conftest.er1
16997 grep -v '^ *+' conftest.er1 >conftest.err
16999 cat conftest.err >&5
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } && {
17002 test -z "$ac_c_werror_flag" ||
17003 test ! -s conftest.err
17004 } && test -s conftest.$ac_objext; then
17006 cat >>confdefs.h <<\_ACEOF
17007 #define HAVE_FDATASYNC 1
17010 { echo "$as_me:$LINENO: result: yes" >&5
17011 echo "${ECHO_T}yes" >&6; }
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 { echo "$as_me:$LINENO: result: no" >&5
17017 echo "${ECHO_T}no" >&6; }
17021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17022 { echo "$as_me:$LINENO: checking for epoll" >&5
17023 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
17024 cat >conftest.$ac_ext <<_ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17030 #include <sys/epoll.h>
17034 void *x=epoll_create
17039 rm -f conftest.$ac_objext
17040 if { (ac_try="$ac_compile"
17041 case "(($ac_try" in
17042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17043 *) ac_try_echo
=$ac_try;;
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_compile") 2>conftest.er1
17048 grep -v '^ *+' conftest.er1
>conftest.err
17050 cat conftest.err
>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } && {
17053 test -z "$ac_c_werror_flag" ||
17054 test ! -s conftest.err
17055 } && test -s conftest.
$ac_objext; then
17057 cat >>confdefs.h
<<\_ACEOF
17058 #define HAVE_EPOLL 1
17061 { echo "$as_me:$LINENO: result: yes" >&5
17062 echo "${ECHO_T}yes" >&6; }
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.
$ac_ext >&5
17067 { echo "$as_me:$LINENO: result: no" >&5
17068 echo "${ECHO_T}no" >&6; }
17072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17073 { echo "$as_me:$LINENO: checking for kqueue" >&5
17074 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17075 cat >conftest.
$ac_ext <<_ACEOF
17078 cat confdefs.h
>>conftest.
$ac_ext
17079 cat >>conftest.
$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17082 #include <sys/types.h>
17083 #include <sys/event.h>
17093 rm -f conftest.
$ac_objext
17094 if { (ac_try
="$ac_compile"
17095 case "(($ac_try" in
17096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_compile") 2>conftest.er1
17102 grep -v '^ *+' conftest.er1 >conftest.err
17104 cat conftest.err >&5
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); } && {
17107 test -z "$ac_c_werror_flag" ||
17108 test ! -s conftest.err
17109 } && test -s conftest.$ac_objext; then
17111 cat >>confdefs.h <<\_ACEOF
17112 #define HAVE_KQUEUE 1
17115 { echo "$as_me:$LINENO: result: yes" >&5
17116 echo "${ECHO_T}yes" >&6; }
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 { echo "$as_me:$LINENO: result: no" >&5
17122 echo "${ECHO_T}no" >&6; }
17126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17127 # On some systems (eg. FreeBSD 5), we would find a definition of the
17128 # functions ctermid_r, setgroups in the library, but no prototype
17129 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17130 # address to avoid compiler warnings and potential miscompilations
17131 # because of the missing prototypes.
17133 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17134 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17142 #include "confdefs.h"
17148 void* p = ctermid_r
17153 rm -f conftest.$ac_objext
17154 if { (ac_try="$ac_compile"
17155 case "(($ac_try" in
17156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17157 *) ac_try_echo
=$ac_try;;
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_compile") 2>conftest.er1
17162 grep -v '^ *+' conftest.er1
>conftest.err
17164 cat conftest.err
>&5
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); } && {
17167 test -z "$ac_c_werror_flag" ||
17168 test ! -s conftest.err
17169 } && test -s conftest.
$ac_objext; then
17171 cat >>confdefs.h
<<\_ACEOF
17172 #define HAVE_CTERMID_R 1
17175 { echo "$as_me:$LINENO: result: yes" >&5
17176 echo "${ECHO_T}yes" >&6; }
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.
$ac_ext >&5
17181 { echo "$as_me:$LINENO: result: no" >&5
17182 echo "${ECHO_T}no" >&6; }
17186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17188 { echo "$as_me:$LINENO: checking for flock" >&5
17189 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17190 cat >conftest.
$ac_ext <<_ACEOF
17193 cat confdefs.h
>>conftest.
$ac_ext
17194 cat >>conftest.
$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17197 #include "confdefs.h"
17198 #include <sys/file.h>
17208 rm -f conftest.
$ac_objext
17209 if { (ac_try
="$ac_compile"
17210 case "(($ac_try" in
17211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_compile") 2>conftest.er1
17217 grep -v '^ *+' conftest.er1 >conftest.err
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } && {
17222 test -z "$ac_c_werror_flag" ||
17223 test ! -s conftest.err
17224 } && test -s conftest.$ac_objext; then
17226 cat >>confdefs.h <<\_ACEOF
17227 #define HAVE_FLOCK 1
17230 { echo "$as_me:$LINENO: result: yes" >&5
17231 echo "${ECHO_T}yes" >&6; }
17233 echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17236 { echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6; }
17241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17244 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17245 cat >conftest.$ac_ext <<_ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17252 #include "confdefs.h"
17253 #include <unistd.h>
17258 void* p = getpagesize
17263 rm -f conftest.$ac_objext
17264 if { (ac_try="$ac_compile"
17265 case "(($ac_try" in
17266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17267 *) ac_try_echo
=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_compile") 2>conftest.er1
17272 grep -v '^ *+' conftest.er1
>conftest.err
17274 cat conftest.err
>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest.
$ac_objext; then
17281 cat >>confdefs.h
<<\_ACEOF
17282 #define HAVE_GETPAGESIZE 1
17285 { echo "$as_me:$LINENO: result: yes" >&5
17286 echo "${ECHO_T}yes" >&6; }
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.
$ac_ext >&5
17291 { echo "$as_me:$LINENO: result: no" >&5
17292 echo "${ECHO_T}no" >&6; }
17296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17298 for ac_prog
in true
17300 # Extract the first word of "$ac_prog", so it can be a program name with args.
17301 set dummy
$ac_prog; ac_word
=$2
17302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17304 if test "${ac_cv_prog_TRUE+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 if test -n "$TRUE"; then
17308 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
17310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17311 for as_dir
in $PATH
17314 test -z "$as_dir" && as_dir
=.
17315 for ac_exec_ext
in '' $ac_executable_extensions; do
17316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17317 ac_cv_prog_TRUE
="$ac_prog"
17318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17327 TRUE
=$ac_cv_prog_TRUE
17328 if test -n "$TRUE"; then
17329 { echo "$as_me:$LINENO: result: $TRUE" >&5
17330 echo "${ECHO_T}$TRUE" >&6; }
17332 { echo "$as_me:$LINENO: result: no" >&5
17333 echo "${ECHO_T}no" >&6; }
17337 test -n "$TRUE" && break
17339 test -n "$TRUE" || TRUE
="/bin/true"
17342 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17343 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17344 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 ac_check_lib_save_LIBS
=$LIBS
17349 cat >conftest.
$ac_ext <<_ACEOF
17352 cat confdefs.h
>>conftest.
$ac_ext
17353 cat >>conftest.
$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17356 /* Override any GCC internal prototype to avoid an error.
17357 Use char because int might match the return type of a GCC
17358 builtin and then its argument prototype would still apply. */
17366 return inet_aton ();
17371 rm -f conftest.
$ac_objext conftest
$ac_exeext
17372 if { (ac_try
="$ac_link"
17373 case "(($ac_try" in
17374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17375 *) ac_try_echo=$ac_try;;
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378 (eval "$ac_link") 2>conftest.er1
17380 grep -v '^ *+' conftest.er1 >conftest.err
17382 cat conftest.err >&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } && {
17385 test -z "$ac_c_werror_flag" ||
17386 test ! -s conftest.err
17387 } && test -s conftest$ac_exeext &&
17388 $as_test_x conftest$ac_exeext; then
17389 ac_cv_lib_c_inet_aton=yes
17391 echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ac_cv_lib_c_inet_aton=no
17397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17398 conftest$ac_exeext conftest.$ac_ext
17399 LIBS=$ac_check_lib_save_LIBS
17401 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17402 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17403 if test $ac_cv_lib_c_inet_aton = yes; then
17407 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17408 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17409 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 ac_check_lib_save_LIBS=$LIBS
17413 LIBS="-lresolv $LIBS"
17414 cat >conftest.$ac_ext <<_ACEOF
17417 cat confdefs.h >>conftest.$ac_ext
17418 cat >>conftest.$ac_ext <<_ACEOF
17419 /* end confdefs.h. */
17421 /* Override any GCC internal prototype to avoid an error.
17422 Use char because int might match the return type of a GCC
17423 builtin and then its argument prototype would still apply. */
17431 return inet_aton ();
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17440 *) ac_try_echo
=$ac_try;;
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_link") 2>conftest.er1
17445 grep -v '^ *+' conftest.er1
>conftest.err
17447 cat conftest.err
>&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } && {
17450 test -z "$ac_c_werror_flag" ||
17451 test ! -s conftest.err
17452 } && test -s conftest
$ac_exeext &&
17453 $as_test_x conftest
$ac_exeext; then
17454 ac_cv_lib_resolv_inet_aton
=yes
17456 echo "$as_me: failed program was:" >&5
17457 sed 's/^/| /' conftest.
$ac_ext >&5
17459 ac_cv_lib_resolv_inet_aton
=no
17462 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17463 conftest
$ac_exeext conftest.
$ac_ext
17464 LIBS
=$ac_check_lib_save_LIBS
17466 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17467 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17468 if test $ac_cv_lib_resolv_inet_aton = yes; then
17469 cat >>confdefs.h
<<_ACEOF
17470 #define HAVE_LIBRESOLV 1
17473 LIBS
="-lresolv $LIBS"
17481 # On Tru64, chflags seems to be present, but calling it will
17483 { echo "$as_me:$LINENO: checking for chflags" >&5
17484 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17485 if test "$cross_compiling" = yes; then
17486 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17487 See \`config.log' for more details." >&5
17488 echo "$as_me: error: cannot run test program while cross compiling
17489 See \`config.log' for more details." >&2;}
17490 { (exit 1); exit 1; }; }
17492 cat >conftest.
$ac_ext <<_ACEOF
17495 cat confdefs.h
>>conftest.
$ac_ext
17496 cat >>conftest.
$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17499 #include <sys/stat.h>
17500 #include <unistd.h>
17501 int main(int argc, char*argv[])
17503 if(chflags(argv[0], 0) != 0)
17509 rm -f conftest
$ac_exeext
17510 if { (ac_try
="$ac_link"
17511 case "(($ac_try" in
17512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17513 *) ac_try_echo=$ac_try;;
17515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17516 (eval "$ac_link") 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17520 { (case "(($ac_try" in
17521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17522 *) ac_try_echo
=$ac_try;;
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525 (eval "$ac_try") 2>&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17530 cat >>confdefs.h
<<\_ACEOF
17531 #define HAVE_CHFLAGS 1
17534 { echo "$as_me:$LINENO: result: yes" >&5
17535 echo "${ECHO_T}yes" >&6; }
17537 echo "$as_me: program exited with status $ac_status" >&5
17538 echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.
$ac_ext >&5
17541 ( exit $ac_status )
17542 { echo "$as_me:$LINENO: result: no" >&5
17543 echo "${ECHO_T}no" >&6; }
17546 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17551 { echo "$as_me:$LINENO: checking for lchflags" >&5
17552 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17553 if test "$cross_compiling" = yes; then
17554 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17555 See \`config.log' for more details." >&5
17556 echo "$as_me: error: cannot run test program while cross compiling
17557 See \`config.log' for more details." >&2;}
17558 { (exit 1); exit 1; }; }
17560 cat >conftest.
$ac_ext <<_ACEOF
17563 cat confdefs.h
>>conftest.
$ac_ext
17564 cat >>conftest.
$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17567 #include <sys/stat.h>
17568 #include <unistd.h>
17569 int main(int argc, char*argv[])
17571 if(lchflags(argv[0], 0) != 0)
17577 rm -f conftest
$ac_exeext
17578 if { (ac_try
="$ac_link"
17579 case "(($ac_try" in
17580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_link") 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17588 { (case "(($ac_try" in
17589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17590 *) ac_try_echo
=$ac_try;;
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
17598 cat >>confdefs.h
<<\_ACEOF
17599 #define HAVE_LCHFLAGS 1
17602 { echo "$as_me:$LINENO: result: yes" >&5
17603 echo "${ECHO_T}yes" >&6; }
17605 echo "$as_me: program exited with status $ac_status" >&5
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.
$ac_ext >&5
17609 ( exit $ac_status )
17610 { echo "$as_me:$LINENO: result: no" >&5
17611 echo "${ECHO_T}no" >&6; }
17614 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17619 case $ac_sys_system/$ac_sys_release in
17621 _CUR_CFLAGS
="${CFLAGS}"
17622 _CUR_LDFLAGS
="${LDFLAGS}"
17623 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
17624 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17628 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17629 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17630 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17633 ac_check_lib_save_LIBS
=$LIBS
17635 cat >conftest.
$ac_ext <<_ACEOF
17638 cat confdefs.h
>>conftest.
$ac_ext
17639 cat >>conftest.
$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17642 /* Override any GCC internal prototype to avoid an error.
17643 Use char because int might match the return type of a GCC
17644 builtin and then its argument prototype would still apply. */
17648 char inflateCopy ();
17652 return inflateCopy ();
17657 rm -f conftest.
$ac_objext conftest
$ac_exeext
17658 if { (ac_try
="$ac_link"
17659 case "(($ac_try" in
17660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_link") 2>conftest.er1
17666 grep -v '^ *+' conftest.er1 >conftest.err
17668 cat conftest.err >&5
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); } && {
17671 test -z "$ac_c_werror_flag" ||
17672 test ! -s conftest.err
17673 } && test -s conftest$ac_exeext &&
17674 $as_test_x conftest$ac_exeext; then
17675 ac_cv_lib_z_inflateCopy=yes
17677 echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_cv_lib_z_inflateCopy=no
17683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17684 conftest$ac_exeext conftest.$ac_ext
17685 LIBS=$ac_check_lib_save_LIBS
17687 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17688 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17689 if test $ac_cv_lib_z_inflateCopy = yes; then
17691 cat >>confdefs.h <<\_ACEOF
17692 #define HAVE_ZLIB_COPY 1
17698 case $ac_sys_system/$ac_sys_release in
17700 CFLAGS="${_CUR_CFLAGS}"
17701 LDFLAGS="${_CUR_LDFLAGS}"
17705 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17706 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17707 cat >conftest.$ac_ext <<_ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17714 #include "confdefs.h"
17720 void* p = hstrerror; hstrerror(0)
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17729 *) ac_try_echo
=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_link") 2>conftest.er1
17734 grep -v '^ *+' conftest.er1
>conftest.err
17736 cat conftest.err
>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } && {
17739 test -z "$ac_c_werror_flag" ||
17740 test ! -s conftest.err
17741 } && test -s conftest
$ac_exeext &&
17742 $as_test_x conftest
$ac_exeext; then
17744 cat >>confdefs.h
<<\_ACEOF
17745 #define HAVE_HSTRERROR 1
17748 { echo "$as_me:$LINENO: result: yes" >&5
17749 echo "${ECHO_T}yes" >&6; }
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.
$ac_ext >&5
17754 { echo "$as_me:$LINENO: result: no" >&5
17755 echo "${ECHO_T}no" >&6; }
17759 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17760 conftest
$ac_exeext conftest.
$ac_ext
17762 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17763 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17764 cat >conftest.
$ac_ext <<_ACEOF
17767 cat confdefs.h
>>conftest.
$ac_ext
17768 cat >>conftest.
$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17771 #include "confdefs.h"
17772 #include <sys/types.h>
17773 #include <sys/socket.h>
17774 #include <netinet/in.h>
17775 #include <arpa/inet.h>
17780 void* p = inet_aton;inet_aton(0,0)
17785 rm -f conftest.
$ac_objext conftest
$ac_exeext
17786 if { (ac_try
="$ac_link"
17787 case "(($ac_try" in
17788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_link") 2>conftest.er1
17794 grep -v '^ *+' conftest.er1 >conftest.err
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } && {
17799 test -z "$ac_c_werror_flag" ||
17800 test ! -s conftest.err
17801 } && test -s conftest$ac_exeext &&
17802 $as_test_x conftest$ac_exeext; then
17804 cat >>confdefs.h <<\_ACEOF
17805 #define HAVE_INET_ATON 1
17808 { echo "$as_me:$LINENO: result: yes" >&5
17809 echo "${ECHO_T}yes" >&6; }
17811 echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17814 { echo "$as_me:$LINENO: result: no" >&5
17815 echo "${ECHO_T}no" >&6; }
17819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17820 conftest$ac_exeext conftest.$ac_ext
17822 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17823 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17831 #include "confdefs.h"
17832 #include <sys/types.h>
17833 #include <sys/socket.h>
17834 #include <netinet/in.h>
17835 #include <arpa/inet.h>
17840 void* p = inet_pton
17845 rm -f conftest.$ac_objext
17846 if { (ac_try="$ac_compile"
17847 case "(($ac_try" in
17848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17849 *) ac_try_echo
=$ac_try;;
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_compile") 2>conftest.er1
17854 grep -v '^ *+' conftest.er1
>conftest.err
17856 cat conftest.err
>&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } && {
17859 test -z "$ac_c_werror_flag" ||
17860 test ! -s conftest.err
17861 } && test -s conftest.
$ac_objext; then
17863 cat >>confdefs.h
<<\_ACEOF
17864 #define HAVE_INET_PTON 1
17867 { echo "$as_me:$LINENO: result: yes" >&5
17868 echo "${ECHO_T}yes" >&6; }
17870 echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.
$ac_ext >&5
17873 { echo "$as_me:$LINENO: result: no" >&5
17874 echo "${ECHO_T}no" >&6; }
17878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17880 # On some systems, setgroups is in unistd.h, on others, in grp.h
17881 { echo "$as_me:$LINENO: checking for setgroups" >&5
17882 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17883 cat >conftest.
$ac_ext <<_ACEOF
17886 cat confdefs.h
>>conftest.
$ac_ext
17887 cat >>conftest.
$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17890 #include "confdefs.h"
17891 #include <unistd.h>
17899 void* p = setgroups
17904 rm -f conftest.
$ac_objext
17905 if { (ac_try
="$ac_compile"
17906 case "(($ac_try" in
17907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_compile") 2>conftest.er1
17913 grep -v '^ *+' conftest.er1 >conftest.err
17915 cat conftest.err >&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } && {
17918 test -z "$ac_c_werror_flag" ||
17919 test ! -s conftest.err
17920 } && test -s conftest.$ac_objext; then
17922 cat >>confdefs.h <<\_ACEOF
17923 #define HAVE_SETGROUPS 1
17926 { echo "$as_me:$LINENO: result: yes" >&5
17927 echo "${ECHO_T}yes" >&6; }
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17932 { echo "$as_me:$LINENO: result: no" >&5
17933 echo "${ECHO_T}no" >&6; }
17937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17939 # check for openpty and forkpty
17942 for ac_func in openpty
17944 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17958 #define $ac_func innocuous_$ac_func
17960 /* System header to define __stub macros and hopefully few prototypes,
17961 which can conflict with char $ac_func (); below.
17962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17963 <limits.h> exists even on freestanding compilers. */
17966 # include <limits.h>
17968 # include <assert.h>
17973 /* Override any GCC internal prototype to avoid an error.
17974 Use char because int might match the return type of a GCC
17975 builtin and then its argument prototype would still apply. */
17980 /* The GNU C library defines this for functions which it implements
17981 to always fail with ENOSYS. Some functions are actually named
17982 something starting with __ and the normal name is an alias. */
17983 #if defined __stub_$ac_func || defined __stub___$ac_func
17990 return $ac_func ();
17995 rm -f conftest.$ac_objext conftest$ac_exeext
17996 if { (ac_try="$ac_link"
17997 case "(($ac_try" in
17998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17999 *) ac_try_echo
=$ac_try;;
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_link") 2>conftest.er1
18004 grep -v '^ *+' conftest.er1
>conftest.err
18006 cat conftest.err
>&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && {
18009 test -z "$ac_c_werror_flag" ||
18010 test ! -s conftest.err
18011 } && test -s conftest
$ac_exeext &&
18012 $as_test_x conftest
$ac_exeext; then
18013 eval "$as_ac_var=yes"
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.
$ac_ext >&5
18018 eval "$as_ac_var=no"
18021 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18022 conftest
$ac_exeext conftest.
$ac_ext
18024 ac_res
=`eval echo '${'$as_ac_var'}'`
18025 { echo "$as_me:$LINENO: result: $ac_res" >&5
18026 echo "${ECHO_T}$ac_res" >&6; }
18027 if test `eval echo '${'$as_ac_var'}'` = yes; then
18028 cat >>confdefs.h
<<_ACEOF
18029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18033 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18034 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18035 if test "${ac_cv_lib_util_openpty+set}" = set; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 ac_check_lib_save_LIBS
=$LIBS
18039 LIBS
="-lutil $LIBS"
18040 cat >conftest.
$ac_ext <<_ACEOF
18043 cat confdefs.h
>>conftest.
$ac_ext
18044 cat >>conftest.
$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18062 rm -f conftest.
$ac_objext conftest
$ac_exeext
18063 if { (ac_try
="$ac_link"
18064 case "(($ac_try" in
18065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_link") 2>conftest.er1
18071 grep -v '^ *+' conftest.er1 >conftest.err
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest$ac_exeext &&
18079 $as_test_x conftest$ac_exeext; then
18080 ac_cv_lib_util_openpty=yes
18082 echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_cv_lib_util_openpty=no
18088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18089 conftest$ac_exeext conftest.$ac_ext
18090 LIBS=$ac_check_lib_save_LIBS
18092 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18093 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18094 if test $ac_cv_lib_util_openpty = yes; then
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_OPENPTY 1
18098 LIBS="$LIBS -lutil"
18100 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18101 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18102 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18103 echo $ECHO_N "(cached) $ECHO_C" >&6
18105 ac_check_lib_save_LIBS=$LIBS
18107 cat >conftest.$ac_ext <<_ACEOF
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18114 /* Override any GCC internal prototype to avoid an error.
18115 Use char because int might match the return type of a GCC
18116 builtin and then its argument prototype would still apply. */
18129 rm -f conftest.$ac_objext conftest$ac_exeext
18130 if { (ac_try="$ac_link"
18131 case "(($ac_try" in
18132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18133 *) ac_try_echo
=$ac_try;;
18135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136 (eval "$ac_link") 2>conftest.er1
18138 grep -v '^ *+' conftest.er1
>conftest.err
18140 cat conftest.err
>&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } && {
18143 test -z "$ac_c_werror_flag" ||
18144 test ! -s conftest.err
18145 } && test -s conftest
$ac_exeext &&
18146 $as_test_x conftest
$ac_exeext; then
18147 ac_cv_lib_bsd_openpty
=yes
18149 echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.
$ac_ext >&5
18152 ac_cv_lib_bsd_openpty
=no
18155 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18156 conftest
$ac_exeext conftest.
$ac_ext
18157 LIBS
=$ac_check_lib_save_LIBS
18159 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18160 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18161 if test $ac_cv_lib_bsd_openpty = yes; then
18162 cat >>confdefs.h
<<\_ACEOF
18163 #define HAVE_OPENPTY 1
18176 for ac_func
in forkpty
18178 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18181 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 cat >conftest.
$ac_ext <<_ACEOF
18187 cat confdefs.h
>>conftest.
$ac_ext
18188 cat >>conftest.
$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18192 #define $ac_func innocuous_$ac_func
18194 /* System header to define __stub macros and hopefully few prototypes,
18195 which can conflict with char $ac_func (); below.
18196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18197 <limits.h> exists even on freestanding compilers. */
18200 # include <limits.h>
18202 # include <assert.h>
18207 /* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18214 /* The GNU C library defines this for functions which it implements
18215 to always fail with ENOSYS. Some functions are actually named
18216 something starting with __ and the normal name is an alias. */
18217 #if defined __stub_$ac_func || defined __stub___$ac_func
18224 return $ac_func ();
18229 rm -f conftest.
$ac_objext conftest
$ac_exeext
18230 if { (ac_try
="$ac_link"
18231 case "(($ac_try" in
18232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_link") 2>conftest.er1
18238 grep -v '^ *+' conftest.er1 >conftest.err
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } && {
18243 test -z "$ac_c_werror_flag" ||
18244 test ! -s conftest.err
18245 } && test -s conftest$ac_exeext &&
18246 $as_test_x conftest$ac_exeext; then
18247 eval "$as_ac_var=yes"
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 eval "$as_ac_var=no"
18255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18256 conftest$ac_exeext conftest.$ac_ext
18258 ac_res=`eval echo '${'$as_ac_var'}'`
18259 { echo "$as_me:$LINENO: result: $ac_res" >&5
18260 echo "${ECHO_T}$ac_res" >&6; }
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262 cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18267 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18268 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18269 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 ac_check_lib_save_LIBS=$LIBS
18273 LIBS="-lutil $LIBS"
18274 cat >conftest.$ac_ext <<_ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18281 /* Override any GCC internal prototype to avoid an error.
18282 Use char because int might match the return type of a GCC
18283 builtin and then its argument prototype would still apply. */
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (ac_try="$ac_link"
18298 case "(($ac_try" in
18299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18300 *) ac_try_echo
=$ac_try;;
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_link") 2>conftest.er1
18305 grep -v '^ *+' conftest.er1
>conftest.err
18307 cat conftest.err
>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } && {
18310 test -z "$ac_c_werror_flag" ||
18311 test ! -s conftest.err
18312 } && test -s conftest
$ac_exeext &&
18313 $as_test_x conftest
$ac_exeext; then
18314 ac_cv_lib_util_forkpty
=yes
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.
$ac_ext >&5
18319 ac_cv_lib_util_forkpty
=no
18322 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18323 conftest
$ac_exeext conftest.
$ac_ext
18324 LIBS
=$ac_check_lib_save_LIBS
18326 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18327 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18328 if test $ac_cv_lib_util_forkpty = yes; then
18329 cat >>confdefs.h
<<\_ACEOF
18330 #define HAVE_FORKPTY 1
18332 LIBS
="$LIBS -lutil"
18334 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18335 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18336 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18337 echo $ECHO_N "(cached) $ECHO_C" >&6
18339 ac_check_lib_save_LIBS
=$LIBS
18341 cat >conftest.
$ac_ext <<_ACEOF
18344 cat confdefs.h
>>conftest.
$ac_ext
18345 cat >>conftest.
$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18348 /* Override any GCC internal prototype to avoid an error.
18349 Use char because int might match the return type of a GCC
18350 builtin and then its argument prototype would still apply. */
18363 rm -f conftest.
$ac_objext conftest
$ac_exeext
18364 if { (ac_try
="$ac_link"
18365 case "(($ac_try" in
18366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_link") 2>conftest.er1
18372 grep -v '^ *+' conftest.er1 >conftest.err
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } && {
18377 test -z "$ac_c_werror_flag" ||
18378 test ! -s conftest.err
18379 } && test -s conftest$ac_exeext &&
18380 $as_test_x conftest$ac_exeext; then
18381 ac_cv_lib_bsd_forkpty=yes
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18386 ac_cv_lib_bsd_forkpty=no
18389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18390 conftest$ac_exeext conftest.$ac_ext
18391 LIBS=$ac_check_lib_save_LIBS
18393 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18394 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18395 if test $ac_cv_lib_bsd_forkpty = yes; then
18396 cat >>confdefs.h <<\_ACEOF
18397 #define HAVE_FORKPTY 1
18412 for ac_func in memmove
18414 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 cat >conftest.$ac_ext <<_ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18428 #define $ac_func innocuous_$ac_func
18430 /* System header to define __stub macros and hopefully few prototypes,
18431 which can conflict with char $ac_func (); below.
18432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18433 <limits.h> exists even on freestanding compilers. */
18436 # include <limits.h>
18438 # include <assert.h>
18443 /* Override any GCC internal prototype to avoid an error.
18444 Use char because int might match the return type of a GCC
18445 builtin and then its argument prototype would still apply. */
18450 /* The GNU C library defines this for functions which it implements
18451 to always fail with ENOSYS. Some functions are actually named
18452 something starting with __ and the normal name is an alias. */
18453 #if defined __stub_$ac_func || defined __stub___$ac_func
18460 return $ac_func ();
18465 rm -f conftest.$ac_objext conftest$ac_exeext
18466 if { (ac_try="$ac_link"
18467 case "(($ac_try" in
18468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18469 *) ac_try_echo
=$ac_try;;
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_link") 2>conftest.er1
18474 grep -v '^ *+' conftest.er1
>conftest.err
18476 cat conftest.err
>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest
$ac_exeext &&
18482 $as_test_x conftest
$ac_exeext; then
18483 eval "$as_ac_var=yes"
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.
$ac_ext >&5
18488 eval "$as_ac_var=no"
18491 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18492 conftest
$ac_exeext conftest.
$ac_ext
18494 ac_res
=`eval echo '${'$as_ac_var'}'`
18495 { echo "$as_me:$LINENO: result: $ac_res" >&5
18496 echo "${ECHO_T}$ac_res" >&6; }
18497 if test `eval echo '${'$as_ac_var'}'` = yes; then
18498 cat >>confdefs.h
<<_ACEOF
18499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18506 # check for long file support functions
18513 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18515 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18518 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 cat >conftest.
$ac_ext <<_ACEOF
18524 cat confdefs.h
>>conftest.
$ac_ext
18525 cat >>conftest.
$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18529 #define $ac_func innocuous_$ac_func
18531 /* System header to define __stub macros and hopefully few prototypes,
18532 which can conflict with char $ac_func (); below.
18533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18534 <limits.h> exists even on freestanding compilers. */
18537 # include <limits.h>
18539 # include <assert.h>
18544 /* Override any GCC internal prototype to avoid an error.
18545 Use char because int might match the return type of a GCC
18546 builtin and then its argument prototype would still apply. */
18551 /* The GNU C library defines this for functions which it implements
18552 to always fail with ENOSYS. Some functions are actually named
18553 something starting with __ and the normal name is an alias. */
18554 #if defined __stub_$ac_func || defined __stub___$ac_func
18561 return $ac_func ();
18566 rm -f conftest.
$ac_objext conftest
$ac_exeext
18567 if { (ac_try
="$ac_link"
18568 case "(($ac_try" in
18569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_link") 2>conftest.er1
18575 grep -v '^ *+' conftest.er1 >conftest.err
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } && {
18580 test -z "$ac_c_werror_flag" ||
18581 test ! -s conftest.err
18582 } && test -s conftest$ac_exeext &&
18583 $as_test_x conftest$ac_exeext; then
18584 eval "$as_ac_var=yes"
18586 echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18589 eval "$as_ac_var=no"
18592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18593 conftest$ac_exeext conftest.$ac_ext
18595 ac_res=`eval echo '${'$as_ac_var'}'`
18596 { echo "$as_me:$LINENO: result: $ac_res" >&5
18597 echo "${ECHO_T}$ac_res" >&6; }
18598 if test `eval echo '${'$as_ac_var'}'` = yes; then
18599 cat >>confdefs.h <<_ACEOF
18600 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18610 for ac_func in dup2 getcwd strdup
18612 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18616 echo $ECHO_N "(cached) $ECHO_C" >&6
18618 cat >conftest.$ac_ext <<_ACEOF
18621 cat confdefs.h >>conftest.$ac_ext
18622 cat >>conftest.$ac_ext <<_ACEOF
18623 /* end confdefs.h. */
18624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18626 #define $ac_func innocuous_$ac_func
18628 /* System header to define __stub macros and hopefully few prototypes,
18629 which can conflict with char $ac_func (); below.
18630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18631 <limits.h> exists even on freestanding compilers. */
18634 # include <limits.h>
18636 # include <assert.h>
18641 /* Override any GCC internal prototype to avoid an error.
18642 Use char because int might match the return type of a GCC
18643 builtin and then its argument prototype would still apply. */
18648 /* The GNU C library defines this for functions which it implements
18649 to always fail with ENOSYS. Some functions are actually named
18650 something starting with __ and the normal name is an alias. */
18651 #if defined __stub_$ac_func || defined __stub___$ac_func
18658 return $ac_func ();
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18667 *) ac_try_echo
=$ac_try;;
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_link") 2>conftest.er1
18672 grep -v '^ *+' conftest.er1
>conftest.err
18674 cat conftest.err
>&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } && {
18677 test -z "$ac_c_werror_flag" ||
18678 test ! -s conftest.err
18679 } && test -s conftest
$ac_exeext &&
18680 $as_test_x conftest
$ac_exeext; then
18681 eval "$as_ac_var=yes"
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.
$ac_ext >&5
18686 eval "$as_ac_var=no"
18689 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18690 conftest
$ac_exeext conftest.
$ac_ext
18692 ac_res
=`eval echo '${'$as_ac_var'}'`
18693 { echo "$as_me:$LINENO: result: $ac_res" >&5
18694 echo "${ECHO_T}$ac_res" >&6; }
18695 if test `eval echo '${'$as_ac_var'}'` = yes; then
18696 cat >>confdefs.h
<<_ACEOF
18697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18701 case " $LIBOBJS " in
18702 *" $ac_func.$ac_objext "* ) ;;
18703 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18712 for ac_func
in getpgrp
18714 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18717 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 cat >conftest.
$ac_ext <<_ACEOF
18723 cat confdefs.h
>>conftest.
$ac_ext
18724 cat >>conftest.
$ac_ext <<_ACEOF
18725 /* end confdefs.h. */
18726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18728 #define $ac_func innocuous_$ac_func
18730 /* System header to define __stub macros and hopefully few prototypes,
18731 which can conflict with char $ac_func (); below.
18732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733 <limits.h> exists even on freestanding compilers. */
18736 # include <limits.h>
18738 # include <assert.h>
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18750 /* The GNU C library defines this for functions which it implements
18751 to always fail with ENOSYS. Some functions are actually named
18752 something starting with __ and the normal name is an alias. */
18753 #if defined __stub_$ac_func || defined __stub___$ac_func
18760 return $ac_func ();
18765 rm -f conftest.
$ac_objext conftest
$ac_exeext
18766 if { (ac_try
="$ac_link"
18767 case "(($ac_try" in
18768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_link") 2>conftest.er1
18774 grep -v '^ *+' conftest.er1 >conftest.err
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } && {
18779 test -z "$ac_c_werror_flag" ||
18780 test ! -s conftest.err
18781 } && test -s conftest$ac_exeext &&
18782 $as_test_x conftest$ac_exeext; then
18783 eval "$as_ac_var=yes"
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 eval "$as_ac_var=no"
18791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18792 conftest$ac_exeext conftest.$ac_ext
18794 ac_res=`eval echo '${'$as_ac_var'}'`
18795 { echo "$as_me:$LINENO: result: $ac_res" >&5
18796 echo "${ECHO_T}$ac_res" >&6; }
18797 if test `eval echo '${'$as_ac_var'}'` = yes; then
18798 cat >>confdefs.h <<_ACEOF
18799 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18801 cat >conftest.$ac_ext <<_ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 #include <unistd.h>
18816 rm -f conftest.$ac_objext
18817 if { (ac_try="$ac_compile"
18818 case "(($ac_try" in
18819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18820 *) ac_try_echo
=$ac_try;;
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_compile") 2>conftest.er1
18825 grep -v '^ *+' conftest.er1
>conftest.err
18827 cat conftest.err
>&5
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } && {
18830 test -z "$ac_c_werror_flag" ||
18831 test ! -s conftest.err
18832 } && test -s conftest.
$ac_objext; then
18834 cat >>confdefs.h
<<\_ACEOF
18835 #define GETPGRP_HAVE_ARG 1
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.
$ac_ext >&5
18846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18852 for ac_func
in setpgrp
18854 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18857 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 cat >conftest.
$ac_ext <<_ACEOF
18863 cat confdefs.h
>>conftest.
$ac_ext
18864 cat >>conftest.
$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18868 #define $ac_func innocuous_$ac_func
18870 /* System header to define __stub macros and hopefully few prototypes,
18871 which can conflict with char $ac_func (); below.
18872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18873 <limits.h> exists even on freestanding compilers. */
18876 # include <limits.h>
18878 # include <assert.h>
18883 /* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18890 /* The GNU C library defines this for functions which it implements
18891 to always fail with ENOSYS. Some functions are actually named
18892 something starting with __ and the normal name is an alias. */
18893 #if defined __stub_$ac_func || defined __stub___$ac_func
18900 return $ac_func ();
18905 rm -f conftest.
$ac_objext conftest
$ac_exeext
18906 if { (ac_try
="$ac_link"
18907 case "(($ac_try" in
18908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18909 *) ac_try_echo=$ac_try;;
18911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18912 (eval "$ac_link") 2>conftest.er1
18914 grep -v '^ *+' conftest.er1 >conftest.err
18916 cat conftest.err >&5
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); } && {
18919 test -z "$ac_c_werror_flag" ||
18920 test ! -s conftest.err
18921 } && test -s conftest$ac_exeext &&
18922 $as_test_x conftest$ac_exeext; then
18923 eval "$as_ac_var=yes"
18925 echo "$as_me: failed program was:" >&5
18926 sed 's/^/| /' conftest.$ac_ext >&5
18928 eval "$as_ac_var=no"
18931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18932 conftest$ac_exeext conftest.$ac_ext
18934 ac_res=`eval echo '${'$as_ac_var'}'`
18935 { echo "$as_me:$LINENO: result: $ac_res" >&5
18936 echo "${ECHO_T}$ac_res" >&6; }
18937 if test `eval echo '${'$as_ac_var'}'` = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18941 cat >conftest.$ac_ext <<_ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 #include <unistd.h>
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18960 *) ac_try_echo
=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_compile") 2>conftest.er1
18965 grep -v '^ *+' conftest.er1
>conftest.err
18967 cat conftest.err
>&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && {
18970 test -z "$ac_c_werror_flag" ||
18971 test ! -s conftest.err
18972 } && test -s conftest.
$ac_objext; then
18974 cat >>confdefs.h
<<\_ACEOF
18975 #define SETPGRP_HAVE_ARG 1
18980 echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.
$ac_ext >&5
18986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18992 for ac_func
in gettimeofday
18994 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18997 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 cat >conftest.
$ac_ext <<_ACEOF
19003 cat confdefs.h
>>conftest.
$ac_ext
19004 cat >>conftest.
$ac_ext <<_ACEOF
19005 /* end confdefs.h. */
19006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19008 #define $ac_func innocuous_$ac_func
19010 /* System header to define __stub macros and hopefully few prototypes,
19011 which can conflict with char $ac_func (); below.
19012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19013 <limits.h> exists even on freestanding compilers. */
19016 # include <limits.h>
19018 # include <assert.h>
19023 /* Override any GCC internal prototype to avoid an error.
19024 Use char because int might match the return type of a GCC
19025 builtin and then its argument prototype would still apply. */
19030 /* The GNU C library defines this for functions which it implements
19031 to always fail with ENOSYS. Some functions are actually named
19032 something starting with __ and the normal name is an alias. */
19033 #if defined __stub_$ac_func || defined __stub___$ac_func
19040 return $ac_func ();
19045 rm -f conftest.
$ac_objext conftest
$ac_exeext
19046 if { (ac_try
="$ac_link"
19047 case "(($ac_try" in
19048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>conftest.er1
19054 grep -v '^ *+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } && {
19059 test -z "$ac_c_werror_flag" ||
19060 test ! -s conftest.err
19061 } && test -s conftest$ac_exeext &&
19062 $as_test_x conftest$ac_exeext; then
19063 eval "$as_ac_var=yes"
19065 echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19068 eval "$as_ac_var=no"
19071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072 conftest$ac_exeext conftest.$ac_ext
19074 ac_res=`eval echo '${'$as_ac_var'}'`
19075 { echo "$as_me:$LINENO: result: $ac_res" >&5
19076 echo "${ECHO_T}$ac_res" >&6; }
19077 if test `eval echo '${'$as_ac_var'}'` = yes; then
19078 cat >>confdefs.h <<_ACEOF
19079 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 #include <sys/time.h>
19091 gettimeofday((struct timeval*)0,(struct timezone*)0);
19096 rm -f conftest.$ac_objext
19097 if { (ac_try="$ac_compile"
19098 case "(($ac_try" in
19099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19100 *) ac_try_echo
=$ac_try;;
19102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103 (eval "$ac_compile") 2>conftest.er1
19105 grep -v '^ *+' conftest.er1
>conftest.err
19107 cat conftest.err
>&5
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } && {
19110 test -z "$ac_c_werror_flag" ||
19111 test ! -s conftest.err
19112 } && test -s conftest.
$ac_objext; then
19115 echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.
$ac_ext >&5
19119 cat >>confdefs.h
<<\_ACEOF
19120 #define GETTIMEOFDAY_NO_TZ 1
19126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19132 { echo "$as_me:$LINENO: checking for major" >&5
19133 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19134 cat >conftest.
$ac_ext <<_ACEOF
19137 cat confdefs.h
>>conftest.
$ac_ext
19138 cat >>conftest.
$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19141 #if defined(MAJOR_IN_MKDEV)
19142 #include <sys/mkdev.h>
19143 #elif defined(MAJOR_IN_SYSMACROS)
19144 #include <sys/sysmacros.h>
19146 #include <sys/types.h>
19153 makedev(major(0),minor(0));
19159 rm -f conftest.
$ac_objext conftest
$ac_exeext
19160 if { (ac_try
="$ac_link"
19161 case "(($ac_try" in
19162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_link") 2>conftest.er1
19168 grep -v '^ *+' conftest.er1 >conftest.err
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest$ac_exeext &&
19176 $as_test_x conftest$ac_exeext; then
19179 cat >>confdefs.h <<\_ACEOF
19180 #define HAVE_DEVICE_MACROS 1
19183 { echo "$as_me:$LINENO: result: yes" >&5
19184 echo "${ECHO_T}yes" >&6; }
19187 echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19191 { echo "$as_me:$LINENO: result: no" >&5
19192 echo "${ECHO_T}no" >&6; }
19196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19197 conftest$ac_exeext conftest.$ac_ext
19199 # On OSF/1 V5.1, getaddrinfo is available, but a define
19200 # for [no]getaddrinfo in netdb.h.
19201 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19202 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19203 cat >conftest.$ac_ext <<_ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19210 #include <sys/types.h>
19211 #include <sys/socket.h>
19219 getaddrinfo(NULL, NULL, NULL, NULL);
19225 rm -f conftest.$ac_objext conftest$ac_exeext
19226 if { (ac_try="$ac_link"
19227 case "(($ac_try" in
19228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19229 *) ac_try_echo
=$ac_try;;
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_link") 2>conftest.er1
19234 grep -v '^ *+' conftest.er1
>conftest.err
19236 cat conftest.err
>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } && {
19239 test -z "$ac_c_werror_flag" ||
19240 test ! -s conftest.err
19241 } && test -s conftest
$ac_exeext &&
19242 $as_test_x conftest
$ac_exeext; then
19244 { echo "$as_me:$LINENO: result: yes" >&5
19245 echo "${ECHO_T}yes" >&6; }
19246 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19247 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19248 if test "$cross_compiling" = yes; then
19249 { echo "$as_me:$LINENO: result: buggy" >&5
19250 echo "${ECHO_T}buggy" >&6; }
19251 buggygetaddrinfo
=yes
19253 cat >conftest.
$ac_ext <<_ACEOF
19256 cat confdefs.h
>>conftest.
$ac_ext
19257 cat >>conftest.
$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19260 #include <sys/types.h>
19262 #include <string.h>
19263 #include <sys/socket.h>
19264 #include <netinet/in.h>
19268 int passive, gaierr, inet4 = 0, inet6 = 0;
19269 struct addrinfo hints, *ai, *aitop;
19270 char straddr[INET6_ADDRSTRLEN], strport[16];
19272 for (passive = 0; passive <= 1; passive++) {
19273 memset(&hints, 0, sizeof(hints));
19274 hints.ai_family = AF_UNSPEC;
19275 hints.ai_flags = passive ? AI_PASSIVE : 0;
19276 hints.ai_socktype = SOCK_STREAM;
19277 hints.ai_protocol = IPPROTO_TCP;
19278 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19279 (void)gai_strerror(gaierr);
19282 for (ai = aitop; ai; ai = ai->ai_next) {
19283 if (ai->ai_addr == NULL ||
19284 ai->ai_addrlen == 0 ||
19285 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19286 straddr, sizeof(straddr), strport, sizeof(strport),
19287 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19290 switch (ai->ai_family) {
19292 if (strcmp(strport, "54321") != 0) {
19296 if (strcmp(straddr, "0.0.0.0") != 0) {
19300 if (strcmp(straddr, "127.0.0.1") != 0) {
19307 if (strcmp(strport, "54321") != 0) {
19311 if (strcmp(straddr, "::") != 0) {
19315 if (strcmp(straddr, "::1") != 0) {
19325 /* another family support? */
19331 if (!(inet4 == 0 || inet4 == 2))
19333 if (!(inet6 == 0 || inet6 == 2))
19337 freeaddrinfo(aitop);
19342 freeaddrinfo(aitop);
19347 rm -f conftest
$ac_exeext
19348 if { (ac_try
="$ac_link"
19349 case "(($ac_try" in
19350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_link") 2>&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19358 { (case "(($ac_try" in
19359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19360 *) ac_try_echo
=$ac_try;;
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_try") 2>&5
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 { echo "$as_me:$LINENO: result: good" >&5
19368 echo "${ECHO_T}good" >&6; }
19369 buggygetaddrinfo
=no
19371 echo "$as_me: program exited with status $ac_status" >&5
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.
$ac_ext >&5
19375 ( exit $ac_status )
19376 { echo "$as_me:$LINENO: result: buggy" >&5
19377 echo "${ECHO_T}buggy" >&6; }
19378 buggygetaddrinfo
=yes
19380 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.
$ac_ext >&5
19389 { echo "$as_me:$LINENO: result: no" >&5
19390 echo "${ECHO_T}no" >&6; }
19391 buggygetaddrinfo
=yes
19395 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19396 conftest
$ac_exeext conftest.
$ac_ext
19398 if test "$buggygetaddrinfo" = "yes"; then
19399 if test "$ipv6" = "yes"; then
19400 echo 'Fatal: You must get working getaddrinfo() function.'
19401 echo ' or you can specify "--disable-ipv6"'.
19406 cat >>confdefs.h
<<\_ACEOF
19407 #define HAVE_GETADDRINFO 1
19412 for ac_func
in getnameinfo
19414 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19417 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 cat >conftest.
$ac_ext <<_ACEOF
19423 cat confdefs.h
>>conftest.
$ac_ext
19424 cat >>conftest.
$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19428 #define $ac_func innocuous_$ac_func
19430 /* System header to define __stub macros and hopefully few prototypes,
19431 which can conflict with char $ac_func (); below.
19432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19433 <limits.h> exists even on freestanding compilers. */
19436 # include <limits.h>
19438 # include <assert.h>
19443 /* Override any GCC internal prototype to avoid an error.
19444 Use char because int might match the return type of a GCC
19445 builtin and then its argument prototype would still apply. */
19450 /* The GNU C library defines this for functions which it implements
19451 to always fail with ENOSYS. Some functions are actually named
19452 something starting with __ and the normal name is an alias. */
19453 #if defined __stub_$ac_func || defined __stub___$ac_func
19460 return $ac_func ();
19465 rm -f conftest.
$ac_objext conftest
$ac_exeext
19466 if { (ac_try
="$ac_link"
19467 case "(($ac_try" in
19468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19469 *) ac_try_echo=$ac_try;;
19471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19472 (eval "$ac_link") 2>conftest.er1
19474 grep -v '^ *+' conftest.er1 >conftest.err
19476 cat conftest.err >&5
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest$ac_exeext &&
19482 $as_test_x conftest$ac_exeext; then
19483 eval "$as_ac_var=yes"
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 eval "$as_ac_var=no"
19491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19492 conftest$ac_exeext conftest.$ac_ext
19494 ac_res=`eval echo '${'$as_ac_var'}'`
19495 { echo "$as_me:$LINENO: result: $ac_res" >&5
19496 echo "${ECHO_T}$ac_res" >&6; }
19497 if test `eval echo '${'$as_ac_var'}'` = yes; then
19498 cat >>confdefs.h <<_ACEOF
19499 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19506 # checks for structures
19507 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19508 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19509 if test "${ac_cv_header_time+set}" = set; then
19510 echo $ECHO_N "(cached) $ECHO_C" >&6
19512 cat >conftest.$ac_ext <<_ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h. */
19518 #include <sys/types.h>
19519 #include <sys/time.h>
19525 if ((struct tm *) 0)
19531 rm -f conftest.$ac_objext
19532 if { (ac_try="$ac_compile"
19533 case "(($ac_try" in
19534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19535 *) ac_try_echo
=$ac_try;;
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538 (eval "$ac_compile") 2>conftest.er1
19540 grep -v '^ *+' conftest.er1
>conftest.err
19542 cat conftest.err
>&5
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); } && {
19545 test -z "$ac_c_werror_flag" ||
19546 test ! -s conftest.err
19547 } && test -s conftest.
$ac_objext; then
19548 ac_cv_header_time
=yes
19550 echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.
$ac_ext >&5
19553 ac_cv_header_time
=no
19556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19558 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19559 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19560 if test $ac_cv_header_time = yes; then
19562 cat >>confdefs.h
<<\_ACEOF
19563 #define TIME_WITH_SYS_TIME 1
19568 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19569 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19570 if test "${ac_cv_struct_tm+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 cat >conftest.
$ac_ext <<_ACEOF
19576 cat confdefs.h
>>conftest.
$ac_ext
19577 cat >>conftest.
$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19579 #include <sys/types.h>
19586 int *p = &tm.tm_sec;
19592 rm -f conftest.
$ac_objext
19593 if { (ac_try
="$ac_compile"
19594 case "(($ac_try" in
19595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_compile") 2>conftest.er1
19601 grep -v '^ *+' conftest.er1 >conftest.err
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } && {
19606 test -z "$ac_c_werror_flag" ||
19607 test ! -s conftest.err
19608 } && test -s conftest.$ac_objext; then
19609 ac_cv_struct_tm=time.h
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19614 ac_cv_struct_tm=sys/time.h
19617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19619 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19620 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19621 if test $ac_cv_struct_tm = sys/time.h; then
19623 cat >>confdefs.h <<\_ACEOF
19624 #define TM_IN_SYS_TIME 1
19629 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19630 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19631 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19632 echo $ECHO_N "(cached) $ECHO_C" >&6
19634 cat >conftest.$ac_ext <<_ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19640 #include <sys/types.h>
19641 #include <$ac_cv_struct_tm>
19647 static struct tm ac_aggr;
19648 if (ac_aggr.tm_zone)
19654 rm -f conftest.$ac_objext
19655 if { (ac_try="$ac_compile"
19656 case "(($ac_try" in
19657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19658 *) ac_try_echo
=$ac_try;;
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_compile") 2>conftest.er1
19663 grep -v '^ *+' conftest.er1
>conftest.err
19665 cat conftest.err
>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && {
19668 test -z "$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 } && test -s conftest.
$ac_objext; then
19671 ac_cv_member_struct_tm_tm_zone
=yes
19673 echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.
$ac_ext >&5
19676 cat >conftest.
$ac_ext <<_ACEOF
19679 cat confdefs.h
>>conftest.
$ac_ext
19680 cat >>conftest.
$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19682 #include <sys/types.h>
19683 #include <$ac_cv_struct_tm>
19689 static struct tm ac_aggr;
19690 if (sizeof ac_aggr.tm_zone)
19696 rm -f conftest.
$ac_objext
19697 if { (ac_try
="$ac_compile"
19698 case "(($ac_try" in
19699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_compile") 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } && {
19710 test -z "$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19712 } && test -s conftest.$ac_objext; then
19713 ac_cv_member_struct_tm_tm_zone=yes
19715 echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19718 ac_cv_member_struct_tm_tm_zone=no
19721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19726 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19727 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19728 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19730 cat >>confdefs.h <<_ACEOF
19731 #define HAVE_STRUCT_TM_TM_ZONE 1
19737 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_TM_ZONE 1
19744 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19745 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19746 if test "${ac_cv_have_decl_tzname+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19768 rm -f conftest.$ac_objext
19769 if { (ac_try="$ac_compile"
19770 case "(($ac_try" in
19771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19772 *) ac_try_echo
=$ac_try;;
19774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19775 (eval "$ac_compile") 2>conftest.er1
19777 grep -v '^ *+' conftest.er1
>conftest.err
19779 cat conftest.err
>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } && {
19782 test -z "$ac_c_werror_flag" ||
19783 test ! -s conftest.err
19784 } && test -s conftest.
$ac_objext; then
19785 ac_cv_have_decl_tzname
=yes
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.
$ac_ext >&5
19790 ac_cv_have_decl_tzname
=no
19793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19795 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19796 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19797 if test $ac_cv_have_decl_tzname = yes; then
19799 cat >>confdefs.h
<<_ACEOF
19800 #define HAVE_DECL_TZNAME 1
19805 cat >>confdefs.h
<<_ACEOF
19806 #define HAVE_DECL_TZNAME 0
19813 { echo "$as_me:$LINENO: checking for tzname" >&5
19814 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19815 if test "${ac_cv_var_tzname+set}" = set; then
19816 echo $ECHO_N "(cached) $ECHO_C" >&6
19818 cat >conftest.
$ac_ext <<_ACEOF
19821 cat confdefs.h
>>conftest.
$ac_ext
19822 cat >>conftest.
$ac_ext <<_ACEOF
19823 /* end confdefs.h. */
19825 #if !HAVE_DECL_TZNAME
19826 extern char *tzname[];
19832 return tzname[0][0];
19837 rm -f conftest.
$ac_objext conftest
$ac_exeext
19838 if { (ac_try
="$ac_link"
19839 case "(($ac_try" in
19840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_link") 2>conftest.er1
19846 grep -v '^ *+' conftest.er1 >conftest.err
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } && {
19851 test -z "$ac_c_werror_flag" ||
19852 test ! -s conftest.err
19853 } && test -s conftest$ac_exeext &&
19854 $as_test_x conftest$ac_exeext; then
19855 ac_cv_var_tzname=yes
19857 echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_var_tzname=no
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19866 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19867 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19868 if test $ac_cv_var_tzname = yes; then
19870 cat >>confdefs.h <<\_ACEOF
19871 #define HAVE_TZNAME 1
19877 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19878 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19879 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 cat >conftest.$ac_ext <<_ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19888 $ac_includes_default
19892 static struct stat ac_aggr;
19893 if (ac_aggr.st_rdev)
19899 rm -f conftest.$ac_objext
19900 if { (ac_try="$ac_compile"
19901 case "(($ac_try" in
19902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19903 *) ac_try_echo
=$ac_try;;
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_compile") 2>conftest.er1
19908 grep -v '^ *+' conftest.er1
>conftest.err
19910 cat conftest.err
>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } && {
19913 test -z "$ac_c_werror_flag" ||
19914 test ! -s conftest.err
19915 } && test -s conftest.
$ac_objext; then
19916 ac_cv_member_struct_stat_st_rdev
=yes
19918 echo "$as_me: failed program was:" >&5
19919 sed 's/^/| /' conftest.
$ac_ext >&5
19921 cat >conftest.
$ac_ext <<_ACEOF
19924 cat confdefs.h
>>conftest.
$ac_ext
19925 cat >>conftest.
$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19927 $ac_includes_default
19931 static struct stat ac_aggr;
19932 if (sizeof ac_aggr.st_rdev)
19938 rm -f conftest.
$ac_objext
19939 if { (ac_try
="$ac_compile"
19940 case "(($ac_try" in
19941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19942 *) ac_try_echo=$ac_try;;
19944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19945 (eval "$ac_compile") 2>conftest.er1
19947 grep -v '^ *+' conftest.er1 >conftest.err
19949 cat conftest.err >&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); } && {
19952 test -z "$ac_c_werror_flag" ||
19953 test ! -s conftest.err
19954 } && test -s conftest.$ac_objext; then
19955 ac_cv_member_struct_stat_st_rdev=yes
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 ac_cv_member_struct_stat_st_rdev=no
19963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19968 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19969 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19970 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19972 cat >>confdefs.h <<_ACEOF
19973 #define HAVE_STRUCT_STAT_ST_RDEV 1
19979 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19980 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19981 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 cat >conftest.$ac_ext <<_ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19990 $ac_includes_default
19994 static struct stat ac_aggr;
19995 if (ac_aggr.st_blksize)
20001 rm -f conftest.$ac_objext
20002 if { (ac_try="$ac_compile"
20003 case "(($ac_try" in
20004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20005 *) ac_try_echo
=$ac_try;;
20007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20008 (eval "$ac_compile") 2>conftest.er1
20010 grep -v '^ *+' conftest.er1
>conftest.err
20012 cat conftest.err
>&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } && {
20015 test -z "$ac_c_werror_flag" ||
20016 test ! -s conftest.err
20017 } && test -s conftest.
$ac_objext; then
20018 ac_cv_member_struct_stat_st_blksize
=yes
20020 echo "$as_me: failed program was:" >&5
20021 sed 's/^/| /' conftest.
$ac_ext >&5
20023 cat >conftest.
$ac_ext <<_ACEOF
20026 cat confdefs.h
>>conftest.
$ac_ext
20027 cat >>conftest.
$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 $ac_includes_default
20033 static struct stat ac_aggr;
20034 if (sizeof ac_aggr.st_blksize)
20040 rm -f conftest.
$ac_objext
20041 if { (ac_try
="$ac_compile"
20042 case "(($ac_try" in
20043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_compile") 2>conftest.er1
20049 grep -v '^ *+' conftest.er1 >conftest.err
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest.$ac_objext; then
20057 ac_cv_member_struct_stat_st_blksize=yes
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_cv_member_struct_stat_st_blksize=no
20065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20070 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20071 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20072 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20074 cat >>confdefs.h <<_ACEOF
20075 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20081 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20082 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20083 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20084 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 cat >conftest.$ac_ext <<_ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h. */
20092 $ac_includes_default
20096 static struct stat ac_aggr;
20097 if (ac_aggr.st_flags)
20103 rm -f conftest.$ac_objext
20104 if { (ac_try="$ac_compile"
20105 case "(($ac_try" in
20106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20107 *) ac_try_echo
=$ac_try;;
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_compile") 2>conftest.er1
20112 grep -v '^ *+' conftest.er1
>conftest.err
20114 cat conftest.err
>&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } && {
20117 test -z "$ac_c_werror_flag" ||
20118 test ! -s conftest.err
20119 } && test -s conftest.
$ac_objext; then
20120 ac_cv_member_struct_stat_st_flags
=yes
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.
$ac_ext >&5
20125 cat >conftest.
$ac_ext <<_ACEOF
20128 cat confdefs.h
>>conftest.
$ac_ext
20129 cat >>conftest.
$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 $ac_includes_default
20135 static struct stat ac_aggr;
20136 if (sizeof ac_aggr.st_flags)
20142 rm -f conftest.
$ac_objext
20143 if { (ac_try
="$ac_compile"
20144 case "(($ac_try" in
20145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_compile") 2>conftest.er1
20151 grep -v '^ *+' conftest.er1 >conftest.err
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } && {
20156 test -z "$ac_c_werror_flag" ||
20157 test ! -s conftest.err
20158 } && test -s conftest.$ac_objext; then
20159 ac_cv_member_struct_stat_st_flags=yes
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ac_cv_member_struct_stat_st_flags=no
20167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20173 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20174 if test $ac_cv_member_struct_stat_st_flags = yes; then
20176 cat >>confdefs.h <<_ACEOF
20177 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20183 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20184 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20185 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20188 cat >conftest.$ac_ext <<_ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20194 $ac_includes_default
20198 static struct stat ac_aggr;
20199 if (ac_aggr.st_gen)
20205 rm -f conftest.$ac_objext
20206 if { (ac_try="$ac_compile"
20207 case "(($ac_try" in
20208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20209 *) ac_try_echo
=$ac_try;;
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_compile") 2>conftest.er1
20214 grep -v '^ *+' conftest.er1
>conftest.err
20216 cat conftest.err
>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest.
$ac_objext; then
20222 ac_cv_member_struct_stat_st_gen
=yes
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.
$ac_ext >&5
20227 cat >conftest.
$ac_ext <<_ACEOF
20230 cat confdefs.h
>>conftest.
$ac_ext
20231 cat >>conftest.
$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233 $ac_includes_default
20237 static struct stat ac_aggr;
20238 if (sizeof ac_aggr.st_gen)
20244 rm -f conftest.
$ac_objext
20245 if { (ac_try
="$ac_compile"
20246 case "(($ac_try" in
20247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_compile") 2>conftest.er1
20253 grep -v '^ *+' conftest.er1 >conftest.err
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest.$ac_objext; then
20261 ac_cv_member_struct_stat_st_gen=yes
20263 echo "$as_me: failed program was:" >&5
20264 sed 's/^/| /' conftest.$ac_ext >&5
20266 ac_cv_member_struct_stat_st_gen=no
20269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20275 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20276 if test $ac_cv_member_struct_stat_st_gen = yes; then
20278 cat >>confdefs.h <<_ACEOF
20279 #define HAVE_STRUCT_STAT_ST_GEN 1
20285 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20286 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20287 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 cat >conftest.$ac_ext <<_ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h. */
20296 $ac_includes_default
20300 static struct stat ac_aggr;
20301 if (ac_aggr.st_birthtime)
20307 rm -f conftest.$ac_objext
20308 if { (ac_try="$ac_compile"
20309 case "(($ac_try" in
20310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20311 *) ac_try_echo
=$ac_try;;
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314 (eval "$ac_compile") 2>conftest.er1
20316 grep -v '^ *+' conftest.er1
>conftest.err
20318 cat conftest.err
>&5
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } && {
20321 test -z "$ac_c_werror_flag" ||
20322 test ! -s conftest.err
20323 } && test -s conftest.
$ac_objext; then
20324 ac_cv_member_struct_stat_st_birthtime
=yes
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.
$ac_ext >&5
20329 cat >conftest.
$ac_ext <<_ACEOF
20332 cat confdefs.h
>>conftest.
$ac_ext
20333 cat >>conftest.
$ac_ext <<_ACEOF
20334 /* end confdefs.h. */
20335 $ac_includes_default
20339 static struct stat ac_aggr;
20340 if (sizeof ac_aggr.st_birthtime)
20346 rm -f conftest.
$ac_objext
20347 if { (ac_try
="$ac_compile"
20348 case "(($ac_try" in
20349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_compile") 2>conftest.er1
20355 grep -v '^ *+' conftest.er1 >conftest.err
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); } && {
20360 test -z "$ac_c_werror_flag" ||
20361 test ! -s conftest.err
20362 } && test -s conftest.$ac_objext; then
20363 ac_cv_member_struct_stat_st_birthtime=yes
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20368 ac_cv_member_struct_stat_st_birthtime=no
20371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20376 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20377 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20378 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20380 cat >>confdefs.h <<_ACEOF
20381 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20387 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20388 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20389 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20392 cat >conftest.$ac_ext <<_ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20398 $ac_includes_default
20402 static struct stat ac_aggr;
20403 if (ac_aggr.st_blocks)
20409 rm -f conftest.$ac_objext
20410 if { (ac_try="$ac_compile"
20411 case "(($ac_try" in
20412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20413 *) ac_try_echo
=$ac_try;;
20415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20416 (eval "$ac_compile") 2>conftest.er1
20418 grep -v '^ *+' conftest.er1
>conftest.err
20420 cat conftest.err
>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && {
20423 test -z "$ac_c_werror_flag" ||
20424 test ! -s conftest.err
20425 } && test -s conftest.
$ac_objext; then
20426 ac_cv_member_struct_stat_st_blocks
=yes
20428 echo "$as_me: failed program was:" >&5
20429 sed 's/^/| /' conftest.
$ac_ext >&5
20431 cat >conftest.
$ac_ext <<_ACEOF
20434 cat confdefs.h
>>conftest.
$ac_ext
20435 cat >>conftest.
$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 $ac_includes_default
20441 static struct stat ac_aggr;
20442 if (sizeof ac_aggr.st_blocks)
20448 rm -f conftest.
$ac_objext
20449 if { (ac_try
="$ac_compile"
20450 case "(($ac_try" in
20451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_compile") 2>conftest.er1
20457 grep -v '^ *+' conftest.er1 >conftest.err
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest.$ac_objext; then
20465 ac_cv_member_struct_stat_st_blocks=yes
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ac_cv_member_struct_stat_st_blocks=no
20473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20478 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20479 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20480 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20482 cat >>confdefs.h <<_ACEOF
20483 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20487 cat >>confdefs.h <<\_ACEOF
20488 #define HAVE_ST_BLOCKS 1
20492 case " $LIBOBJS " in
20493 *" fileblocks.$ac_objext "* ) ;;
20494 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20502 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20503 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20504 if test "${ac_cv_header_time_altzone+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20522 rm -f conftest.$ac_objext
20523 if { (ac_try="$ac_compile"
20524 case "(($ac_try" in
20525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20526 *) ac_try_echo
=$ac_try;;
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_compile") 2>conftest.er1
20531 grep -v '^ *+' conftest.er1
>conftest.err
20533 cat conftest.err
>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest.
$ac_objext; then
20539 ac_cv_header_time_altzone
=yes
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.
$ac_ext >&5
20544 ac_cv_header_time_altzone
=no
20547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20550 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20551 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20552 if test $ac_cv_header_time_altzone = yes; then
20554 cat >>confdefs.h
<<\_ACEOF
20555 #define HAVE_ALTZONE 1
20561 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20562 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20563 cat >conftest.
$ac_ext <<_ACEOF
20566 cat confdefs.h
>>conftest.
$ac_ext
20567 cat >>conftest.
$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20570 #include <sys/types.h>
20571 #include <sys/select.h>
20572 #include <sys/time.h>
20582 rm -f conftest.
$ac_objext
20583 if { (ac_try
="$ac_compile"
20584 case "(($ac_try" in
20585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_compile") 2>conftest.er1
20591 grep -v '^ *+' conftest.er1 >conftest.err
20593 cat conftest.err >&5
20594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595 (exit $ac_status); } && {
20596 test -z "$ac_c_werror_flag" ||
20597 test ! -s conftest.err
20598 } && test -s conftest.$ac_objext; then
20601 cat >>confdefs.h <<\_ACEOF
20602 #define SYS_SELECT_WITH_SYS_TIME 1
20608 echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20615 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20616 echo "${ECHO_T}$was_it_defined" >&6; }
20618 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20619 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20620 if test "${ac_cv_struct_addrinfo+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 cat >conftest.$ac_ext <<_ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20630 # include <netdb.h>
20639 rm -f conftest.$ac_objext
20640 if { (ac_try="$ac_compile"
20641 case "(($ac_try" in
20642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20643 *) ac_try_echo
=$ac_try;;
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_compile") 2>conftest.er1
20648 grep -v '^ *+' conftest.er1
>conftest.err
20650 cat conftest.err
>&5
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } && {
20653 test -z "$ac_c_werror_flag" ||
20654 test ! -s conftest.err
20655 } && test -s conftest.
$ac_objext; then
20656 ac_cv_struct_addrinfo
=yes
20658 echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.
$ac_ext >&5
20661 ac_cv_struct_addrinfo
=no
20664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20667 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20668 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20669 if test $ac_cv_struct_addrinfo = yes; then
20671 cat >>confdefs.h
<<\_ACEOF
20672 #define HAVE_ADDRINFO 1
20677 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20678 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20679 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 cat >conftest.
$ac_ext <<_ACEOF
20685 cat confdefs.h
>>conftest.
$ac_ext
20686 cat >>conftest.
$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20689 # include <sys/types.h>
20690 # include <sys/socket.h>
20694 struct sockaddr_storage s
20699 rm -f conftest.
$ac_objext
20700 if { (ac_try
="$ac_compile"
20701 case "(($ac_try" in
20702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706 (eval "$ac_compile") 2>conftest.er1
20708 grep -v '^ *+' conftest.er1 >conftest.err
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } && {
20713 test -z "$ac_c_werror_flag" ||
20714 test ! -s conftest.err
20715 } && test -s conftest.$ac_objext; then
20716 ac_cv_struct_sockaddr_storage=yes
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20721 ac_cv_struct_sockaddr_storage=no
20724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20727 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20728 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20729 if test $ac_cv_struct_sockaddr_storage = yes; then
20731 cat >>confdefs.h <<\_ACEOF
20732 #define HAVE_SOCKADDR_STORAGE 1
20737 # checks for compiler characteristics
20740 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20741 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20742 if test "${ac_cv_c_char_unsigned+set}" = set; then
20743 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 cat >conftest.$ac_ext <<_ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 $ac_includes_default
20755 static int test_array [1 - 2 * !(((char) -1) < 0)];
20762 rm -f conftest.$ac_objext
20763 if { (ac_try="$ac_compile"
20764 case "(($ac_try" in
20765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20766 *) ac_try_echo
=$ac_try;;
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_compile") 2>conftest.er1
20771 grep -v '^ *+' conftest.er1
>conftest.err
20773 cat conftest.err
>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && {
20776 test -z "$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20778 } && test -s conftest.
$ac_objext; then
20779 ac_cv_c_char_unsigned
=no
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.
$ac_ext >&5
20784 ac_cv_c_char_unsigned
=yes
20787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20789 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20790 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20791 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20792 cat >>confdefs.h
<<\_ACEOF
20793 #define __CHAR_UNSIGNED__ 1
20798 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20799 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20800 if test "${ac_cv_c_const+set}" = set; then
20801 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 cat >conftest.
$ac_ext <<_ACEOF
20806 cat confdefs.h
>>conftest.
$ac_ext
20807 cat >>conftest.
$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20813 /* FIXME: Include the comments suggested by Paul. */
20814 #ifndef __cplusplus
20815 /* Ultrix mips cc rejects this. */
20816 typedef int charset[2];
20818 /* SunOS 4.1.1 cc rejects this. */
20819 char const *const *pcpcc;
20821 /* NEC SVR4.0.2 mips cc rejects this. */
20822 struct point {int x, y;};
20823 static struct point const zero = {0,0};
20824 /* AIX XL C 1.02.0.0 rejects this.
20825 It does not let you subtract one const X* pointer from another in
20826 an arm of an if-expression whose if-part is not a constant
20828 const char *g = "string";
20829 pcpcc = &g + (g ? g-g : 0);
20830 /* HPUX 7.0 cc rejects these. */
20832 ppc = (char**) pcpcc;
20833 pcpcc = (char const *const *) ppc;
20834 { /* SCO 3.2v4 cc rejects this. */
20836 char const *s = 0 ? (char *) 0 : (char const *) 0;
20841 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20842 int x[] = {25, 17};
20843 const int *foo = &x[0];
20846 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20847 typedef const int *iptr;
20851 { /* AIX XL C 1.02.0.0 rejects this saying
20852 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20853 struct s { int j; const int *ap[3]; };
20854 struct s *b; b->j = 5;
20856 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20857 const int foo = 10;
20858 if (!foo) return 0;
20860 return !cs[0] && !zero.x;
20867 rm -f conftest.
$ac_objext
20868 if { (ac_try
="$ac_compile"
20869 case "(($ac_try" in
20870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_compile") 2>conftest.er1
20876 grep -v '^ *+' conftest.er1 >conftest.err
20878 cat conftest.err >&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } && {
20881 test -z "$ac_c_werror_flag" ||
20882 test ! -s conftest.err
20883 } && test -s conftest.$ac_objext; then
20886 echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20894 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20895 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20896 if test $ac_cv_c_const = no; then
20898 cat >>confdefs.h <<\_ACEOF
20906 { echo "$as_me:$LINENO: checking for working volatile" >&5
20907 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20908 cat >conftest.$ac_ext <<_ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20918 volatile int x; x = 0;
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20927 *) ac_try_echo
=$ac_try;;
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_compile") 2>conftest.er1
20932 grep -v '^ *+' conftest.er1
>conftest.err
20934 cat conftest.err
>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } && {
20937 test -z "$ac_c_werror_flag" ||
20938 test ! -s conftest.err
20939 } && test -s conftest.
$ac_objext; then
20942 echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.
$ac_ext >&5
20946 cat >>confdefs.h
<<\_ACEOF
20953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20954 { echo "$as_me:$LINENO: result: $works" >&5
20955 echo "${ECHO_T}$works" >&6; }
20958 { echo "$as_me:$LINENO: checking for working signed char" >&5
20959 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20960 cat >conftest.
$ac_ext <<_ACEOF
20963 cat confdefs.h
>>conftest.
$ac_ext
20964 cat >>conftest.
$ac_ext <<_ACEOF
20965 /* end confdefs.h. */
20975 rm -f conftest.
$ac_objext
20976 if { (ac_try
="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } && {
20989 test -z "$ac_c_werror_flag" ||
20990 test ! -s conftest.err
20991 } && test -s conftest.$ac_objext; then
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20998 cat >>confdefs.h <<\_ACEOF
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006 { echo "$as_me:$LINENO: result: $works" >&5
21007 echo "${ECHO_T}$works" >&6; }
21010 { echo "$as_me:$LINENO: checking for prototypes" >&5
21011 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21012 cat >conftest.$ac_ext <<_ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 int foo(int x) { return 0; }
21027 rm -f conftest.$ac_objext
21028 if { (ac_try="$ac_compile"
21029 case "(($ac_try" in
21030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21031 *) ac_try_echo
=$ac_try;;
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_compile") 2>conftest.er1
21036 grep -v '^ *+' conftest.er1
>conftest.err
21038 cat conftest.err
>&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } && {
21041 test -z "$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21043 } && test -s conftest.
$ac_objext; then
21046 cat >>confdefs.h
<<\_ACEOF
21047 #define HAVE_PROTOTYPES 1
21050 have_prototypes
=yes
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.
$ac_ext >&5
21059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21060 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21061 echo "${ECHO_T}$have_prototypes" >&6; }
21064 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21065 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21066 cat >conftest.
$ac_ext <<_ACEOF
21069 cat confdefs.h
>>conftest.
$ac_ext
21070 cat >>conftest.
$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21073 #include <stdarg.h>
21074 int foo(int x, ...) {
21078 va_arg(va, char *);
21079 va_arg(va, double);
21086 return foo(10, "", 3.14);
21091 rm -f conftest.
$ac_objext
21092 if { (ac_try
="$ac_compile"
21093 case "(($ac_try" in
21094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_compile") 2>conftest.er1
21100 grep -v '^ *+' conftest.er1 >conftest.err
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); } && {
21105 test -z "$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21107 } && test -s conftest.$ac_objext; then
21110 cat >>confdefs.h <<\_ACEOF
21111 #define HAVE_STDARG_PROTOTYPES 1
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 { echo "$as_me:$LINENO: result: $works" >&5
21125 echo "${ECHO_T}$works" >&6; }
21127 # check for socketpair
21128 { echo "$as_me:$LINENO: checking for socketpair" >&5
21129 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21130 cat >conftest.$ac_ext <<_ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21137 #include <sys/types.h>
21138 #include <sys/socket.h>
21148 rm -f conftest.$ac_objext
21149 if { (ac_try="$ac_compile"
21150 case "(($ac_try" in
21151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21152 *) ac_try_echo
=$ac_try;;
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21157 grep -v '^ *+' conftest.er1
>conftest.err
21159 cat conftest.err
>&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } && {
21162 test -z "$ac_c_werror_flag" ||
21163 test ! -s conftest.err
21164 } && test -s conftest.
$ac_objext; then
21166 cat >>confdefs.h
<<\_ACEOF
21167 #define HAVE_SOCKETPAIR 1
21170 { echo "$as_me:$LINENO: result: yes" >&5
21171 echo "${ECHO_T}yes" >&6; }
21173 echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.
$ac_ext >&5
21176 { echo "$as_me:$LINENO: result: no" >&5
21177 echo "${ECHO_T}no" >&6; }
21181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21183 # check if sockaddr has sa_len member
21184 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21185 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21186 cat >conftest.
$ac_ext <<_ACEOF
21189 cat confdefs.h
>>conftest.
$ac_ext
21190 cat >>conftest.
$ac_ext <<_ACEOF
21191 /* end confdefs.h. */
21192 #include <sys/types.h>
21193 #include <sys/socket.h>
21203 rm -f conftest.
$ac_objext
21204 if { (ac_try
="$ac_compile"
21205 case "(($ac_try" in
21206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_compile") 2>conftest.er1
21212 grep -v '^ *+' conftest.er1 >conftest.err
21214 cat conftest.err >&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } && {
21217 test -z "$ac_c_werror_flag" ||
21218 test ! -s conftest.err
21219 } && test -s conftest.$ac_objext; then
21220 { echo "$as_me:$LINENO: result: yes" >&5
21221 echo "${ECHO_T}yes" >&6; }
21223 cat >>confdefs.h <<\_ACEOF
21224 #define HAVE_SOCKADDR_SA_LEN 1
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21231 { echo "$as_me:$LINENO: result: no" >&5
21232 echo "${ECHO_T}no" >&6; }
21235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 va_list_is_array=no
21238 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21239 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21240 cat >conftest.$ac_ext <<_ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21247 #ifdef HAVE_STDARG_PROTOTYPES
21248 #include <stdarg.h>
21250 #include <varargs.h>
21256 va_list list1, list2; list1 = list2;
21261 rm -f conftest.$ac_objext
21262 if { (ac_try="$ac_compile"
21263 case "(($ac_try" in
21264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21265 *) ac_try_echo
=$ac_try;;
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_compile") 2>conftest.er1
21270 grep -v '^ *+' conftest.er1
>conftest.err
21272 cat conftest.err
>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } && {
21275 test -z "$ac_c_werror_flag" ||
21276 test ! -s conftest.err
21277 } && test -s conftest.
$ac_objext; then
21280 echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.
$ac_ext >&5
21285 cat >>confdefs.h
<<\_ACEOF
21286 #define VA_LIST_IS_ARRAY 1
21289 va_list_is_array
=yes
21293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21294 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21295 echo "${ECHO_T}$va_list_is_array" >&6; }
21297 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21301 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21302 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21303 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21304 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 cat >conftest.
$ac_ext <<_ACEOF
21309 cat confdefs.h
>>conftest.
$ac_ext
21310 cat >>conftest.
$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21314 #define gethostbyname_r innocuous_gethostbyname_r
21316 /* System header to define __stub macros and hopefully few prototypes,
21317 which can conflict with char gethostbyname_r (); below.
21318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21319 <limits.h> exists even on freestanding compilers. */
21322 # include <limits.h>
21324 # include <assert.h>
21327 #undef gethostbyname_r
21329 /* Override any GCC internal prototype to avoid an error.
21330 Use char because int might match the return type of a GCC
21331 builtin and then its argument prototype would still apply. */
21335 char gethostbyname_r ();
21336 /* The GNU C library defines this for functions which it implements
21337 to always fail with ENOSYS. Some functions are actually named
21338 something starting with __ and the normal name is an alias. */
21339 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21346 return gethostbyname_r ();
21351 rm -f conftest.
$ac_objext conftest
$ac_exeext
21352 if { (ac_try
="$ac_link"
21353 case "(($ac_try" in
21354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_link") 2>conftest.er1
21360 grep -v '^ *+' conftest.er1 >conftest.err
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } && {
21365 test -z "$ac_c_werror_flag" ||
21366 test ! -s conftest.err
21367 } && test -s conftest$ac_exeext &&
21368 $as_test_x conftest$ac_exeext; then
21369 ac_cv_func_gethostbyname_r=yes
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21374 ac_cv_func_gethostbyname_r=no
21377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21378 conftest$ac_exeext conftest.$ac_ext
21380 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21381 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21382 if test $ac_cv_func_gethostbyname_r = yes; then
21384 cat >>confdefs.h <<\_ACEOF
21385 #define HAVE_GETHOSTBYNAME_R 1
21388 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21389 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21391 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21392 cat >conftest.$ac_ext <<_ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21399 # include <netdb.h>
21406 struct hostent *he, *res;
21411 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21417 rm -f conftest.$ac_objext
21418 if { (ac_try="$ac_compile"
21419 case "(($ac_try" in
21420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21421 *) ac_try_echo
=$ac_try;;
21423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21424 (eval "$ac_compile") 2>conftest.er1
21426 grep -v '^ *+' conftest.er1
>conftest.err
21428 cat conftest.err
>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); } && {
21431 test -z "$ac_c_werror_flag" ||
21432 test ! -s conftest.err
21433 } && test -s conftest.
$ac_objext; then
21435 cat >>confdefs.h
<<\_ACEOF
21436 #define HAVE_GETHOSTBYNAME_R 1
21440 cat >>confdefs.h
<<\_ACEOF
21441 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21444 { echo "$as_me:$LINENO: result: yes" >&5
21445 echo "${ECHO_T}yes" >&6; }
21448 echo "$as_me: failed program was:" >&5
21449 sed 's/^/| /' conftest.
$ac_ext >&5
21452 { echo "$as_me:$LINENO: result: no" >&5
21453 echo "${ECHO_T}no" >&6; }
21454 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21455 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21456 cat >conftest.
$ac_ext <<_ACEOF
21459 cat confdefs.h
>>conftest.
$ac_ext
21460 cat >>conftest.
$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21463 # include <netdb.h>
21470 struct hostent *he;
21475 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21481 rm -f conftest.
$ac_objext
21482 if { (ac_try
="$ac_compile"
21483 case "(($ac_try" in
21484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_compile") 2>conftest.er1
21490 grep -v '^ *+' conftest.er1 >conftest.err
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest.$ac_objext; then
21499 cat >>confdefs.h <<\_ACEOF
21500 #define HAVE_GETHOSTBYNAME_R 1
21504 cat >>confdefs.h <<\_ACEOF
21505 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21508 { echo "$as_me:$LINENO: result: yes" >&5
21509 echo "${ECHO_T}yes" >&6; }
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21516 { echo "$as_me:$LINENO: result: no" >&5
21517 echo "${ECHO_T}no" >&6; }
21518 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21519 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21520 cat >conftest.$ac_ext <<_ACEOF
21523 cat confdefs.h >>conftest.$ac_ext
21524 cat >>conftest.$ac_ext <<_ACEOF
21525 /* end confdefs.h. */
21527 # include <netdb.h>
21534 struct hostent *he;
21535 struct hostent_data data;
21537 (void) gethostbyname_r(name, he, &data);
21543 rm -f conftest.$ac_objext
21544 if { (ac_try="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21547 *) ac_try_echo
=$ac_try;;
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21552 grep -v '^ *+' conftest.er1
>conftest.err
21554 cat conftest.err
>&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.
$ac_objext; then
21561 cat >>confdefs.h
<<\_ACEOF
21562 #define HAVE_GETHOSTBYNAME_R 1
21566 cat >>confdefs.h
<<\_ACEOF
21567 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21570 { echo "$as_me:$LINENO: result: yes" >&5
21571 echo "${ECHO_T}yes" >&6; }
21574 echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.
$ac_ext >&5
21578 { echo "$as_me:$LINENO: result: no" >&5
21579 echo "${ECHO_T}no" >&6; }
21583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21597 for ac_func
in gethostbyname
21599 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21602 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21605 cat >conftest.
$ac_ext <<_ACEOF
21608 cat confdefs.h
>>conftest.
$ac_ext
21609 cat >>conftest.
$ac_ext <<_ACEOF
21610 /* end confdefs.h. */
21611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21613 #define $ac_func innocuous_$ac_func
21615 /* System header to define __stub macros and hopefully few prototypes,
21616 which can conflict with char $ac_func (); below.
21617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21618 <limits.h> exists even on freestanding compilers. */
21621 # include <limits.h>
21623 # include <assert.h>
21628 /* Override any GCC internal prototype to avoid an error.
21629 Use char because int might match the return type of a GCC
21630 builtin and then its argument prototype would still apply. */
21635 /* The GNU C library defines this for functions which it implements
21636 to always fail with ENOSYS. Some functions are actually named
21637 something starting with __ and the normal name is an alias. */
21638 #if defined __stub_$ac_func || defined __stub___$ac_func
21645 return $ac_func ();
21650 rm -f conftest.
$ac_objext conftest
$ac_exeext
21651 if { (ac_try
="$ac_link"
21652 case "(($ac_try" in
21653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21654 *) ac_try_echo=$ac_try;;
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657 (eval "$ac_link") 2>conftest.er1
21659 grep -v '^ *+' conftest.er1 >conftest.err
21661 cat conftest.err >&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } && {
21664 test -z "$ac_c_werror_flag" ||
21665 test ! -s conftest.err
21666 } && test -s conftest$ac_exeext &&
21667 $as_test_x conftest$ac_exeext; then
21668 eval "$as_ac_var=yes"
21670 echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21673 eval "$as_ac_var=no"
21676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21677 conftest$ac_exeext conftest.$ac_ext
21679 ac_res=`eval echo '${'$as_ac_var'}'`
21680 { echo "$as_me:$LINENO: result: $ac_res" >&5
21681 echo "${ECHO_T}$ac_res" >&6; }
21682 if test `eval echo '${'$as_ac_var'}'` = yes; then
21683 cat >>confdefs.h <<_ACEOF
21684 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21699 # checks for system services
21702 # Linux requires this for correct f.p. operations
21703 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21704 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21705 if test "${ac_cv_func___fpu_control+set}" = set; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21708 cat >conftest.$ac_ext <<_ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21714 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21716 #define __fpu_control innocuous___fpu_control
21718 /* System header to define __stub macros and hopefully few prototypes,
21719 which can conflict with char __fpu_control (); below.
21720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21721 <limits.h> exists even on freestanding compilers. */
21724 # include <limits.h>
21726 # include <assert.h>
21729 #undef __fpu_control
21731 /* Override any GCC internal prototype to avoid an error.
21732 Use char because int might match the return type of a GCC
21733 builtin and then its argument prototype would still apply. */
21737 char __fpu_control ();
21738 /* The GNU C library defines this for functions which it implements
21739 to always fail with ENOSYS. Some functions are actually named
21740 something starting with __ and the normal name is an alias. */
21741 #if defined __stub___fpu_control || defined __stub_____fpu_control
21748 return __fpu_control ();
21753 rm -f conftest.$ac_objext conftest$ac_exeext
21754 if { (ac_try="$ac_link"
21755 case "(($ac_try" in
21756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21757 *) ac_try_echo
=$ac_try;;
21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_link") 2>conftest.er1
21762 grep -v '^ *+' conftest.er1
>conftest.err
21764 cat conftest.err
>&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } && {
21767 test -z "$ac_c_werror_flag" ||
21768 test ! -s conftest.err
21769 } && test -s conftest
$ac_exeext &&
21770 $as_test_x conftest
$ac_exeext; then
21771 ac_cv_func___fpu_control
=yes
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.
$ac_ext >&5
21776 ac_cv_func___fpu_control
=no
21779 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21780 conftest
$ac_exeext conftest.
$ac_ext
21782 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21783 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21784 if test $ac_cv_func___fpu_control = yes; then
21788 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21789 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21790 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21791 echo $ECHO_N "(cached) $ECHO_C" >&6
21793 ac_check_lib_save_LIBS
=$LIBS
21794 LIBS
="-lieee $LIBS"
21795 cat >conftest.
$ac_ext <<_ACEOF
21798 cat confdefs.h
>>conftest.
$ac_ext
21799 cat >>conftest.
$ac_ext <<_ACEOF
21800 /* end confdefs.h. */
21802 /* Override any GCC internal prototype to avoid an error.
21803 Use char because int might match the return type of a GCC
21804 builtin and then its argument prototype would still apply. */
21808 char __fpu_control ();
21812 return __fpu_control ();
21817 rm -f conftest.
$ac_objext conftest
$ac_exeext
21818 if { (ac_try
="$ac_link"
21819 case "(($ac_try" in
21820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824 (eval "$ac_link") 2>conftest.er1
21826 grep -v '^ *+' conftest.er1 >conftest.err
21828 cat conftest.err >&5
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); } && {
21831 test -z "$ac_c_werror_flag" ||
21832 test ! -s conftest.err
21833 } && test -s conftest$ac_exeext &&
21834 $as_test_x conftest$ac_exeext; then
21835 ac_cv_lib_ieee___fpu_control=yes
21837 echo "$as_me: failed program was:" >&5
21838 sed 's/^/| /' conftest.$ac_ext >&5
21840 ac_cv_lib_ieee___fpu_control=no
21843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21844 conftest$ac_exeext conftest.$ac_ext
21845 LIBS=$ac_check_lib_save_LIBS
21847 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21848 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21849 if test $ac_cv_lib_ieee___fpu_control = yes; then
21850 cat >>confdefs.h <<_ACEOF
21851 #define HAVE_LIBIEEE 1
21854 LIBS="-lieee $LIBS"
21862 # Check for --with-fpectl
21863 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21864 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21866 # Check whether --with-fpectl was given.
21867 if test "${with_fpectl+set}" = set; then
21868 withval=$with_fpectl;
21869 if test "$withval" != no
21872 cat >>confdefs.h <<\_ACEOF
21873 #define WANT_SIGFPE_HANDLER 1
21876 { echo "$as_me:$LINENO: result: yes" >&5
21877 echo "${ECHO_T}yes" >&6; }
21878 else { echo "$as_me:$LINENO: result: no" >&5
21879 echo "${ECHO_T}no" >&6; }
21882 { echo "$as_me:$LINENO: result: no" >&5
21883 echo "${ECHO_T}no" >&6; }
21887 # check for --with-libm=...
21889 case $ac_sys_system in
21894 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21895 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21897 # Check whether --with-libm was given.
21898 if test "${with_libm+set}" = set; then
21899 withval=$with_libm;
21900 if test "$withval" = no
21902 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21903 echo "${ECHO_T}force LIBM empty" >&6; }
21904 elif test "$withval" != yes
21906 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21907 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21908 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21909 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21910 { (exit 1); exit 1; }; }
21913 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21914 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21918 # check for --with-libc=...
21920 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21921 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21923 # Check whether --with-libc was given.
21924 if test "${with_libc+set}" = set; then
21925 withval=$with_libc;
21926 if test "$withval" = no
21928 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21929 echo "${ECHO_T}force LIBC empty" >&6; }
21930 elif test "$withval" != yes
21932 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21933 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21934 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21935 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21936 { (exit 1); exit 1; }; }
21939 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21940 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21944 # ************************************
21945 # * Check for mathematical functions *
21946 # ************************************
21951 # Detect whether system arithmetic is subject to x87-style double
21952 # rounding issues. The result of this test has little meaning on non
21953 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21954 # mode is round-to-nearest and double rounding issues are present, and
21955 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21956 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21957 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21958 if test "${ac_cv_x87_double_rounding+set}" = set; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 if test "$cross_compiling" = yes; then
21963 ac_cv_x87_double_rounding=no
21965 cat >conftest.$ac_ext <<_ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21972 #include <stdlib.h>
21975 volatile double x, y, z;
21976 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21977 x = 0.99999999999999989; /* 1-2**-53 */
21981 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21987 /* both tests show evidence of double rounding */
21992 rm -f conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21996 *) ac_try_echo
=$ac_try;;
21998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_link") 2>&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22003 { (case "(($ac_try" in
22004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_try") 2>&5
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
22012 ac_cv_x87_double_rounding=no
22014 echo "$as_me: program exited with status $ac_status" >&5
22015 echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ( exit $ac_status )
22019 ac_cv_x87_double_rounding=yes
22021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22027 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22028 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22029 if test "$ac_cv_x87_double_rounding" = yes
22032 cat >>confdefs.h <<\_ACEOF
22033 #define X87_DOUBLE_ROUNDING 1
22038 # Multiprocessing check for broken sem_getvalue
22039 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22040 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22041 if test "$cross_compiling" = yes; then
22042 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22043 See \`config.log
' for more details." >&5
22044 echo "$as_me: error: cannot run test program while cross compiling
22045 See \`config.log' for more details.
" >&2;}
22046 { (exit 1); exit 1; }; }
22048 cat >conftest.$ac_ext <<_ACEOF
22051 cat confdefs.h >>conftest.$ac_ext
22052 cat >>conftest.$ac_ext <<_ACEOF
22053 /* end confdefs.h. */
22055 #include <unistd.h>
22058 #include <semaphore.h>
22059 #include <sys/stat.h>
22062 sem_t *a = sem_open("/autoconf
", O_CREAT, S_IRUSR|S_IWUSR, 0);
22066 perror("sem_open
");
22070 res = sem_getvalue(a, &count);
22072 return res==-1 ? 1 : 0;
22077 rm -f conftest$ac_exeext
22078 if { (ac_try="$ac_link"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_link") 2>&5
22086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22088 { (case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_try") 2>&5
22095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22096 (exit $ac_status); }; }; then
22097 { echo "$as_me:$LINENO: result
: no
" >&5
22098 echo "${ECHO_T}no
" >&6; }
22100 echo "$as_me: program exited with status
$ac_status" >&5
22101 echo "$as_me: failed program was
:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 ( exit $ac_status )
22105 { echo "$as_me:$LINENO: result
: yes" >&5
22106 echo "${ECHO_T}yes" >&6; }
22108 cat >>confdefs.h <<\_ACEOF
22109 #define HAVE_BROKEN_SEM_GETVALUE 1
22114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22119 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22120 # -0. on some architectures.
22121 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero
" >&5
22122 echo $ECHO_N "checking whether tanh preserves the sign of zero...
$ECHO_C" >&6; }
22123 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22124 echo $ECHO_N "(cached
) $ECHO_C" >&6
22127 if test "$cross_compiling" = yes; then
22128 ac_cv_tanh_preserves_zero_sign=no
22130 cat >conftest.$ac_ext <<_ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22138 #include <stdlib.h>
22140 /* return 0 if either negative zeros don't exist
22141 on this platform or if negative zeros exist
22142 and tanh(-0.) == -0. */
22143 if (atan2(0., -1.) == atan2(-0., -1.) ||
22144 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22149 rm -f conftest$ac_exeext
22150 if { (ac_try="$ac_link"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22156 (eval "$ac_link") 2>&5
22158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22160 { (case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22165 (eval "$ac_try") 2>&5
22167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22168 (exit $ac_status); }; }; then
22169 ac_cv_tanh_preserves_zero_sign=yes
22171 echo "$as_me: program exited with status
$ac_status" >&5
22172 echo "$as_me: failed program was
:" >&5
22173 sed 's/^/| /' conftest.$ac_ext >&5
22175 ( exit $ac_status )
22176 ac_cv_tanh_preserves_zero_sign=no
22178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22184 { echo "$as_me:$LINENO: result
: $ac_cv_tanh_preserves_zero_sign" >&5
22185 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22186 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22189 cat >>confdefs.h <<\_ACEOF
22190 #define TANH_PRESERVES_ZERO_SIGN 1
22204 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22206 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22207 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22208 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22209 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22210 echo $ECHO_N "(cached
) $ECHO_C" >&6
22212 cat >conftest.$ac_ext <<_ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22220 #define $ac_func innocuous_$ac_func
22222 /* System header to define __stub macros and hopefully few prototypes,
22223 which can conflict with char $ac_func (); below.
22224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22225 <limits.h> exists even on freestanding compilers. */
22228 # include <limits.h>
22230 # include <assert.h>
22235 /* Override any GCC internal prototype to avoid an error.
22236 Use char because int might match the return type of a GCC
22237 builtin and then its argument prototype would still apply. */
22242 /* The GNU C library defines this for functions which it implements
22243 to always fail with ENOSYS. Some functions are actually named
22244 something starting with __ and the normal name is an alias. */
22245 #if defined __stub_$ac_func || defined __stub___$ac_func
22252 return $ac_func ();
22257 rm -f conftest.$ac_objext conftest$ac_exeext
22258 if { (ac_try="$ac_link"
22259 case "(($ac_try" in
22260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261 *) ac_try_echo=$ac_try;;
22263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22264 (eval "$ac_link") 2>conftest.er1
22266 grep -v '^ *+' conftest.er1 >conftest.err
22268 cat conftest.err >&5
22269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22270 (exit $ac_status); } && {
22271 test -z "$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22273 } && test -s conftest$ac_exeext &&
22274 $as_test_x conftest$ac_exeext; then
22275 eval "$as_ac_var=yes"
22277 echo "$as_me: failed program was
:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22280 eval "$as_ac_var=no
"
22283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22284 conftest$ac_exeext conftest.$ac_ext
22286 ac_res=`eval echo '${'$as_ac_var'}'`
22287 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22288 echo "${ECHO_T}$ac_res" >&6; }
22289 if test `eval echo '${'$as_ac_var'}'` = yes; then
22290 cat >>confdefs.h <<_ACEOF
22291 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22297 { echo "$as_me:$LINENO: checking whether isinf is declared
" >&5
22298 echo $ECHO_N "checking whether isinf is declared...
$ECHO_C" >&6; }
22299 if test "${ac_cv_have_decl_isinf+set}" = set; then
22300 echo $ECHO_N "(cached
) $ECHO_C" >&6
22302 cat >conftest.$ac_ext <<_ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22321 rm -f conftest.$ac_objext
22322 if { (ac_try="$ac_compile"
22323 case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_compile") 2>conftest.er1
22330 grep -v '^ *+' conftest.er1 >conftest.err
22332 cat conftest.err >&5
22333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22334 (exit $ac_status); } && {
22335 test -z "$ac_c_werror_flag" ||
22336 test ! -s conftest.err
22337 } && test -s conftest.$ac_objext; then
22338 ac_cv_have_decl_isinf=yes
22340 echo "$as_me: failed program was
:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22343 ac_cv_have_decl_isinf=no
22346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22348 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_isinf" >&5
22349 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22350 if test $ac_cv_have_decl_isinf = yes; then
22352 cat >>confdefs.h <<_ACEOF
22353 #define HAVE_DECL_ISINF 1
22358 cat >>confdefs.h <<_ACEOF
22359 #define HAVE_DECL_ISINF 0
22364 { echo "$as_me:$LINENO: checking whether isnan is declared
" >&5
22365 echo $ECHO_N "checking whether isnan is declared...
$ECHO_C" >&6; }
22366 if test "${ac_cv_have_decl_isnan+set}" = set; then
22367 echo $ECHO_N "(cached
) $ECHO_C" >&6
22369 cat >conftest.$ac_ext <<_ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22388 rm -f conftest.$ac_objext
22389 if { (ac_try="$ac_compile"
22390 case "(($ac_try" in
22391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392 *) ac_try_echo=$ac_try;;
22394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22395 (eval "$ac_compile") 2>conftest.er1
22397 grep -v '^ *+' conftest.er1 >conftest.err
22399 cat conftest.err >&5
22400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22401 (exit $ac_status); } && {
22402 test -z "$ac_c_werror_flag" ||
22403 test ! -s conftest.err
22404 } && test -s conftest.$ac_objext; then
22405 ac_cv_have_decl_isnan=yes
22407 echo "$as_me: failed program was
:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 ac_cv_have_decl_isnan=no
22413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_isnan" >&5
22416 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22417 if test $ac_cv_have_decl_isnan = yes; then
22419 cat >>confdefs.h <<_ACEOF
22420 #define HAVE_DECL_ISNAN 1
22425 cat >>confdefs.h <<_ACEOF
22426 #define HAVE_DECL_ISNAN 0
22431 { echo "$as_me:$LINENO: checking whether isfinite is declared
" >&5
22432 echo $ECHO_N "checking whether isfinite is declared...
$ECHO_C" >&6; }
22433 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22434 echo $ECHO_N "(cached
) $ECHO_C" >&6
22436 cat >conftest.$ac_ext <<_ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22455 rm -f conftest.$ac_objext
22456 if { (ac_try="$ac_compile"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_compile") 2>conftest.er1
22464 grep -v '^ *+' conftest.er1 >conftest.err
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22468 (exit $ac_status); } && {
22469 test -z "$ac_c_werror_flag" ||
22470 test ! -s conftest.err
22471 } && test -s conftest.$ac_objext; then
22472 ac_cv_have_decl_isfinite=yes
22474 echo "$as_me: failed program was
:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22477 ac_cv_have_decl_isfinite=no
22480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22482 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_isfinite" >&5
22483 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22484 if test $ac_cv_have_decl_isfinite = yes; then
22486 cat >>confdefs.h <<_ACEOF
22487 #define HAVE_DECL_ISFINITE 1
22492 cat >>confdefs.h <<_ACEOF
22493 #define HAVE_DECL_ISFINITE 0
22503 # determine what size digit to use for Python's longs
22504 { echo "$as_me:$LINENO: checking digit size
for Python
's longs" >&5
22505 echo $ECHO_N "checking digit size for Python's longs...
$ECHO_C" >&6; }
22506 # Check whether --enable-big-digits was given.
22507 if test "${enable_big_digits+set}" = set; then
22508 enableval=$enable_big_digits; case $enable_big_digits in
22510 enable_big_digits=30 ;;
22512 enable_big_digits=15 ;;
22516 { { echo "$as_me:$LINENO: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&5
22517 echo "$as_me: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&2;}
22518 { (exit 1); exit 1; }; } ;;
22520 { echo "$as_me:$LINENO: result
: $enable_big_digits" >&5
22521 echo "${ECHO_T}$enable_big_digits" >&6; }
22523 cat >>confdefs.h <<_ACEOF
22524 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22529 { echo "$as_me:$LINENO: result
: no value specified
" >&5
22530 echo "${ECHO_T}no value specified
" >&6; }
22534 # check for wchar.h
22535 if test "${ac_cv_header_wchar_h+set}" = set; then
22536 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22537 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22538 if test "${ac_cv_header_wchar_h+set}" = set; then
22539 echo $ECHO_N "(cached
) $ECHO_C" >&6
22541 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22542 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22544 # Is the header compilable?
22545 { echo "$as_me:$LINENO: checking wchar.h usability
" >&5
22546 echo $ECHO_N "checking wchar.h usability...
$ECHO_C" >&6; }
22547 cat >conftest.$ac_ext <<_ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h. */
22553 $ac_includes_default
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_compile") 2>conftest.er1
22565 grep -v '^ *+' conftest.er1 >conftest.err
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22569 (exit $ac_status); } && {
22570 test -z "$ac_c_werror_flag" ||
22571 test ! -s conftest.err
22572 } && test -s conftest.$ac_objext; then
22573 ac_header_compiler=yes
22575 echo "$as_me: failed program was
:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22578 ac_header_compiler=no
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22583 echo "${ECHO_T}$ac_header_compiler" >&6; }
22585 # Is the header present?
22586 { echo "$as_me:$LINENO: checking wchar.h presence
" >&5
22587 echo $ECHO_N "checking wchar.h presence...
$ECHO_C" >&6; }
22588 cat >conftest.$ac_ext <<_ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h. */
22596 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22608 (exit $ac_status); } >/dev/null && {
22609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22612 ac_header_preproc=yes
22614 echo "$as_me: failed program was
:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22617 ac_header_preproc=no
22620 rm -f conftest.err conftest.$ac_ext
22621 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22622 echo "${ECHO_T}$ac_header_preproc" >&6; }
22624 # So? What about this header?
22625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22627 { echo "$as_me:$LINENO: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22628 echo "$as_me: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22629 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the compiler
's result" >&5
22630 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result
" >&2;}
22631 ac_header_preproc=yes
22634 { echo "$as_me:$LINENO: WARNING
: wchar.h
: present but cannot be compiled
" >&5
22635 echo "$as_me: WARNING
: wchar.h
: present but cannot be compiled
" >&2;}
22636 { echo "$as_me:$LINENO: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&5
22637 echo "$as_me: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&2;}
22638 { echo "$as_me:$LINENO: WARNING
: wchar.h
: see the Autoconf documentation
" >&5
22639 echo "$as_me: WARNING
: wchar.h
: see the Autoconf documentation
" >&2;}
22640 { echo "$as_me:$LINENO: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22641 echo "$as_me: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22642 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&5
22643 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result
" >&2;}
22644 { echo "$as_me:$LINENO: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&5
22645 echo "$as_me: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&2;}
22647 ## ------------------------------------------------ ##
22648 ## Report this to http://www.python.org/python-bugs ##
22649 ## ------------------------------------------------ ##
22651 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22654 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22655 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22656 if test "${ac_cv_header_wchar_h+set}" = set; then
22657 echo $ECHO_N "(cached
) $ECHO_C" >&6
22659 ac_cv_header_wchar_h=$ac_header_preproc
22661 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22662 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22665 if test $ac_cv_header_wchar_h = yes; then
22668 cat >>confdefs.h <<\_ACEOF
22669 #define HAVE_WCHAR_H 1
22681 # determine wchar_t size
22682 if test "$wchar_h" = yes
22684 { echo "$as_me:$LINENO: checking
for wchar_t
" >&5
22685 echo $ECHO_N "checking
for wchar_t...
$ECHO_C" >&6; }
22686 if test "${ac_cv_type_wchar_t+set}" = set; then
22687 echo $ECHO_N "(cached
) $ECHO_C" >&6
22689 cat >conftest.$ac_ext <<_ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22697 typedef wchar_t ac__type_new_;
22701 if ((ac__type_new_ *) 0)
22703 if (sizeof (ac__type_new_))
22709 rm -f conftest.$ac_objext
22710 if { (ac_try="$ac_compile"
22711 case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_compile") 2>conftest.er1
22718 grep -v '^ *+' conftest.er1 >conftest.err
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22722 (exit $ac_status); } && {
22723 test -z "$ac_c_werror_flag" ||
22724 test ! -s conftest.err
22725 } && test -s conftest.$ac_objext; then
22726 ac_cv_type_wchar_t=yes
22728 echo "$as_me: failed program was
:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 ac_cv_type_wchar_t=no
22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22736 { echo "$as_me:$LINENO: result
: $ac_cv_type_wchar_t" >&5
22737 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22739 # The cast to long int works around a bug in the HP C Compiler
22740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22742 # This bug is HP SR number 8606223364.
22743 { echo "$as_me:$LINENO: checking size of wchar_t
" >&5
22744 echo $ECHO_N "checking size of wchar_t...
$ECHO_C" >&6; }
22745 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22746 echo $ECHO_N "(cached
) $ECHO_C" >&6
22748 if test "$cross_compiling" = yes; then
22749 # Depending upon the size, compute the lo and hi bounds.
22750 cat >conftest.$ac_ext <<_ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h. */
22758 typedef wchar_t ac__type_sizeof_;
22762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22769 rm -f conftest.$ac_objext
22770 if { (ac_try="$ac_compile"
22771 case "(($ac_try" in
22772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773 *) ac_try_echo=$ac_try;;
22775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22776 (eval "$ac_compile") 2>conftest.er1
22778 grep -v '^ *+' conftest.er1 >conftest.err
22780 cat conftest.err >&5
22781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22782 (exit $ac_status); } && {
22783 test -z "$ac_c_werror_flag" ||
22784 test ! -s conftest.err
22785 } && test -s conftest.$ac_objext; then
22788 cat >conftest.$ac_ext <<_ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h. */
22796 typedef wchar_t ac__type_sizeof_;
22800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22807 rm -f conftest.$ac_objext
22808 if { (ac_try="$ac_compile"
22809 case "(($ac_try" in
22810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811 *) ac_try_echo=$ac_try;;
22813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22814 (eval "$ac_compile") 2>conftest.er1
22816 grep -v '^ *+' conftest.er1 >conftest.err
22818 cat conftest.err >&5
22819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22820 (exit $ac_status); } && {
22821 test -z "$ac_c_werror_flag" ||
22822 test ! -s conftest.err
22823 } && test -s conftest.$ac_objext; then
22824 ac_hi=$ac_mid; break
22826 echo "$as_me: failed program was
:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22829 ac_lo=`expr $ac_mid + 1`
22830 if test $ac_lo -le $ac_mid; then
22834 ac_mid=`expr 2 '*' $ac_mid + 1`
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22840 echo "$as_me: failed program was
:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22843 cat >conftest.$ac_ext <<_ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22851 typedef wchar_t ac__type_sizeof_;
22855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22862 rm -f conftest.$ac_objext
22863 if { (ac_try="$ac_compile"
22864 case "(($ac_try" in
22865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866 *) ac_try_echo=$ac_try;;
22868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22869 (eval "$ac_compile") 2>conftest.er1
22871 grep -v '^ *+' conftest.er1 >conftest.err
22873 cat conftest.err >&5
22874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22875 (exit $ac_status); } && {
22876 test -z "$ac_c_werror_flag" ||
22877 test ! -s conftest.err
22878 } && test -s conftest.$ac_objext; then
22881 cat >conftest.$ac_ext <<_ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22889 typedef wchar_t ac__type_sizeof_;
22893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22900 rm -f conftest.$ac_objext
22901 if { (ac_try="$ac_compile"
22902 case "(($ac_try" in
22903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904 *) ac_try_echo=$ac_try;;
22906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22907 (eval "$ac_compile") 2>conftest.er1
22909 grep -v '^ *+' conftest.er1 >conftest.err
22911 cat conftest.err >&5
22912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22913 (exit $ac_status); } && {
22914 test -z "$ac_c_werror_flag" ||
22915 test ! -s conftest.err
22916 } && test -s conftest.$ac_objext; then
22917 ac_lo=$ac_mid; break
22919 echo "$as_me: failed program was
:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22922 ac_hi=`expr '(' $ac_mid ')' - 1`
22923 if test $ac_mid -le $ac_hi; then
22927 ac_mid=`expr 2 '*' $ac_mid`
22930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933 echo "$as_me: failed program was
:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22943 # Binary search between lo and hi bounds.
22944 while test "x
$ac_lo" != "x
$ac_hi"; do
22945 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22946 cat >conftest.$ac_ext <<_ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22954 typedef wchar_t ac__type_sizeof_;
22958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22965 rm -f conftest.$ac_objext
22966 if { (ac_try="$ac_compile"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_compile") 2>conftest.er1
22974 grep -v '^ *+' conftest.er1 >conftest.err
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22978 (exit $ac_status); } && {
22979 test -z "$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 } && test -s conftest.$ac_objext; then
22984 echo "$as_me: failed program was
:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 ac_lo=`expr '(' $ac_mid ')' + 1`
22990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22994 '') if test "$ac_cv_type_wchar_t" = yes; then
22995 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
22996 See \
`config.log' for more details." >&5
22997 echo "$as_me: error: cannot compute sizeof (wchar_t)
22998 See \`config.log
' for more details." >&2;}
22999 { (exit 77); exit 77; }; }
23001 ac_cv_sizeof_wchar_t=0
23005 cat >conftest.$ac_ext <<_ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h. */
23013 typedef wchar_t ac__type_sizeof_;
23014 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23015 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23017 #include <stdlib.h>
23022 FILE *f = fopen ("conftest.val", "w");
23025 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23027 long int i = longval ();
23028 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23030 fprintf (f, "%ld\n", i);
23034 unsigned long int i = ulongval ();
23035 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23037 fprintf (f, "%lu\n", i);
23039 return ferror (f) || fclose (f) != 0;
23045 rm -f conftest$ac_exeext
23046 if { (ac_try="$ac_link"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052 (eval "$ac_link") 2>&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23056 { (case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_try") 2>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; }; then
23065 ac_cv_sizeof_wchar_t=`cat conftest.val`
23067 echo "$as_me: program exited with status $ac_status" >&5
23068 echo "$as_me: failed program was:" >&5
23069 sed 's
/^
/|
/' conftest.$ac_ext >&5
23071 ( exit $ac_status )
23072 if test "$ac_cv_type_wchar_t" = yes; then
23073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23074 See \`config.log' for more details.
" >&5
23075 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
23076 See \
`config.log' for more details." >&2;}
23077 { (exit 77); exit 77; }; }
23079 ac_cv_sizeof_wchar_t=0
23082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23086 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23087 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23091 cat >>confdefs.h <<_ACEOF
23092 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23098 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23099 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23101 cat >conftest.$ac_ext <<_ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23109 #if TCL_UTF_MAX != 6
23110 # error "NOT UCS4_TCL"
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23124 *) ac_try_echo
=$ac_try;;
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23129 grep -v '^ *+' conftest.er1
>conftest.err
23131 cat conftest.err
>&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } && {
23134 test -z "$ac_c_werror_flag" ||
23135 test ! -s conftest.err
23136 } && test -s conftest.
$ac_objext; then
23139 cat >>confdefs.h
<<\_ACEOF
23140 #define HAVE_UCS4_TCL 1
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.
$ac_ext >&5
23152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23153 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23154 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23156 # check whether wchar_t is signed or not
23157 if test "$wchar_h" = yes
23159 # check whether wchar_t is signed or not
23160 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23161 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23162 if test "${ac_cv_wchar_t_signed+set}" = set; then
23163 echo $ECHO_N "(cached) $ECHO_C" >&6
23166 if test "$cross_compiling" = yes; then
23167 ac_cv_wchar_t_signed
=yes
23169 cat >conftest.
$ac_ext <<_ACEOF
23172 cat confdefs.h
>>conftest.
$ac_ext
23173 cat >>conftest.
$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23179 /* Success: exit code 0 */
23180 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23184 rm -f conftest
$ac_exeext
23185 if { (ac_try
="$ac_link"
23186 case "(($ac_try" in
23187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23188 *) ac_try_echo=$ac_try;;
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191 (eval "$ac_link") 2>&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23195 { (case "(($ac_try" in
23196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23197 *) ac_try_echo
=$ac_try;;
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200 (eval "$ac_try") 2>&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; }; then
23204 ac_cv_wchar_t_signed
=yes
23206 echo "$as_me: program exited with status $ac_status" >&5
23207 echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.
$ac_ext >&5
23210 ( exit $ac_status )
23211 ac_cv_wchar_t_signed
=no
23213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23219 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23220 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23223 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23224 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23225 # Check whether --enable-unicode was given.
23226 if test "${enable_unicode+set}" = set; then
23227 enableval
=$enable_unicode;
23233 if test $enable_unicode = yes
23235 # Without any arguments, Py_UNICODE defaults to two-byte mode
23236 case "$have_ucs4_tcl" in
23237 yes) enable_unicode
="ucs4"
23239 *) enable_unicode
="ucs2"
23246 case "$enable_unicode" in
23247 ucs2
) unicode_size
="2"
23248 cat >>confdefs.h
<<\_ACEOF
23249 #define Py_UNICODE_SIZE 2
23253 ucs4
) unicode_size
="4"
23254 cat >>confdefs.h
<<\_ACEOF
23255 #define Py_UNICODE_SIZE 4
23265 if test "$enable_unicode" = "no"
23268 { echo "$as_me:$LINENO: result: not used" >&5
23269 echo "${ECHO_T}not used" >&6; }
23271 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
23273 cat >>confdefs.h
<<\_ACEOF
23274 #define Py_USING_UNICODE 1
23278 # wchar_t is only usable if it maps to an unsigned type
23279 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23280 -a "$ac_cv_wchar_t_signed" = "no"
23282 PY_UNICODE_TYPE
="wchar_t"
23284 cat >>confdefs.h
<<\_ACEOF
23285 #define HAVE_USABLE_WCHAR_T 1
23288 cat >>confdefs.h
<<\_ACEOF
23289 #define PY_UNICODE_TYPE wchar_t
23292 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23294 PY_UNICODE_TYPE
="unsigned short"
23295 cat >>confdefs.h
<<\_ACEOF
23296 #define PY_UNICODE_TYPE unsigned short
23299 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23301 PY_UNICODE_TYPE
="unsigned long"
23302 cat >>confdefs.h
<<\_ACEOF
23303 #define PY_UNICODE_TYPE unsigned long
23307 PY_UNICODE_TYPE
="no type found"
23309 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23310 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23313 # check for endianness
23314 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23315 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23316 if test "${ac_cv_c_bigendian+set}" = set; then
23317 echo $ECHO_N "(cached) $ECHO_C" >&6
23319 # See if sys/param.h defines the BYTE_ORDER macro.
23320 cat >conftest.
$ac_ext <<_ACEOF
23323 cat confdefs.h
>>conftest.
$ac_ext
23324 cat >>conftest.
$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23326 #include <sys/types.h>
23327 #include <sys/param.h>
23332 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23333 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23334 bogus endian macros
23341 rm -f conftest.
$ac_objext
23342 if { (ac_try
="$ac_compile"
23343 case "(($ac_try" in
23344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23345 *) ac_try_echo=$ac_try;;
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348 (eval "$ac_compile") 2>conftest.er1
23350 grep -v '^ *+' conftest.er1 >conftest.err
23352 cat conftest.err >&5
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } && {
23355 test -z "$ac_c_werror_flag" ||
23356 test ! -s conftest.err
23357 } && test -s conftest.$ac_objext; then
23358 # It does; now see whether it defined to BIG_ENDIAN or not.
23359 cat >conftest.$ac_ext <<_ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h. */
23365 #include <sys/types.h>
23366 #include <sys/param.h>
23371 #if BYTE_ORDER != BIG_ENDIAN
23379 rm -f conftest.$ac_objext
23380 if { (ac_try="$ac_compile"
23381 case "(($ac_try" in
23382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23383 *) ac_try_echo
=$ac_try;;
23385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386 (eval "$ac_compile") 2>conftest.er1
23388 grep -v '^ *+' conftest.er1
>conftest.err
23390 cat conftest.err
>&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } && {
23393 test -z "$ac_c_werror_flag" ||
23394 test ! -s conftest.err
23395 } && test -s conftest.
$ac_objext; then
23396 ac_cv_c_bigendian
=yes
23398 echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.
$ac_ext >&5
23401 ac_cv_c_bigendian
=no
23404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.
$ac_ext >&5
23409 # It does not; compile a test program.
23410 if test "$cross_compiling" = yes; then
23411 # try to guess the endianness by grepping values into an object file
23412 ac_cv_c_bigendian
=unknown
23413 cat >conftest.
$ac_ext <<_ACEOF
23416 cat confdefs.h
>>conftest.
$ac_ext
23417 cat >>conftest.
$ac_ext <<_ACEOF
23418 /* end confdefs.h. */
23419 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23420 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23421 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23422 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23423 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23424 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23428 _ascii (); _ebcdic ();
23433 rm -f conftest.
$ac_objext
23434 if { (ac_try
="$ac_compile"
23435 case "(($ac_try" in
23436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23437 *) ac_try_echo=$ac_try;;
23439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23440 (eval "$ac_compile") 2>conftest.er1
23442 grep -v '^ *+' conftest.er1 >conftest.err
23444 cat conftest.err >&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } && {
23447 test -z "$ac_c_werror_flag" ||
23448 test ! -s conftest.err
23449 } && test -s conftest.$ac_objext; then
23450 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23451 ac_cv_c_bigendian=yes
23453 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23454 if test "$ac_cv_c_bigendian" = unknown; then
23455 ac_cv_c_bigendian=no
23457 # finding both strings is unlikely to happen, but who knows?
23458 ac_cv_c_bigendian=unknown
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470 cat >conftest.$ac_ext <<_ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h. */
23476 $ac_includes_default
23481 /* Are we little or big endian? From Harbison&Steele. */
23485 char c[sizeof (long int)];
23488 return u.c[sizeof (long int) - 1] == 1;
23494 rm -f conftest$ac_exeext
23495 if { (ac_try="$ac_link"
23496 case "(($ac_try" in
23497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23498 *) ac_try_echo
=$ac_try;;
23500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23501 (eval "$ac_link") 2>&5
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23505 { (case "(($ac_try" in
23506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_try") 2>&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; }; then
23514 ac_cv_c_bigendian=no
23516 echo "$as_me: program exited with status $ac_status" >&5
23517 echo "$as_me: failed program was:" >&5
23518 sed 's/^/| /' conftest.$ac_ext >&5
23520 ( exit $ac_status )
23521 ac_cv_c_bigendian=yes
23523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23532 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23533 case $ac_cv_c_bigendian in
23536 cat >>confdefs.h <<\_ACEOF
23537 #define WORDS_BIGENDIAN 1
23543 { { echo "$as_me:$LINENO: error: unknown endianness
23544 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23545 echo "$as_me: error: unknown endianness
23546 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23547 { (exit 1); exit 1; }; } ;;
23551 # Check whether right shifting a negative integer extends the sign bit
23552 # or fills with zeros (like the Cray J90, according to Tim Peters).
23553 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23554 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23555 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23556 echo $ECHO_N "(cached) $ECHO_C" >&6
23559 if test "$cross_compiling" = yes; then
23560 ac_cv_rshift_extends_sign=yes
23562 cat >conftest.$ac_ext <<_ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h. */
23571 exit(((-1)>>3 == -1) ? 0 : 1);
23575 rm -f conftest$ac_exeext
23576 if { (ac_try="$ac_link"
23577 case "(($ac_try" in
23578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23579 *) ac_try_echo
=$ac_try;;
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_link") 2>&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23586 { (case "(($ac_try" in
23587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_try") 2>&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); }; }; then
23595 ac_cv_rshift_extends_sign=yes
23597 echo "$as_me: program exited with status $ac_status" >&5
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 ( exit $ac_status )
23602 ac_cv_rshift_extends_sign=no
23604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23610 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23611 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23612 if test "$ac_cv_rshift_extends_sign" = no
23615 cat >>confdefs.h <<\_ACEOF
23616 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23621 # check for getc_unlocked and related locking functions
23622 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23623 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23624 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23628 cat >conftest.$ac_ext <<_ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h. */
23639 FILE *f = fopen("/dev/null", "r");
23648 rm -f conftest.$ac_objext conftest$ac_exeext
23649 if { (ac_try="$ac_link"
23650 case "(($ac_try" in
23651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23652 *) ac_try_echo
=$ac_try;;
23654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23655 (eval "$ac_link") 2>conftest.er1
23657 grep -v '^ *+' conftest.er1
>conftest.err
23659 cat conftest.err
>&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest
$ac_exeext &&
23665 $as_test_x conftest
$ac_exeext; then
23666 ac_cv_have_getc_unlocked
=yes
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.
$ac_ext >&5
23671 ac_cv_have_getc_unlocked
=no
23674 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23675 conftest
$ac_exeext conftest.
$ac_ext
23678 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23679 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23680 if test "$ac_cv_have_getc_unlocked" = yes
23683 cat >>confdefs.h
<<\_ACEOF
23684 #define HAVE_GETC_UNLOCKED 1
23689 # check where readline lives
23690 # save the value of LIBS so we don't actually link Python with readline
23691 LIBS_no_readline
=$LIBS
23693 # On some systems we need to link readline to a termcap compatible
23694 # library. NOTE: Keep the precedence of listed libraries synchronised
23696 py_cv_lib_readline
=no
23697 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23698 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23699 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
23700 if test -z "$py_libtermcap"; then
23701 READLINE_LIBS
="-lreadline"
23703 READLINE_LIBS
="-lreadline -l$py_libtermcap"
23705 LIBS
="$READLINE_LIBS $LIBS_no_readline"
23706 cat >conftest.
$ac_ext <<_ACEOF
23709 cat confdefs.h
>>conftest.
$ac_ext
23710 cat >>conftest.
$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23713 /* Override any GCC internal prototype to avoid an error.
23714 Use char because int might match the return type of a GCC
23715 builtin and then its argument prototype would still apply. */
23723 return readline ();
23728 rm -f conftest.
$ac_objext conftest
$ac_exeext
23729 if { (ac_try
="$ac_link"
23730 case "(($ac_try" in
23731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23732 *) ac_try_echo=$ac_try;;
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735 (eval "$ac_link") 2>conftest.er1
23737 grep -v '^ *+' conftest.er1 >conftest.err
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } && {
23742 test -z "$ac_c_werror_flag" ||
23743 test ! -s conftest.err
23744 } && test -s conftest$ac_exeext &&
23745 $as_test_x conftest$ac_exeext; then
23746 py_cv_lib_readline=yes
23748 echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23755 conftest$ac_exeext conftest.$ac_ext
23756 if test $py_cv_lib_readline = yes; then
23760 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23761 #AC_SUBST([READLINE_LIBS])
23762 if test $py_cv_lib_readline = no; then
23763 { echo "$as_me:$LINENO: result: none" >&5
23764 echo "${ECHO_T}none" >&6; }
23766 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23767 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23769 cat >>confdefs.h <<\_ACEOF
23770 #define HAVE_LIBREADLINE 1
23775 # check for readline 2.1
23776 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23777 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23778 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
23781 ac_check_lib_save_LIBS=$LIBS
23782 LIBS="-lreadline $READLINE_LIBS $LIBS"
23783 cat >conftest.$ac_ext <<_ACEOF
23786 cat confdefs.h >>conftest.$ac_ext
23787 cat >>conftest.$ac_ext <<_ACEOF
23788 /* end confdefs.h. */
23790 /* Override any GCC internal prototype to avoid an error.
23791 Use char because int might match the return type of a GCC
23792 builtin and then its argument prototype would still apply. */
23796 char rl_callback_handler_install ();
23800 return rl_callback_handler_install ();
23805 rm -f conftest.$ac_objext conftest$ac_exeext
23806 if { (ac_try="$ac_link"
23807 case "(($ac_try" in
23808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23809 *) ac_try_echo
=$ac_try;;
23811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812 (eval "$ac_link") 2>conftest.er1
23814 grep -v '^ *+' conftest.er1
>conftest.err
23816 cat conftest.err
>&5
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); } && {
23819 test -z "$ac_c_werror_flag" ||
23820 test ! -s conftest.err
23821 } && test -s conftest
$ac_exeext &&
23822 $as_test_x conftest
$ac_exeext; then
23823 ac_cv_lib_readline_rl_callback_handler_install
=yes
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.
$ac_ext >&5
23828 ac_cv_lib_readline_rl_callback_handler_install
=no
23831 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23832 conftest
$ac_exeext conftest.
$ac_ext
23833 LIBS
=$ac_check_lib_save_LIBS
23835 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23836 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23837 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23839 cat >>confdefs.h
<<\_ACEOF
23840 #define HAVE_RL_CALLBACK 1
23846 # check for readline 2.2
23847 cat >conftest.
$ac_ext <<_ACEOF
23850 cat confdefs.h
>>conftest.
$ac_ext
23851 cat >>conftest.
$ac_ext <<_ACEOF
23852 /* end confdefs.h. */
23853 #include <readline/readline.h>
23855 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23856 case "(($ac_try" in
23857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23858 *) ac_try_echo=$ac_try;;
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23863 grep -v '^ *+' conftest.er1 >conftest.err
23865 cat conftest.err >&5
23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867 (exit $ac_status); } >/dev/null && {
23868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23869 test ! -s conftest.err
23873 echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23879 rm -f conftest.err conftest.$ac_ext
23880 if test $have_readline = yes
23882 cat >conftest.$ac_ext <<_ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 #include <readline/readline.h>
23891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23892 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23894 cat >>confdefs.h <<\_ACEOF
23895 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23903 # check for readline 4.0
23904 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23905 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23906 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23907 echo $ECHO_N "(cached) $ECHO_C" >&6
23909 ac_check_lib_save_LIBS=$LIBS
23910 LIBS="-lreadline $READLINE_LIBS $LIBS"
23911 cat >conftest.$ac_ext <<_ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>conftest.$ac_ext <<_ACEOF
23916 /* end confdefs.h. */
23918 /* Override any GCC internal prototype to avoid an error.
23919 Use char because int might match the return type of a GCC
23920 builtin and then its argument prototype would still apply. */
23924 char rl_pre_input_hook ();
23928 return rl_pre_input_hook ();
23933 rm -f conftest.$ac_objext conftest$ac_exeext
23934 if { (ac_try="$ac_link"
23935 case "(($ac_try" in
23936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23937 *) ac_try_echo
=$ac_try;;
23939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23940 (eval "$ac_link") 2>conftest.er1
23942 grep -v '^ *+' conftest.er1
>conftest.err
23944 cat conftest.err
>&5
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } && {
23947 test -z "$ac_c_werror_flag" ||
23948 test ! -s conftest.err
23949 } && test -s conftest
$ac_exeext &&
23950 $as_test_x conftest
$ac_exeext; then
23951 ac_cv_lib_readline_rl_pre_input_hook
=yes
23953 echo "$as_me: failed program was:" >&5
23954 sed 's/^/| /' conftest.
$ac_ext >&5
23956 ac_cv_lib_readline_rl_pre_input_hook
=no
23959 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23960 conftest
$ac_exeext conftest.
$ac_ext
23961 LIBS
=$ac_check_lib_save_LIBS
23963 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23964 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23965 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23967 cat >>confdefs.h
<<\_ACEOF
23968 #define HAVE_RL_PRE_INPUT_HOOK 1
23975 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23976 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23977 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23978 echo $ECHO_N "(cached) $ECHO_C" >&6
23980 ac_check_lib_save_LIBS
=$LIBS
23981 LIBS
="-lreadline $READLINE_LIBS $LIBS"
23982 cat >conftest.
$ac_ext <<_ACEOF
23985 cat confdefs.h
>>conftest.
$ac_ext
23986 cat >>conftest.
$ac_ext <<_ACEOF
23987 /* end confdefs.h. */
23989 /* Override any GCC internal prototype to avoid an error.
23990 Use char because int might match the return type of a GCC
23991 builtin and then its argument prototype would still apply. */
23995 char rl_completion_display_matches_hook ();
23999 return rl_completion_display_matches_hook ();
24004 rm -f conftest.
$ac_objext conftest
$ac_exeext
24005 if { (ac_try
="$ac_link"
24006 case "(($ac_try" in
24007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24008 *) ac_try_echo=$ac_try;;
24010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24011 (eval "$ac_link") 2>conftest.er1
24013 grep -v '^ *+' conftest.er1 >conftest.err
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } && {
24018 test -z "$ac_c_werror_flag" ||
24019 test ! -s conftest.err
24020 } && test -s conftest$ac_exeext &&
24021 $as_test_x conftest$ac_exeext; then
24022 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24024 echo "$as_me: failed program was:" >&5
24025 sed 's/^/| /' conftest.$ac_ext >&5
24027 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24031 conftest$ac_exeext conftest.$ac_ext
24032 LIBS=$ac_check_lib_save_LIBS
24034 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24035 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24036 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24038 cat >>confdefs.h <<\_ACEOF
24039 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24045 # check for readline 4.2
24046 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24047 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24048 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24051 ac_check_lib_save_LIBS=$LIBS
24052 LIBS="-lreadline $READLINE_LIBS $LIBS"
24053 cat >conftest.$ac_ext <<_ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24060 /* Override any GCC internal prototype to avoid an error.
24061 Use char because int might match the return type of a GCC
24062 builtin and then its argument prototype would still apply. */
24066 char rl_completion_matches ();
24070 return rl_completion_matches ();
24075 rm -f conftest.$ac_objext conftest$ac_exeext
24076 if { (ac_try="$ac_link"
24077 case "(($ac_try" in
24078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24079 *) ac_try_echo
=$ac_try;;
24081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24082 (eval "$ac_link") 2>conftest.er1
24084 grep -v '^ *+' conftest.er1
>conftest.err
24086 cat conftest.err
>&5
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } && {
24089 test -z "$ac_c_werror_flag" ||
24090 test ! -s conftest.err
24091 } && test -s conftest
$ac_exeext &&
24092 $as_test_x conftest
$ac_exeext; then
24093 ac_cv_lib_readline_rl_completion_matches
=yes
24095 echo "$as_me: failed program was:" >&5
24096 sed 's/^/| /' conftest.
$ac_ext >&5
24098 ac_cv_lib_readline_rl_completion_matches
=no
24101 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24102 conftest
$ac_exeext conftest.
$ac_ext
24103 LIBS
=$ac_check_lib_save_LIBS
24105 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24106 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24107 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24109 cat >>confdefs.h
<<\_ACEOF
24110 #define HAVE_RL_COMPLETION_MATCHES 1
24116 # also in readline 4.2
24117 cat >conftest.
$ac_ext <<_ACEOF
24120 cat confdefs.h
>>conftest.
$ac_ext
24121 cat >>conftest.
$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24123 #include <readline/readline.h>
24125 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24126 case "(($ac_try" in
24127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24128 *) ac_try_echo=$ac_try;;
24130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24133 grep -v '^ *+' conftest.er1 >conftest.err
24135 cat conftest.err >&5
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); } >/dev/null && {
24138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24139 test ! -s conftest.err
24143 echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24149 rm -f conftest.err conftest.$ac_ext
24150 if test $have_readline = yes
24152 cat >conftest.$ac_ext <<_ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h. */
24158 #include <readline/readline.h>
24161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24162 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24164 cat >>confdefs.h <<\_ACEOF
24165 #define HAVE_RL_CATCH_SIGNAL 1
24173 # End of readline checks: restore LIBS
24174 LIBS=$LIBS_no_readline
24176 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24177 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24178 if test "${ac_cv_broken_nice+set}" = set; then
24179 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 if test "$cross_compiling" = yes; then
24183 ac_cv_broken_nice=no
24185 cat >conftest.$ac_ext <<_ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24194 int val1 = nice(1);
24195 if (val1 != -1 && val1 == nice(2))
24201 rm -f conftest$ac_exeext
24202 if { (ac_try="$ac_link"
24203 case "(($ac_try" in
24204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24205 *) ac_try_echo
=$ac_try;;
24207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208 (eval "$ac_link") 2>&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24212 { (case "(($ac_try" in
24213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24214 *) ac_try_echo=$ac_try;;
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217 (eval "$ac_try") 2>&5
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; }; then
24221 ac_cv_broken_nice=yes
24223 echo "$as_me: program exited with status $ac_status" >&5
24224 echo "$as_me: failed program was:" >&5
24225 sed 's/^/| /' conftest.$ac_ext >&5
24227 ( exit $ac_status )
24228 ac_cv_broken_nice=no
24230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24236 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24237 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24238 if test "$ac_cv_broken_nice" = yes
24241 cat >>confdefs.h <<\_ACEOF
24242 #define HAVE_BROKEN_NICE 1
24247 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24248 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24249 if test "$cross_compiling" = yes; then
24250 ac_cv_broken_poll=no
24252 cat >conftest.$ac_ext <<_ACEOF
24255 cat confdefs.h >>conftest.$ac_ext
24256 cat >>conftest.$ac_ext <<_ACEOF
24257 /* end confdefs.h. */
24263 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24267 int poll_test = poll (&poll_struct, 1, 0);
24273 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24284 rm -f conftest$ac_exeext
24285 if { (ac_try="$ac_link"
24286 case "(($ac_try" in
24287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24288 *) ac_try_echo
=$ac_try;;
24290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24291 (eval "$ac_link") 2>&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24295 { (case "(($ac_try" in
24296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24300 (eval "$ac_try") 2>&5
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); }; }; then
24304 ac_cv_broken_poll=yes
24306 echo "$as_me: program exited with status $ac_status" >&5
24307 echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24310 ( exit $ac_status )
24311 ac_cv_broken_poll=no
24313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24317 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24318 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24319 if test "$ac_cv_broken_poll" = yes
24322 cat >>confdefs.h <<\_ACEOF
24323 #define HAVE_BROKEN_POLL 1
24328 # Before we can test tzset, we need to check if struct tm has a tm_zone
24329 # (which is not required by ISO C or UNIX spec) and/or if we support
24331 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24332 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24333 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24334 echo $ECHO_N "(cached) $ECHO_C" >&6
24336 cat >conftest.$ac_ext <<_ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24342 #include <sys/types.h>
24343 #include <$ac_cv_struct_tm>
24349 static struct tm ac_aggr;
24350 if (ac_aggr.tm_zone)
24356 rm -f conftest.$ac_objext
24357 if { (ac_try="$ac_compile"
24358 case "(($ac_try" in
24359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24360 *) ac_try_echo
=$ac_try;;
24362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24363 (eval "$ac_compile") 2>conftest.er1
24365 grep -v '^ *+' conftest.er1
>conftest.err
24367 cat conftest.err
>&5
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); } && {
24370 test -z "$ac_c_werror_flag" ||
24371 test ! -s conftest.err
24372 } && test -s conftest.
$ac_objext; then
24373 ac_cv_member_struct_tm_tm_zone
=yes
24375 echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.
$ac_ext >&5
24378 cat >conftest.
$ac_ext <<_ACEOF
24381 cat confdefs.h
>>conftest.
$ac_ext
24382 cat >>conftest.
$ac_ext <<_ACEOF
24383 /* end confdefs.h. */
24384 #include <sys/types.h>
24385 #include <$ac_cv_struct_tm>
24391 static struct tm ac_aggr;
24392 if (sizeof ac_aggr.tm_zone)
24398 rm -f conftest.
$ac_objext
24399 if { (ac_try
="$ac_compile"
24400 case "(($ac_try" in
24401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24402 *) ac_try_echo=$ac_try;;
24404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24405 (eval "$ac_compile") 2>conftest.er1
24407 grep -v '^ *+' conftest.er1 >conftest.err
24409 cat conftest.err >&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } && {
24412 test -z "$ac_c_werror_flag" ||
24413 test ! -s conftest.err
24414 } && test -s conftest.$ac_objext; then
24415 ac_cv_member_struct_tm_tm_zone=yes
24417 echo "$as_me: failed program was:" >&5
24418 sed 's/^/| /' conftest.$ac_ext >&5
24420 ac_cv_member_struct_tm_tm_zone=no
24423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24428 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24429 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24430 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24432 cat >>confdefs.h <<_ACEOF
24433 #define HAVE_STRUCT_TM_TM_ZONE 1
24439 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24441 cat >>confdefs.h <<\_ACEOF
24442 #define HAVE_TM_ZONE 1
24446 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24447 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24448 if test "${ac_cv_have_decl_tzname+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24451 cat >conftest.$ac_ext <<_ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h. */
24470 rm -f conftest.$ac_objext
24471 if { (ac_try="$ac_compile"
24472 case "(($ac_try" in
24473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24474 *) ac_try_echo
=$ac_try;;
24476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24477 (eval "$ac_compile") 2>conftest.er1
24479 grep -v '^ *+' conftest.er1
>conftest.err
24481 cat conftest.err
>&5
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); } && {
24484 test -z "$ac_c_werror_flag" ||
24485 test ! -s conftest.err
24486 } && test -s conftest.
$ac_objext; then
24487 ac_cv_have_decl_tzname
=yes
24489 echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.
$ac_ext >&5
24492 ac_cv_have_decl_tzname
=no
24495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24497 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24498 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24499 if test $ac_cv_have_decl_tzname = yes; then
24501 cat >>confdefs.h
<<_ACEOF
24502 #define HAVE_DECL_TZNAME 1
24507 cat >>confdefs.h
<<_ACEOF
24508 #define HAVE_DECL_TZNAME 0
24515 { echo "$as_me:$LINENO: checking for tzname" >&5
24516 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24517 if test "${ac_cv_var_tzname+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24520 cat >conftest.
$ac_ext <<_ACEOF
24523 cat confdefs.h
>>conftest.
$ac_ext
24524 cat >>conftest.
$ac_ext <<_ACEOF
24525 /* end confdefs.h. */
24527 #if !HAVE_DECL_TZNAME
24528 extern char *tzname[];
24534 return tzname[0][0];
24539 rm -f conftest.
$ac_objext conftest
$ac_exeext
24540 if { (ac_try
="$ac_link"
24541 case "(($ac_try" in
24542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24543 *) ac_try_echo=$ac_try;;
24545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24546 (eval "$ac_link") 2>conftest.er1
24548 grep -v '^ *+' conftest.er1 >conftest.err
24550 cat conftest.err >&5
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); } && {
24553 test -z "$ac_c_werror_flag" ||
24554 test ! -s conftest.err
24555 } && test -s conftest$ac_exeext &&
24556 $as_test_x conftest$ac_exeext; then
24557 ac_cv_var_tzname=yes
24559 echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24562 ac_cv_var_tzname=no
24565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24566 conftest$ac_exeext conftest.$ac_ext
24568 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24569 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24570 if test $ac_cv_var_tzname = yes; then
24572 cat >>confdefs.h <<\_ACEOF
24573 #define HAVE_TZNAME 1
24580 # check tzset(3) exists and works like we expect it to
24581 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24582 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24583 if test "${ac_cv_working_tzset+set}" = set; then
24584 echo $ECHO_N "(cached) $ECHO_C" >&6
24587 if test "$cross_compiling" = yes; then
24588 ac_cv_working_tzset=no
24590 cat >conftest.$ac_ext <<_ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h. */
24597 #include <stdlib.h>
24599 #include <string.h>
24602 extern char *tzname[];
24607 /* Note that we need to ensure that not only does tzset(3)
24608 do 'something' with localtime, but it works as documented
24609 in the library reference and as expected by the test suite.
24610 This includes making sure that tzname is set properly if
24611 tm->tm_zone does not exist since it is the alternative way
24612 of getting timezone info.
24614 Red Hat 6.2 doesn't understand the southern hemisphere
24615 after New Year's Day.
24618 time_t groundhogday = 1044144000; /* GMT-based */
24619 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24621 putenv("TZ=UTC+0");
24623 if (localtime(&groundhogday)->tm_hour != 0)
24626 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24627 if (strcmp(tzname[0], "UTC") ||
24628 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24632 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24634 if (localtime(&groundhogday)->tm_hour != 19)
24637 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24641 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24643 if (localtime(&groundhogday)->tm_hour != 11)
24646 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24650 #if HAVE_STRUCT_TM_TM_ZONE
24651 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24653 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24661 rm -f conftest$ac_exeext
24662 if { (ac_try="$ac_link"
24663 case "(($ac_try" in
24664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24665 *) ac_try_echo
=$ac_try;;
24667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24668 (eval "$ac_link") 2>&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24672 { (case "(($ac_try" in
24673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_try") 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; }; then
24681 ac_cv_working_tzset=yes
24683 echo "$as_me: program exited with status $ac_status" >&5
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.$ac_ext >&5
24687 ( exit $ac_status )
24688 ac_cv_working_tzset=no
24690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24696 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24697 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24698 if test "$ac_cv_working_tzset" = yes
24701 cat >>confdefs.h <<\_ACEOF
24702 #define HAVE_WORKING_TZSET 1
24707 # Look for subsecond timestamps in struct stat
24708 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24709 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24710 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24711 echo $ECHO_N "(cached) $ECHO_C" >&6
24713 cat >conftest.$ac_ext <<_ACEOF
24716 cat confdefs.h >>conftest.$ac_ext
24717 cat >>conftest.$ac_ext <<_ACEOF
24718 /* end confdefs.h. */
24719 #include <sys/stat.h>
24725 st.st_mtim.tv_nsec = 1;
24731 rm -f conftest.$ac_objext
24732 if { (ac_try="$ac_compile"
24733 case "(($ac_try" in
24734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24735 *) ac_try_echo
=$ac_try;;
24737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24738 (eval "$ac_compile") 2>conftest.er1
24740 grep -v '^ *+' conftest.er1
>conftest.err
24742 cat conftest.err
>&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } && {
24745 test -z "$ac_c_werror_flag" ||
24746 test ! -s conftest.err
24747 } && test -s conftest.
$ac_objext; then
24748 ac_cv_stat_tv_nsec
=yes
24750 echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.
$ac_ext >&5
24753 ac_cv_stat_tv_nsec
=no
24756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24759 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24760 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24761 if test "$ac_cv_stat_tv_nsec" = yes
24764 cat >>confdefs.h
<<\_ACEOF
24765 #define HAVE_STAT_TV_NSEC 1
24770 # Look for BSD style subsecond timestamps in struct stat
24771 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24772 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24773 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24776 cat >conftest.
$ac_ext <<_ACEOF
24779 cat confdefs.h
>>conftest.
$ac_ext
24780 cat >>conftest.
$ac_ext <<_ACEOF
24781 /* end confdefs.h. */
24782 #include <sys/stat.h>
24788 st.st_mtimespec.tv_nsec = 1;
24794 rm -f conftest.
$ac_objext
24795 if { (ac_try
="$ac_compile"
24796 case "(($ac_try" in
24797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24798 *) ac_try_echo=$ac_try;;
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801 (eval "$ac_compile") 2>conftest.er1
24803 grep -v '^ *+' conftest.er1 >conftest.err
24805 cat conftest.err >&5
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); } && {
24808 test -z "$ac_c_werror_flag" ||
24809 test ! -s conftest.err
24810 } && test -s conftest.$ac_objext; then
24811 ac_cv_stat_tv_nsec2=yes
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24816 ac_cv_stat_tv_nsec2=no
24819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24822 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24823 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24824 if test "$ac_cv_stat_tv_nsec2" = yes
24827 cat >>confdefs.h <<\_ACEOF
24828 #define HAVE_STAT_TV_NSEC2 1
24833 # On HP/UX 11.0, mvwdelch is a block with a return statement
24834 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24835 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24836 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24837 echo $ECHO_N "(cached) $ECHO_C" >&6
24839 cat >conftest.$ac_ext <<_ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24845 #include <curses.h>
24851 rtn = mvwdelch(0,0,0);
24857 rm -f conftest.$ac_objext
24858 if { (ac_try="$ac_compile"
24859 case "(($ac_try" in
24860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24861 *) ac_try_echo
=$ac_try;;
24863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24864 (eval "$ac_compile") 2>conftest.er1
24866 grep -v '^ *+' conftest.er1
>conftest.err
24868 cat conftest.err
>&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } && {
24871 test -z "$ac_c_werror_flag" ||
24872 test ! -s conftest.err
24873 } && test -s conftest.
$ac_objext; then
24874 ac_cv_mvwdelch_is_expression
=yes
24876 echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.
$ac_ext >&5
24879 ac_cv_mvwdelch_is_expression
=no
24882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24885 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24886 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24888 if test "$ac_cv_mvwdelch_is_expression" = yes
24891 cat >>confdefs.h
<<\_ACEOF
24892 #define MVWDELCH_IS_EXPRESSION 1
24897 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24898 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24899 if test "${ac_cv_window_has_flags+set}" = set; then
24900 echo $ECHO_N "(cached) $ECHO_C" >&6
24902 cat >conftest.
$ac_ext <<_ACEOF
24905 cat confdefs.h
>>conftest.
$ac_ext
24906 cat >>conftest.
$ac_ext <<_ACEOF
24907 /* end confdefs.h. */
24908 #include <curses.h>
24920 rm -f conftest.
$ac_objext
24921 if { (ac_try
="$ac_compile"
24922 case "(($ac_try" in
24923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24924 *) ac_try_echo=$ac_try;;
24926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927 (eval "$ac_compile") 2>conftest.er1
24929 grep -v '^ *+' conftest.er1 >conftest.err
24931 cat conftest.err >&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } && {
24934 test -z "$ac_c_werror_flag" ||
24935 test ! -s conftest.err
24936 } && test -s conftest.$ac_objext; then
24937 ac_cv_window_has_flags=yes
24939 echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.$ac_ext >&5
24942 ac_cv_window_has_flags=no
24945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24949 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24952 if test "$ac_cv_window_has_flags" = yes
24955 cat >>confdefs.h <<\_ACEOF
24956 #define WINDOW_HAS_FLAGS 1
24961 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24962 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24963 cat >conftest.$ac_ext <<_ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h. */
24969 #include <curses.h>
24973 void *x=is_term_resized
24978 rm -f conftest.$ac_objext
24979 if { (ac_try="$ac_compile"
24980 case "(($ac_try" in
24981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24982 *) ac_try_echo
=$ac_try;;
24984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24985 (eval "$ac_compile") 2>conftest.er1
24987 grep -v '^ *+' conftest.er1
>conftest.err
24989 cat conftest.err
>&5
24990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 (exit $ac_status); } && {
24992 test -z "$ac_c_werror_flag" ||
24993 test ! -s conftest.err
24994 } && test -s conftest.
$ac_objext; then
24996 cat >>confdefs.h
<<\_ACEOF
24997 #define HAVE_CURSES_IS_TERM_RESIZED 1
25000 { echo "$as_me:$LINENO: result: yes" >&5
25001 echo "${ECHO_T}yes" >&6; }
25003 echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.
$ac_ext >&5
25006 { echo "$as_me:$LINENO: result: no" >&5
25007 echo "${ECHO_T}no" >&6; }
25011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25013 { echo "$as_me:$LINENO: checking for resize_term" >&5
25014 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25015 cat >conftest.
$ac_ext <<_ACEOF
25018 cat confdefs.h
>>conftest.
$ac_ext
25019 cat >>conftest.
$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 #include <curses.h>
25025 void *x=resize_term
25030 rm -f conftest.
$ac_objext
25031 if { (ac_try
="$ac_compile"
25032 case "(($ac_try" in
25033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25034 *) ac_try_echo=$ac_try;;
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037 (eval "$ac_compile") 2>conftest.er1
25039 grep -v '^ *+' conftest.er1 >conftest.err
25041 cat conftest.err >&5
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); } && {
25044 test -z "$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25046 } && test -s conftest.$ac_objext; then
25048 cat >>confdefs.h <<\_ACEOF
25049 #define HAVE_CURSES_RESIZE_TERM 1
25052 { echo "$as_me:$LINENO: result: yes" >&5
25053 echo "${ECHO_T}yes" >&6; }
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25058 { echo "$as_me:$LINENO: result: no" >&5
25059 echo "${ECHO_T}no" >&6; }
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25065 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25066 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25067 cat >conftest.$ac_ext <<_ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 #include <curses.h>
25082 rm -f conftest.$ac_objext
25083 if { (ac_try="$ac_compile"
25084 case "(($ac_try" in
25085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25086 *) ac_try_echo
=$ac_try;;
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089 (eval "$ac_compile") 2>conftest.er1
25091 grep -v '^ *+' conftest.er1
>conftest.err
25093 cat conftest.err
>&5
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); } && {
25096 test -z "$ac_c_werror_flag" ||
25097 test ! -s conftest.err
25098 } && test -s conftest.
$ac_objext; then
25100 cat >>confdefs.h
<<\_ACEOF
25101 #define HAVE_CURSES_RESIZETERM 1
25104 { echo "$as_me:$LINENO: result: yes" >&5
25105 echo "${ECHO_T}yes" >&6; }
25107 echo "$as_me: failed program was:" >&5
25108 sed 's/^/| /' conftest.
$ac_ext >&5
25110 { echo "$as_me:$LINENO: result: no" >&5
25111 echo "${ECHO_T}no" >&6; }
25115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25117 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25118 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25120 if test -r /dev
/ptmx
25122 { echo "$as_me:$LINENO: result: yes" >&5
25123 echo "${ECHO_T}yes" >&6; }
25125 cat >>confdefs.h
<<\_ACEOF
25126 #define HAVE_DEV_PTMX 1
25130 { echo "$as_me:$LINENO: result: no" >&5
25131 echo "${ECHO_T}no" >&6; }
25134 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25135 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25137 if test -r /dev
/ptc
25139 { echo "$as_me:$LINENO: result: yes" >&5
25140 echo "${ECHO_T}yes" >&6; }
25142 cat >>confdefs.h
<<\_ACEOF
25143 #define HAVE_DEV_PTC 1
25147 { echo "$as_me:$LINENO: result: no" >&5
25148 echo "${ECHO_T}no" >&6; }
25151 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25152 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25153 if test "$cross_compiling" = yes; then
25154 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25155 See \`config.log' for more details." >&5
25156 echo "$as_me: error: cannot run test program while cross compiling
25157 See \`config.log' for more details." >&2;}
25158 { (exit 1); exit 1; }; }
25160 cat >conftest.
$ac_ext <<_ACEOF
25163 cat confdefs.h
>>conftest.
$ac_ext
25164 cat >>conftest.
$ac_ext <<_ACEOF
25165 /* end confdefs.h. */
25167 #include <stddef.h>
25168 #include <string.h>
25170 #ifdef HAVE_SYS_TYPES_H
25171 #include <sys/types.h>
25174 #ifdef HAVE_SSIZE_T
25175 typedef ssize_t Py_ssize_t;
25176 #elif SIZEOF_VOID_P == SIZEOF_LONG
25177 typedef long Py_ssize_t;
25179 typedef int Py_ssize_t;
25186 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25189 if (strcmp(buffer, "123"))
25192 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25195 if (strcmp(buffer, "-123"))
25201 rm -f conftest
$ac_exeext
25202 if { (ac_try
="$ac_link"
25203 case "(($ac_try" in
25204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25205 *) ac_try_echo=$ac_try;;
25207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25208 (eval "$ac_link") 2>&5
25210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25212 { (case "(($ac_try" in
25213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25214 *) ac_try_echo
=$ac_try;;
25216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25217 (eval "$ac_try") 2>&5
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; }; then
25221 { echo "$as_me:$LINENO: result: yes" >&5
25222 echo "${ECHO_T}yes" >&6; }
25224 cat >>confdefs.h
<<\_ACEOF
25225 #define PY_FORMAT_SIZE_T "z"
25229 echo "$as_me: program exited with status $ac_status" >&5
25230 echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.
$ac_ext >&5
25233 ( exit $ac_status )
25234 { echo "$as_me:$LINENO: result: no" >&5
25235 echo "${ECHO_T}no" >&6; }
25237 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25242 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25243 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25244 if test "${ac_cv_type_socklen_t+set}" = set; then
25245 echo $ECHO_N "(cached) $ECHO_C" >&6
25247 cat >conftest.
$ac_ext <<_ACEOF
25250 cat confdefs.h
>>conftest.
$ac_ext
25251 cat >>conftest.
$ac_ext <<_ACEOF
25252 /* end confdefs.h. */
25254 #ifdef HAVE_SYS_TYPES_H
25255 #include <sys/types.h>
25257 #ifdef HAVE_SYS_SOCKET_H
25258 #include <sys/socket.h>
25262 typedef socklen_t ac__type_new_;
25266 if ((ac__type_new_ *) 0)
25268 if (sizeof (ac__type_new_))
25274 rm -f conftest.
$ac_objext
25275 if { (ac_try
="$ac_compile"
25276 case "(($ac_try" in
25277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25278 *) ac_try_echo=$ac_try;;
25280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25281 (eval "$ac_compile") 2>conftest.er1
25283 grep -v '^ *+' conftest.er1 >conftest.err
25285 cat conftest.err >&5
25286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25287 (exit $ac_status); } && {
25288 test -z "$ac_c_werror_flag" ||
25289 test ! -s conftest.err
25290 } && test -s conftest.$ac_objext; then
25291 ac_cv_type_socklen_t=yes
25293 echo "$as_me: failed program was:" >&5
25294 sed 's/^/| /' conftest.$ac_ext >&5
25296 ac_cv_type_socklen_t=no
25299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25301 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25302 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25303 if test $ac_cv_type_socklen_t = yes; then
25307 cat >>confdefs.h <<\_ACEOF
25308 #define socklen_t int
25316 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25318 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25322 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25323 { echo "$as_me:$LINENO: checking for build directories" >&5
25324 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25325 for dir in $SRCDIRS; do
25326 if test ! -d $dir; then
25330 { echo "$as_me:$LINENO: result: done" >&5
25331 echo "${ECHO_T}done" >&6; }
25333 # generate output files
25334 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25336 cat >confcache <<\_ACEOF
25337 # This file is a shell script that caches the results of configure
25338 # tests run on this system so they can be shared between configure
25339 # scripts and configure runs, see configure's option --config-cache.
25340 # It is not useful on other systems. If it contains results you don't
25341 # want to keep, you may remove or edit it.
25343 # config.status only pays attention to the cache file if you give it
25344 # the --recheck option to rerun configure.
25346 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25348 # following values.
25352 # The following way of writing the cache mishandles newlines in values,
25353 # but we know of no workaround that is simple, portable, and efficient.
25354 # So, we kill variables containing newlines.
25355 # Ultrix sh set writes to stderr and can't be redirected directly,
25356 # and sets the high bit in the cache file unless we assign to the vars.
25358 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25359 eval ac_val
=\$
$ac_var
25363 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25364 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25367 _ | IFS | as_nl
) ;; #(
25368 *) $as_unset $ac_var ;;
25374 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25375 *${as_nl}ac_space
=\
*)
25376 # `set' does not quote correctly, so add quotes (double-quote
25377 # substitution turns \\\\ into \\, and sed turns \\ into \).
25380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25383 # `set' quotes correctly as required by POSIX, so do not add quotes.
25384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25393 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25395 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25397 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25398 if test -w "$cache_file"; then
25399 test "x$cache_file" != "x/dev/null" &&
25400 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25401 echo "$as_me: updating cache $cache_file" >&6;}
25402 cat confcache
>$cache_file
25404 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25405 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25410 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25411 # Let make expand exec_prefix.
25412 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25414 DEFS
=-DHAVE_CONFIG_H
25418 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25419 # 1. Remove the extension, and $U if already installed.
25420 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25421 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25422 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25423 # will be set to the directory where LIBOBJS objects are built.
25424 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25425 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25427 LIBOBJS
=$ac_libobjs
25429 LTLIBOBJS
=$ac_ltlibobjs
25433 : ${CONFIG_STATUS=./config.status}
25434 ac_clean_files_save
=$ac_clean_files
25435 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25436 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25437 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25438 cat >$CONFIG_STATUS <<_ACEOF
25440 # Generated by $as_me.
25441 # Run this file to recreate the current configuration.
25442 # Compiler output produced by configure, useful for debugging
25443 # configure, is in config.log if it exists.
25446 ac_cs_recheck=false
25448 SHELL=\${CONFIG_SHELL-$SHELL}
25451 cat >>$CONFIG_STATUS <<\_ACEOF
25452 ## --------------------- ##
25453 ## M4sh Initialization. ##
25454 ## --------------------- ##
25456 # Be more Bourne compatible
25457 DUALCASE
=1; export DUALCASE
# for MKS sh
25458 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25461 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25462 # is contrary to our usage. Disable this feature.
25463 alias -g '${1+"$@"}'='"$@"'
25464 setopt NO_GLOB_SUBST
25466 case `(set -o) 2>/dev/null` in
25467 *posix
*) set -o posix
;;
25476 # Avoid depending upon Character Ranges.
25477 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25478 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25479 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25480 as_cr_digits
='0123456789'
25481 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25483 # The user is always right.
25484 if test "${PATH_SEPARATOR+set}" != set; then
25485 echo "#! /bin/sh" >conf$$.sh
25486 echo "exit 0" >>conf$$.sh
25488 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25496 # Support unset when possible.
25497 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25505 # We need space, tab and new line, in precisely that order. Quoting is
25506 # there to prevent editors from complaining about space-tab.
25507 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25508 # splitting by setting IFS to empty value.)
25513 # Find who we are. Look in the path if we contain no directory separator.
25515 *[\\/]* ) as_myself
=$0 ;;
25516 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25517 for as_dir
in $PATH
25520 test -z "$as_dir" && as_dir
=.
25521 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25527 # We did not find ourselves, most probably we were run as `sh COMMAND'
25528 # in which case we are not to be found in the path.
25529 if test "x$as_myself" = x
; then
25532 if test ! -f "$as_myself"; then
25533 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25534 { (exit 1); exit 1; }
25537 # Work around bugs in pre-3.0 UWIN ksh.
25538 for as_var
in ENV MAIL MAILPATH
25539 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25547 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25548 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25549 LC_TELEPHONE LC_TIME
25551 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25552 eval $as_var=C
; export $as_var
25554 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25558 # Required to use basename.
25559 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25560 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25566 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25567 as_basename
=basename
25573 # Name of the executable.
25574 as_me
=`$as_basename -- "$0" ||
25575 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25576 X"$0" : 'X\(//\)$' \| \
25577 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25579 sed '/^.*\/\([^/][^/]*\)\/*$/{
25598 as_lineno_1
=$LINENO
25599 as_lineno_2
=$LINENO
25600 test "x$as_lineno_1" != "x$as_lineno_2" &&
25601 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25603 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25604 # uniformly replaced by the line number. The first 'sed' inserts a
25605 # line-number line after each line using $LINENO; the second 'sed'
25606 # does the real work. The second script uses 'N' to pair each
25607 # line-number line with the line containing $LINENO, and appends
25608 # trailing '-' during substitution so that $LINENO is not a special
25609 # case at line end.
25610 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25611 # scripts with optimization help from Paolo Bonzini. Blame Lee
25612 # E. McMahon (1931-1989) for sed's syntax. :-)
25624 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25627 ' >$as_me.lineno
&&
25628 chmod +x
"$as_me.lineno" ||
25629 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25630 { (exit 1); exit 1; }; }
25632 # Don't try to exec as it changes $[0], causing all sort of problems
25633 # (the dirname of $[0] is not the place where we might find the
25634 # original and so on. Autoconf is especially sensitive to this).
25635 .
"./$as_me.lineno"
25636 # Exit status is that of the last command.
25641 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25647 ECHO_C
= ECHO_N
= ECHO_T
=
25648 case `echo -n x` in
25650 case `echo 'x\c'` in
25651 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25658 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25659 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25665 rm -f conf$$ conf$$.exe conf$$.
file
25666 if test -d conf$$.dir
; then
25667 rm -f conf$$.dir
/conf$$.
file
25673 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25675 # ... but there are two gotchas:
25676 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25677 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25678 # In both cases, we have to default to `cp -p'.
25679 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25681 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25686 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25687 rmdir conf$$.dir
2>/dev
/null
25689 if mkdir
-p .
2>/dev
/null
; then
25692 test -d .
/-p && rmdir .
/-p
25696 if test -x / >/dev
/null
2>&1; then
25697 as_test_x
='test -x'
25699 if ls -dL / >/dev
/null
2>&1; then
25706 if test -d "$1"; then
25712 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25713 ???[sx]*):;;*)false;;esac;fi
25717 as_executable_p
=$as_test_x
25719 # Sed expression to map a string onto a valid CPP name.
25720 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25722 # Sed expression to map a string onto a valid variable name.
25723 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25728 # Save the log message, to keep $[0] and so on meaningful, and to
25729 # report actual input values of CONFIG_FILES etc. instead of their
25730 # values after options handling.
25732 This file was extended by python $as_me 2.7, which was
25733 generated by GNU Autoconf 2.61. Invocation command line was
25735 CONFIG_FILES = $CONFIG_FILES
25736 CONFIG_HEADERS = $CONFIG_HEADERS
25737 CONFIG_LINKS = $CONFIG_LINKS
25738 CONFIG_COMMANDS = $CONFIG_COMMANDS
25741 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25746 cat >>$CONFIG_STATUS <<_ACEOF
25747 # Files that config.status was made for.
25748 config_files="$ac_config_files"
25749 config_headers="$ac_config_headers"
25753 cat >>$CONFIG_STATUS <<\_ACEOF
25755 \`$as_me' instantiates files from templates according to the
25756 current configuration.
25758 Usage: $0 [OPTIONS] [FILE]...
25760 -h, --help print this help, then exit
25761 -V, --version print version number and configuration settings, then exit
25762 -q, --quiet do not print progress messages
25763 -d, --debug don't remove temporary files
25764 --recheck update $as_me by reconfiguring in the same conditions
25765 --file=FILE[:TEMPLATE]
25766 instantiate the configuration file FILE
25767 --header=FILE[:TEMPLATE]
25768 instantiate the configuration header FILE
25770 Configuration files:
25773 Configuration headers:
25776 Report bugs to <bug-autoconf@gnu.org>."
25779 cat >>$CONFIG_STATUS <<_ACEOF
25781 python config.status 2.7
25782 configured by $0, generated by GNU Autoconf 2.61,
25783 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25785 Copyright (C) 2006 Free Software Foundation, Inc.
25786 This config.status script is free software; the Free Software Foundation
25787 gives unlimited permission to copy, distribute and modify it."
25794 cat >>$CONFIG_STATUS <<\_ACEOF
25795 # If no file are specified by the user, then we need to provide default
25796 # value. By we need to know if files were specified by the user.
25802 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25803 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25814 # Handling of the options.
25815 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25817 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25818 echo "$ac_cs_version"; exit ;;
25819 --debug |
--debu |
--deb |
--de |
--d |
-d )
25821 --file |
--fil |
--fi |
--f )
25823 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25824 ac_need_defaults
=false
;;
25825 --header |
--heade |
--head |
--hea )
25827 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25828 ac_need_defaults
=false
;;
25830 # Conflict between --help and --header
25831 { echo "$as_me: error: ambiguous option: $1
25832 Try \`$0 --help' for more information." >&2
25833 { (exit 1); exit 1; }; };;
25834 --help |
--hel |
-h )
25835 echo "$ac_cs_usage"; exit ;;
25836 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25837 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25840 # This is an error.
25841 -*) { echo "$as_me: error: unrecognized option: $1
25842 Try \`$0 --help' for more information." >&2
25843 { (exit 1); exit 1; }; } ;;
25845 *) ac_config_targets
="$ac_config_targets $1"
25846 ac_need_defaults
=false
;;
25852 ac_configure_extra_args
=
25854 if $ac_cs_silent; then
25856 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25860 cat >>$CONFIG_STATUS <<_ACEOF
25861 if \$ac_cs_recheck; then
25862 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25863 CONFIG_SHELL=$SHELL
25864 export CONFIG_SHELL
25865 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25869 cat >>$CONFIG_STATUS <<\_ACEOF
25873 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25874 ## Running $as_me. ##
25880 cat >>$CONFIG_STATUS <<_ACEOF
25883 cat >>$CONFIG_STATUS <<\_ACEOF
25885 # Handling of arguments.
25886 for ac_config_target
in $ac_config_targets
25888 case $ac_config_target in
25889 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25890 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25891 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25892 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25893 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25894 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25895 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25896 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25898 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25899 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25900 { (exit 1); exit 1; }; };;
25905 # If the user did not use the arguments to specify the items to instantiate,
25906 # then the envvar interface is used. Set only those that are not.
25907 # We use the long form for the default assignment because of an extremely
25908 # bizarre bug on SunOS 4.1.3.
25909 if $ac_need_defaults; then
25910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25914 # Have a temporary directory for convenience. Make it in the build tree
25915 # simply because there is no reason against having it here, and in addition,
25916 # creating and moving files from /tmp can sometimes cause problems.
25917 # Hook for its removal unless debugging.
25918 # Note that there is a small window in which the directory will not be cleaned:
25919 # after its creation but before its name has been assigned to `$tmp'.
25923 trap 'exit_status=$?
25924 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25926 trap '{ (exit 1); exit 1; }' 1 2 13 15
25928 # Create a (secure) tmp directory for tmp files.
25931 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25932 test -n "$tmp" && test -d "$tmp"
25935 tmp
=.
/conf$$
-$RANDOM
25936 (umask 077 && mkdir
"$tmp")
25939 echo "$me: cannot create a temporary directory in ." >&2
25940 { (exit 1); exit 1; }
25944 # Set up the sed scripts for CONFIG_FILES section.
25947 # No need to generate the scripts if there are no CONFIG_FILES.
25948 # This happens for instance when ./config.status config.h
25949 if test -n "$CONFIG_FILES"; then
25956 for ac_last_try
in false false false false false
:; do
25957 cat >conf$
$subs.
sed <<_ACEOF
25958 SHELL!$SHELL$ac_delim
25959 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25960 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25961 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25962 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25963 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25964 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25965 exec_prefix!$exec_prefix$ac_delim
25966 prefix!$prefix$ac_delim
25967 program_transform_name!$program_transform_name$ac_delim
25968 bindir!$bindir$ac_delim
25969 sbindir!$sbindir$ac_delim
25970 libexecdir!$libexecdir$ac_delim
25971 datarootdir!$datarootdir$ac_delim
25972 datadir!$datadir$ac_delim
25973 sysconfdir!$sysconfdir$ac_delim
25974 sharedstatedir!$sharedstatedir$ac_delim
25975 localstatedir!$localstatedir$ac_delim
25976 includedir!$includedir$ac_delim
25977 oldincludedir!$oldincludedir$ac_delim
25978 docdir!$docdir$ac_delim
25979 infodir!$infodir$ac_delim
25980 htmldir!$htmldir$ac_delim
25981 dvidir!$dvidir$ac_delim
25982 pdfdir!$pdfdir$ac_delim
25983 psdir!$psdir$ac_delim
25984 libdir!$libdir$ac_delim
25985 localedir!$localedir$ac_delim
25986 mandir!$mandir$ac_delim
25987 DEFS!$DEFS$ac_delim
25988 ECHO_C!$ECHO_C$ac_delim
25989 ECHO_N!$ECHO_N$ac_delim
25990 ECHO_T!$ECHO_T$ac_delim
25991 LIBS!$LIBS$ac_delim
25992 build_alias!$build_alias$ac_delim
25993 host_alias!$host_alias$ac_delim
25994 target_alias!$target_alias$ac_delim
25995 VERSION!$VERSION$ac_delim
25996 SOVERSION!$SOVERSION$ac_delim
25997 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25998 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25999 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26000 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26001 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26002 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26003 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26004 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26005 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26006 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26007 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26008 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26009 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26010 MACHDEP!$MACHDEP$ac_delim
26011 SGI_ABI!$SGI_ABI$ac_delim
26012 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
26013 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
26014 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26015 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26017 CFLAGS!$CFLAGS$ac_delim
26018 LDFLAGS!$LDFLAGS$ac_delim
26019 CPPFLAGS!$CPPFLAGS$ac_delim
26020 ac_ct_CC!$ac_ct_CC$ac_delim
26021 EXEEXT!$EXEEXT$ac_delim
26022 OBJEXT!$OBJEXT$ac_delim
26024 MAINCC!$MAINCC$ac_delim
26026 GREP!$GREP$ac_delim
26027 EGREP!$EGREP$ac_delim
26028 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26029 LIBRARY!$LIBRARY$ac_delim
26030 LDLIBRARY!$LDLIBRARY$ac_delim
26031 DLLLIBRARY!$DLLLIBRARY$ac_delim
26032 BLDLIBRARY!$BLDLIBRARY$ac_delim
26033 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26034 INSTSONAME!$INSTSONAME$ac_delim
26035 RUNSHARED!$RUNSHARED$ac_delim
26036 LINKCC!$LINKCC$ac_delim
26037 RANLIB!$RANLIB$ac_delim
26039 SVNVERSION!$SVNVERSION$ac_delim
26040 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26041 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26042 INSTALL_DATA!$INSTALL_DATA$ac_delim
26045 BASECFLAGS!$BASECFLAGS$ac_delim
26046 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26047 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26048 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26050 LDSHARED!$LDSHARED$ac_delim
26051 BLDSHARED!$BLDSHARED$ac_delim
26052 CCSHARED!$CCSHARED$ac_delim
26053 LINKFORSHARED!$LINKFORSHARED$ac_delim
26054 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26057 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26059 elif $ac_last_try; then
26060 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26061 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26062 { (exit 1); exit 1; }; }
26064 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26068 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26069 if test -n "$ac_eof"; then
26070 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26071 ac_eof
=`expr $ac_eof + 1`
26074 cat >>$CONFIG_STATUS <<_ACEOF
26075 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26079 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26080 s/^/s,@/; s/!/@,|#_!!_#|/
26083 s/'"$ac_delim"'$/,g/; t
26085 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26086 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26087 rm -f conf$
$subs.
sed
26088 cat >>$CONFIG_STATUS <<_ACEOF
26094 for ac_last_try
in false false false false false
:; do
26095 cat >conf$
$subs.
sed <<_ACEOF
26096 SHLIBS!$SHLIBS$ac_delim
26097 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26098 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26099 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26100 LDLAST!$LDLAST$ac_delim
26101 THREADOBJ!$THREADOBJ$ac_delim
26102 DLINCLDIR!$DLINCLDIR$ac_delim
26103 DYNLOADFILE!$DYNLOADFILE$ac_delim
26104 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26105 TRUE!$TRUE$ac_delim
26106 LIBOBJS!$LIBOBJS$ac_delim
26107 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26108 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26109 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26110 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26111 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26112 LIBM!$LIBM$ac_delim
26113 LIBC!$LIBC$ac_delim
26114 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
26115 THREADHEADERS!$THREADHEADERS$ac_delim
26116 SRCDIRS!$SRCDIRS$ac_delim
26117 LTLIBOBJS!$LTLIBOBJS$ac_delim
26120 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
26122 elif $ac_last_try; then
26123 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26124 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26125 { (exit 1); exit 1; }; }
26127 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26131 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26132 if test -n "$ac_eof"; then
26133 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26134 ac_eof
=`expr $ac_eof + 1`
26137 cat >>$CONFIG_STATUS <<_ACEOF
26138 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26142 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26143 s/^/s,@/; s/!/@,|#_!!_#|/
26146 s/'"$ac_delim"'$/,g/; t
26148 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26149 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26150 rm -f conf$
$subs.
sed
26151 cat >>$CONFIG_STATUS <<_ACEOF
26158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26160 # trailing colons and then remove the whole line if VPATH becomes empty
26161 # (actually we leave an empty line to preserve line numbers).
26162 if test "x$srcdir" = x.
; then
26163 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26164 s/:*\$(srcdir):*/:/
26165 s/:*\${srcdir}:*/:/
26167 s/^\([^=]*=[ ]*\):*/\1/
26173 cat >>$CONFIG_STATUS <<\_ACEOF
26174 fi # test -n "$CONFIG_FILES"
26177 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26180 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26182 case $ac_mode$ac_tag in
26184 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26185 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26186 { (exit 1); exit 1; }; };;
26187 :[FH
]-) ac_tag
=-:-;;
26188 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26205 -) ac_f
="$tmp/stdin";;
26206 *) # Look for the file first in the build tree, then in the source tree
26207 # (if the path is not absolute). The absolute path cannot be DOS-style,
26208 # because $ac_f cannot contain `:'.
26212 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26214 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26215 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26216 { (exit 1); exit 1; }; };;
26218 ac_file_inputs
="$ac_file_inputs $ac_f"
26221 # Let's still pretend it is `configure' which instantiates (i.e., don't
26222 # use $as_me), people would be surprised to read:
26223 # /* config.h. Generated by config.status. */
26224 configure_input
="Generated from "`IFS=:
26225 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26226 if test x
"$ac_file" != x-
; then
26227 configure_input
="$ac_file. $configure_input"
26228 { echo "$as_me:$LINENO: creating $ac_file" >&5
26229 echo "$as_me: creating $ac_file" >&6;}
26233 *:-:* |
*:-) cat >"$tmp/stdin";;
26238 ac_dir
=`$as_dirname -- "$ac_file" ||
26239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26240 X"$ac_file" : 'X\(//\)[^/]' \| \
26241 X"$ac_file" : 'X\(//\)$' \| \
26242 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26248 /^X\(\/\/\)[^/].*/{
26263 -*) as_dir
=.
/$as_dir;;
26265 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26269 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26270 *) as_qdir
=$as_dir;;
26272 as_dirs
="'$as_qdir' $as_dirs"
26273 as_dir
=`$as_dirname -- "$as_dir" ||
26274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26275 X"$as_dir" : 'X\(//\)[^/]' \| \
26276 X"$as_dir" : 'X\(//\)$' \| \
26277 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26283 /^X\(\/\/\)[^/].*/{
26296 test -d "$as_dir" && break
26298 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26299 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26300 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26301 { (exit 1); exit 1; }; }; }
26305 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26307 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26308 # A ".." for each directory in $ac_dir_suffix.
26309 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26310 case $ac_top_builddir_sub in
26311 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26312 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26315 ac_abs_top_builddir
=$ac_pwd
26316 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26317 # for backward compatibility:
26318 ac_top_builddir
=$ac_top_build_prefix
26321 .
) # We are building in place.
26323 ac_top_srcdir
=$ac_top_builddir_sub
26324 ac_abs_top_srcdir
=$ac_pwd ;;
26325 [\\/]* | ?
:[\\/]* ) # Absolute name.
26326 ac_srcdir
=$srcdir$ac_dir_suffix;
26327 ac_top_srcdir
=$srcdir
26328 ac_abs_top_srcdir
=$srcdir ;;
26329 *) # Relative name.
26330 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26331 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26332 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26334 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26344 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26345 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26349 cat >>$CONFIG_STATUS <<\_ACEOF
26350 # If the template does not know about datarootdir, expand it.
26351 # FIXME: This hack should be removed a few years after 2.60.
26352 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26354 case `sed -n '/datarootdir/ {
26363 ' $ac_file_inputs` in
26364 *datarootdir
*) ac_datarootdir_seen
=yes;;
26365 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26366 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26367 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26369 cat >>$CONFIG_STATUS <<_ACEOF
26370 ac_datarootdir_hack='
26371 s&@datadir@&$datadir&g
26372 s&@docdir@&$docdir&g
26373 s&@infodir@&$infodir&g
26374 s&@localedir@&$localedir&g
26375 s&@mandir@&$mandir&g
26376 s&\\\${datarootdir}&$datarootdir&g' ;;
26380 # Neutralize VPATH when `$srcdir' = `.'.
26381 # Shell code in configure.ac might set extrasub.
26382 # FIXME: do we really want to maintain this feature?
26383 cat >>$CONFIG_STATUS <<_ACEOF
26387 cat >>$CONFIG_STATUS <<\_ACEOF
26389 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26390 s
&@configure_input@
&$configure_input&;t t
26391 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26392 s
&@srcdir@
&$ac_srcdir&;t t
26393 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26394 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26395 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26396 s
&@builddir@
&$ac_builddir&;t t
26397 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26398 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26399 s
&@INSTALL@
&$ac_INSTALL&;t t
26400 $ac_datarootdir_hack
26401 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26403 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26404 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26405 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26406 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26407 which seems to be undefined. Please make sure it is defined." >&5
26408 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26409 which seems to be undefined. Please make sure it is defined." >&2;}
26413 -) cat "$tmp/out"; rm -f "$tmp/out";;
26414 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26423 # Transform confdefs.h into a sed script `conftest.defines', that
26424 # substitutes the proper values into config.h.in to produce config.h.
26425 rm -f conftest.defines conftest.
tail
26426 # First, append a space to every undef/define line, to ease matching.
26427 echo 's/$/ /' >conftest.defines
26428 # Then, protect against being on the right side of a sed subst, or in
26429 # an unquoted here document, in config.status. If some macros were
26430 # called several times there might be several #defines for the same
26431 # symbol, which is useless. But do not sort them, since the last
26432 # AC_DEFINE must be honored.
26433 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26434 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26435 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26436 # PARAMS is the parameter list in the macro definition--in most cases, it's
26437 # just an empty string.
26438 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26439 ac_dB
='\\)[ (].*,\\1define\\2'
26447 s/^[ ]*#[ ]*define[ ][ ]*//
26452 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26453 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26454 ' >>conftest.defines
26456 # Remove the space that was appended to ease matching.
26457 # Then replace #undef with comments. This is necessary, for
26458 # example, in the case of _POSIX_SOURCE, which is predefined and required
26459 # on some systems where configure will not decide to define it.
26460 # (The regexp can be short, since the line contains either #define or #undef.)
26462 s,^[ #]*u.*,/* & */,' >>conftest.defines
26464 # Break up conftest.defines:
26465 ac_max_sed_lines
=50
26467 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26468 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26469 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26471 ac_in
='$ac_file_inputs'
26472 ac_out
='"$tmp/out1"'
26473 ac_nxt
='"$tmp/out2"'
26477 # Write a here document:
26478 cat >>$CONFIG_STATUS <<_ACEOF
26479 # First, check the format of the line:
26480 cat >"\$tmp/defines.sed" <<\\CEOF
26481 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26482 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26486 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26488 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26489 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26490 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26491 grep . conftest.
tail >/dev
/null ||
break
26492 rm -f conftest.defines
26493 mv conftest.
tail conftest.defines
26495 rm -f conftest.defines conftest.
tail
26497 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26498 cat >>$CONFIG_STATUS <<\_ACEOF
26499 if test x
"$ac_file" != x-
; then
26500 echo "/* $configure_input */" >"$tmp/config.h"
26501 cat "$ac_result" >>"$tmp/config.h"
26502 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26503 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26504 echo "$as_me: $ac_file is unchanged" >&6;}
26507 mv "$tmp/config.h" $ac_file
26510 echo "/* $configure_input */"
26522 { (exit 0); exit 0; }
26524 chmod +x
$CONFIG_STATUS
26525 ac_clean_files
=$ac_clean_files_save
26528 # configure is writing to config.log, and then calls config.status.
26529 # config.status does its own redirection, appending to config.log.
26530 # Unfortunately, on DOS this fails, as config.log is still kept open
26531 # by configure, so config.status won't be able to write to it; its
26532 # output is simply discarded. So we exec the FD to /dev/null,
26533 # effectively closing config.log, so it can be properly (re)opened and
26534 # appended to by config.status. When coming back to configure, we
26535 # need to make the FD available again.
26536 if test "$no_create" != yes; then
26538 ac_config_status_args
=
26539 test "$silent" = yes &&
26540 ac_config_status_args
="$ac_config_status_args --quiet"
26542 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26544 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26545 # would make configure fail if this is the last instruction.
26546 $ac_cs_success ||
{ (exit 1); exit 1; }
26550 echo "creating Modules/Setup"
26551 if test ! -f Modules
/Setup
26553 cp $srcdir/Modules
/Setup.dist Modules
/Setup
26556 echo "creating Modules/Setup.local"
26557 if test ! -f Modules
/Setup.
local
26559 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
26562 echo "creating Makefile"
26563 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
26564 -s Modules Modules
/Setup.config \
26565 Modules
/Setup.
local Modules
/Setup
26567 case $ac_sys_system in
26569 { echo "$as_me:$LINENO: WARNING:
26571 Support for BeOS is deprecated as of Python 2.6.
26572 See PEP 11 for the gory details.
26574 echo "$as_me: WARNING:
26576 Support for BeOS is deprecated as of Python 2.6.
26577 See PEP 11 for the gory details.
26583 mv config.c Modules