2 # From configure.in Revision: 72445 .
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
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
741 ac_precious_vars
='build_alias
752 # Initialize some variables set by options.
754 ac_init_version
=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name
=s
,x
,x
,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir
='${exec_prefix}/bin'
779 sbindir
='${exec_prefix}/sbin'
780 libexecdir
='${exec_prefix}/libexec'
781 datarootdir
='${prefix}/share'
782 datadir
='${datarootdir}'
783 sysconfdir
='${prefix}/etc'
784 sharedstatedir
='${prefix}/com'
785 localstatedir
='${prefix}/var'
786 includedir
='${prefix}/include'
787 oldincludedir
='/usr/include'
788 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir
='${datarootdir}/info'
794 libdir
='${exec_prefix}/lib'
795 localedir
='${datarootdir}/locale'
796 mandir
='${datarootdir}/man'
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\
$ac_option
810 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
820 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
822 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
825 -build |
--build |
--buil |
--bui |
--bu)
826 ac_prev
=build_alias
;;
827 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
828 build_alias
=$ac_optarg ;;
830 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
831 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
832 ac_prev
=cache_file
;;
833 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
834 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
835 cache_file
=$ac_optarg ;;
838 cache_file
=config.cache
;;
840 -datadir |
--datadir |
--datadi |
--datad)
842 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
843 datadir
=$ac_optarg ;;
845 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
846 |
--dataroo |
--dataro |
--datar)
847 ac_prev
=datarootdir
;;
848 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
849 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
850 datarootdir
=$ac_optarg ;;
852 -disable-* |
--disable-*)
853 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_
$ac_feature=no
;;
861 -docdir |
--docdir |
--docdi |
--doc |
--do)
863 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
866 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
868 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
871 -enable-* |
--enable-*)
872 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_
$ac_feature=\
$ac_optarg ;;
880 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
881 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
882 |
--exec |
--exe |
--ex)
883 ac_prev
=exec_prefix
;;
884 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
885 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
886 |
--exec=* |
--exe=* |
--ex=*)
887 exec_prefix
=$ac_optarg ;;
889 -gas |
--gas |
--ga |
--g)
890 # Obsolete; use --with-gas.
893 -help |
--help |
--hel |
--he |
-h)
895 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
896 ac_init_help
=recursive
;;
897 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
898 ac_init_help
=short
;;
900 -host |
--host |
--hos |
--ho)
901 ac_prev
=host_alias
;;
902 -host=* |
--host=* |
--hos=* |
--ho=*)
903 host_alias
=$ac_optarg ;;
905 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
907 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
909 htmldir
=$ac_optarg ;;
911 -includedir |
--includedir |
--includedi |
--included |
--include \
912 |
--includ |
--inclu |
--incl |
--inc)
913 ac_prev
=includedir
;;
914 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
915 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
916 includedir
=$ac_optarg ;;
918 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
920 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
921 infodir
=$ac_optarg ;;
923 -libdir |
--libdir |
--libdi |
--libd)
925 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
928 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
929 |
--libexe |
--libex |
--libe)
930 ac_prev
=libexecdir
;;
931 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
932 |
--libexe=* |
--libex=* |
--libe=*)
933 libexecdir
=$ac_optarg ;;
935 -localedir |
--localedir |
--localedi |
--localed |
--locale)
937 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
938 localedir
=$ac_optarg ;;
940 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
941 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
942 ac_prev
=localstatedir
;;
943 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
944 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
945 localstatedir
=$ac_optarg ;;
947 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
949 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
953 # Obsolete; use --without-fp.
956 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
957 |
--no-cr |
--no-c |
-n)
960 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
961 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
964 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
965 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
966 |
--oldin |
--oldi |
--old |
--ol |
--o)
967 ac_prev
=oldincludedir
;;
968 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
969 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
970 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
971 oldincludedir
=$ac_optarg ;;
973 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
975 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
978 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
979 |
--program-pre |
--program-pr |
--program-p)
980 ac_prev
=program_prefix
;;
981 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
982 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
983 program_prefix
=$ac_optarg ;;
985 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
986 |
--program-suf |
--program-su |
--program-s)
987 ac_prev
=program_suffix
;;
988 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
989 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
990 program_suffix
=$ac_optarg ;;
992 -program-transform-name |
--program-transform-name \
993 |
--program-transform-nam |
--program-transform-na \
994 |
--program-transform-n |
--program-transform- \
995 |
--program-transform |
--program-transfor \
996 |
--program-transfo |
--program-transf \
997 |
--program-trans |
--program-tran \
998 |
--progr-tra |
--program-tr |
--program-t)
999 ac_prev
=program_transform_name
;;
1000 -program-transform-name=* |
--program-transform-name=* \
1001 |
--program-transform-nam=* |
--program-transform-na=* \
1002 |
--program-transform-n=* |
--program-transform-=* \
1003 |
--program-transform=* |
--program-transfor=* \
1004 |
--program-transfo=* |
--program-transf=* \
1005 |
--program-trans=* |
--program-tran=* \
1006 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1007 program_transform_name
=$ac_optarg ;;
1009 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1011 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1012 pdfdir
=$ac_optarg ;;
1014 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1016 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1019 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1020 |
-silent |
--silent |
--silen |
--sile |
--sil)
1023 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1025 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1027 sbindir
=$ac_optarg ;;
1029 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1030 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1031 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1033 ac_prev
=sharedstatedir
;;
1034 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1035 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1036 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1038 sharedstatedir
=$ac_optarg ;;
1040 -site |
--site |
--sit)
1042 -site=* |
--site=* |
--sit=*)
1045 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1047 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1048 srcdir
=$ac_optarg ;;
1050 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1051 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1052 ac_prev
=sysconfdir
;;
1053 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1054 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1055 sysconfdir
=$ac_optarg ;;
1057 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1058 ac_prev
=target_alias
;;
1059 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1060 target_alias
=$ac_optarg ;;
1062 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1065 -version |
--version |
--versio |
--versi |
--vers |
-V)
1066 ac_init_version
=: ;;
1069 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_
$ac_package=\
$ac_optarg ;;
1077 -without-* |
--without-*)
1078 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_
$ac_package=no
;;
1087 # Obsolete; use --with-x.
1090 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1091 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1092 ac_prev
=x_includes
;;
1093 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1094 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1095 x_includes
=$ac_optarg ;;
1097 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1098 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1099 ac_prev
=x_libraries
;;
1100 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1101 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1102 x_libraries
=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\
$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 if test -n "$ac_prev"; then
1130 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val
=\$
$ac_var
1143 [\\/$
]* | ?
:[\\/]* ) continue;;
1144 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1155 target
=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x
; then
1159 if test "x$build_alias" = x
; then
1160 cross_compiling
=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1169 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1171 test "$silent" = yes && exec 6>/dev
/null
1174 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di
=`ls -di .` &&
1176 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted
=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir
=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1216 ac_srcdir_defaulted
=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1236 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 for ac_var
in $ac_precious_vars; do
1239 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1241 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1252 \`configure' configures python 2.7 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1311 if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive
) echo "Configuration of python 2.7:";;
1318 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1319 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1320 --enable-universalsdk[=SDKDIR
]
1321 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1322 --enable-framework[=INSTALLDIR
]
1323 Build
(MacOSX|Darwin
) framework
1324 --enable-shared disable
/enable building shared python library
1325 --enable-profiling enable C-level code profiling
1326 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1327 --enable-ipv6 Enable ipv6
(with ipv4
) support
1328 --disable-ipv6 Disable ipv6 support
1329 --enable-big-digits[=BITS
]
1330 use big digits
for Python longs
[BITS
=30]
1331 --enable-unicode[=ucs
[24]]
1332 Enable Unicode
strings (default is
yes)
1335 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1336 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1337 --with-universal-archs=ARCH
1338 select architectures
for universal build
("32-bit",
1340 --with-framework-name=FRAMEWORK
1341 specify an alternate name of the framework built
1342 with
--enable-framework
1343 --without-gcc never use gcc
1344 --with-cxx-main=<compiler
>
1345 compile main
() and link python executable with C
++
1347 --with-suffix=.exe
set executable suffix
1348 --with-pydebug build with Py_DEBUG defined
1349 --with-libs='lib1 ...' link against additional libs
1350 --with-system-ffi build _ctypes module using an installed ffi library
1351 --with-dbmliborder=db1
:db2
:...
1352 order to check db backends
for dbm. Valid value is a
1353 colon separated string with the backend names
1354 `ndbm', `gdbm
' and `bdb'.
1355 --with-signal-module disable
/enable signal module
1356 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1357 --with(out
)-threads[=DIRECTORY
]
1358 disable
/enable thread support
1359 --with(out
)-thread[=DIRECTORY
]
1360 deprecated
; use
--with(out
)-threads
1361 --with-pth use GNU pth threading libraries
1362 --with(out
)-doc-strings disable
/enable documentation
strings
1363 --with(out
)-tsc enable
/disable timestamp counter profile
1364 --with(out
)-pymalloc disable
/enable specialized mallocs
1365 --with-wctype-functions use wctype.h functions
1366 --with-fpectl enable SIGFPE catching
1367 --with-libm=STRING math library
1368 --with-libc=STRING C library
1370 Some influential environment variables
:
1371 CC C compiler
command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1374 nonstandard directory
<lib dir
>
1375 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1376 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1377 you have headers
in a nonstandard directory
<include dir
>
1380 Use these variables to override the choices made by
`configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1383 Report bugs to <http://www.python.org/python-bugs>.
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" || continue
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1411 .) # We are building in place.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1435 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1444 python configure 2.7
1445 generated by GNU Autoconf 2.61
1447 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1454 cat >config.log <<_ACEOF
1455 This file contains any messages produced by compilers while
1456 running configure, to aid debugging if configure makes a mistake.
1458 It was created by python $as_me 2.7, which was
1459 generated by GNU Autoconf 2.61. Invocation command line was
1471 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1472 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1473 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1474 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1475 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1477 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1478 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1480 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1481 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1482 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1483 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1484 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1485 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1486 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 test -z "$as_dir" && as_dir=.
1495 echo "PATH: $as_dir"
1511 # Keep a trace of the command line.
1512 # Strip out --no-create and --no-recursion so they do not pile up.
1513 # Strip out --silent because we don't want to record it for future runs.
1514 # Also quote any args containing shell meta-characters.
1515 # Make two passes to allow for proper duplicate-argument suppression.
1519 ac_must_keep_next=false
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1530 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
1537 ac_must_keep_next=false # Got value, back to normal.
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1548 -* ) ac_must_keep_next=true ;;
1551 ac_configure_args="$ac_configure_args '$ac_arg'"
1556 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559 # When interrupted or exit'd, cleanup temporary files, and complete
1560 # config.log. We remove comments because anyway the quotes in there
1561 # would cause problems or look ugly.
1562 # WARNING: Use '\'' to represent an apostrophe within the trap.
1563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564 trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
1570 ## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##
1575 # The following way of writing the cache mishandles newlines in values,
1577 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1578 eval ac_val=\$$ac_var
1582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1586 _ | IFS | as_nl) ;; #(
1587 *) $as_unset $ac_var ;;
1592 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1607 ## ----------------- ##
1608 ## Output variables. ##
1609 ## ----------------- ##
1612 for ac_var in $ac_subst_vars
1614 eval ac_val=\$$ac_var
1616 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 echo "$ac_var='\''$ac_val'\''"
1622 if test -n "$ac_subst_files"; then
1624 ## ------------------- ##
1625 ## File substitutions. ##
1626 ## ------------------- ##
1629 for ac_var in $ac_subst_files
1631 eval ac_val=\$$ac_var
1633 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 echo "$ac_var='\''$ac_val'\''"
1640 if test -s confdefs.h; then
1650 test "$ac_signal" != 0 &&
1651 echo "$as_me: caught signal $ac_signal"
1652 echo "$as_me: exit $exit_status"
1654 rm -f core *.core core.conftest.* &&
1655 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1658 for ac_signal in 1 2 13 15; do
1659 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1663 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1664 rm -f -r conftest* confdefs.h
1666 # Predefined preprocessor variables.
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_NAME "$PACKAGE_NAME"
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_STRING "$PACKAGE_STRING"
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1693 # Let the site file select an alternate cache file if it wants to.
1694 # Prefer explicitly selected file to automatically selected ones.
1695 if test -n "$CONFIG_SITE"; then
1696 set x "$CONFIG_SITE"
1697 elif test "x$prefix" != xNONE; then
1698 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700 set x "$ac_default_prefix/share/config.site" \
1701 "$ac_default_prefix/etc/config.site"
1706 if test -r "$ac_site_file"; then
1707 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
1714 if test -r "$cache_file"; then
1715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 echo "$as_me: loading cache $cache_file" >&6;}
1721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
1726 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 echo "$as_me: creating cache $cache_file" >&6;}
1731 # Check that the precious variables saved in the cache have kept the same
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
1737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
1739 case $ac_old_set,$ac_new_set in
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1742 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1746 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
1751 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1752 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1753 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1754 echo "$as_me: former value
: $ac_old_val" >&2;}
1755 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1756 echo "$as_me: current value
: $ac_new_val" >&2;}
1757 ac_cache_corrupted=:
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1763 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1764 *) ac_arg=$ac_var=$ac_new_val ;;
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1772 if $ac_cache_corrupted; then
1773 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1774 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1775 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1776 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1777 { (exit 1); exit 1; }; }
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 ac_config_headers="$ac_config_headers pyconfig.h"
1816 if test "$prefix" != "/"; then
1817 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1825 # We don't use PACKAGE_ variables, and they cause conflicts
1826 # with other autoconf-based packages that include Python.h
1827 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1829 mv confdefs.h.new confdefs.h
1837 # The later defininition of _XOPEN_SOURCE disables certain features
1838 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1840 cat >>confdefs.h <<\_ACEOF
1841 #define _GNU_SOURCE 1
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1849 cat >>confdefs.h <<\_ACEOF
1850 #define _NETBSD_SOURCE 1
1854 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1855 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1858 cat >>confdefs.h <<\_ACEOF
1859 #define __BSD_VISIBLE 1
1863 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1864 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1866 cat >>confdefs.h <<\_ACEOF
1867 #define _BSD_TYPES 1
1871 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1872 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1875 cat >>confdefs.h <<\_ACEOF
1876 #define _DARWIN_C_SOURCE 1
1881 define_xopen_source=yes
1883 # Arguments passed to configure.
1885 CONFIG_ARGS="$ac_configure_args"
1887 # Check whether --enable-universalsdk was given.
1888 if test "${enable_universalsdk+set}" = set; then
1889 enableval=$enable_universalsdk;
1892 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1898 enable_universalsdk=
1901 UNIVERSALSDK=$enableval
1908 enable_universalsdk=
1917 UNIVERSAL_ARCHS="32-bit"
1918 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1919 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1921 # Check whether --with-universal-archs was given.
1922 if test "${with_universal_archs+set}" = set; then
1923 withval=$with_universal_archs;
1924 { echo "$as_me:$LINENO: result: $withval" >&5
1925 echo "${ECHO_T}$withval" >&6; }
1926 UNIVERSAL_ARCHS="$withval"
1930 { echo "$as_me:$LINENO: result: 32-bit" >&5
1931 echo "${ECHO_T}32-bit" >&6; }
1939 # Check whether --with-framework-name was given.
1940 if test "${with_framework_name+set}" = set; then
1941 withval=$with_framework_name;
1942 PYTHONFRAMEWORK=${withval}
1943 PYTHONFRAMEWORKDIR=${withval}.framework
1944 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1948 PYTHONFRAMEWORK=Python
1949 PYTHONFRAMEWORKDIR=Python.framework
1950 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1954 # Check whether --enable-framework was given.
1955 if test "${enable_framework+set}" = set; then
1956 enableval=$enable_framework;
1959 enableval=/Library/Frameworks
1964 PYTHONFRAMEWORKDIR=no-framework
1965 PYTHONFRAMEWORKPREFIX=
1966 PYTHONFRAMEWORKINSTALLDIR=
1967 FRAMEWORKINSTALLFIRST=
1968 FRAMEWORKINSTALLLAST=
1969 FRAMEWORKALTINSTALLFIRST=
1970 FRAMEWORKALTINSTALLLAST=
1971 if test "x${prefix}" = "xNONE"; then
1972 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1974 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1979 PYTHONFRAMEWORKPREFIX=$enableval
1980 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1981 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1982 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1983 if test "$UNIVERSAL_ARCHS" = "all"
1985 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1986 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1988 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1989 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1992 if test "x${prefix}" = "xNONE" ; then
1993 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1995 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1997 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1999 # Add files for Mac specific code to the list of output
2001 ac_config_files="$ac_config_files Mac/Makefile"
2003 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2005 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2007 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2009 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2016 PYTHONFRAMEWORKDIR=no-framework
2017 PYTHONFRAMEWORKPREFIX=
2018 PYTHONFRAMEWORKINSTALLDIR=
2019 FRAMEWORKINSTALLFIRST=
2020 FRAMEWORKINSTALLLAST=
2021 FRAMEWORKALTINSTALLFIRST=
2022 FRAMEWORKALTINSTALLLAST=
2023 if test "x${prefix}" = "xNONE" ; then
2024 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2026 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2030 if test "$UNIVERSAL_ARCHS" = "all"
2032 FRAMEWORKINSTALLLAST=update4wayuniversal
2033 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2050 ## AC_HELP_STRING(--with-dyld,
2051 ## Use (OpenStep|Rhapsody) dynamic linker))
2053 # Set name for machine-dependent library files
2055 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2056 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2057 if test -z "$MACHDEP"
2059 ac_sys_system=`uname
-s`
2060 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2061 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2062 ac_sys_release=`uname
-v`
2064 ac_sys_release=`uname
-r`
2066 ac_md_system=`echo $ac_sys_system |
2067 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2068 ac_md_release=`echo $ac_sys_release |
2069 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2070 MACHDEP="$ac_md_system$ac_md_release"
2073 cygwin*) MACHDEP="cygwin";;
2074 darwin*) MACHDEP="darwin";;
2075 atheos*) MACHDEP="atheos";;
2076 irix646) MACHDEP="irix6";;
2077 '') MACHDEP="unknown";;
2081 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2082 # disable features if it is defined, without any means to access these
2083 # features as extensions. For these systems, we skip the definition of
2084 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2085 # some feature, make sure there is no alternative way to access this
2086 # feature. Also, when using wildcards, make sure you have verified the
2087 # need for not defining _XOPEN_SOURCE on all systems matching the
2088 # wildcard, and that the wildcard does not include future systems
2089 # (which may remove their limitations).
2090 case $ac_sys_system/$ac_sys_release in
2091 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2092 # even though select is a POSIX function. Reported by J. Ribbens.
2093 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2094 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2095 define_xopen_source=no
2096 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2097 # also defined. This can be overridden by defining _BSD_SOURCE
2098 # As this has a different meaning on Linux, only define it on OpenBSD
2100 cat >>confdefs.h <<\_ACEOF
2101 #define _BSD_SOURCE 1
2105 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2106 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2108 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2109 define_xopen_source=no;;
2110 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2111 # of union __?sigval. Reported by Stuart Bishop.
2113 define_xopen_source=no;;
2114 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2115 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2116 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2117 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2118 define_xopen_source=no;;
2119 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2120 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2122 define_xopen_source=no;;
2123 # On FreeBSD 4, the math functions C89 does not cover are never defined
2124 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2126 define_xopen_source=no;;
2127 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2128 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2129 # identifies itself as Darwin/7.*
2130 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2131 # disables platform specific features beyond repair.
2132 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2133 # has no effect, don't bother defining them
2135 define_xopen_source=no;;
2136 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2137 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2138 # or has another value. By not (re)defining it, the defaults come in place.
2140 define_xopen_source=no;;
2142 if test `uname
-r` -eq 1; then
2143 define_xopen_source=no
2146 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2147 # defining NI_NUMERICHOST.
2149 define_xopen_source=no
2154 if test $define_xopen_source = yes
2156 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2157 # defined precisely as g++ defines it
2158 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2160 case $ac_sys_system/$ac_sys_release in
2161 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2163 cat >>confdefs.h <<\_ACEOF
2164 #define _XOPEN_SOURCE 500
2170 cat >>confdefs.h <<\_ACEOF
2171 #define _XOPEN_SOURCE 600
2177 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2178 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2179 # several APIs are not declared. Since this is also needed in some
2180 # cases for HP-UX, we define it globally.
2181 # except for Solaris 10, where it must not be defined,
2182 # as it implies XPG4.2
2183 case $ac_sys_system/$ac_sys_release in
2188 cat >>confdefs.h <<\_ACEOF
2189 #define _XOPEN_SOURCE_EXTENDED 1
2196 cat >>confdefs.h <<\_ACEOF
2197 #define _POSIX_C_SOURCE 200112L
2204 # SGI compilers allow the specification of the both the ABI and the
2205 # ISA on the command line. Depending on the values of these switches,
2206 # different and often incompatable code will be generated.
2208 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2209 # thus supply support for various ABI/ISA combinations. The MACHDEP
2210 # variable is also adjusted.
2213 if test ! -z "$SGI_ABI"
2216 LDFLAGS="$SGI_ABI $LDFLAGS"
2217 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2219 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2220 echo "${ECHO_T}$MACHDEP" >&6; }
2222 # And add extra plat-mac for darwin
2225 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2226 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2227 if test -z "$EXTRAPLATDIR"
2231 EXTRAPLATDIR="\$(PLATMACDIRS)"
2232 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2240 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2241 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2243 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2244 # it may influence the way we can build extensions, so distutils
2248 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2249 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2251 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2252 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2253 ac_sys_machine=`uname
-m`
2254 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2255 echo "${ECHO_T}$ac_sys_machine" >&6; }
2257 # checks for alternative programs
2259 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2260 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2261 # just to get things to compile and link. Users are free to override OPT
2262 # when running configure or make. The build should not break if they do.
2263 # BASECFLAGS should generally not be messed with, however.
2265 # XXX shouldn't some/most/all of this code be merged with the stuff later
2266 # on that fiddles with OPT and BASECFLAGS?
2267 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2268 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2270 # Check whether --with-gcc was given.
2271 if test "${with_gcc+set}" = set; then
2279 without_gcc=$withval;;
2283 case $ac_sys_system in
2287 case $BE_HOST_CPU in
2291 BASECFLAGS="$BASECFLAGS -export pragma"
2293 LDFLAGS="$LDFLAGS -nodup"
2301 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2302 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2303 { (exit 1); exit 1; }; }
2306 AR="\$(srcdir)/Modules/ar_beos"
2316 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2317 echo "${ECHO_T}$without_gcc" >&6; }
2319 # If the user switches compilers, we can't believe the cache
2320 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2322 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2323 (it is also a good idea to do 'make clean' before compiling)" >&5
2324 echo "$as_me: error: cached CC is different -- throw away $cache_file
2325 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2326 { (exit 1); exit 1; }; }
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 if test -n "$CC"; then
2364 { echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6; }
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2373 if test -z "$ac_cv_prog_CC"; then
2375 # Extract the first word of "gcc", so it can be a program name with args.
2376 set dummy gcc; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_CC="gcc"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6; }
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2411 if test "x$ac_ct_CC" = x; then
2414 case $cross_compiling:$ac_tool_warned in
2416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&5
2419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422 ac_tool_warned=yes ;;
2430 if test -z "$CC"; then
2431 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}cc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="${ac_tool_prefix}cc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2471 if test -z "$CC"; then
2472 # Extract the first word of "cc", so it can be a program name with args.
2473 set dummy cc; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2491 ac_prog_rejected=yes
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 if test $ac_prog_rejected = yes; then
2503 # We found a bogon in the path, so make sure we never use it.
2504 set dummy $ac_cv_prog_CC
2506 if test $# != 0; then
2507 # We chose a different compiler from the bogus one.
2508 # However, it has the same basename, so the bogon will be chosen
2509 # first if we set CC to just the basename; use the full file name.
2511 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 if test -n "$ac_tool_prefix"; then
2529 for ac_prog in cl.exe
2531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 if test -n "$CC"; then
2560 { echo "$as_me:$LINENO: result: $CC" >&5
2561 echo "${ECHO_T}$CC" >&6; }
2563 { echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6; }
2568 test -n "$CC" && break
2571 if test -z "$CC"; then
2573 for ac_prog in cl.exe
2575 # Extract the first word of "$ac_prog", so it can be a program name with args.
2576 set dummy $ac_prog; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if test -n "$ac_ct_CC"; then
2583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_ac_ct_CC="$ac_prog"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2603 if test -n "$ac_ct_CC"; then
2604 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2605 echo "${ECHO_T}$ac_ct_CC" >&6; }
2607 { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2612 test -n "$ac_ct_CC" && break
2615 if test "x$ac_ct_CC" = x; then
2618 case $cross_compiling:$ac_tool_warned in
2620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2621 whose name does not start with the host triplet. If you think this
2622 configuration is useful to you, please write to autoconf@gnu.org." >&5
2623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2626 ac_tool_warned=yes ;;
2635 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2636 See \`config.log
' for more details." >&5
2637 echo "$as_me: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details.
" >&2;}
2639 { (exit 1); exit 1; }; }
2641 # Provide some information about the compiler.
2642 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2643 ac_compiler=`set X $ac_compile; echo $2`
2644 { (ac_try="$ac_compiler --version >&5"
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compiler --version >&5") 2>&5
2652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2653 (exit $ac_status); }
2654 { (ac_try="$ac_compiler -v >&5"
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_compiler -v >&5") 2>&5
2662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2663 (exit $ac_status); }
2664 { (ac_try="$ac_compiler -V >&5"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compiler -V >&5") 2>&5
2672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2673 (exit $ac_status); }
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2690 ac_clean_files_save=$ac_clean_files
2691 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2692 # Try to create an executable without -o first, disregard a.out.
2693 # It will help us diagnose broken compilers, and finding out an intuition
2695 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2696 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2697 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2699 # List of possible output files, starting from the most likely.
2700 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2701 # only as a last resort. b.out is created by i960 compilers.
2702 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2704 # The IRIX 6 linker writes into existing files which may not be
2705 # executable, retaining their permissions. Remove them first so a
2706 # subsequent execution test works.
2708 for ac_file in $ac_files
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2717 if { (ac_try="$ac_link_default"
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_link_default") 2>&5
2725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2726 (exit $ac_status); }; then
2727 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2728 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2729 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2730 # so that the user can short-circuit this test for compilers unknown to
2732 for ac_file in $ac_files ''
2734 test -f "$ac_file" || continue
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2739 # We found the default executable, but exeext='' is most
2743 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2745 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747 # We set ac_cv_exeext here because the later test for it is not
2748 # safe: cross compilers may not add the suffix if given an `-o'
2749 # argument, so we may need to know it at that point already.
2750 # Even if this section looks crufty: it has the advantage of
2757 test "$ac_cv_exeext" = no && ac_cv_exeext=
2763 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2764 echo "${ECHO_T}$ac_file" >&6; }
2765 if test -z "$ac_file"; then
2766 echo "$as_me: failed program was
:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2769 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2770 See \
`config.log' for more details." >&5
2771 echo "$as_me: error: C compiler cannot create executables
2772 See \`config.log
' for more details." >&2;}
2773 { (exit 77); exit 77; }; }
2776 ac_exeext=$ac_cv_exeext
2778 # Check that the compiler produces executables we can run. If not, either
2779 # the compiler is broken, or we cross compile.
2780 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2783 # If not cross compiling, check that we can run a simple program.
2784 if test "$cross_compiling" != yes; then
2785 if { ac_try='.
/$ac_file'
2786 { (case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_try") 2>&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2797 if test "$cross_compiling" = maybe; then
2800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2801 If you meant to cross compile, use \`--host'.
2802 See \
`config.log' for more details." >&5
2803 echo "$as_me: error: cannot run C compiled programs.
2804 If you meant to cross compile, use \`--host'.
2805 See \`config.log' for more details.
" >&2;}
2806 { (exit 1); exit 1; }; }
2810 { echo "$as_me:$LINENO: result
: yes" >&5
2811 echo "${ECHO_T}yes" >&6; }
2813 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2814 ac_clean_files=$ac_clean_files_save
2815 # Check that the compiler produces executables we can run. If not, either
2816 # the compiler is broken, or we cross compile.
2817 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2818 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2819 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2820 echo "${ECHO_T}$cross_compiling" >&6; }
2822 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2823 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2824 if { (ac_try="$ac_link"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_link") 2>&5
2832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2833 (exit $ac_status); }; then
2834 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2835 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2836 # work properly (i.e., refer to `conftest.exe'), while it won't with
2838 for ac_file in conftest.exe conftest conftest.*; do
2839 test -f "$ac_file" || continue
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2849 See \
`config.log' for more details." >&5
2850 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log
' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2855 rm -f conftest$ac_cv_exeext
2856 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2857 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2859 rm -f conftest.$ac_ext
2860 EXEEXT=$ac_cv_exeext
2862 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2863 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2864 if test "${ac_cv_objext+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 cat >conftest.$ac_ext <<_ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2882 rm -f conftest.o conftest.obj
2883 if { (ac_try="$ac_compile"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 for ac_file in conftest.o conftest.obj conftest.*; do
2894 test -f "$ac_file" || continue;
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2897 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2902 echo "$as_me: failed program was:" >&5
2903 sed 's
/^
/|
/' conftest.$ac_ext >&5
2905 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details.
" >&5
2907 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2908 See \
`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2914 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2915 echo "${ECHO_T}$ac_cv_objext" >&6; }
2916 OBJEXT=$ac_cv_objext
2918 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2919 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2920 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2945 *) ac_try_echo
=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>conftest.er1
2950 grep -v '^ *+' conftest.er1
>conftest.err
2952 cat conftest.err
>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } && {
2955 test -z "$ac_c_werror_flag" ||
2956 test ! -s conftest.err
2957 } && test -s conftest.
$ac_objext; then
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.
$ac_ext >&5
2966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2967 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2970 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2971 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2972 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2973 ac_test_CFLAGS
=${CFLAGS+set}
2974 ac_save_CFLAGS
=$CFLAGS
2975 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2976 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2977 if test "${ac_cv_prog_cc_g+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 ac_save_c_werror_flag
=$ac_c_werror_flag
2981 ac_c_werror_flag
=yes
2984 cat >conftest.
$ac_ext <<_ACEOF
2987 cat confdefs.h
>>conftest.
$ac_ext
2988 cat >>conftest.
$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2999 rm -f conftest.
$ac_objext
3000 if { (ac_try
="$ac_compile"
3002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3041 *) ac_try_echo
=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3046 grep -v '^ *+' conftest.er1
>conftest.err
3048 cat conftest.err
>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } && {
3051 test -z "$ac_c_werror_flag" ||
3052 test ! -s conftest.err
3053 } && test -s conftest.
$ac_objext; then
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.
$ac_ext >&5
3059 ac_c_werror_flag
=$ac_save_c_werror_flag
3061 cat >conftest.
$ac_ext <<_ACEOF
3064 cat confdefs.h
>>conftest.
$ac_ext
3065 cat >>conftest.
$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3076 rm -f conftest.
$ac_objext
3077 if { (ac_try
="$ac_compile"
3079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } && {
3090 test -z "$ac_c_werror_flag" ||
3091 test ! -s conftest.err
3092 } && test -s conftest.$ac_objext; then
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3110 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3111 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3112 if test "$ac_test_CFLAGS" = set; then
3113 CFLAGS=$ac_save_CFLAGS
3114 elif test $ac_cv_prog_cc_g = yes; then
3115 if test "$GCC" = yes; then
3121 if test "$GCC" = yes; then
3127 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3128 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3129 if test "${ac_cv_prog_cc_c89+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 ac_cv_prog_cc_c89=no
3134 cat >conftest.$ac_ext <<_ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3142 #include <sys/types.h>
3143 #include <sys/stat.h>
3144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3145 struct buf { int x; };
3146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3147 static char *e (p, i)
3153 static char *f (char * (*g) (char **, int), char **p, ...)
3158 s = g (p, va_arg (v,int));
3163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3164 function prototypes and stuff, but not '\xHH' hex character constants.
3165 These don't provoke an error unfortunately, instead are silently treated
3166 as 'x'. The following induces an error, until -std is added to get
3167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3168 array size at least. It's necessary to write '\x00'==0 to get something
3169 that's true only with -std. */
3170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3172 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3173 inside strings and character constants. */
3175 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3177 int test (int i, double x);
3178 struct s1 {int (*f) (int a);};
3179 struct s2 {int (*f) (double a);};
3180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3191 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3194 CC="$ac_save_CC $ac_arg"
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3199 *) ac_try_echo
=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3204 grep -v '^ *+' conftest.er1
>conftest.err
3206 cat conftest.err
>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.
$ac_objext; then
3212 ac_cv_prog_cc_c89
=$ac_arg
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.
$ac_ext >&5
3220 rm -f core conftest.err conftest.
$ac_objext
3221 test "x$ac_cv_prog_cc_c89" != "xno" && break
3223 rm -f conftest.
$ac_ext
3228 case "x$ac_cv_prog_cc_c89" in
3230 { echo "$as_me:$LINENO: result: none needed" >&5
3231 echo "${ECHO_T}none needed" >&6; } ;;
3233 { echo "$as_me:$LINENO: result: unsupported" >&5
3234 echo "${ECHO_T}unsupported" >&6; } ;;
3236 CC
="$CC $ac_cv_prog_cc_c89"
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3243 ac_cpp
='$CPP $CPPFLAGS'
3244 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3251 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3252 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3254 # Check whether --with-cxx_main was given.
3255 if test "${with_cxx_main+set}" = set; then
3256 withval
=$with_cxx_main;
3259 no
) with_cxx_main
=no
3261 yes) with_cxx_main
=yes
3263 *) with_cxx_main
=yes
3277 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3278 echo "${ECHO_T}$with_cxx_main" >&6; }
3284 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3285 set dummy g
++; ac_word
=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_path_CXX+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 for as_dir
in notfound
3300 test -z "$as_dir" && as_dir
=.
3301 for ac_exec_ext
in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3316 if test -n "$CXX"; then
3317 { echo "$as_me:$LINENO: result: $CXX" >&5
3318 echo "${ECHO_T}$CXX" >&6; }
3320 { echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6; }
3325 cc
) # Extract the first word of "c++", so it can be a program name with args.
3326 set dummy c
++; ac_word
=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_path_CXX+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3338 for as_dir
in notfound
3341 test -z "$as_dir" && as_dir
=.
3342 for ac_exec_ext
in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3357 if test -n "$CXX"; then
3358 { echo "$as_me:$LINENO: result: $CXX" >&5
3359 echo "${ECHO_T}$CXX" >&6; }
3361 { echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6; }
3367 if test "$CXX" = "notfound"
3374 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy
$ac_prog; ac_word
=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_CXX+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if test -n "$CXX"; then
3384 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir
=.
3391 for ac_exec_ext
in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_CXX
="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 if test -n "$CXX"; then
3405 { echo "$as_me:$LINENO: result: $CXX" >&5
3406 echo "${ECHO_T}$CXX" >&6; }
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3413 test -n "$CXX" && break
3415 test -n "$CXX" || CXX
="notfound"
3417 if test "$CXX" = "notfound"
3422 if test "$preset_cxx" != "$CXX"
3424 { echo "$as_me:$LINENO: WARNING:
3426 By default, distutils will build C++ extension modules with \"$CXX\".
3427 If this is not intended, then set CXX on the configure command line.
3429 echo "$as_me: WARNING:
3431 By default, distutils will build C++ extension modules with \"$CXX\".
3432 If this is not intended, then set CXX on the configure command line.
3437 # checks for UNIX variants that set C preprocessor variables
3440 ac_cpp
='$CPP $CPPFLAGS'
3441 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3444 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3445 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3446 # On Suns, sometimes $CPP names a directory.
3447 if test -n "$CPP" && test -d "$CPP"; then
3450 if test -z "$CPP"; then
3451 if test "${ac_cv_prog_CPP+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 # Double quotes because CPP needs to be expanded
3455 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3458 for ac_c_preproc_warn_flag
in '' yes
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
3462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463 # <limits.h> exists even on freestanding compilers.
3464 # On the NeXT, cc -E runs the code through the compiler's parser,
3465 # not just through cpp. "Syntax error" is here to catch this case.
3466 cat >conftest.
$ac_ext <<_ACEOF
3469 cat confdefs.h
>>conftest.
$ac_ext
3470 cat >>conftest.
$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3473 # include <limits.h>
3475 # include <assert.h>
3479 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null && {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Broken: fails on valid input.
3504 rm -f conftest.err conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3519 *) ac_try_echo
=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524 grep -v '^ *+' conftest.er1
>conftest.err
3526 cat conftest.err
>&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev
/null
&& {
3529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3532 # Broken: success on invalid input.
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.
$ac_ext >&5
3538 # Passes both tests.
3543 rm -f conftest.err conftest.
$ac_ext
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.err conftest.
$ac_ext
3548 if $ac_preproc_ok; then
3560 { echo "$as_me:$LINENO: result: $CPP" >&5
3561 echo "${ECHO_T}$CPP" >&6; }
3563 for ac_c_preproc_warn_flag
in '' yes
3565 # Use a header file that comes with gcc, so configuring glibc
3566 # with a fresh cross-compiler works.
3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 # <limits.h> exists even on freestanding compilers.
3569 # On the NeXT, cc -E runs the code through the compiler's parser,
3570 # not just through cpp. "Syntax error" is here to catch this case.
3571 cat >conftest.
$ac_ext <<_ACEOF
3574 cat confdefs.h
>>conftest.
$ac_ext
3575 cat >>conftest.
$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3578 # include <limits.h>
3580 # include <assert.h>
3584 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3592 grep -v '^ *+' conftest.er1 >conftest.err
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } >/dev/null && {
3597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 # Broken: fails on valid input.
3609 rm -f conftest.err conftest.$ac_ext
3611 # OK, works on sane cases. Now check whether nonexistent headers
3612 # can be detected and how.
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <ac_nonexistent.h>
3621 if { (ac_try="$ac_cpp conftest.$ac_ext"
3623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3624 *) ac_try_echo
=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3629 grep -v '^ *+' conftest.er1
>conftest.err
3631 cat conftest.err
>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } >/dev
/null
&& {
3634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3637 # Broken: success on invalid input.
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3643 # Passes both tests.
3648 rm -f conftest.err conftest.
$ac_ext
3651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652 rm -f conftest.err conftest.
$ac_ext
3653 if $ac_preproc_ok; then
3656 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3657 See \`config.log' for more details." >&5
3658 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3659 See \`config.log' for more details." >&2;}
3660 { (exit 1); exit 1; }; }
3664 ac_cpp
='$CPP $CPPFLAGS'
3665 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3670 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3671 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 # Extract the first word of "grep ggrep" to use in msg output
3676 if test -z "$GREP"; then
3677 set dummy
grep ggrep
; ac_prog_name
=$2
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 ac_path_GREP_found
=false
3682 # Loop through the user's path and test for each of PROGNAME-LIST
3683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3684 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3687 test -z "$as_dir" && as_dir
=.
3688 for ac_prog
in grep ggrep
; do
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3691 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3692 # Check for GNU ac_path_GREP and select it if it is found.
3693 # Check for GNU $ac_path_GREP
3694 case `"$ac_path_GREP" --version 2>&1` in
3696 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3699 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 echo 'GREP' >> "conftest.nl"
3706 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3707 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3708 ac_count
=`expr $ac_count + 1`
3709 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_GREP
="$ac_path_GREP"
3712 ac_path_GREP_max
=$ac_count
3714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3717 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3721 $ac_path_GREP_found && break 3
3731 GREP
="$ac_cv_path_GREP"
3732 if test -z "$GREP"; then
3733 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3734 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3735 { (exit 1); exit 1; }; }
3739 ac_cv_path_GREP
=$GREP
3744 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3745 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3746 GREP
="$ac_cv_path_GREP"
3749 { echo "$as_me:$LINENO: checking for egrep" >&5
3750 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3751 if test "${ac_cv_path_EGREP+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3755 then ac_cv_path_EGREP
="$GREP -E"
3757 # Extract the first word of "egrep" to use in msg output
3758 if test -z "$EGREP"; then
3759 set dummy
egrep; ac_prog_name
=$2
3760 if test "${ac_cv_path_EGREP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 ac_path_EGREP_found
=false
3764 # Loop through the user's path and test for each of PROGNAME-LIST
3765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3766 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3769 test -z "$as_dir" && as_dir
=.
3770 for ac_prog
in egrep; do
3771 for ac_exec_ext
in '' $ac_executable_extensions; do
3772 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3773 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3774 # Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776 case `"$ac_path_EGREP" --version 2>&1` in
3778 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3781 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3789 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3790 ac_count
=`expr $ac_count + 1`
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP
="$ac_path_EGREP"
3794 ac_path_EGREP_max
=$ac_count
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3799 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3803 $ac_path_EGREP_found && break 3
3813 EGREP
="$ac_cv_path_EGREP"
3814 if test -z "$EGREP"; then
3815 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3816 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3817 { (exit 1); exit 1; }; }
3821 ac_cv_path_EGREP
=$EGREP
3827 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3828 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3829 EGREP
="$ac_cv_path_EGREP"
3833 { echo "$as_me:$LINENO: checking for AIX" >&5
3834 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3835 cat >conftest.
$ac_ext <<_ACEOF
3838 cat confdefs.h
>>conftest.
$ac_ext
3839 cat >>conftest.
$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3847 $EGREP "yes" >/dev
/null
2>&1; then
3848 { echo "$as_me:$LINENO: result: yes" >&5
3849 echo "${ECHO_T}yes" >&6; }
3850 cat >>confdefs.h
<<\_ACEOF
3851 #define _ALL_SOURCE 1
3855 { echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6; }
3862 # Check for unsupported systems
3863 case $ac_sys_system/$ac_sys_release in
3865 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3866 echo See README
for details.
3871 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3872 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3874 # Check whether --with-suffix was given.
3875 if test "${with_suffix+set}" = set; then
3876 withval
=$with_suffix;
3880 *) EXEEXT
=$withval;;
3884 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3885 echo "${ECHO_T}$EXEEXT" >&6; }
3887 # Test whether we're running on a non-case-sensitive system, in which
3888 # case we give a warning if no ext is given
3890 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3891 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3892 if test ! -d CaseSensitiveTestDir
; then
3893 mkdir CaseSensitiveTestDir
3896 if test -d casesensitivetestdir
3898 { echo "$as_me:$LINENO: result: yes" >&5
3899 echo "${ECHO_T}yes" >&6; }
3902 { echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6; }
3906 rmdir CaseSensitiveTestDir
3911 gcc
) CC
="$CC -D_HAVE_BSDI";;
3915 case $ac_sys_system in
3918 cc|
*/cc
) CC
="$CC -Ae";;
3922 cc
) CC
="$CC -Wl,-Bexport";;
3925 # Some functions have a prototype only with that define, e.g. confstr
3927 cat >>confdefs.h
<<\_ACEOF
3928 #define __EXTENSIONS__ 1
3936 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3937 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3938 if test -z "$LIBRARY"
3940 LIBRARY
='libpython$(VERSION).a'
3942 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3943 echo "${ECHO_T}$LIBRARY" >&6; }
3945 # LDLIBRARY is the name of the library to link against (as opposed to the
3946 # name of the library into which to insert object files). BLDLIBRARY is also
3947 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3948 # is blank as the main program is not linked directly against LDLIBRARY.
3949 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3950 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3951 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3952 # DLLLIBRARY is the shared (i.e., DLL) library.
3954 # RUNSHARED is used to run shared python without installed libraries
3956 # INSTSONAME is the name of the shared library that will be use to install
3957 # on the system - some systems like version suffix, others don't
3964 LDLIBRARY
="$LIBRARY"
3965 BLDLIBRARY
='$(LDLIBRARY)'
3966 INSTSONAME
='$(LDLIBRARY)'
3971 # LINKCC is the command that links the python executable -- default is $(CC).
3972 # If CXX is set, and if it is needed to link a main function that was
3973 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3974 # python might then depend on the C++ runtime
3975 # This is altered for AIX in order to build the export list before
3978 { echo "$as_me:$LINENO: checking LINKCC" >&5
3979 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3980 if test -z "$LINKCC"
3982 LINKCC
='$(PURIFY) $(MAINCC)'
3983 case $ac_sys_system in
3986 if test $ac_sys_release -ge 5 -o \
3987 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3990 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3992 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3994 # qcc must be used because the other compilers do not
3999 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4000 echo "${ECHO_T}$LINKCC" >&6; }
4002 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4003 # make sure we default having it set to "no": this is used by
4004 # distutils.unixccompiler to know if it should add --enable-new-dtags
4005 # to linker command lines, and failing to detect GNU ld simply results
4006 # in the same bahaviour as before.
4008 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4009 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4011 if test "$GCC" = yes; then
4012 ac_prog
=`$CC -print-prog-name=ld`
4014 case `"$ac_prog" -V 2>&1 < /dev/null` in
4020 { echo "$as_me:$LINENO: result: $GNULD" >&5
4021 echo "${ECHO_T}$GNULD" >&6; }
4023 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4024 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4025 # Check whether --enable-shared was given.
4026 if test "${enable_shared+set}" = set; then
4027 enableval
=$enable_shared;
4031 if test -z "$enable_shared"
4033 case $ac_sys_system in
4035 enable_shared
="yes";;
4037 enable_shared
="no";;
4040 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4041 echo "${ECHO_T}$enable_shared" >&6; }
4043 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4044 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4045 # Check whether --enable-profiling was given.
4046 if test "${enable_profiling+set}" = set; then
4047 enableval
=$enable_profiling; ac_save_cc
="$CC"
4049 if test "$cross_compiling" = yes; then
4050 ac_enable_profiling
="no"
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 int main() { return 0; }
4060 rm -f conftest
$ac_exeext
4061 if { (ac_try
="$ac_link"
4063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_link") 2>&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4071 { (case "(($ac_try" in
4072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4073 *) ac_try_echo
=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_try") 2>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_enable_profiling
="yes"
4082 echo "$as_me: program exited with status $ac_status" >&5
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.
$ac_ext >&5
4087 ac_enable_profiling
="no"
4089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4096 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4097 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4099 case "$ac_enable_profiling" in
4101 BASECFLAGS
="-pg $BASECFLAGS"
4102 LDFLAGS
="-pg $LDFLAGS"
4106 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4107 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4109 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4110 # library that we build, but we do not want to link against it (we
4111 # will find it with a -framework option). For this reason there is an
4112 # extra variable BLDLIBRARY against which Python and the extension
4113 # modules are linked, BLDLIBRARY. This is normally the same as
4114 # LDLIBRARY, but empty for MacOSX framework builds.
4115 if test "$enable_framework"
4117 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4118 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4121 BLDLIBRARY
='$(LDLIBRARY)'
4124 # Other platforms follow
4125 if test $enable_shared = "yes"; then
4127 cat >>confdefs.h
<<\_ACEOF
4128 #define Py_ENABLE_SHARED 1
4131 case $ac_sys_system in
4133 LDLIBRARY
='libpython$(VERSION).so'
4136 LDLIBRARY
='libpython$(VERSION).dll.a'
4137 DLLLIBRARY
='libpython$(VERSION).dll'
4140 LDLIBRARY
='libpython$(VERSION).so'
4141 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4142 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4143 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4145 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4146 LDLIBRARY
='libpython$(VERSION).so'
4147 BLDLIBRARY
='-L. -lpython$(VERSION)'
4148 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4149 case $ac_sys_system in
4151 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4154 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4159 LDLIBRARY
='libpython$(VERSION).so'
4162 LDLIBRARY
='libpython$(VERSION).sl'
4165 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4166 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4169 LDLIBRARY
='libpython$(VERSION).so'
4170 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4171 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4174 LDLIBRARY
='libpython$(VERSION).so'
4175 BLDLIBRARY
='-L. -lpython$(VERSION)'
4176 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4179 LDLIBRARY
='libpython$(VERSION).dylib'
4180 BLDLIBRARY
='-L. -lpython$(VERSION)'
4181 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4185 else # shared is disabled
4186 case $ac_sys_system in
4188 BLDLIBRARY
='$(LIBRARY)'
4189 LDLIBRARY
='libpython$(VERSION).dll.a'
4194 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4195 echo "${ECHO_T}$LDLIBRARY" >&6; }
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4199 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$RANLIB"; then
4206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir
=.
4213 for ac_exec_ext
in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 RANLIB
=$ac_cv_prog_RANLIB
4226 if test -n "$RANLIB"; then
4227 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4228 echo "${ECHO_T}$RANLIB" >&6; }
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4236 if test -z "$ac_cv_prog_RANLIB"; then
4237 ac_ct_RANLIB
=$RANLIB
4238 # Extract the first word of "ranlib", so it can be a program name with args.
4239 set dummy ranlib
; ac_word
=$2
4240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if test -n "$ac_ct_RANLIB"; then
4246 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4266 if test -n "$ac_ct_RANLIB"; then
4267 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4268 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4270 { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4274 if test "x$ac_ct_RANLIB" = x
; then
4277 case $cross_compiling:$ac_tool_warned in
4279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4280 whose name does not start with the host triplet. If you think this
4281 configuration is useful to you, please write to autoconf@gnu.org." >&5
4282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4283 whose name does not start with the host triplet. If you think this
4284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4285 ac_tool_warned
=yes ;;
4287 RANLIB
=$ac_ct_RANLIB
4290 RANLIB
="$ac_cv_prog_RANLIB"
4294 for ac_prog
in ar aal
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy
$ac_prog; ac_word
=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_AR+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$AR"; then
4304 ac_cv_prog_AR
="$AR" # Let the user override the test.
4306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir
=.
4311 for ac_exec_ext
in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_AR
="$ac_prog"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 if test -n "$AR"; then
4325 { echo "$as_me:$LINENO: result: $AR" >&5
4326 echo "${ECHO_T}$AR" >&6; }
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4333 test -n "$AR" && break
4335 test -n "$AR" || AR
="ar"
4338 # tweak ARFLAGS only if the user didn't set it on the command line
4340 if test -z "$ARFLAGS"
4346 # Extract the first word of "svnversion", so it can be a program name with args.
4347 set dummy svnversion
; ac_word
=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 if test -n "$SVNVERSION"; then
4354 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4360 test -z "$as_dir" && as_dir
=.
4361 for ac_exec_ext
in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_SVNVERSION
="found"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4374 SVNVERSION
=$ac_cv_prog_SVNVERSION
4375 if test -n "$SVNVERSION"; then
4376 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4377 echo "${ECHO_T}$SVNVERSION" >&6; }
4379 { echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6; }
4384 if test $SVNVERSION = found
4386 SVNVERSION
="svnversion \$(srcdir)"
4388 SVNVERSION
="echo exported"
4393 # install -d does not work on BSDI or HP-UX
4394 if test -z "$INSTALL"
4396 INSTALL
="${srcdir}/install-sh -c"
4400 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4401 if test -f "$ac_dir/install-sh"; then
4403 ac_install_sh
="$ac_aux_dir/install-sh -c"
4405 elif test -f "$ac_dir/install.sh"; then
4407 ac_install_sh
="$ac_aux_dir/install.sh -c"
4409 elif test -f "$ac_dir/shtool"; then
4411 ac_install_sh
="$ac_aux_dir/shtool install -c"
4415 if test -z "$ac_aux_dir"; then
4416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4417 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4418 { (exit 1); exit 1; }; }
4421 # These three variables are undocumented and unsupported,
4422 # and are intended to be withdrawn in a future Autoconf release.
4423 # They can cause serious problems if a builder's source tree is in a directory
4424 # whose full name contains unusual characters.
4425 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4426 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4427 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4430 # Find a good install program. We prefer a C program (faster),
4431 # so one script is as good as another. But avoid the broken or
4432 # incompatible versions:
4433 # SysV /etc/install, /usr/sbin/install
4434 # SunOS /usr/etc/install
4435 # IRIX /sbin/install
4437 # AmigaOS /C/install, which installs bootblocks on floppy discs
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # OS/2's system install, which has a completely different semantic
4442 # ./install, which can be erroneously created by make from ./install.sh.
4443 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4444 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4445 if test -z "$INSTALL"; then
4446 if test "${ac_cv_path_install+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir
=.
4454 # Account for people who put trailing slashes in PATH elements.
4456 .
/ | .
// |
/cC
/* | \
4457 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4458 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4461 # OSF1 and SCO ODT 3.0 have their own names for install.
4462 # Don't use installbsd from OSF since it installs stuff as root
4464 for ac_prog
in ginstall scoinst
install; do
4465 for ac_exec_ext
in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4467 if test $ac_prog = install &&
4468 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4469 # AIX install. It has an incompatible calling convention.
4471 elif test $ac_prog = install &&
4472 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4473 # program-specific install script used by HP pwplus--don't use.
4476 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4489 if test "${ac_cv_path_install+set}" = set; then
4490 INSTALL
=$ac_cv_path_install
4492 # As a last resort, use the slow shell script. Don't cache a
4493 # value for INSTALL within a source directory, because that will
4494 # break other packages using the cache if that directory is
4495 # removed, or if the value is a relative name.
4496 INSTALL
=$ac_install_sh
4499 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4500 echo "${ECHO_T}$INSTALL" >&6; }
4502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4503 # It thinks the first close brace ends the variable substitution.
4504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4508 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4511 # Not every filesystem supports hard links
4513 if test -z "$LN" ; then
4514 case $ac_sys_system in
4516 CYGWIN
*) LN
="ln -s";;
4517 atheos
*) LN
="ln -s";;
4522 # Check for --with-pydebug
4523 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4524 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4526 # Check whether --with-pydebug was given.
4527 if test "${with_pydebug+set}" = set; then
4528 withval
=$with_pydebug;
4529 if test "$withval" != no
4532 cat >>confdefs.h
<<\_ACEOF
4536 { echo "$as_me:$LINENO: result: yes" >&5
4537 echo "${ECHO_T}yes" >&6; };
4539 else { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4543 { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4548 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4549 # merged with this chunk of code?
4551 # Optimizer/debugger flags
4552 # ------------------------
4553 # (The following bit of code is complicated enough - please keep things
4554 # indented properly. Just pretend you're editing Python code. ;-)
4556 # There are two parallel sets of case statements below, one that checks to
4557 # see if OPT was set and one that does BASECFLAGS setting based upon
4558 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4561 # tweak OPT based on compiler and platform, only if the user didn't set
4562 # it on the command line
4568 if test "$CC" != 'g++' ; then
4569 STRICT_PROTO
="-Wstrict-prototypes"
4571 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4572 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4575 case $ac_cv_prog_cc_g in
4577 if test "$Py_DEBUG" = 'true' ; then
4578 # Optimization messes up debuggers, so turn it off for
4580 OPT
="-g -Wall $STRICT_PROTO"
4582 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4586 OPT
="-O3 -Wall $STRICT_PROTO"
4589 case $ac_sys_system in
4590 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4600 # The current (beta) Monterey compiler dies with optimizations
4601 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4602 case $ac_sys_system in
4612 # The -arch flags for universal builds on OSX
4613 UNIVERSAL_ARCH_FLAGS
=
4616 # tweak BASECFLAGS based on compiler and platform
4619 # Python violates C99 rules, by casting between incompatible
4620 # pointer types. GCC may generate bad code as a result of that,
4621 # so use -fno-strict-aliasing if supported.
4622 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4623 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4625 CC
="$CC -fno-strict-aliasing"
4626 if test "$cross_compiling" = yes; then
4627 ac_cv_no_strict_aliasing_ok
=no
4629 cat >conftest.
$ac_ext <<_ACEOF
4632 cat confdefs.h
>>conftest.
$ac_ext
4633 cat >>conftest.
$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 int main() { return 0; }
4637 rm -f conftest
$ac_exeext
4638 if { (ac_try
="$ac_link"
4640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_link") 2>&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4648 { (case "(($ac_try" in
4649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4650 *) ac_try_echo
=$ac_try;;
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_try") 2>&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_no_strict_aliasing_ok
=yes
4659 echo "$as_me: program exited with status $ac_status" >&5
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.
$ac_ext >&5
4664 ac_cv_no_strict_aliasing_ok
=no
4666 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4671 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4672 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4673 if test $ac_cv_no_strict_aliasing_ok = yes
4675 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4678 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4679 # support. Without this, treatment of subnormals doesn't follow
4681 case $ac_sys_machine in
4683 BASECFLAGS
="$BASECFLAGS -mieee"
4687 case $ac_sys_system in
4689 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4691 # is there any other compiler on Darwin besides gcc?
4693 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4694 # used to be here, but non-Apple gcc doesn't accept them.
4697 if test "${enable_universalsdk}"; then
4698 UNIVERSAL_ARCH_FLAGS
=""
4699 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4700 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4703 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4704 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4706 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4707 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4708 ARCH_RUN_32BIT
="arch -i386 -ppc"
4711 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4712 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4713 { (exit 1); exit 1; }; }
4718 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4719 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4720 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4721 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4725 # Calculate the right deployment target for this build.
4727 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4728 if test ${cur_target} '>' 10.2; then
4731 if test "${UNIVERSAL_ARCHS}" = "all"; then
4732 # Ensure that the default platform for a 4-way
4733 # universal build is OSX 10.5, that's the first
4734 # OS release where 4-way builds make sense.
4737 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4739 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4740 # environment with a value that is the same as what we'll use
4741 # in the Makefile to ensure that we'll get the same compiler
4742 # environment during configure and build time.
4743 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4744 export MACOSX_DEPLOYMENT_TARGET
4745 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4749 BASECFLAGS
="$BASECFLAGS -mieee"
4755 case $ac_sys_system in
4756 OpenUNIX
*|UnixWare
*)
4757 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4760 BASECFLAGS
="$BASECFLAGS -ieee -std"
4763 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4769 if test "$Py_DEBUG" = 'true'; then
4775 if test "$ac_arch_flags"
4777 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4780 # disable check for icc since it seems to pass, but generates a warning
4783 ac_cv_opt_olimit_ok
=no
4786 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4787 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4788 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4789 echo $ECHO_N "(cached) $ECHO_C" >&6
4792 CC
="$CC -OPT:Olimit=0"
4793 if test "$cross_compiling" = yes; then
4794 ac_cv_opt_olimit_ok
=no
4796 cat >conftest.
$ac_ext <<_ACEOF
4799 cat confdefs.h
>>conftest.
$ac_ext
4800 cat >>conftest.
$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 int main() { return 0; }
4804 rm -f conftest
$ac_exeext
4805 if { (ac_try
="$ac_link"
4807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811 (eval "$ac_link") 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4815 { (case "(($ac_try" in
4816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4817 *) ac_try_echo
=$ac_try;;
4819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820 (eval "$ac_try") 2>&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_cv_opt_olimit_ok
=yes
4826 echo "$as_me: program exited with status $ac_status" >&5
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.
$ac_ext >&5
4831 ac_cv_opt_olimit_ok
=no
4833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4840 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4841 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4842 if test $ac_cv_opt_olimit_ok = yes; then
4843 case $ac_sys_system in
4844 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4845 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4850 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4854 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4855 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4856 if test "${ac_cv_olimit_ok+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 CC
="$CC -Olimit 1500"
4861 if test "$cross_compiling" = yes; then
4864 cat >conftest.
$ac_ext <<_ACEOF
4867 cat confdefs.h
>>conftest.
$ac_ext
4868 cat >>conftest.
$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 int main() { return 0; }
4872 rm -f conftest
$ac_exeext
4873 if { (ac_try
="$ac_link"
4875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4879 (eval "$ac_link") 2>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4883 { (case "(($ac_try" in
4884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4885 *) ac_try_echo
=$ac_try;;
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_try") 2>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4894 echo "$as_me: program exited with status $ac_status" >&5
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.
$ac_ext >&5
4901 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4908 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4909 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4910 if test $ac_cv_olimit_ok = yes; then
4911 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4915 # Check whether GCC supports PyArg_ParseTuple format
4916 if test "$GCC" = "yes"
4918 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4919 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4921 CFLAGS
="$CFLAGS -Werror"
4922 cat >conftest.
$ac_ext <<_ACEOF
4925 cat confdefs.h
>>conftest.
$ac_ext
4926 cat >>conftest.
$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4939 rm -f conftest.
$ac_objext
4940 if { (ac_try
="$ac_compile"
4942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_compile") 2>conftest.er1
4948 grep -v '^ *+' conftest.er1 >conftest.err
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } && {
4953 test -z "$ac_c_werror_flag" ||
4954 test ! -s conftest.err
4955 } && test -s conftest.$ac_objext; then
4957 cat >>confdefs.h <<\_ACEOF
4958 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4961 { echo "$as_me:$LINENO: result: yes" >&5
4962 echo "${ECHO_T}yes" >&6; }
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4967 { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4976 # On some compilers, pthreads are available without further options
4977 # (e.g. MacOS X). On some of these systems, the compiler will not
4978 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4979 # So we have to see first whether pthreads are available without
4980 # options before we can check whether -Kpthread improves anything.
4981 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4982 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4983 if test "${ac_cv_pthread_is_default+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if test "$cross_compiling" = yes; then
4987 ac_cv_pthread_is_default=no
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4996 #include <pthread.h>
4998 void* routine(void* p){return NULL;}
5002 if(pthread_create(&p,NULL,routine,NULL)!=0)
5004 (void)pthread_detach(p);
5009 rm -f conftest$ac_exeext
5010 if { (ac_try="$ac_link"
5012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5013 *) ac_try_echo
=$ac_try;;
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_link") 2>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5020 { (case "(($ac_try" in
5021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_try") 2>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5030 ac_cv_pthread_is_default=yes
5035 echo "$as_me: program exited with status $ac_status" >&5
5036 echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_cv_pthread_is_default=no
5042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5049 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5050 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5053 if test $ac_cv_pthread_is_default = yes
5057 # -Kpthread, if available, provides the right #defines
5058 # and linker options to make pthread_create available
5059 # Some compilers won't report that they do not support -Kpthread,
5060 # so we need to run a program to see whether it really made the
5061 # function available.
5062 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5063 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5064 if test "${ac_cv_kpthread+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 if test "$cross_compiling" = yes; then
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5079 #include <pthread.h>
5081 void* routine(void* p){return NULL;}
5085 if(pthread_create(&p,NULL,routine,NULL)!=0)
5087 (void)pthread_detach(p);
5092 rm -f conftest$ac_exeext
5093 if { (ac_try="$ac_link"
5095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5096 *) ac_try_echo
=$ac_try;;
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_link") 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5103 { (case "(($ac_try" in
5104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5108 (eval "$ac_try") 2>&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
5114 echo "$as_me: program exited with status $ac_status" >&5
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5128 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5129 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5132 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5134 # -Kthread, if available, provides the right #defines
5135 # and linker options to make pthread_create available
5136 # Some compilers won't report that they do not support -Kthread,
5137 # so we need to run a program to see whether it really made the
5138 # function available.
5139 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5140 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5141 if test "${ac_cv_kthread+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 if test "$cross_compiling" = yes; then
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5156 #include <pthread.h>
5158 void* routine(void* p){return NULL;}
5162 if(pthread_create(&p,NULL,routine,NULL)!=0)
5164 (void)pthread_detach(p);
5169 rm -f conftest$ac_exeext
5170 if { (ac_try="$ac_link"
5172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5173 *) ac_try_echo
=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_link") 2>&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5180 { (case "(($ac_try" in
5181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_try") 2>&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5191 echo "$as_me: program exited with status $ac_status" >&5
5192 echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5205 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5206 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5209 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5211 # -pthread, if available, provides the right #defines
5212 # and linker options to make pthread_create available
5213 # Some compilers won't report that they do not support -pthread,
5214 # so we need to run a program to see whether it really made the
5215 # function available.
5216 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5217 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5218 if test "${ac_cv_thread+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 if test "$cross_compiling" = yes; then
5226 cat >conftest.$ac_ext <<_ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5233 #include <pthread.h>
5235 void* routine(void* p){return NULL;}
5239 if(pthread_create(&p,NULL,routine,NULL)!=0)
5241 (void)pthread_detach(p);
5246 rm -f conftest$ac_exeext
5247 if { (ac_try="$ac_link"
5249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5250 *) ac_try_echo
=$ac_try;;
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_link") 2>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5257 { (case "(($ac_try" in
5258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_try") 2>&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5268 echo "$as_me: program exited with status $ac_status" >&5
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5282 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5283 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5286 # If we have set a CC compiler flag for thread support then
5287 # check if it works for CXX, too.
5291 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5292 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5295 if test "$ac_cv_kpthread" = "yes"
5297 CXX="$CXX -Kpthread"
5298 ac_cv_cxx_thread=yes
5299 elif test "$ac_cv_kthread" = "yes"
5302 ac_cv_cxx_thread=yes
5303 elif test "$ac_cv_pthread" = "yes"
5306 ac_cv_cxx_thread=yes
5309 if test $ac_cv_cxx_thread = yes
5311 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5312 $CXX -c conftest.$ac_ext 2>&5
5313 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5314 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5316 ac_cv_cxx_thread=yes
5322 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5323 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5328 # checks for header files
5329 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5330 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5331 if test "${ac_cv_header_stdc+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 cat >conftest.$ac_ext <<_ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5353 rm -f conftest.$ac_objext
5354 if { (ac_try="$ac_compile"
5356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5357 *) ac_try_echo
=$ac_try;;
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compile") 2>conftest.er1
5362 grep -v '^ *+' conftest.er1
>conftest.err
5364 cat conftest.err
>&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest.
$ac_objext; then
5370 ac_cv_header_stdc
=yes
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.
$ac_ext >&5
5375 ac_cv_header_stdc
=no
5378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5380 if test $ac_cv_header_stdc = yes; then
5381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5382 cat >conftest.
$ac_ext <<_ACEOF
5385 cat confdefs.h
>>conftest.
$ac_ext
5386 cat >>conftest.
$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5392 $EGREP "memchr" >/dev
/null
2>&1; then
5395 ac_cv_header_stdc
=no
5401 if test $ac_cv_header_stdc = yes; then
5402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5403 cat >conftest.
$ac_ext <<_ACEOF
5406 cat confdefs.h
>>conftest.
$ac_ext
5407 cat >>conftest.
$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "free" >/dev
/null
2>&1; then
5416 ac_cv_header_stdc
=no
5422 if test $ac_cv_header_stdc = yes; then
5423 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5424 if test "$cross_compiling" = yes; then
5427 cat >conftest.
$ac_ext <<_ACEOF
5430 cat confdefs.h
>>conftest.
$ac_ext
5431 cat >>conftest.
$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5435 #if ((' ' & 0x0FF) == 0x020)
5436 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5437 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5439 # define ISLOWER(c) \
5440 (('a' <= (c) && (c) <= 'i') \
5441 || ('j' <= (c) && (c) <= 'r') \
5442 || ('s' <= (c) && (c) <= 'z'))
5443 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5451 for (i = 0; i < 256; i++)
5452 if (XOR (islower (i), ISLOWER (i))
5453 || toupper (i) != TOUPPER (i))
5458 rm -f conftest
$ac_exeext
5459 if { (ac_try
="$ac_link"
5461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_link") 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5469 { (case "(($ac_try" in
5470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5471 *) ac_try_echo
=$ac_try;;
5473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5474 (eval "$ac_try") 2>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5480 echo "$as_me: program exited with status $ac_status" >&5
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.
$ac_ext >&5
5485 ac_cv_header_stdc
=no
5487 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5493 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5494 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5495 if test $ac_cv_header_stdc = yes; then
5497 cat >>confdefs.h
<<\_ACEOF
5498 #define STDC_HEADERS 1
5503 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5513 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5514 inttypes.h stdint.h unistd.h
5516 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5519 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 cat >conftest.
$ac_ext <<_ACEOF
5525 cat confdefs.h
>>conftest.
$ac_ext
5526 cat >>conftest.
$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 $ac_includes_default
5530 #include <$ac_header>
5532 rm -f conftest.
$ac_objext
5533 if { (ac_try
="$ac_compile"
5535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_compile") 2>conftest.er1
5541 grep -v '^ *+' conftest.er1 >conftest.err
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && {
5546 test -z "$ac_c_werror_flag" ||
5547 test ! -s conftest.err
5548 } && test -s conftest.$ac_objext; then
5549 eval "$as_ac_Header=yes"
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 eval "$as_ac_Header=no"
5557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 ac_res=`eval echo '${'$as_ac_Header'}'`
5560 { echo "$as_me:$LINENO: result: $ac_res" >&5
5561 echo "${ECHO_T}$ac_res" >&6; }
5562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5563 cat >>confdefs.h <<_ACEOF
5564 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5626 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5628 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5629 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5631 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5632 sys/lock.h sys/mkdev.h sys/modem.h \
5633 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5634 sys/termio.h sys/time.h \
5635 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5636 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5637 bluetooth/bluetooth.h linux/tipc.h
5639 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 ac_res=`eval echo '${'$as_ac_Header'}'`
5647 { echo "$as_me:$LINENO: result: $ac_res" >&5
5648 echo "${ECHO_T}$ac_res" >&6; }
5650 # Is the header compilable?
5651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 $ac_includes_default
5660 #include <$ac_header>
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5666 *) ac_try_echo
=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5671 grep -v '^ *+' conftest.er1
>conftest.err
5673 cat conftest.err
>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.
$ac_objext; then
5679 ac_header_compiler
=yes
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.
$ac_ext >&5
5684 ac_header_compiler
=no
5687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5689 echo "${ECHO_T}$ac_header_compiler" >&6; }
5691 # Is the header present?
5692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5694 cat >conftest.
$ac_ext <<_ACEOF
5697 cat confdefs.h
>>conftest.
$ac_ext
5698 cat >>conftest.
$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 #include <$ac_header>
5702 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5710 grep -v '^ *+' conftest.er1 >conftest.err
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } >/dev/null && {
5715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5716 test ! -s conftest.err
5718 ac_header_preproc=yes
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5723 ac_header_preproc=no
5726 rm -f conftest.err conftest.$ac_ext
5727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5728 echo "${ECHO_T}$ac_header_preproc" >&6; }
5730 # So? What about this header?
5731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5737 ac_header_preproc=yes
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5753 ## ------------------------------------------------ ##
5754 ## Report this to http://www.python.org/python-bugs ##
5755 ## ------------------------------------------------ ##
5757 ) | sed "s/^/$as_me: WARNING: /" >&2
5760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 eval "$as_ac_Header=\$ac_header_preproc"
5767 ac_res=`eval echo '${'$as_ac_Header'}'`
5768 { echo "$as_me:$LINENO: result: $ac_res" >&5
5769 echo "${ECHO_T}$ac_res" >&6; }
5772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5773 cat >>confdefs.h <<_ACEOF
5774 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5787 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5788 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5789 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5790 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 cat >conftest.$ac_ext <<_ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 #include <sys/types.h>
5812 rm -f conftest.$ac_objext
5813 if { (ac_try="$ac_compile"
5815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5816 *) ac_try_echo
=$ac_try;;
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compile") 2>conftest.er1
5821 grep -v '^ *+' conftest.er1
>conftest.err
5823 cat conftest.err
>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.
$ac_objext; then
5829 eval "$as_ac_Header=yes"
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.
$ac_ext >&5
5834 eval "$as_ac_Header=no"
5837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5839 ac_res
=`eval echo '${'$as_ac_Header'}'`
5840 { echo "$as_me:$LINENO: result: $ac_res" >&5
5841 echo "${ECHO_T}$ac_res" >&6; }
5842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5843 cat >>confdefs.h
<<_ACEOF
5844 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5847 ac_header_dirent
=$ac_hdr; break
5851 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5852 if test $ac_header_dirent = dirent.h
; then
5853 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5854 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5855 if test "${ac_cv_search_opendir+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 ac_func_search_save_LIBS
=$LIBS
5859 cat >conftest.
$ac_ext <<_ACEOF
5862 cat confdefs.h
>>conftest.
$ac_ext
5863 cat >>conftest.
$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5866 /* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */
5881 for ac_lib
in '' dir
; do
5882 if test -z "$ac_lib"; then
5883 ac_res
="none required"
5886 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5888 rm -f conftest.
$ac_objext conftest
$ac_exeext
5889 if { (ac_try
="$ac_link"
5891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5892 *) ac_try_echo=$ac_try;;
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_link") 2>conftest.er1
5897 grep -v '^ *+' conftest.er1 >conftest.err
5899 cat conftest.err >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest$ac_exeext &&
5905 $as_test_x conftest$ac_exeext; then
5906 ac_cv_search_opendir=$ac_res
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5916 if test "${ac_cv_search_opendir+set}" = set; then
5920 if test "${ac_cv_search_opendir+set}" = set; then
5923 ac_cv_search_opendir=no
5926 LIBS=$ac_func_search_save_LIBS
5928 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5929 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5930 ac_res=$ac_cv_search_opendir
5931 if test "$ac_res" != no; then
5932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5937 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5938 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5939 if test "${ac_cv_search_opendir+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 ac_func_search_save_LIBS=$LIBS
5943 cat >conftest.$ac_ext <<_ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5950 /* Override any GCC internal prototype to avoid an error.
5951 Use char because int might match the return type of a GCC
5952 builtin and then its argument prototype would still apply. */
5965 for ac_lib in '' x; do
5966 if test -z "$ac_lib"; then
5967 ac_res="none required"
5970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5972 rm -f conftest.$ac_objext conftest$ac_exeext
5973 if { (ac_try="$ac_link"
5975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5976 *) ac_try_echo
=$ac_try;;
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_link") 2>conftest.er1
5981 grep -v '^ *+' conftest.er1
>conftest.err
5983 cat conftest.err
>&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && {
5986 test -z "$ac_c_werror_flag" ||
5987 test ! -s conftest.err
5988 } && test -s conftest
$ac_exeext &&
5989 $as_test_x conftest
$ac_exeext; then
5990 ac_cv_search_opendir
=$ac_res
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.
$ac_ext >&5
5998 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6000 if test "${ac_cv_search_opendir+set}" = set; then
6004 if test "${ac_cv_search_opendir+set}" = set; then
6007 ac_cv_search_opendir
=no
6010 LIBS
=$ac_func_search_save_LIBS
6012 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6013 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6014 ac_res
=$ac_cv_search_opendir
6015 if test "$ac_res" != no
; then
6016 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6022 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6023 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6024 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 cat >conftest.
$ac_ext <<_ACEOF
6030 cat confdefs.h
>>conftest.
$ac_ext
6031 cat >>conftest.
$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 #include <sys/types.h>
6037 return makedev(0, 0);
6042 rm -f conftest.
$ac_objext conftest
$ac_exeext
6043 if { (ac_try
="$ac_link"
6045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_link") 2>conftest.er1
6051 grep -v '^ *+' conftest.er1 >conftest.err
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && {
6056 test -z "$ac_c_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest$ac_exeext &&
6059 $as_test_x conftest$ac_exeext; then
6060 ac_cv_header_sys_types_h_makedev=yes
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_cv_header_sys_types_h_makedev=no
6068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6069 conftest$ac_exeext conftest.$ac_ext
6072 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6073 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6075 if test $ac_cv_header_sys_types_h_makedev = no; then
6076 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6077 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6078 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6079 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6083 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6085 # Is the header compilable?
6086 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6087 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6088 cat >conftest.$ac_ext <<_ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 $ac_includes_default
6095 #include <sys/mkdev.h>
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6101 *) ac_try_echo
=$ac_try;;
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compile") 2>conftest.er1
6106 grep -v '^ *+' conftest.er1
>conftest.err
6108 cat conftest.err
>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } && {
6111 test -z "$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6113 } && test -s conftest.
$ac_objext; then
6114 ac_header_compiler
=yes
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.
$ac_ext >&5
6119 ac_header_compiler
=no
6122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6124 echo "${ECHO_T}$ac_header_compiler" >&6; }
6126 # Is the header present?
6127 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6128 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6129 cat >conftest.
$ac_ext <<_ACEOF
6132 cat confdefs.h
>>conftest.
$ac_ext
6133 cat >>conftest.
$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 #include <sys/mkdev.h>
6137 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6145 grep -v '^ *+' conftest.er1 >conftest.err
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } >/dev/null && {
6150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6151 test ! -s conftest.err
6153 ac_header_preproc=yes
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ac_header_preproc=no
6161 rm -f conftest.err conftest.$ac_ext
6162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6163 echo "${ECHO_T}$ac_header_preproc" >&6; }
6165 # So? What about this header?
6166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6168 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6169 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6171 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6172 ac_header_preproc=yes
6175 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6176 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6177 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6178 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6180 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6181 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6182 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6184 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6186 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6188 ## ------------------------------------------------ ##
6189 ## Report this to http://www.python.org/python-bugs ##
6190 ## ------------------------------------------------ ##
6192 ) | sed "s/^/$as_me: WARNING: /" >&2
6195 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6196 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6197 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6202 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6203 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6206 if test $ac_cv_header_sys_mkdev_h = yes; then
6208 cat >>confdefs.h <<\_ACEOF
6209 #define MAJOR_IN_MKDEV 1
6216 if test $ac_cv_header_sys_mkdev_h = no; then
6217 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6218 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6219 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6220 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6224 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6226 # Is the header compilable?
6227 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6228 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 $ac_includes_default
6236 #include <sys/sysmacros.h>
6238 rm -f conftest.$ac_objext
6239 if { (ac_try="$ac_compile"
6241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6242 *) ac_try_echo
=$ac_try;;
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_compile") 2>conftest.er1
6247 grep -v '^ *+' conftest.er1
>conftest.err
6249 cat conftest.err
>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } && {
6252 test -z "$ac_c_werror_flag" ||
6253 test ! -s conftest.err
6254 } && test -s conftest.
$ac_objext; then
6255 ac_header_compiler
=yes
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.
$ac_ext >&5
6260 ac_header_compiler
=no
6263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6265 echo "${ECHO_T}$ac_header_compiler" >&6; }
6267 # Is the header present?
6268 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6269 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6270 cat >conftest.
$ac_ext <<_ACEOF
6273 cat confdefs.h
>>conftest.
$ac_ext
6274 cat >>conftest.
$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #include <sys/sysmacros.h>
6278 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } >/dev/null && {
6291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6294 ac_header_preproc=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6299 ac_header_preproc=no
6302 rm -f conftest.err conftest.$ac_ext
6303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6304 echo "${ECHO_T}$ac_header_preproc" >&6; }
6306 # So? What about this header?
6307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6309 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6310 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6312 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6313 ac_header_preproc=yes
6316 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6317 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6318 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6319 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6320 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6321 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6322 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6323 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6324 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6325 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6326 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6327 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6329 ## ------------------------------------------------ ##
6330 ## Report this to http://www.python.org/python-bugs ##
6331 ## ------------------------------------------------ ##
6333 ) | sed "s/^/$as_me: WARNING: /" >&2
6336 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6337 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6338 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6343 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6344 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6347 if test $ac_cv_header_sys_sysmacros_h = yes; then
6349 cat >>confdefs.h <<\_ACEOF
6350 #define MAJOR_IN_SYSMACROS 1
6360 # On Solaris, term.h requires curses.h
6362 for ac_header in term.h
6364 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 cat >conftest.$ac_ext <<_ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6377 #ifdef HAVE_CURSES_H
6382 #include <$ac_header>
6384 rm -f conftest.$ac_objext
6385 if { (ac_try="$ac_compile"
6387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6388 *) ac_try_echo
=$ac_try;;
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_compile") 2>conftest.er1
6393 grep -v '^ *+' conftest.er1
>conftest.err
6395 cat conftest.err
>&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.
$ac_objext; then
6401 eval "$as_ac_Header=yes"
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.
$ac_ext >&5
6406 eval "$as_ac_Header=no"
6409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6411 ac_res
=`eval echo '${'$as_ac_Header'}'`
6412 { echo "$as_me:$LINENO: result: $ac_res" >&5
6413 echo "${ECHO_T}$ac_res" >&6; }
6414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6415 cat >>confdefs.h
<<_ACEOF
6416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6424 # On Linux, netlink.h requires asm/types.h
6426 for ac_header
in linux
/netlink.h
6428 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6431 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 cat >conftest.
$ac_ext <<_ACEOF
6437 cat confdefs.h
>>conftest.
$ac_ext
6438 cat >>conftest.
$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6441 #ifdef HAVE_ASM_TYPES_H
6442 #include <asm/types.h>
6444 #ifdef HAVE_SYS_SOCKET_H
6445 #include <sys/socket.h>
6449 #include <$ac_header>
6451 rm -f conftest.
$ac_objext
6452 if { (ac_try
="$ac_compile"
6454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6460 grep -v '^ *+' conftest.er1 >conftest.err
6462 cat conftest.err >&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.$ac_objext; then
6468 eval "$as_ac_Header=yes"
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.$ac_ext >&5
6473 eval "$as_ac_Header=no"
6476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6478 ac_res=`eval echo '${'$as_ac_Header'}'`
6479 { echo "$as_me:$LINENO: result: $ac_res" >&5
6480 echo "${ECHO_T}$ac_res" >&6; }
6481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6491 # checks for typedefs
6493 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6494 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6495 cat >conftest.$ac_ext <<_ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6505 $EGREP "clock_t" >/dev/null 2>&1; then
6510 cat >>confdefs.h <<\_ACEOF
6511 #define clock_t long
6518 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6519 echo "${ECHO_T}$was_it_defined" >&6; }
6521 # Check whether using makedev requires defining _OSF_SOURCE
6522 { echo "$as_me:$LINENO: checking for makedev" >&5
6523 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6524 cat >conftest.$ac_ext <<_ACEOF
6527 cat confdefs.h >>conftest.$ac_ext
6528 cat >>conftest.$ac_ext <<_ACEOF
6529 /* end confdefs.h. */
6530 #include <sys/types.h>
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (ac_try="$ac_link"
6542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6543 *) ac_try_echo
=$ac_try;;
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_link") 2>conftest.er1
6548 grep -v '^ *+' conftest.er1
>conftest.err
6550 cat conftest.err
>&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest
$ac_exeext &&
6556 $as_test_x conftest
$ac_exeext; then
6557 ac_cv_has_makedev
=yes
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.
$ac_ext >&5
6562 ac_cv_has_makedev
=no
6565 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6566 conftest
$ac_exeext conftest.
$ac_ext
6567 if test "$ac_cv_has_makedev" = "no"; then
6568 # we didn't link, try if _OSF_SOURCE will allow us to link
6569 cat >conftest.
$ac_ext <<_ACEOF
6572 cat confdefs.h
>>conftest.
$ac_ext
6573 cat >>conftest.
$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6576 #define _OSF_SOURCE 1
6577 #include <sys/types.h>
6587 rm -f conftest.
$ac_objext conftest
$ac_exeext
6588 if { (ac_try
="$ac_link"
6590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_link") 2>conftest.er1
6596 grep -v '^ *+' conftest.er1 >conftest.err
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } && {
6601 test -z "$ac_c_werror_flag" ||
6602 test ! -s conftest.err
6603 } && test -s conftest$ac_exeext &&
6604 $as_test_x conftest$ac_exeext; then
6605 ac_cv_has_makedev=yes
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6610 ac_cv_has_makedev=no
6613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6614 conftest$ac_exeext conftest.$ac_ext
6615 if test "$ac_cv_has_makedev" = "yes"; then
6617 cat >>confdefs.h <<\_ACEOF
6618 #define _OSF_SOURCE 1
6623 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6624 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6625 if test "$ac_cv_has_makedev" = "yes"; then
6627 cat >>confdefs.h <<\_ACEOF
6628 #define HAVE_MAKEDEV 1
6633 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6634 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6635 # defined, but the compiler does not support pragma redefine_extname,
6636 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6637 # structures (such as rlimit64) without declaring them. As a
6638 # work-around, disable LFS on such configurations
6641 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6642 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6643 cat >conftest.$ac_ext <<_ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6650 #define _LARGEFILE_SOURCE 1
6651 #define _FILE_OFFSET_BITS 64
6652 #include <sys/resource.h>
6662 rm -f conftest.$ac_objext
6663 if { (ac_try="$ac_compile"
6665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6666 *) ac_try_echo
=$ac_try;;
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
6671 grep -v '^ *+' conftest.er1
>conftest.err
6673 cat conftest.err
>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && {
6676 test -z "$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 } && test -s conftest.
$ac_objext; then
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.
$ac_ext >&5
6687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6688 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6689 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6690 if test "$sol_lfs_bug" = "yes"; then
6694 if test "$use_lfs" = "yes"; then
6695 # Two defines needed to enable largefile support on various platforms
6696 # These may affect some typedefs
6698 cat >>confdefs.h
<<\_ACEOF
6699 #define _LARGEFILE_SOURCE 1
6703 cat >>confdefs.h
<<\_ACEOF
6704 #define _FILE_OFFSET_BITS 64
6709 # Add some code to confdefs.h so that the test for off_t works on SCO
6710 cat >> confdefs.h
<<\EOF
6716 # Type availability checks
6717 { echo "$as_me:$LINENO: checking for mode_t" >&5
6718 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6719 if test "${ac_cv_type_mode_t+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 cat >conftest.
$ac_ext <<_ACEOF
6725 cat confdefs.h
>>conftest.
$ac_ext
6726 cat >>conftest.
$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 $ac_includes_default
6729 typedef mode_t ac__type_new_;
6733 if ((ac__type_new_ *) 0)
6735 if (sizeof (ac__type_new_))
6741 rm -f conftest.
$ac_objext
6742 if { (ac_try
="$ac_compile"
6744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_compile") 2>conftest.er1
6750 grep -v '^ *+' conftest.er1 >conftest.err
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && {
6755 test -z "$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6757 } && test -s conftest.$ac_objext; then
6758 ac_cv_type_mode_t=yes
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 ac_cv_type_mode_t=no
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6769 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6770 if test $ac_cv_type_mode_t = yes; then
6774 cat >>confdefs.h <<_ACEOF
6780 { echo "$as_me:$LINENO: checking for off_t" >&5
6781 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6782 if test "${ac_cv_type_off_t+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 cat >conftest.$ac_ext <<_ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 $ac_includes_default
6792 typedef off_t ac__type_new_;
6796 if ((ac__type_new_ *) 0)
6798 if (sizeof (ac__type_new_))
6804 rm -f conftest.$ac_objext
6805 if { (ac_try="$ac_compile"
6807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6808 *) ac_try_echo
=$ac_try;;
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_compile") 2>conftest.er1
6813 grep -v '^ *+' conftest.er1
>conftest.err
6815 cat conftest.err
>&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } && {
6818 test -z "$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 } && test -s conftest.
$ac_objext; then
6821 ac_cv_type_off_t
=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.
$ac_ext >&5
6829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6831 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6832 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6833 if test $ac_cv_type_off_t = yes; then
6837 cat >>confdefs.h
<<_ACEOF
6838 #define off_t long int
6843 { echo "$as_me:$LINENO: checking for pid_t" >&5
6844 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6845 if test "${ac_cv_type_pid_t+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 cat >conftest.
$ac_ext <<_ACEOF
6851 cat confdefs.h
>>conftest.
$ac_ext
6852 cat >>conftest.
$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 $ac_includes_default
6855 typedef pid_t ac__type_new_;
6859 if ((ac__type_new_ *) 0)
6861 if (sizeof (ac__type_new_))
6867 rm -f conftest.
$ac_objext
6868 if { (ac_try
="$ac_compile"
6870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6876 grep -v '^ *+' conftest.er1 >conftest.err
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 ac_cv_type_pid_t=yes
6886 echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6895 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6896 if test $ac_cv_type_pid_t = yes; then
6900 cat >>confdefs.h <<_ACEOF
6906 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6907 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6908 if test "${ac_cv_type_signal+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <sys/types.h>
6923 return *(signal (0, 0)) (0) == 1;
6928 rm -f conftest.$ac_objext
6929 if { (ac_try="$ac_compile"
6931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6932 *) ac_try_echo
=$ac_try;;
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_compile") 2>conftest.er1
6937 grep -v '^ *+' conftest.er1
>conftest.err
6939 cat conftest.err
>&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest.
$ac_objext; then
6945 ac_cv_type_signal
=int
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.
$ac_ext >&5
6950 ac_cv_type_signal
=void
6953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6955 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6956 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6958 cat >>confdefs.h
<<_ACEOF
6959 #define RETSIGTYPE $ac_cv_type_signal
6963 { echo "$as_me:$LINENO: checking for size_t" >&5
6964 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6965 if test "${ac_cv_type_size_t+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 cat >conftest.
$ac_ext <<_ACEOF
6971 cat confdefs.h
>>conftest.
$ac_ext
6972 cat >>conftest.
$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6975 typedef size_t ac__type_new_;
6979 if ((ac__type_new_ *) 0)
6981 if (sizeof (ac__type_new_))
6987 rm -f conftest.
$ac_objext
6988 if { (ac_try
="$ac_compile"
6990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1 >conftest.err
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 ac_cv_type_size_t=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_type_size_t=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7015 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7016 if test $ac_cv_type_size_t = yes; then
7020 cat >>confdefs.h <<_ACEOF
7021 #define size_t unsigned int
7026 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7027 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7028 if test "${ac_cv_type_uid_t+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <sys/types.h>
7040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041 $EGREP "uid_t" >/dev/null 2>&1; then
7042 ac_cv_type_uid_t=yes
7049 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7050 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7051 if test $ac_cv_type_uid_t = no; then
7053 cat >>confdefs.h <<\_ACEOF
7058 cat >>confdefs.h <<\_ACEOF
7065 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7066 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7067 if test "${ac_cv_c_uint32_t+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7072 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7073 cat >conftest.$ac_ext <<_ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 $ac_includes_default
7083 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7090 rm -f conftest.$ac_objext
7091 if { (ac_try="$ac_compile"
7093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7094 *) ac_try_echo
=$ac_try;;
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_compile") 2>conftest.er1
7099 grep -v '^ *+' conftest.er1
>conftest.err
7101 cat conftest.err
>&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest.
$ac_objext; then
7108 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7109 *) ac_cv_c_uint32_t
=$ac_type ;;
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.
$ac_ext >&5
7119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7120 test "$ac_cv_c_uint32_t" != no
&& break
7123 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7124 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7125 case $ac_cv_c_uint32_t in #(
7129 cat >>confdefs.h
<<\_ACEOF
7134 cat >>confdefs.h
<<_ACEOF
7135 #define uint32_t $ac_cv_c_uint32_t
7141 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7142 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7143 if test "${ac_cv_c_uint64_t+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7148 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7149 cat >conftest.
$ac_ext <<_ACEOF
7152 cat confdefs.h
>>conftest.
$ac_ext
7153 cat >>conftest.
$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7159 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7166 rm -f conftest.
$ac_objext
7167 if { (ac_try
="$ac_compile"
7169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173 (eval "$ac_compile") 2>conftest.er1
7175 grep -v '^ *+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest.$ac_objext; then
7184 uint64_t) ac_cv_c_uint64_t=yes ;;
7185 *) ac_cv_c_uint64_t=$ac_type ;;
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 test "$ac_cv_c_uint64_t" != no && break
7199 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7200 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7201 case $ac_cv_c_uint64_t in #(
7205 cat >>confdefs.h <<\_ACEOF
7210 cat >>confdefs.h <<_ACEOF
7211 #define uint64_t $ac_cv_c_uint64_t
7217 { echo "$as_me:$LINENO: checking for int32_t" >&5
7218 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7219 if test "${ac_cv_c_int32_t+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 for ac_type in 'int32_t' 'int' 'long int' \
7224 'long long int' 'short int' 'signed char'; do
7225 cat >conftest.$ac_ext <<_ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 $ac_includes_default
7235 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7242 rm -f conftest.$ac_objext
7243 if { (ac_try="$ac_compile"
7245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7246 *) ac_try_echo
=$ac_try;;
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7251 grep -v '^ *+' conftest.er1
>conftest.err
7253 cat conftest.err
>&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.
$ac_objext; then
7259 cat >conftest.
$ac_ext <<_ACEOF
7262 cat confdefs.h
>>conftest.
$ac_ext
7263 cat >>conftest.
$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 $ac_includes_default
7269 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7270 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7277 rm -f conftest.
$ac_objext
7278 if { (ac_try
="$ac_compile"
7280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_compile") 2>conftest.er1
7286 grep -v '^ *+' conftest.er1 >conftest.err
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && {
7291 test -z "$ac_c_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest.$ac_objext; then
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7300 int32_t) ac_cv_c_int32_t=yes ;;
7301 *) ac_cv_c_int32_t=$ac_type ;;
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 test "$ac_cv_c_int32_t" != no && break
7318 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7319 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7320 case $ac_cv_c_int32_t in #(
7324 cat >>confdefs.h <<_ACEOF
7325 #define int32_t $ac_cv_c_int32_t
7331 { echo "$as_me:$LINENO: checking for int64_t" >&5
7332 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7333 if test "${ac_cv_c_int64_t+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 for ac_type in 'int64_t' 'int' 'long int' \
7338 'long long int' 'short int' 'signed char'; do
7339 cat >conftest.$ac_ext <<_ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7349 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7360 *) ac_try_echo
=$ac_try;;
7362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7363 (eval "$ac_compile") 2>conftest.er1
7365 grep -v '^ *+' conftest.er1
>conftest.err
7367 cat conftest.err
>&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest.
$ac_objext; then
7373 cat >conftest.
$ac_ext <<_ACEOF
7376 cat confdefs.h
>>conftest.
$ac_ext
7377 cat >>conftest.
$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 $ac_includes_default
7383 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7384 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7391 rm -f conftest.
$ac_objext
7392 if { (ac_try
="$ac_compile"
7394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_compile") 2>conftest.er1
7400 grep -v '^ *+' conftest.er1 >conftest.err
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7414 int64_t) ac_cv_c_int64_t=yes ;;
7415 *) ac_cv_c_int64_t=$ac_type ;;
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 test "$ac_cv_c_int64_t" != no && break
7432 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7433 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7434 case $ac_cv_c_int64_t in #(
7438 cat >>confdefs.h <<_ACEOF
7439 #define int64_t $ac_cv_c_int64_t
7444 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7445 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7446 if test "${ac_cv_type_ssize_t+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 cat >conftest.$ac_ext <<_ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7455 $ac_includes_default
7456 typedef ssize_t ac__type_new_;
7460 if ((ac__type_new_ *) 0)
7462 if (sizeof (ac__type_new_))
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7472 *) ac_try_echo
=$ac_try;;
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7477 grep -v '^ *+' conftest.er1
>conftest.err
7479 cat conftest.err
>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.
$ac_objext; then
7485 ac_cv_type_ssize_t
=yes
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.
$ac_ext >&5
7490 ac_cv_type_ssize_t
=no
7493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7495 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7496 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7497 if test $ac_cv_type_ssize_t = yes; then
7499 cat >>confdefs.h
<<\_ACEOF
7500 #define HAVE_SSIZE_T 1
7506 # Sizes of various common basic types
7507 # ANSI C requires sizeof(char) == 1, so no need to check it
7508 { echo "$as_me:$LINENO: checking for int" >&5
7509 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7510 if test "${ac_cv_type_int+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 cat >conftest.
$ac_ext <<_ACEOF
7516 cat confdefs.h
>>conftest.
$ac_ext
7517 cat >>conftest.
$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7519 $ac_includes_default
7520 typedef int ac__type_new_;
7524 if ((ac__type_new_ *) 0)
7526 if (sizeof (ac__type_new_))
7532 rm -f conftest.
$ac_objext
7533 if { (ac_try
="$ac_compile"
7535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_compile") 2>conftest.er1
7541 grep -v '^ *+' conftest.er1 >conftest.err
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest.$ac_objext; then
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7560 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7562 # The cast to long int works around a bug in the HP C Compiler
7563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7564 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7565 # This bug is HP SR number 8606223364.
7566 { echo "$as_me:$LINENO: checking size of int" >&5
7567 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7568 if test "${ac_cv_sizeof_int+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 if test "$cross_compiling" = yes; then
7572 # Depending upon the size, compute the lo and hi bounds.
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 $ac_includes_default
7580 typedef int ac__type_sizeof_;
7584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7591 rm -f conftest.$ac_objext
7592 if { (ac_try="$ac_compile"
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598 (eval "$ac_compile") 2>conftest.er1
7600 grep -v '^
*+' conftest.er1 >conftest.err
7602 cat conftest.err >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest.$ac_objext; then
7610 cat >conftest.$ac_ext <<_ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 $ac_includes_default
7617 typedef int ac__type_sizeof_;
7621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7628 rm -f conftest.$ac_objext
7629 if { (ac_try="$ac_compile"
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635 (eval "$ac_compile") 2>conftest.er1
7637 grep -v '^
*+' conftest.er1 >conftest.err
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest.$ac_objext; then
7645 ac_hi=$ac_mid; break
7647 echo "$as_me: failed program was:" >&5
7648 sed 's
/^
/|
/' conftest.$ac_ext >&5
7650 ac_lo=`expr $ac_mid + 1`
7651 if test $ac_lo -le $ac_mid; then
7655 ac_mid=`expr 2 '*' $ac_mid + 1`
7658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 echo "$as_me: failed program was:" >&5
7662 sed 's
/^
/|
/' conftest.$ac_ext >&5
7664 cat >conftest.$ac_ext <<_ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7670 $ac_includes_default
7671 typedef int ac__type_sizeof_;
7675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7682 rm -f conftest.$ac_objext
7683 if { (ac_try="$ac_compile"
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7691 grep -v '^
*+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
7701 cat >conftest.$ac_ext <<_ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7707 $ac_includes_default
7708 typedef int ac__type_sizeof_;
7712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
7728 grep -v '^
*+' conftest.er1 >conftest.err
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
7736 ac_lo=$ac_mid; break
7738 echo "$as_me: failed program was:" >&5
7739 sed 's
/^
/|
/' conftest.$ac_ext >&5
7741 ac_hi=`expr '(' $ac_mid ')' - 1`
7742 if test $ac_mid -le $ac_hi; then
7746 ac_mid=`expr 2 '*' $ac_mid`
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 echo "$as_me: failed program was:" >&5
7753 sed 's
/^
/|
/' conftest.$ac_ext >&5
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 # Binary search between lo and hi bounds.
7763 while test "x$ac_lo" != "x$ac_hi"; do
7764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7765 cat >conftest.$ac_ext <<_ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7771 $ac_includes_default
7772 typedef int ac__type_sizeof_;
7776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7783 rm -f conftest.$ac_objext
7784 if { (ac_try="$ac_compile"
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_compile") 2>conftest.er1
7792 grep -v '^
*+' conftest.er1 >conftest.err
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest.$ac_objext; then
7802 echo "$as_me: failed program was:" >&5
7803 sed 's
/^
/|
/' conftest.$ac_ext >&5
7805 ac_lo=`expr '(' $ac_mid ')' + 1`
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 ?*) ac_cv_sizeof_int=$ac_lo;;
7812 '') if test "$ac_cv_type_int" = yes; then
7813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7814 See \`config.log' for more details.
" >&5
7815 echo "$as_me: error
: cannot compute sizeof
(int
)
7816 See \
`config.log' for more details." >&2;}
7817 { (exit 77); exit 77; }; }
7823 cat >conftest.$ac_ext <<_ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7829 $ac_includes_default
7830 typedef int ac__type_sizeof_;
7831 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7832 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7839 FILE *f = fopen ("conftest.val", "w");
7842 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7844 long int i = longval ();
7845 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7847 fprintf (f, "%ld\n", i);
7851 unsigned long int i = ulongval ();
7852 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7854 fprintf (f, "%lu\n", i);
7856 return ferror (f) || fclose (f) != 0;
7862 rm -f conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7866 *) ac_try_echo
=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7873 { (case "(($ac_try" in
7874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_try") 2>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7882 ac_cv_sizeof_int=`cat conftest.val
`
7884 echo "$as_me: program exited with status $ac_status" >&5
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7889 if test "$ac_cv_type_int" = yes; then
7890 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7891 See \`config.log
' for more details." >&5
7892 echo "$as_me: error: cannot compute sizeof (int)
7893 See \`config.log' for more details.
" >&2;}
7894 { (exit 77); exit 77; }; }
7899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7903 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7904 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7908 cat >>confdefs.h <<_ACEOF
7909 #define SIZEOF_INT $ac_cv_sizeof_int
7913 { echo "$as_me:$LINENO: checking
for long
" >&5
7914 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7915 if test "${ac_cv_type_long+set}" = set; then
7916 echo $ECHO_N "(cached
) $ECHO_C" >&6
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 $ac_includes_default
7925 typedef long ac__type_new_;
7929 if ((ac__type_new_ *) 0)
7931 if (sizeof (ac__type_new_))
7937 rm -f conftest.$ac_objext
7938 if { (ac_try="$ac_compile"
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7944 (eval "$ac_compile") 2>conftest.er1
7946 grep -v '^ *+' conftest.er1 >conftest.err
7948 cat conftest.err >&5
7949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7950 (exit $ac_status); } && {
7951 test -z "$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest.$ac_objext; then
7956 echo "$as_me: failed program was
:" >&5
7957 sed 's/^/| /' conftest.$ac_ext >&5
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7965 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7967 # The cast to long int works around a bug in the HP C Compiler
7968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7970 # This bug is HP SR number 8606223364.
7971 { echo "$as_me:$LINENO: checking size of long
" >&5
7972 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7973 if test "${ac_cv_sizeof_long+set}" = set; then
7974 echo $ECHO_N "(cached
) $ECHO_C" >&6
7976 if test "$cross_compiling" = yes; then
7977 # Depending upon the size, compute the lo and hi bounds.
7978 cat >conftest.$ac_ext <<_ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 $ac_includes_default
7985 typedef long ac__type_sizeof_;
7989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7996 rm -f conftest.$ac_objext
7997 if { (ac_try="$ac_compile"
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_compile") 2>conftest.er1
8005 grep -v '^ *+' conftest.er1 >conftest.err
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8009 (exit $ac_status); } && {
8010 test -z "$ac_c_werror_flag" ||
8011 test ! -s conftest.err
8012 } && test -s conftest.$ac_objext; then
8015 cat >conftest.$ac_ext <<_ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8021 $ac_includes_default
8022 typedef long ac__type_sizeof_;
8026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8033 rm -f conftest.$ac_objext
8034 if { (ac_try="$ac_compile"
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_compile") 2>conftest.er1
8042 grep -v '^ *+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8046 (exit $ac_status); } && {
8047 test -z "$ac_c_werror_flag" ||
8048 test ! -s conftest.err
8049 } && test -s conftest.$ac_objext; then
8050 ac_hi=$ac_mid; break
8052 echo "$as_me: failed program was
:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8055 ac_lo=`expr $ac_mid + 1`
8056 if test $ac_lo -le $ac_mid; then
8060 ac_mid=`expr 2 '*' $ac_mid + 1`
8063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 echo "$as_me: failed program was
:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 cat >conftest.$ac_ext <<_ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 $ac_includes_default
8076 typedef long ac__type_sizeof_;
8080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_compile") 2>conftest.er1
8096 grep -v '^ *+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest.$ac_objext; then
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 typedef long ac__type_sizeof_;
8117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8124 rm -f conftest.$ac_objext
8125 if { (ac_try="$ac_compile"
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_compile") 2>conftest.er1
8133 grep -v '^ *+' conftest.er1 >conftest.err
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8137 (exit $ac_status); } && {
8138 test -z "$ac_c_werror_flag" ||
8139 test ! -s conftest.err
8140 } && test -s conftest.$ac_objext; then
8141 ac_lo=$ac_mid; break
8143 echo "$as_me: failed program was
:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 ac_hi=`expr '(' $ac_mid ')' - 1`
8147 if test $ac_mid -le $ac_hi; then
8151 ac_mid=`expr 2 '*' $ac_mid`
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 echo "$as_me: failed program was
:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 # Binary search between lo and hi bounds.
8168 while test "x
$ac_lo" != "x
$ac_hi"; do
8169 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8170 cat >conftest.$ac_ext <<_ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 $ac_includes_default
8177 typedef long ac__type_sizeof_;
8181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8188 rm -f conftest.$ac_objext
8189 if { (ac_try="$ac_compile"
8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192 *) ac_try_echo=$ac_try;;
8194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8195 (eval "$ac_compile") 2>conftest.er1
8197 grep -v '^ *+' conftest.er1 >conftest.err
8199 cat conftest.err >&5
8200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8201 (exit $ac_status); } && {
8202 test -z "$ac_c_werror_flag" ||
8203 test ! -s conftest.err
8204 } && test -s conftest.$ac_objext; then
8207 echo "$as_me: failed program was
:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 ac_lo=`expr '(' $ac_mid ')' + 1`
8213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 ?*) ac_cv_sizeof_long=$ac_lo;;
8217 '') if test "$ac_cv_type_long" = yes; then
8218 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8219 See \
`config.log' for more details." >&5
8220 echo "$as_me: error: cannot compute sizeof (long)
8221 See \`config.log
' for more details." >&2;}
8222 { (exit 77); exit 77; }; }
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8235 typedef long ac__type_sizeof_;
8236 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8237 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8244 FILE *f = fopen ("conftest.val", "w");
8247 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8249 long int i = longval ();
8250 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8252 fprintf (f, "%ld\n", i);
8256 unsigned long int i = ulongval ();
8257 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8259 fprintf (f, "%lu\n", i);
8261 return ferror (f) || fclose (f) != 0;
8267 rm -f conftest$ac_exeext
8268 if { (ac_try="$ac_link"
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_link") 2>&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8278 { (case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_try") 2>&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 ac_cv_sizeof_long=`cat conftest.val`
8289 echo "$as_me: program exited with status $ac_status" >&5
8290 echo "$as_me: failed program was:" >&5
8291 sed 's
/^
/|
/' conftest.$ac_ext >&5
8294 if test "$ac_cv_type_long" = yes; then
8295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8296 See \`config.log' for more details.
" >&5
8297 echo "$as_me: error
: cannot compute sizeof
(long
)
8298 See \
`config.log' for more details." >&2;}
8299 { (exit 77); exit 77; }; }
8304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8308 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8309 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8313 cat >>confdefs.h <<_ACEOF
8314 #define SIZEOF_LONG $ac_cv_sizeof_long
8318 { echo "$as_me:$LINENO: checking for void *" >&5
8319 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8320 if test "${ac_cv_type_void_p+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 typedef void * ac__type_new_;
8334 if ((ac__type_new_ *) 0)
8336 if (sizeof (ac__type_new_))
8342 rm -f conftest.$ac_objext
8343 if { (ac_try="$ac_compile"
8345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8346 *) ac_try_echo
=$ac_try;;
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_compile") 2>conftest.er1
8351 grep -v '^ *+' conftest.er1
>conftest.err
8353 cat conftest.err
>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } && {
8356 test -z "$ac_c_werror_flag" ||
8357 test ! -s conftest.err
8358 } && test -s conftest.
$ac_objext; then
8359 ac_cv_type_void_p
=yes
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.
$ac_ext >&5
8364 ac_cv_type_void_p
=no
8367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8369 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8370 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8372 # The cast to long int works around a bug in the HP C Compiler
8373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8375 # This bug is HP SR number 8606223364.
8376 { echo "$as_me:$LINENO: checking size of void *" >&5
8377 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8378 if test "${ac_cv_sizeof_void_p+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 if test "$cross_compiling" = yes; then
8382 # Depending upon the size, compute the lo and hi bounds.
8383 cat >conftest.
$ac_ext <<_ACEOF
8386 cat confdefs.h
>>conftest.
$ac_ext
8387 cat >>conftest.
$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8390 typedef void * ac__type_sizeof_;
8394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8401 rm -f conftest.
$ac_objext
8402 if { (ac_try
="$ac_compile"
8404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8410 grep -v '^ *+' conftest.er1 >conftest.err
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest.$ac_objext; then
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8427 typedef void * ac__type_sizeof_;
8431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8438 rm -f conftest.$ac_objext
8439 if { (ac_try="$ac_compile"
8441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8442 *) ac_try_echo
=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1
>conftest.err
8449 cat conftest.err
>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.
$ac_objext; then
8455 ac_hi
=$ac_mid; break
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.
$ac_ext >&5
8460 ac_lo
=`expr $ac_mid + 1`
8461 if test $ac_lo -le $ac_mid; then
8465 ac_mid
=`expr 2 '*' $ac_mid + 1`
8468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.
$ac_ext >&5
8474 cat >conftest.
$ac_ext <<_ACEOF
8477 cat confdefs.h
>>conftest.
$ac_ext
8478 cat >>conftest.
$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8480 $ac_includes_default
8481 typedef void * ac__type_sizeof_;
8485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8492 rm -f conftest.
$ac_objext
8493 if { (ac_try
="$ac_compile"
8495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_compile") 2>conftest.er1
8501 grep -v '^ *+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } && {
8506 test -z "$ac_c_werror_flag" ||
8507 test ! -s conftest.err
8508 } && test -s conftest.$ac_objext; then
8511 cat >conftest.$ac_ext <<_ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 $ac_includes_default
8518 typedef void * ac__type_sizeof_;
8522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8529 rm -f conftest.$ac_objext
8530 if { (ac_try="$ac_compile"
8532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8533 *) ac_try_echo
=$ac_try;;
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_compile") 2>conftest.er1
8538 grep -v '^ *+' conftest.er1
>conftest.err
8540 cat conftest.err
>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } && {
8543 test -z "$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8545 } && test -s conftest.
$ac_objext; then
8546 ac_lo
=$ac_mid; break
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.
$ac_ext >&5
8551 ac_hi
=`expr '(' $ac_mid ')' - 1`
8552 if test $ac_mid -le $ac_hi; then
8556 ac_mid
=`expr 2 '*' $ac_mid`
8559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.
$ac_ext >&5
8568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8572 # Binary search between lo and hi bounds.
8573 while test "x$ac_lo" != "x$ac_hi"; do
8574 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8575 cat >conftest.
$ac_ext <<_ACEOF
8578 cat confdefs.h
>>conftest.
$ac_ext
8579 cat >>conftest.
$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8581 $ac_includes_default
8582 typedef void * ac__type_sizeof_;
8586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8593 rm -f conftest.
$ac_objext
8594 if { (ac_try
="$ac_compile"
8596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_compile") 2>conftest.er1
8602 grep -v '^ *+' conftest.er1 >conftest.err
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && {
8607 test -z "$ac_c_werror_flag" ||
8608 test ! -s conftest.err
8609 } && test -s conftest.$ac_objext; then
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 ac_lo=`expr '(' $ac_mid ')' + 1`
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8622 '') if test "$ac_cv_type_void_p" = yes; then
8623 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8624 See \`config.log
' for more details." >&5
8625 echo "$as_me: error: cannot compute sizeof (void *)
8626 See \`config.log' for more details.
" >&2;}
8627 { (exit 77); exit 77; }; }
8629 ac_cv_sizeof_void_p=0
8633 cat >conftest.$ac_ext <<_ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8639 $ac_includes_default
8640 typedef void * ac__type_sizeof_;
8641 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8642 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8649 FILE *f = fopen ("conftest.val
", "w
");
8652 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8654 long int i = longval ();
8655 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8657 fprintf (f, "%ld
\n", i);
8661 unsigned long int i = ulongval ();
8662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8664 fprintf (f, "%lu
\n", i);
8666 return ferror (f) || fclose (f) != 0;
8672 rm -f conftest$ac_exeext
8673 if { (ac_try="$ac_link"
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_link") 2>&5
8681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8683 { (case "(($ac_try" in
8684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_try") 2>&5
8690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 ac_cv_sizeof_void_p=`cat conftest.val`
8694 echo "$as_me: program exited with status
$ac_status" >&5
8695 echo "$as_me: failed program was
:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8699 if test "$ac_cv_type_void_p" = yes; then
8700 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8701 See \
`config.log' for more details." >&5
8702 echo "$as_me: error: cannot compute sizeof (void *)
8703 See \`config.log
' for more details." >&2;}
8704 { (exit 77); exit 77; }; }
8706 ac_cv_sizeof_void_p=0
8709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8713 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8714 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8718 cat >>confdefs.h <<_ACEOF
8719 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8723 { echo "$as_me:$LINENO: checking for short" >&5
8724 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8725 if test "${ac_cv_type_short+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 $ac_includes_default
8735 typedef short ac__type_new_;
8739 if ((ac__type_new_ *) 0)
8741 if (sizeof (ac__type_new_))
8747 rm -f conftest.$ac_objext
8748 if { (ac_try="$ac_compile"
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_compile") 2>conftest.er1
8756 grep -v '^
*+' conftest.er1 >conftest.err
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && {
8761 test -z "$ac_c_werror_flag" ||
8762 test ! -s conftest.err
8763 } && test -s conftest.$ac_objext; then
8764 ac_cv_type_short=yes
8766 echo "$as_me: failed program was:" >&5
8767 sed 's
/^
/|
/' conftest.$ac_ext >&5
8772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8775 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8777 # The cast to long int works around a bug in the HP C Compiler
8778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8780 # This bug is HP SR number 8606223364.
8781 { echo "$as_me:$LINENO: checking size of short" >&5
8782 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8783 if test "${ac_cv_sizeof_short+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 if test "$cross_compiling" = yes; then
8787 # Depending upon the size, compute the lo and hi bounds.
8788 cat >conftest.
$ac_ext <<_ACEOF
8791 cat confdefs.h
>>conftest.
$ac_ext
8792 cat >>conftest.
$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 $ac_includes_default
8795 typedef short ac__type_sizeof_;
8799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8806 rm -f conftest.
$ac_objext
8807 if { (ac_try
="$ac_compile"
8809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813 (eval "$ac_compile") 2>conftest.er1
8815 grep -v '^ *+' conftest.er1 >conftest.err
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && {
8820 test -z "$ac_c_werror_flag" ||
8821 test ! -s conftest.err
8822 } && test -s conftest.$ac_objext; then
8825 cat >conftest.$ac_ext <<_ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831 $ac_includes_default
8832 typedef short ac__type_sizeof_;
8836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8843 rm -f conftest.$ac_objext
8844 if { (ac_try="$ac_compile"
8846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8847 *) ac_try_echo
=$ac_try;;
8849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850 (eval "$ac_compile") 2>conftest.er1
8852 grep -v '^ *+' conftest.er1
>conftest.err
8854 cat conftest.err
>&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } && {
8857 test -z "$ac_c_werror_flag" ||
8858 test ! -s conftest.err
8859 } && test -s conftest.
$ac_objext; then
8860 ac_hi
=$ac_mid; break
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.
$ac_ext >&5
8865 ac_lo
=`expr $ac_mid + 1`
8866 if test $ac_lo -le $ac_mid; then
8870 ac_mid
=`expr 2 '*' $ac_mid + 1`
8873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.
$ac_ext >&5
8879 cat >conftest.
$ac_ext <<_ACEOF
8882 cat confdefs.h
>>conftest.
$ac_ext
8883 cat >>conftest.
$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8885 $ac_includes_default
8886 typedef short ac__type_sizeof_;
8890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8897 rm -f conftest.
$ac_objext
8898 if { (ac_try
="$ac_compile"
8900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_compile") 2>conftest.er1
8906 grep -v '^ *+' conftest.er1 >conftest.err
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } && {
8911 test -z "$ac_c_werror_flag" ||
8912 test ! -s conftest.err
8913 } && test -s conftest.$ac_objext; then
8916 cat >conftest.$ac_ext <<_ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 $ac_includes_default
8923 typedef short ac__type_sizeof_;
8927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8934 rm -f conftest.$ac_objext
8935 if { (ac_try="$ac_compile"
8937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8938 *) ac_try_echo
=$ac_try;;
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_compile") 2>conftest.er1
8943 grep -v '^ *+' conftest.er1
>conftest.err
8945 cat conftest.err
>&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest.
$ac_objext; then
8951 ac_lo
=$ac_mid; break
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.
$ac_ext >&5
8956 ac_hi
=`expr '(' $ac_mid ')' - 1`
8957 if test $ac_mid -le $ac_hi; then
8961 ac_mid
=`expr 2 '*' $ac_mid`
8964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.
$ac_ext >&5
8973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8977 # Binary search between lo and hi bounds.
8978 while test "x$ac_lo" != "x$ac_hi"; do
8979 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8980 cat >conftest.
$ac_ext <<_ACEOF
8983 cat confdefs.h
>>conftest.
$ac_ext
8984 cat >>conftest.
$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 $ac_includes_default
8987 typedef short ac__type_sizeof_;
8991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8998 rm -f conftest.
$ac_objext
8999 if { (ac_try
="$ac_compile"
9001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
9007 grep -v '^ *+' conftest.er1 >conftest.err
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest.$ac_objext; then
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.$ac_ext >&5
9020 ac_lo=`expr '(' $ac_mid ')' + 1`
9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 ?*) ac_cv_sizeof_short=$ac_lo;;
9027 '') if test "$ac_cv_type_short" = yes; then
9028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9029 See \`config.log
' for more details." >&5
9030 echo "$as_me: error: cannot compute sizeof (short)
9031 See \`config.log' for more details.
" >&2;}
9032 { (exit 77); exit 77; }; }
9034 ac_cv_sizeof_short=0
9038 cat >conftest.$ac_ext <<_ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9044 $ac_includes_default
9045 typedef short ac__type_sizeof_;
9046 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9047 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9054 FILE *f = fopen ("conftest.val
", "w
");
9057 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9059 long int i = longval ();
9060 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9062 fprintf (f, "%ld
\n", i);
9066 unsigned long int i = ulongval ();
9067 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9069 fprintf (f, "%lu
\n", i);
9071 return ferror (f) || fclose (f) != 0;
9077 rm -f conftest$ac_exeext
9078 if { (ac_try="$ac_link"
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_link") 2>&5
9086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9088 { (case "(($ac_try" in
9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9090 *) ac_try_echo=$ac_try;;
9092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9093 (eval "$ac_try") 2>&5
9095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 ac_cv_sizeof_short=`cat conftest.val`
9099 echo "$as_me: program exited with status
$ac_status" >&5
9100 echo "$as_me: failed program was
:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9104 if test "$ac_cv_type_short" = yes; then
9105 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9106 See \
`config.log' for more details." >&5
9107 echo "$as_me: error: cannot compute sizeof (short)
9108 See \`config.log
' for more details." >&2;}
9109 { (exit 77); exit 77; }; }
9111 ac_cv_sizeof_short=0
9114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9118 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9119 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9123 cat >>confdefs.h <<_ACEOF
9124 #define SIZEOF_SHORT $ac_cv_sizeof_short
9128 { echo "$as_me:$LINENO: checking for float" >&5
9129 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9130 if test "${ac_cv_type_float+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9133 cat >conftest.$ac_ext <<_ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9139 $ac_includes_default
9140 typedef float ac__type_new_;
9144 if ((ac__type_new_ *) 0)
9146 if (sizeof (ac__type_new_))
9152 rm -f conftest.$ac_objext
9153 if { (ac_try="$ac_compile"
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_compile") 2>conftest.er1
9161 grep -v '^
*+' conftest.er1 >conftest.err
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } && {
9166 test -z "$ac_c_werror_flag" ||
9167 test ! -s conftest.err
9168 } && test -s conftest.$ac_objext; then
9169 ac_cv_type_float=yes
9171 echo "$as_me: failed program was:" >&5
9172 sed 's
/^
/|
/' conftest.$ac_ext >&5
9177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9180 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9182 # The cast to long int works around a bug in the HP C Compiler
9183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9185 # This bug is HP SR number 8606223364.
9186 { echo "$as_me:$LINENO: checking size of float" >&5
9187 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9188 if test "${ac_cv_sizeof_float+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 if test "$cross_compiling" = yes; then
9192 # Depending upon the size, compute the lo and hi bounds.
9193 cat >conftest.
$ac_ext <<_ACEOF
9196 cat confdefs.h
>>conftest.
$ac_ext
9197 cat >>conftest.
$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 $ac_includes_default
9200 typedef float ac__type_sizeof_;
9204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9211 rm -f conftest.
$ac_objext
9212 if { (ac_try
="$ac_compile"
9214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218 (eval "$ac_compile") 2>conftest.er1
9220 grep -v '^ *+' conftest.er1 >conftest.err
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } && {
9225 test -z "$ac_c_werror_flag" ||
9226 test ! -s conftest.err
9227 } && test -s conftest.$ac_objext; then
9230 cat >conftest.$ac_ext <<_ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 $ac_includes_default
9237 typedef float ac__type_sizeof_;
9241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9248 rm -f conftest.$ac_objext
9249 if { (ac_try="$ac_compile"
9251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9252 *) ac_try_echo
=$ac_try;;
9254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9255 (eval "$ac_compile") 2>conftest.er1
9257 grep -v '^ *+' conftest.er1
>conftest.err
9259 cat conftest.err
>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } && {
9262 test -z "$ac_c_werror_flag" ||
9263 test ! -s conftest.err
9264 } && test -s conftest.
$ac_objext; then
9265 ac_hi
=$ac_mid; break
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.
$ac_ext >&5
9270 ac_lo
=`expr $ac_mid + 1`
9271 if test $ac_lo -le $ac_mid; then
9275 ac_mid
=`expr 2 '*' $ac_mid + 1`
9278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.
$ac_ext >&5
9284 cat >conftest.
$ac_ext <<_ACEOF
9287 cat confdefs.h
>>conftest.
$ac_ext
9288 cat >>conftest.
$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 $ac_includes_default
9291 typedef float ac__type_sizeof_;
9295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9302 rm -f conftest.
$ac_objext
9303 if { (ac_try
="$ac_compile"
9305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_compile") 2>conftest.er1
9311 grep -v '^ *+' conftest.er1 >conftest.err
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && {
9316 test -z "$ac_c_werror_flag" ||
9317 test ! -s conftest.err
9318 } && test -s conftest.$ac_objext; then
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 $ac_includes_default
9328 typedef float ac__type_sizeof_;
9332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9339 rm -f conftest.$ac_objext
9340 if { (ac_try="$ac_compile"
9342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9343 *) ac_try_echo
=$ac_try;;
9345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346 (eval "$ac_compile") 2>conftest.er1
9348 grep -v '^ *+' conftest.er1
>conftest.err
9350 cat conftest.err
>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } && {
9353 test -z "$ac_c_werror_flag" ||
9354 test ! -s conftest.err
9355 } && test -s conftest.
$ac_objext; then
9356 ac_lo
=$ac_mid; break
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.
$ac_ext >&5
9361 ac_hi
=`expr '(' $ac_mid ')' - 1`
9362 if test $ac_mid -le $ac_hi; then
9366 ac_mid
=`expr 2 '*' $ac_mid`
9369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.
$ac_ext >&5
9378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9382 # Binary search between lo and hi bounds.
9383 while test "x$ac_lo" != "x$ac_hi"; do
9384 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9385 cat >conftest.
$ac_ext <<_ACEOF
9388 cat confdefs.h
>>conftest.
$ac_ext
9389 cat >>conftest.
$ac_ext <<_ACEOF
9390 /* end confdefs.h. */
9391 $ac_includes_default
9392 typedef float ac__type_sizeof_;
9396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9403 rm -f conftest.
$ac_objext
9404 if { (ac_try
="$ac_compile"
9406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_compile") 2>conftest.er1
9412 grep -v '^ *+' conftest.er1 >conftest.err
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } && {
9417 test -z "$ac_c_werror_flag" ||
9418 test ! -s conftest.err
9419 } && test -s conftest.$ac_objext; then
9422 echo "$as_me: failed program was:" >&5
9423 sed 's/^/| /' conftest.$ac_ext >&5
9425 ac_lo=`expr '(' $ac_mid ')' + 1`
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9431 ?*) ac_cv_sizeof_float=$ac_lo;;
9432 '') if test "$ac_cv_type_float" = yes; then
9433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9434 See \`config.log
' for more details." >&5
9435 echo "$as_me: error: cannot compute sizeof (float)
9436 See \`config.log' for more details.
" >&2;}
9437 { (exit 77); exit 77; }; }
9439 ac_cv_sizeof_float=0
9443 cat >conftest.$ac_ext <<_ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9450 typedef float ac__type_sizeof_;
9451 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9452 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9459 FILE *f = fopen ("conftest.val
", "w
");
9462 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9464 long int i = longval ();
9465 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9467 fprintf (f, "%ld
\n", i);
9471 unsigned long int i = ulongval ();
9472 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9474 fprintf (f, "%lu
\n", i);
9476 return ferror (f) || fclose (f) != 0;
9482 rm -f conftest$ac_exeext
9483 if { (ac_try="$ac_link"
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_link") 2>&5
9491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9493 { (case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9498 (eval "$ac_try") 2>&5
9500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9501 (exit $ac_status); }; }; then
9502 ac_cv_sizeof_float=`cat conftest.val`
9504 echo "$as_me: program exited with status
$ac_status" >&5
9505 echo "$as_me: failed program was
:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9509 if test "$ac_cv_type_float" = yes; then
9510 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9511 See \
`config.log' for more details." >&5
9512 echo "$as_me: error: cannot compute sizeof (float)
9513 See \`config.log
' for more details." >&2;}
9514 { (exit 77); exit 77; }; }
9516 ac_cv_sizeof_float=0
9519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9523 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9524 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9528 cat >>confdefs.h <<_ACEOF
9529 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9533 { echo "$as_me:$LINENO: checking for double" >&5
9534 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9535 if test "${ac_cv_type_double+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 $ac_includes_default
9545 typedef double ac__type_new_;
9549 if ((ac__type_new_ *) 0)
9551 if (sizeof (ac__type_new_))
9557 rm -f conftest.$ac_objext
9558 if { (ac_try="$ac_compile"
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_compile") 2>conftest.er1
9566 grep -v '^
*+' conftest.er1 >conftest.err
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } && {
9571 test -z "$ac_c_werror_flag" ||
9572 test ! -s conftest.err
9573 } && test -s conftest.$ac_objext; then
9574 ac_cv_type_double=yes
9576 echo "$as_me: failed program was:" >&5
9577 sed 's
/^
/|
/' conftest.$ac_ext >&5
9579 ac_cv_type_double=no
9582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9585 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9587 # The cast to long int works around a bug in the HP C Compiler
9588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9590 # This bug is HP SR number 8606223364.
9591 { echo "$as_me:$LINENO: checking size of double" >&5
9592 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9593 if test "${ac_cv_sizeof_double+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 if test "$cross_compiling" = yes; then
9597 # Depending upon the size, compute the lo and hi bounds.
9598 cat >conftest.
$ac_ext <<_ACEOF
9601 cat confdefs.h
>>conftest.
$ac_ext
9602 cat >>conftest.
$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 $ac_includes_default
9605 typedef double ac__type_sizeof_;
9609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9616 rm -f conftest.
$ac_objext
9617 if { (ac_try
="$ac_compile"
9619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_compile") 2>conftest.er1
9625 grep -v '^ *+' conftest.er1 >conftest.err
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } && {
9630 test -z "$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9632 } && test -s conftest.$ac_objext; then
9635 cat >conftest.$ac_ext <<_ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9641 $ac_includes_default
9642 typedef double ac__type_sizeof_;
9646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9653 rm -f conftest.$ac_objext
9654 if { (ac_try="$ac_compile"
9656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9657 *) ac_try_echo
=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_compile") 2>conftest.er1
9662 grep -v '^ *+' conftest.er1
>conftest.err
9664 cat conftest.err
>&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest.
$ac_objext; then
9670 ac_hi
=$ac_mid; break
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.
$ac_ext >&5
9675 ac_lo
=`expr $ac_mid + 1`
9676 if test $ac_lo -le $ac_mid; then
9680 ac_mid
=`expr 2 '*' $ac_mid + 1`
9683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.
$ac_ext >&5
9689 cat >conftest.
$ac_ext <<_ACEOF
9692 cat confdefs.h
>>conftest.
$ac_ext
9693 cat >>conftest.
$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 $ac_includes_default
9696 typedef double ac__type_sizeof_;
9700 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9707 rm -f conftest.
$ac_objext
9708 if { (ac_try
="$ac_compile"
9710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_compile") 2>conftest.er1
9716 grep -v '^ *+' conftest.er1 >conftest.err
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } && {
9721 test -z "$ac_c_werror_flag" ||
9722 test ! -s conftest.err
9723 } && test -s conftest.$ac_objext; then
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 $ac_includes_default
9733 typedef double ac__type_sizeof_;
9737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9744 rm -f conftest.$ac_objext
9745 if { (ac_try="$ac_compile"
9747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9748 *) ac_try_echo
=$ac_try;;
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_compile") 2>conftest.er1
9753 grep -v '^ *+' conftest.er1
>conftest.err
9755 cat conftest.err
>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest.
$ac_objext; then
9761 ac_lo
=$ac_mid; break
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.
$ac_ext >&5
9766 ac_hi
=`expr '(' $ac_mid ')' - 1`
9767 if test $ac_mid -le $ac_hi; then
9771 ac_mid
=`expr 2 '*' $ac_mid`
9774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.
$ac_ext >&5
9783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9787 # Binary search between lo and hi bounds.
9788 while test "x$ac_lo" != "x$ac_hi"; do
9789 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9790 cat >conftest.
$ac_ext <<_ACEOF
9793 cat confdefs.h
>>conftest.
$ac_ext
9794 cat >>conftest.
$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9796 $ac_includes_default
9797 typedef double ac__type_sizeof_;
9801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9808 rm -f conftest.
$ac_objext
9809 if { (ac_try
="$ac_compile"
9811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9812 *) ac_try_echo=$ac_try;;
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815 (eval "$ac_compile") 2>conftest.er1
9817 grep -v '^ *+' conftest.er1 >conftest.err
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest.$ac_objext; then
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_lo=`expr '(' $ac_mid ')' + 1`
9833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836 ?*) ac_cv_sizeof_double=$ac_lo;;
9837 '') if test "$ac_cv_type_double" = yes; then
9838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9839 See \`config.log
' for more details." >&5
9840 echo "$as_me: error: cannot compute sizeof (double)
9841 See \`config.log' for more details.
" >&2;}
9842 { (exit 77); exit 77; }; }
9844 ac_cv_sizeof_double=0
9848 cat >conftest.$ac_ext <<_ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 $ac_includes_default
9855 typedef double ac__type_sizeof_;
9856 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9857 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9864 FILE *f = fopen ("conftest.val
", "w
");
9867 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9869 long int i = longval ();
9870 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9872 fprintf (f, "%ld
\n", i);
9876 unsigned long int i = ulongval ();
9877 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9879 fprintf (f, "%lu
\n", i);
9881 return ferror (f) || fclose (f) != 0;
9887 rm -f conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>&5
9896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
9905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_sizeof_double=`cat conftest.val`
9909 echo "$as_me: program exited with status
$ac_status" >&5
9910 echo "$as_me: failed program was
:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9914 if test "$ac_cv_type_double" = yes; then
9915 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9916 See \
`config.log' for more details." >&5
9917 echo "$as_me: error: cannot compute sizeof (double)
9918 See \`config.log
' for more details." >&2;}
9919 { (exit 77); exit 77; }; }
9921 ac_cv_sizeof_double=0
9924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9928 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9929 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9933 cat >>confdefs.h <<_ACEOF
9934 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9938 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9939 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9940 if test "${ac_cv_type_fpos_t+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 $ac_includes_default
9950 typedef fpos_t ac__type_new_;
9954 if ((ac__type_new_ *) 0)
9956 if (sizeof (ac__type_new_))
9962 rm -f conftest.$ac_objext
9963 if { (ac_try="$ac_compile"
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969 (eval "$ac_compile") 2>conftest.er1
9971 grep -v '^
*+' conftest.er1 >conftest.err
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } && {
9976 test -z "$ac_c_werror_flag" ||
9977 test ! -s conftest.err
9978 } && test -s conftest.$ac_objext; then
9979 ac_cv_type_fpos_t=yes
9981 echo "$as_me: failed program was:" >&5
9982 sed 's
/^
/|
/' conftest.$ac_ext >&5
9984 ac_cv_type_fpos_t=no
9987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9989 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9990 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9992 # The cast to long int works around a bug in the HP C Compiler
9993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9995 # This bug is HP SR number 8606223364.
9996 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9997 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9998 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 if test "$cross_compiling" = yes; then
10002 # Depending upon the size, compute the lo and hi bounds.
10003 cat >conftest.
$ac_ext <<_ACEOF
10006 cat confdefs.h
>>conftest.
$ac_ext
10007 cat >>conftest.
$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 $ac_includes_default
10010 typedef fpos_t ac__type_sizeof_;
10014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10021 rm -f conftest.
$ac_objext
10022 if { (ac_try
="$ac_compile"
10023 case "(($ac_try" in
10024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_compile") 2>conftest.er1
10030 grep -v '^ *+' conftest.er1 >conftest.err
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest.$ac_objext; then
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046 $ac_includes_default
10047 typedef fpos_t ac__type_sizeof_;
10051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10058 rm -f conftest.$ac_objext
10059 if { (ac_try="$ac_compile"
10060 case "(($ac_try" in
10061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10062 *) ac_try_echo
=$ac_try;;
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_compile") 2>conftest.er1
10067 grep -v '^ *+' conftest.er1
>conftest.err
10069 cat conftest.err
>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && {
10072 test -z "$ac_c_werror_flag" ||
10073 test ! -s conftest.err
10074 } && test -s conftest.
$ac_objext; then
10075 ac_hi
=$ac_mid; break
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.
$ac_ext >&5
10080 ac_lo
=`expr $ac_mid + 1`
10081 if test $ac_lo -le $ac_mid; then
10085 ac_mid
=`expr 2 '*' $ac_mid + 1`
10088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.
$ac_ext >&5
10094 cat >conftest.
$ac_ext <<_ACEOF
10097 cat confdefs.h
>>conftest.
$ac_ext
10098 cat >>conftest.
$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100 $ac_includes_default
10101 typedef fpos_t ac__type_sizeof_;
10105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10112 rm -f conftest.
$ac_objext
10113 if { (ac_try
="$ac_compile"
10114 case "(($ac_try" in
10115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_compile") 2>conftest.er1
10121 grep -v '^ *+' conftest.er1 >conftest.err
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && {
10126 test -z "$ac_c_werror_flag" ||
10127 test ! -s conftest.err
10128 } && test -s conftest.$ac_objext; then
10131 cat >conftest.$ac_ext <<_ACEOF
10134 cat confdefs.h >>conftest.$ac_ext
10135 cat >>conftest.$ac_ext <<_ACEOF
10136 /* end confdefs.h. */
10137 $ac_includes_default
10138 typedef fpos_t ac__type_sizeof_;
10142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10149 rm -f conftest.$ac_objext
10150 if { (ac_try="$ac_compile"
10151 case "(($ac_try" in
10152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10153 *) ac_try_echo
=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_compile") 2>conftest.er1
10158 grep -v '^ *+' conftest.er1
>conftest.err
10160 cat conftest.err
>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest.
$ac_objext; then
10166 ac_lo
=$ac_mid; break
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.
$ac_ext >&5
10171 ac_hi
=`expr '(' $ac_mid ')' - 1`
10172 if test $ac_mid -le $ac_hi; then
10176 ac_mid
=`expr 2 '*' $ac_mid`
10179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.
$ac_ext >&5
10188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10192 # Binary search between lo and hi bounds.
10193 while test "x$ac_lo" != "x$ac_hi"; do
10194 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10195 cat >conftest.
$ac_ext <<_ACEOF
10198 cat confdefs.h
>>conftest.
$ac_ext
10199 cat >>conftest.
$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 $ac_includes_default
10202 typedef fpos_t ac__type_sizeof_;
10206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10213 rm -f conftest.
$ac_objext
10214 if { (ac_try
="$ac_compile"
10215 case "(($ac_try" in
10216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_compile") 2>conftest.er1
10222 grep -v '^ *+' conftest.er1 >conftest.err
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } && {
10227 test -z "$ac_c_werror_flag" ||
10228 test ! -s conftest.err
10229 } && test -s conftest.$ac_objext; then
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235 ac_lo=`expr '(' $ac_mid ')' + 1`
10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10241 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10242 '') if test "$ac_cv_type_fpos_t" = yes; then
10243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10244 See \`config.log
' for more details." >&5
10245 echo "$as_me: error: cannot compute sizeof (fpos_t)
10246 See \`config.log' for more details.
" >&2;}
10247 { (exit 77); exit 77; }; }
10249 ac_cv_sizeof_fpos_t=0
10253 cat >conftest.$ac_ext <<_ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 $ac_includes_default
10260 typedef fpos_t ac__type_sizeof_;
10261 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10262 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10264 #include <stdlib.h>
10269 FILE *f = fopen ("conftest.val
", "w
");
10272 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10274 long int i = longval ();
10275 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10277 fprintf (f, "%ld
\n", i);
10281 unsigned long int i = ulongval ();
10282 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10284 fprintf (f, "%lu
\n", i);
10286 return ferror (f) || fclose (f) != 0;
10292 rm -f conftest$ac_exeext
10293 if { (ac_try="$ac_link"
10294 case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10299 (eval "$ac_link") 2>&5
10301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10303 { (case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_try") 2>&5
10310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_cv_sizeof_fpos_t=`cat conftest.val`
10314 echo "$as_me: program exited with status
$ac_status" >&5
10315 echo "$as_me: failed program was
:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ( exit $ac_status )
10319 if test "$ac_cv_type_fpos_t" = yes; then
10320 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10321 See \
`config.log' for more details." >&5
10322 echo "$as_me: error: cannot compute sizeof (fpos_t)
10323 See \`config.log
' for more details." >&2;}
10324 { (exit 77); exit 77; }; }
10326 ac_cv_sizeof_fpos_t=0
10329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10333 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10334 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10338 cat >>confdefs.h <<_ACEOF
10339 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10343 { echo "$as_me:$LINENO: checking for size_t" >&5
10344 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10345 if test "${ac_cv_type_size_t+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10348 cat >conftest.$ac_ext <<_ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 $ac_includes_default
10355 typedef size_t ac__type_new_;
10359 if ((ac__type_new_ *) 0)
10361 if (sizeof (ac__type_new_))
10367 rm -f conftest.$ac_objext
10368 if { (ac_try="$ac_compile"
10369 case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_compile") 2>conftest.er1
10376 grep -v '^
*+' conftest.er1 >conftest.err
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && {
10381 test -z "$ac_c_werror_flag" ||
10382 test ! -s conftest.err
10383 } && test -s conftest.$ac_objext; then
10384 ac_cv_type_size_t=yes
10386 echo "$as_me: failed program was:" >&5
10387 sed 's
/^
/|
/' conftest.$ac_ext >&5
10389 ac_cv_type_size_t=no
10392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10394 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10395 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10397 # The cast to long int works around a bug in the HP C Compiler
10398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10400 # This bug is HP SR number 8606223364.
10401 { echo "$as_me:$LINENO: checking size of size_t" >&5
10402 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10403 if test "${ac_cv_sizeof_size_t+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 if test "$cross_compiling" = yes; then
10407 # Depending upon the size, compute the lo and hi bounds.
10408 cat >conftest.
$ac_ext <<_ACEOF
10411 cat confdefs.h
>>conftest.
$ac_ext
10412 cat >>conftest.
$ac_ext <<_ACEOF
10413 /* end confdefs.h. */
10414 $ac_includes_default
10415 typedef size_t ac__type_sizeof_;
10419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10426 rm -f conftest.
$ac_objext
10427 if { (ac_try
="$ac_compile"
10428 case "(($ac_try" in
10429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_compile") 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } && {
10440 test -z "$ac_c_werror_flag" ||
10441 test ! -s conftest.err
10442 } && test -s conftest.$ac_objext; then
10445 cat >conftest.$ac_ext <<_ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h. */
10451 $ac_includes_default
10452 typedef size_t ac__type_sizeof_;
10456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10463 rm -f conftest.$ac_objext
10464 if { (ac_try="$ac_compile"
10465 case "(($ac_try" in
10466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10467 *) ac_try_echo
=$ac_try;;
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_compile") 2>conftest.er1
10472 grep -v '^ *+' conftest.er1
>conftest.err
10474 cat conftest.err
>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest.
$ac_objext; then
10480 ac_hi
=$ac_mid; break
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.
$ac_ext >&5
10485 ac_lo
=`expr $ac_mid + 1`
10486 if test $ac_lo -le $ac_mid; then
10490 ac_mid
=`expr 2 '*' $ac_mid + 1`
10493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.
$ac_ext >&5
10499 cat >conftest.
$ac_ext <<_ACEOF
10502 cat confdefs.h
>>conftest.
$ac_ext
10503 cat >>conftest.
$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 $ac_includes_default
10506 typedef size_t ac__type_sizeof_;
10510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10517 rm -f conftest.
$ac_objext
10518 if { (ac_try
="$ac_compile"
10519 case "(($ac_try" in
10520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_compile") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && {
10531 test -z "$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10533 } && test -s conftest.$ac_objext; then
10536 cat >conftest.$ac_ext <<_ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 $ac_includes_default
10543 typedef size_t ac__type_sizeof_;
10547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10554 rm -f conftest.$ac_objext
10555 if { (ac_try="$ac_compile"
10556 case "(($ac_try" in
10557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10558 *) ac_try_echo
=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_compile") 2>conftest.er1
10563 grep -v '^ *+' conftest.er1
>conftest.err
10565 cat conftest.err
>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest.
$ac_objext; then
10571 ac_lo
=$ac_mid; break
10573 echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.
$ac_ext >&5
10576 ac_hi
=`expr '(' $ac_mid ')' - 1`
10577 if test $ac_mid -le $ac_hi; then
10581 ac_mid
=`expr 2 '*' $ac_mid`
10584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.
$ac_ext >&5
10593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10597 # Binary search between lo and hi bounds.
10598 while test "x$ac_lo" != "x$ac_hi"; do
10599 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10600 cat >conftest.
$ac_ext <<_ACEOF
10603 cat confdefs.h
>>conftest.
$ac_ext
10604 cat >>conftest.
$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 $ac_includes_default
10607 typedef size_t ac__type_sizeof_;
10611 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10618 rm -f conftest.
$ac_objext
10619 if { (ac_try
="$ac_compile"
10620 case "(($ac_try" in
10621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_compile") 2>conftest.er1
10627 grep -v '^ *+' conftest.er1 >conftest.err
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest.$ac_objext; then
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_lo=`expr '(' $ac_mid ')' + 1`
10643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10647 '') if test "$ac_cv_type_size_t" = yes; then
10648 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10649 See \`config.log
' for more details." >&5
10650 echo "$as_me: error: cannot compute sizeof (size_t)
10651 See \`config.log' for more details.
" >&2;}
10652 { (exit 77); exit 77; }; }
10654 ac_cv_sizeof_size_t=0
10658 cat >conftest.$ac_ext <<_ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 $ac_includes_default
10665 typedef size_t ac__type_sizeof_;
10666 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10667 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10669 #include <stdlib.h>
10674 FILE *f = fopen ("conftest.val
", "w
");
10677 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10679 long int i = longval ();
10680 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10682 fprintf (f, "%ld
\n", i);
10686 unsigned long int i = ulongval ();
10687 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10689 fprintf (f, "%lu
\n", i);
10691 return ferror (f) || fclose (f) != 0;
10697 rm -f conftest$ac_exeext
10698 if { (ac_try="$ac_link"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_link") 2>&5
10706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10708 { (case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_try") 2>&5
10715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_cv_sizeof_size_t=`cat conftest.val`
10719 echo "$as_me: program exited with status
$ac_status" >&5
10720 echo "$as_me: failed program was
:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10723 ( exit $ac_status )
10724 if test "$ac_cv_type_size_t" = yes; then
10725 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10726 See \
`config.log' for more details." >&5
10727 echo "$as_me: error: cannot compute sizeof (size_t)
10728 See \`config.log
' for more details." >&2;}
10729 { (exit 77); exit 77; }; }
10731 ac_cv_sizeof_size_t=0
10734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10738 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10739 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10743 cat >>confdefs.h <<_ACEOF
10744 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10748 { echo "$as_me:$LINENO: checking for pid_t" >&5
10749 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10750 if test "${ac_cv_type_pid_t+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 $ac_includes_default
10760 typedef pid_t ac__type_new_;
10764 if ((ac__type_new_ *) 0)
10766 if (sizeof (ac__type_new_))
10772 rm -f conftest.$ac_objext
10773 if { (ac_try="$ac_compile"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_compile") 2>conftest.er1
10781 grep -v '^
*+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } && {
10786 test -z "$ac_c_werror_flag" ||
10787 test ! -s conftest.err
10788 } && test -s conftest.$ac_objext; then
10789 ac_cv_type_pid_t=yes
10791 echo "$as_me: failed program was:" >&5
10792 sed 's
/^
/|
/' conftest.$ac_ext >&5
10794 ac_cv_type_pid_t=no
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10800 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10802 # The cast to long int works around a bug in the HP C Compiler
10803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10805 # This bug is HP SR number 8606223364.
10806 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10807 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10808 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 if test "$cross_compiling" = yes; then
10812 # Depending upon the size, compute the lo and hi bounds.
10813 cat >conftest.
$ac_ext <<_ACEOF
10816 cat confdefs.h
>>conftest.
$ac_ext
10817 cat >>conftest.
$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 $ac_includes_default
10820 typedef pid_t ac__type_sizeof_;
10824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10831 rm -f conftest.
$ac_objext
10832 if { (ac_try
="$ac_compile"
10833 case "(($ac_try" in
10834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_compile") 2>conftest.er1
10840 grep -v '^ *+' conftest.er1 >conftest.err
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest.$ac_objext; then
10850 cat >conftest.$ac_ext <<_ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 $ac_includes_default
10857 typedef pid_t ac__type_sizeof_;
10861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10868 rm -f conftest.$ac_objext
10869 if { (ac_try="$ac_compile"
10870 case "(($ac_try" in
10871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10872 *) ac_try_echo
=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_compile") 2>conftest.er1
10877 grep -v '^ *+' conftest.er1
>conftest.err
10879 cat conftest.err
>&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest.
$ac_objext; then
10885 ac_hi
=$ac_mid; break
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.
$ac_ext >&5
10890 ac_lo
=`expr $ac_mid + 1`
10891 if test $ac_lo -le $ac_mid; then
10895 ac_mid
=`expr 2 '*' $ac_mid + 1`
10898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.
$ac_ext >&5
10904 cat >conftest.
$ac_ext <<_ACEOF
10907 cat confdefs.h
>>conftest.
$ac_ext
10908 cat >>conftest.
$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 $ac_includes_default
10911 typedef pid_t ac__type_sizeof_;
10915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10922 rm -f conftest.
$ac_objext
10923 if { (ac_try
="$ac_compile"
10924 case "(($ac_try" in
10925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_compile") 2>conftest.er1
10931 grep -v '^ *+' conftest.er1 >conftest.err
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest.$ac_objext; then
10941 cat >conftest.$ac_ext <<_ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 $ac_includes_default
10948 typedef pid_t ac__type_sizeof_;
10952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10959 rm -f conftest.$ac_objext
10960 if { (ac_try="$ac_compile"
10961 case "(($ac_try" in
10962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10963 *) ac_try_echo
=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10968 grep -v '^ *+' conftest.er1
>conftest.err
10970 cat conftest.err
>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest.
$ac_objext; then
10976 ac_lo
=$ac_mid; break
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.
$ac_ext >&5
10981 ac_hi
=`expr '(' $ac_mid ')' - 1`
10982 if test $ac_mid -le $ac_hi; then
10986 ac_mid
=`expr 2 '*' $ac_mid`
10989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.
$ac_ext >&5
10998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11002 # Binary search between lo and hi bounds.
11003 while test "x$ac_lo" != "x$ac_hi"; do
11004 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11005 cat >conftest.
$ac_ext <<_ACEOF
11008 cat confdefs.h
>>conftest.
$ac_ext
11009 cat >>conftest.
$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11011 $ac_includes_default
11012 typedef pid_t ac__type_sizeof_;
11016 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11023 rm -f conftest.
$ac_objext
11024 if { (ac_try
="$ac_compile"
11025 case "(($ac_try" in
11026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_compile") 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_c_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest.$ac_objext; then
11042 echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11045 ac_lo=`expr '(' $ac_mid ')' + 1`
11048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11051 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11052 '') if test "$ac_cv_type_pid_t" = yes; then
11053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11054 See \`config.log
' for more details." >&5
11055 echo "$as_me: error: cannot compute sizeof (pid_t)
11056 See \`config.log' for more details.
" >&2;}
11057 { (exit 77); exit 77; }; }
11059 ac_cv_sizeof_pid_t=0
11063 cat >conftest.$ac_ext <<_ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 $ac_includes_default
11070 typedef pid_t ac__type_sizeof_;
11071 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11072 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11074 #include <stdlib.h>
11079 FILE *f = fopen ("conftest.val
", "w
");
11082 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11084 long int i = longval ();
11085 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11087 fprintf (f, "%ld
\n", i);
11091 unsigned long int i = ulongval ();
11092 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11094 fprintf (f, "%lu
\n", i);
11096 return ferror (f) || fclose (f) != 0;
11102 rm -f conftest$ac_exeext
11103 if { (ac_try="$ac_link"
11104 case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_link") 2>&5
11111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11113 { (case "(($ac_try" in
11114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115 *) ac_try_echo=$ac_try;;
11117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11118 (eval "$ac_try") 2>&5
11120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 ac_cv_sizeof_pid_t=`cat conftest.val`
11124 echo "$as_me: program exited with status
$ac_status" >&5
11125 echo "$as_me: failed program was
:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 ( exit $ac_status )
11129 if test "$ac_cv_type_pid_t" = yes; then
11130 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11131 See \
`config.log' for more details." >&5
11132 echo "$as_me: error: cannot compute sizeof (pid_t)
11133 See \`config.log
' for more details." >&2;}
11134 { (exit 77); exit 77; }; }
11136 ac_cv_sizeof_pid_t=0
11139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11143 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11144 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11148 cat >>confdefs.h <<_ACEOF
11149 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11154 { echo "$as_me:$LINENO: checking for long long support" >&5
11155 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11167 long long x; x = (long long)0;
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11181 grep -v '^
*+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest.$ac_objext; then
11191 cat >>confdefs.h <<\_ACEOF
11192 #define HAVE_LONG_LONG 1
11198 echo "$as_me: failed program was:" >&5
11199 sed 's
/^
/|
/' conftest.$ac_ext >&5
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11206 echo "${ECHO_T}$have_long_long" >&6; }
11207 if test "$have_long_long" = yes ; then
11208 { echo "$as_me:$LINENO: checking for long long" >&5
11209 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11210 if test "${ac_cv_type_long_long+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 cat >conftest.$ac_ext <<_ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 $ac_includes_default
11220 typedef long long ac__type_new_;
11224 if ((ac__type_new_ *) 0)
11226 if (sizeof (ac__type_new_))
11232 rm -f conftest.$ac_objext
11233 if { (ac_try="$ac_compile"
11234 case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_compile") 2>conftest.er1
11241 grep -v '^
*+' conftest.er1 >conftest.err
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest.$ac_objext; then
11249 ac_cv_type_long_long=yes
11251 echo "$as_me: failed program was:" >&5
11252 sed 's
/^
/|
/' conftest.$ac_ext >&5
11254 ac_cv_type_long_long=no
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11260 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11262 # The cast to long int works around a bug in the HP C Compiler
11263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11265 # This bug is HP SR number 8606223364.
11266 { echo "$as_me:$LINENO: checking size of long long" >&5
11267 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11268 if test "${ac_cv_sizeof_long_long+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 if test "$cross_compiling" = yes; then
11272 # Depending upon the size, compute the lo and hi bounds.
11273 cat >conftest.
$ac_ext <<_ACEOF
11276 cat confdefs.h
>>conftest.
$ac_ext
11277 cat >>conftest.
$ac_ext <<_ACEOF
11278 /* end confdefs.h. */
11279 $ac_includes_default
11280 typedef long long ac__type_sizeof_;
11284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11291 rm -f conftest.
$ac_objext
11292 if { (ac_try
="$ac_compile"
11293 case "(($ac_try" in
11294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_compile") 2>conftest.er1
11300 grep -v '^ *+' conftest.er1 >conftest.err
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } && {
11305 test -z "$ac_c_werror_flag" ||
11306 test ! -s conftest.err
11307 } && test -s conftest.$ac_objext; then
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 $ac_includes_default
11317 typedef long long ac__type_sizeof_;
11321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11328 rm -f conftest.$ac_objext
11329 if { (ac_try="$ac_compile"
11330 case "(($ac_try" in
11331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11332 *) ac_try_echo
=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_compile") 2>conftest.er1
11337 grep -v '^ *+' conftest.er1
>conftest.err
11339 cat conftest.err
>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } && {
11342 test -z "$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest.
$ac_objext; then
11345 ac_hi
=$ac_mid; break
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.
$ac_ext >&5
11350 ac_lo
=`expr $ac_mid + 1`
11351 if test $ac_lo -le $ac_mid; then
11355 ac_mid
=`expr 2 '*' $ac_mid + 1`
11358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.
$ac_ext >&5
11364 cat >conftest.
$ac_ext <<_ACEOF
11367 cat confdefs.h
>>conftest.
$ac_ext
11368 cat >>conftest.
$ac_ext <<_ACEOF
11369 /* end confdefs.h. */
11370 $ac_includes_default
11371 typedef long long ac__type_sizeof_;
11375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11382 rm -f conftest.
$ac_objext
11383 if { (ac_try
="$ac_compile"
11384 case "(($ac_try" in
11385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_compile") 2>conftest.er1
11391 grep -v '^ *+' conftest.er1 >conftest.err
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest.$ac_objext; then
11401 cat >conftest.$ac_ext <<_ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11407 $ac_includes_default
11408 typedef long long ac__type_sizeof_;
11412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11423 *) ac_try_echo
=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_compile") 2>conftest.er1
11428 grep -v '^ *+' conftest.er1
>conftest.err
11430 cat conftest.err
>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest.
$ac_objext; then
11436 ac_lo
=$ac_mid; break
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.
$ac_ext >&5
11441 ac_hi
=`expr '(' $ac_mid ')' - 1`
11442 if test $ac_mid -le $ac_hi; then
11446 ac_mid
=`expr 2 '*' $ac_mid`
11449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.
$ac_ext >&5
11458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11462 # Binary search between lo and hi bounds.
11463 while test "x$ac_lo" != "x$ac_hi"; do
11464 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11465 cat >conftest.
$ac_ext <<_ACEOF
11468 cat confdefs.h
>>conftest.
$ac_ext
11469 cat >>conftest.
$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11471 $ac_includes_default
11472 typedef long long ac__type_sizeof_;
11476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11483 rm -f conftest.
$ac_objext
11484 if { (ac_try
="$ac_compile"
11485 case "(($ac_try" in
11486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11487 *) ac_try_echo=$ac_try;;
11489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490 (eval "$ac_compile") 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } && {
11497 test -z "$ac_c_werror_flag" ||
11498 test ! -s conftest.err
11499 } && test -s conftest.$ac_objext; then
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ac_lo=`expr '(' $ac_mid ')' + 1`
11508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11511 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11512 '') if test "$ac_cv_type_long_long" = yes; then
11513 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11514 See \`config.log
' for more details." >&5
11515 echo "$as_me: error: cannot compute sizeof (long long)
11516 See \`config.log' for more details.
" >&2;}
11517 { (exit 77); exit 77; }; }
11519 ac_cv_sizeof_long_long=0
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 typedef long long ac__type_sizeof_;
11531 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11532 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11534 #include <stdlib.h>
11539 FILE *f = fopen ("conftest.val
", "w
");
11542 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11544 long int i = longval ();
11545 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11547 fprintf (f, "%ld
\n", i);
11551 unsigned long int i = ulongval ();
11552 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11554 fprintf (f, "%lu
\n", i);
11556 return ferror (f) || fclose (f) != 0;
11562 rm -f conftest$ac_exeext
11563 if { (ac_try="$ac_link"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_link") 2>&5
11571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11573 { (case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_try") 2>&5
11580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 ac_cv_sizeof_long_long=`cat conftest.val`
11584 echo "$as_me: program exited with status
$ac_status" >&5
11585 echo "$as_me: failed program was
:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ( exit $ac_status )
11589 if test "$ac_cv_type_long_long" = yes; then
11590 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11591 See \
`config.log' for more details." >&5
11592 echo "$as_me: error: cannot compute sizeof (long long)
11593 See \`config.log
' for more details." >&2;}
11594 { (exit 77); exit 77; }; }
11596 ac_cv_sizeof_long_long=0
11599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11603 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11604 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11608 cat >>confdefs.h <<_ACEOF
11609 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11615 { echo "$as_me:$LINENO: checking for long double support" >&5
11616 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11617 have_long_double=no
11618 cat >conftest.$ac_ext <<_ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11628 long double x; x = (long double)0.;
11633 rm -f conftest.$ac_objext
11634 if { (ac_try="$ac_compile"
11635 case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_compile") 2>conftest.er1
11642 grep -v '^
*+' conftest.er1 >conftest.err
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest.$ac_objext; then
11652 cat >>confdefs.h <<\_ACEOF
11653 #define HAVE_LONG_DOUBLE 1
11656 have_long_double=yes
11659 echo "$as_me: failed program was:" >&5
11660 sed 's
/^
/|
/' conftest.$ac_ext >&5
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11667 echo "${ECHO_T}$have_long_double" >&6; }
11668 if test "$have_long_double" = yes ; then
11669 { echo "$as_me:$LINENO: checking for long double" >&5
11670 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11671 if test "${ac_cv_type_long_double+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 cat >conftest.$ac_ext <<_ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11680 $ac_includes_default
11681 typedef long double ac__type_new_;
11685 if ((ac__type_new_ *) 0)
11687 if (sizeof (ac__type_new_))
11693 rm -f conftest.$ac_objext
11694 if { (ac_try="$ac_compile"
11695 case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_compile") 2>conftest.er1
11702 grep -v '^
*+' conftest.er1 >conftest.err
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } && {
11707 test -z "$ac_c_werror_flag" ||
11708 test ! -s conftest.err
11709 } && test -s conftest.$ac_objext; then
11710 ac_cv_type_long_double=yes
11712 echo "$as_me: failed program was:" >&5
11713 sed 's
/^
/|
/' conftest.$ac_ext >&5
11715 ac_cv_type_long_double=no
11718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11720 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11721 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11723 # The cast to long int works around a bug in the HP C Compiler
11724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11726 # This bug is HP SR number 8606223364.
11727 { echo "$as_me:$LINENO: checking size of long double" >&5
11728 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11729 if test "${ac_cv_sizeof_long_double+set}" = set; then
11730 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 if test "$cross_compiling" = yes; then
11733 # Depending upon the size, compute the lo and hi bounds.
11734 cat >conftest.
$ac_ext <<_ACEOF
11737 cat confdefs.h
>>conftest.
$ac_ext
11738 cat >>conftest.
$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 $ac_includes_default
11741 typedef long double ac__type_sizeof_;
11745 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11752 rm -f conftest.
$ac_objext
11753 if { (ac_try
="$ac_compile"
11754 case "(($ac_try" in
11755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_compile") 2>conftest.er1
11761 grep -v '^ *+' conftest.er1 >conftest.err
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && {
11766 test -z "$ac_c_werror_flag" ||
11767 test ! -s conftest.err
11768 } && test -s conftest.$ac_objext; then
11771 cat >conftest.$ac_ext <<_ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 $ac_includes_default
11778 typedef long double ac__type_sizeof_;
11782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
11791 case "(($ac_try" in
11792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11793 *) ac_try_echo
=$ac_try;;
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_compile") 2>conftest.er1
11798 grep -v '^ *+' conftest.er1
>conftest.err
11800 cat conftest.err
>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } && {
11803 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest.
$ac_objext; then
11806 ac_hi
=$ac_mid; break
11808 echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.
$ac_ext >&5
11811 ac_lo
=`expr $ac_mid + 1`
11812 if test $ac_lo -le $ac_mid; then
11816 ac_mid
=`expr 2 '*' $ac_mid + 1`
11819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.
$ac_ext >&5
11825 cat >conftest.
$ac_ext <<_ACEOF
11828 cat confdefs.h
>>conftest.
$ac_ext
11829 cat >>conftest.
$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 $ac_includes_default
11832 typedef long double ac__type_sizeof_;
11836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11843 rm -f conftest.
$ac_objext
11844 if { (ac_try
="$ac_compile"
11845 case "(($ac_try" in
11846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_compile") 2>conftest.er1
11852 grep -v '^ *+' conftest.er1 >conftest.err
11854 cat conftest.err >&5
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } && {
11857 test -z "$ac_c_werror_flag" ||
11858 test ! -s conftest.err
11859 } && test -s conftest.$ac_objext; then
11862 cat >conftest.$ac_ext <<_ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 $ac_includes_default
11869 typedef long double ac__type_sizeof_;
11873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11880 rm -f conftest.$ac_objext
11881 if { (ac_try="$ac_compile"
11882 case "(($ac_try" in
11883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11884 *) ac_try_echo
=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_compile") 2>conftest.er1
11889 grep -v '^ *+' conftest.er1
>conftest.err
11891 cat conftest.err
>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && {
11894 test -z "$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 } && test -s conftest.
$ac_objext; then
11897 ac_lo
=$ac_mid; break
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.
$ac_ext >&5
11902 ac_hi
=`expr '(' $ac_mid ')' - 1`
11903 if test $ac_mid -le $ac_hi; then
11907 ac_mid
=`expr 2 '*' $ac_mid`
11910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.
$ac_ext >&5
11919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11923 # Binary search between lo and hi bounds.
11924 while test "x$ac_lo" != "x$ac_hi"; do
11925 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11926 cat >conftest.
$ac_ext <<_ACEOF
11929 cat confdefs.h
>>conftest.
$ac_ext
11930 cat >>conftest.
$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 $ac_includes_default
11933 typedef long double ac__type_sizeof_;
11937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11944 rm -f conftest.
$ac_objext
11945 if { (ac_try
="$ac_compile"
11946 case "(($ac_try" in
11947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_compile") 2>conftest.er1
11953 grep -v '^ *+' conftest.er1 >conftest.err
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } && {
11958 test -z "$ac_c_werror_flag" ||
11959 test ! -s conftest.err
11960 } && test -s conftest.$ac_objext; then
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 ac_lo=`expr '(' $ac_mid ')' + 1`
11969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11973 '') if test "$ac_cv_type_long_double" = yes; then
11974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11975 See \`config.log
' for more details." >&5
11976 echo "$as_me: error: cannot compute sizeof (long double)
11977 See \`config.log' for more details.
" >&2;}
11978 { (exit 77); exit 77; }; }
11980 ac_cv_sizeof_long_double=0
11984 cat >conftest.$ac_ext <<_ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 $ac_includes_default
11991 typedef long double ac__type_sizeof_;
11992 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11993 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11995 #include <stdlib.h>
12000 FILE *f = fopen ("conftest.val
", "w
");
12003 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12005 long int i = longval ();
12006 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12008 fprintf (f, "%ld
\n", i);
12012 unsigned long int i = ulongval ();
12013 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12015 fprintf (f, "%lu
\n", i);
12017 return ferror (f) || fclose (f) != 0;
12023 rm -f conftest$ac_exeext
12024 if { (ac_try="$ac_link"
12025 case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_link") 2>&5
12032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 ac_cv_sizeof_long_double=`cat conftest.val`
12045 echo "$as_me: program exited with status
$ac_status" >&5
12046 echo "$as_me: failed program was
:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 ( exit $ac_status )
12050 if test "$ac_cv_type_long_double" = yes; then
12051 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12052 See \
`config.log' for more details." >&5
12053 echo "$as_me: error: cannot compute sizeof (long double)
12054 See \`config.log
' for more details." >&2;}
12055 { (exit 77); exit 77; }; }
12057 ac_cv_sizeof_long_double=0
12060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12064 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12065 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12069 cat >>confdefs.h <<_ACEOF
12070 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12076 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12077 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12079 cat >conftest.$ac_ext <<_ACEOF
12082 cat confdefs.h >>conftest.$ac_ext
12083 cat >>conftest.$ac_ext <<_ACEOF
12084 /* end confdefs.h. */
12089 _Bool x; x = (_Bool)0;
12094 rm -f conftest.$ac_objext
12095 if { (ac_try="$ac_compile"
12096 case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_compile") 2>conftest.er1
12103 grep -v '^
*+' conftest.er1 >conftest.err
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest.$ac_objext; then
12113 cat >>confdefs.h <<\_ACEOF
12114 #define HAVE_C99_BOOL 1
12120 echo "$as_me: failed program was:" >&5
12121 sed 's
/^
/|
/' conftest.$ac_ext >&5
12126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12128 echo "${ECHO_T}$have_c99_bool" >&6; }
12129 if test "$have_c99_bool" = yes ; then
12130 { echo "$as_me:$LINENO: checking for _Bool" >&5
12131 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12132 if test "${ac_cv_type__Bool+set}" = set; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 cat >conftest.$ac_ext <<_ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 $ac_includes_default
12142 typedef _Bool ac__type_new_;
12146 if ((ac__type_new_ *) 0)
12148 if (sizeof (ac__type_new_))
12154 rm -f conftest.$ac_objext
12155 if { (ac_try="$ac_compile"
12156 case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_compile") 2>conftest.er1
12163 grep -v '^
*+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } && {
12168 test -z "$ac_c_werror_flag" ||
12169 test ! -s conftest.err
12170 } && test -s conftest.$ac_objext; then
12171 ac_cv_type__Bool=yes
12173 echo "$as_me: failed program was:" >&5
12174 sed 's
/^
/|
/' conftest.$ac_ext >&5
12176 ac_cv_type__Bool=no
12179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12182 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12184 # The cast to long int works around a bug in the HP C Compiler
12185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12187 # This bug is HP SR number 8606223364.
12188 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12189 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12190 if test "${ac_cv_sizeof__Bool+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 if test "$cross_compiling" = yes; then
12194 # Depending upon the size, compute the lo and hi bounds.
12195 cat >conftest.
$ac_ext <<_ACEOF
12198 cat confdefs.h
>>conftest.
$ac_ext
12199 cat >>conftest.
$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12201 $ac_includes_default
12202 typedef _Bool ac__type_sizeof_;
12206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12213 rm -f conftest.
$ac_objext
12214 if { (ac_try
="$ac_compile"
12215 case "(($ac_try" in
12216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_compile") 2>conftest.er1
12222 grep -v '^ *+' conftest.er1 >conftest.err
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && {
12227 test -z "$ac_c_werror_flag" ||
12228 test ! -s conftest.err
12229 } && test -s conftest.$ac_objext; then
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 $ac_includes_default
12239 typedef _Bool ac__type_sizeof_;
12243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12250 rm -f conftest.$ac_objext
12251 if { (ac_try="$ac_compile"
12252 case "(($ac_try" in
12253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12254 *) ac_try_echo
=$ac_try;;
12256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12257 (eval "$ac_compile") 2>conftest.er1
12259 grep -v '^ *+' conftest.er1
>conftest.err
12261 cat conftest.err
>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } && {
12264 test -z "$ac_c_werror_flag" ||
12265 test ! -s conftest.err
12266 } && test -s conftest.
$ac_objext; then
12267 ac_hi
=$ac_mid; break
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.
$ac_ext >&5
12272 ac_lo
=`expr $ac_mid + 1`
12273 if test $ac_lo -le $ac_mid; then
12277 ac_mid
=`expr 2 '*' $ac_mid + 1`
12280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.
$ac_ext >&5
12286 cat >conftest.
$ac_ext <<_ACEOF
12289 cat confdefs.h
>>conftest.
$ac_ext
12290 cat >>conftest.
$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 $ac_includes_default
12293 typedef _Bool ac__type_sizeof_;
12297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12304 rm -f conftest.
$ac_objext
12305 if { (ac_try
="$ac_compile"
12306 case "(($ac_try" in
12307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12308 *) ac_try_echo=$ac_try;;
12310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12311 (eval "$ac_compile") 2>conftest.er1
12313 grep -v '^ *+' conftest.er1 >conftest.err
12315 cat conftest.err >&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } && {
12318 test -z "$ac_c_werror_flag" ||
12319 test ! -s conftest.err
12320 } && test -s conftest.$ac_objext; then
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 $ac_includes_default
12330 typedef _Bool ac__type_sizeof_;
12334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12341 rm -f conftest.$ac_objext
12342 if { (ac_try="$ac_compile"
12343 case "(($ac_try" in
12344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12345 *) ac_try_echo
=$ac_try;;
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348 (eval "$ac_compile") 2>conftest.er1
12350 grep -v '^ *+' conftest.er1
>conftest.err
12352 cat conftest.err
>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && {
12355 test -z "$ac_c_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest.
$ac_objext; then
12358 ac_lo
=$ac_mid; break
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.
$ac_ext >&5
12363 ac_hi
=`expr '(' $ac_mid ')' - 1`
12364 if test $ac_mid -le $ac_hi; then
12368 ac_mid
=`expr 2 '*' $ac_mid`
12371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.
$ac_ext >&5
12380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12384 # Binary search between lo and hi bounds.
12385 while test "x$ac_lo" != "x$ac_hi"; do
12386 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12387 cat >conftest.
$ac_ext <<_ACEOF
12390 cat confdefs.h
>>conftest.
$ac_ext
12391 cat >>conftest.
$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 $ac_includes_default
12394 typedef _Bool ac__type_sizeof_;
12398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12405 rm -f conftest.
$ac_objext
12406 if { (ac_try
="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_compile") 2>conftest.er1
12414 grep -v '^ *+' conftest.er1 >conftest.err
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
12421 } && test -s conftest.$ac_objext; then
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12427 ac_lo=`expr '(' $ac_mid ')' + 1`
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12434 '') if test "$ac_cv_type__Bool" = yes; then
12435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12436 See \`config.log
' for more details." >&5
12437 echo "$as_me: error: cannot compute sizeof (_Bool)
12438 See \`config.log' for more details.
" >&2;}
12439 { (exit 77); exit 77; }; }
12441 ac_cv_sizeof__Bool=0
12445 cat >conftest.$ac_ext <<_ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12451 $ac_includes_default
12452 typedef _Bool ac__type_sizeof_;
12453 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12454 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12456 #include <stdlib.h>
12461 FILE *f = fopen ("conftest.val
", "w
");
12464 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12466 long int i = longval ();
12467 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12469 fprintf (f, "%ld
\n", i);
12473 unsigned long int i = ulongval ();
12474 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12476 fprintf (f, "%lu
\n", i);
12478 return ferror (f) || fclose (f) != 0;
12484 rm -f conftest$ac_exeext
12485 if { (ac_try="$ac_link"
12486 case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_link") 2>&5
12493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12495 { (case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_try") 2>&5
12502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_cv_sizeof__Bool=`cat conftest.val`
12506 echo "$as_me: program exited with status
$ac_status" >&5
12507 echo "$as_me: failed program was
:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ( exit $ac_status )
12511 if test "$ac_cv_type__Bool" = yes; then
12512 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12513 See \
`config.log' for more details." >&5
12514 echo "$as_me: error: cannot compute sizeof (_Bool)
12515 See \`config.log
' for more details." >&2;}
12516 { (exit 77); exit 77; }; }
12518 ac_cv_sizeof__Bool=0
12521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12525 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12526 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12530 cat >>confdefs.h <<_ACEOF
12531 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12537 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12538 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12539 if test "${ac_cv_type_uintptr_t+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12542 cat >conftest.$ac_ext <<_ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12548 #ifdef HAVE_STDINT_H
12549 #include <stdint.h>
12552 typedef uintptr_t ac__type_new_;
12556 if ((ac__type_new_ *) 0)
12558 if (sizeof (ac__type_new_))
12564 rm -f conftest.$ac_objext
12565 if { (ac_try="$ac_compile"
12566 case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_compile") 2>conftest.er1
12573 grep -v '^
*+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && {
12578 test -z "$ac_c_werror_flag" ||
12579 test ! -s conftest.err
12580 } && test -s conftest.$ac_objext; then
12581 ac_cv_type_uintptr_t=yes
12583 echo "$as_me: failed program was:" >&5
12584 sed 's
/^
/|
/' conftest.$ac_ext >&5
12586 ac_cv_type_uintptr_t=no
12589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12592 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12593 if test $ac_cv_type_uintptr_t = yes; then
12595 cat >>confdefs.h <<_ACEOF
12596 #define HAVE_UINTPTR_T 1
12599 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12600 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12601 if test "${ac_cv_type_uintptr_t+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 cat >conftest.$ac_ext <<_ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610 $ac_includes_default
12611 typedef uintptr_t ac__type_new_;
12615 if ((ac__type_new_ *) 0)
12617 if (sizeof (ac__type_new_))
12623 rm -f conftest.$ac_objext
12624 if { (ac_try="$ac_compile"
12625 case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_compile") 2>conftest.er1
12632 grep -v '^
*+' conftest.er1 >conftest.err
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest.$ac_objext; then
12640 ac_cv_type_uintptr_t=yes
12642 echo "$as_me: failed program was:" >&5
12643 sed 's
/^
/|
/' conftest.$ac_ext >&5
12645 ac_cv_type_uintptr_t=no
12648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12651 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12653 # The cast to long int works around a bug in the HP C Compiler
12654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12656 # This bug is HP SR number 8606223364.
12657 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12658 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12659 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 if test "$cross_compiling" = yes; then
12663 # Depending upon the size, compute the lo and hi bounds.
12664 cat >conftest.
$ac_ext <<_ACEOF
12667 cat confdefs.h
>>conftest.
$ac_ext
12668 cat >>conftest.
$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 typedef uintptr_t ac__type_sizeof_;
12675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12682 rm -f conftest.
$ac_objext
12683 if { (ac_try
="$ac_compile"
12684 case "(($ac_try" in
12685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12689 (eval "$ac_compile") 2>conftest.er1
12691 grep -v '^ *+' conftest.er1 >conftest.err
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } && {
12696 test -z "$ac_c_werror_flag" ||
12697 test ! -s conftest.err
12698 } && test -s conftest.$ac_objext; then
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 $ac_includes_default
12708 typedef uintptr_t ac__type_sizeof_;
12712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12719 rm -f conftest.$ac_objext
12720 if { (ac_try="$ac_compile"
12721 case "(($ac_try" in
12722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12723 *) ac_try_echo
=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_compile") 2>conftest.er1
12728 grep -v '^ *+' conftest.er1
>conftest.err
12730 cat conftest.err
>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && {
12733 test -z "$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12735 } && test -s conftest.
$ac_objext; then
12736 ac_hi
=$ac_mid; break
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.
$ac_ext >&5
12741 ac_lo
=`expr $ac_mid + 1`
12742 if test $ac_lo -le $ac_mid; then
12746 ac_mid
=`expr 2 '*' $ac_mid + 1`
12749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.
$ac_ext >&5
12755 cat >conftest.
$ac_ext <<_ACEOF
12758 cat confdefs.h
>>conftest.
$ac_ext
12759 cat >>conftest.
$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 $ac_includes_default
12762 typedef uintptr_t ac__type_sizeof_;
12766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12773 rm -f conftest.
$ac_objext
12774 if { (ac_try
="$ac_compile"
12775 case "(($ac_try" in
12776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_compile") 2>conftest.er1
12782 grep -v '^ *+' conftest.er1 >conftest.err
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest.$ac_objext; then
12792 cat >conftest.$ac_ext <<_ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 $ac_includes_default
12799 typedef uintptr_t ac__type_sizeof_;
12803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12810 rm -f conftest.$ac_objext
12811 if { (ac_try="$ac_compile"
12812 case "(($ac_try" in
12813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12814 *) ac_try_echo
=$ac_try;;
12816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817 (eval "$ac_compile") 2>conftest.er1
12819 grep -v '^ *+' conftest.er1
>conftest.err
12821 cat conftest.err
>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } && {
12824 test -z "$ac_c_werror_flag" ||
12825 test ! -s conftest.err
12826 } && test -s conftest.
$ac_objext; then
12827 ac_lo
=$ac_mid; break
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.
$ac_ext >&5
12832 ac_hi
=`expr '(' $ac_mid ')' - 1`
12833 if test $ac_mid -le $ac_hi; then
12837 ac_mid
=`expr 2 '*' $ac_mid`
12840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.
$ac_ext >&5
12849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12853 # Binary search between lo and hi bounds.
12854 while test "x$ac_lo" != "x$ac_hi"; do
12855 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12856 cat >conftest.
$ac_ext <<_ACEOF
12859 cat confdefs.h
>>conftest.
$ac_ext
12860 cat >>conftest.
$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862 $ac_includes_default
12863 typedef uintptr_t ac__type_sizeof_;
12867 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12874 rm -f conftest.
$ac_objext
12875 if { (ac_try
="$ac_compile"
12876 case "(($ac_try" in
12877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_compile") 2>conftest.er1
12883 grep -v '^ *+' conftest.er1 >conftest.err
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest.$ac_objext; then
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ac_lo=`expr '(' $ac_mid ')' + 1`
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12902 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12903 '') if test "$ac_cv_type_uintptr_t" = yes; then
12904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12905 See \`config.log
' for more details." >&5
12906 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12907 See \`config.log' for more details.
" >&2;}
12908 { (exit 77); exit 77; }; }
12910 ac_cv_sizeof_uintptr_t=0
12914 cat >conftest.$ac_ext <<_ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 $ac_includes_default
12921 typedef uintptr_t ac__type_sizeof_;
12922 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12923 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12925 #include <stdlib.h>
12930 FILE *f = fopen ("conftest.val
", "w
");
12933 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12935 long int i = longval ();
12936 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12938 fprintf (f, "%ld
\n", i);
12942 unsigned long int i = ulongval ();
12943 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12945 fprintf (f, "%lu
\n", i);
12947 return ferror (f) || fclose (f) != 0;
12953 rm -f conftest$ac_exeext
12954 if { (ac_try="$ac_link"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_link") 2>&5
12962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12975 echo "$as_me: program exited with status
$ac_status" >&5
12976 echo "$as_me: failed program was
:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12979 ( exit $ac_status )
12980 if test "$ac_cv_type_uintptr_t" = yes; then
12981 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12982 See \
`config.log' for more details." >&5
12983 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12984 See \`config.log
' for more details." >&2;}
12985 { (exit 77); exit 77; }; }
12987 ac_cv_sizeof_uintptr_t=0
12990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12994 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12995 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12999 cat >>confdefs.h <<_ACEOF
13000 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13008 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
13009 { echo "$as_me:$LINENO: checking size of off_t" >&5
13010 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13011 if test "${ac_cv_sizeof_off_t+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 if test "$cross_compiling" = yes; then
13015 ac_cv_sizeof_off_t
=4
13017 cat >conftest.
$ac_ext <<_ACEOF
13020 cat confdefs.h
>>conftest.
$ac_ext
13021 cat >>conftest.
$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13024 #include <sys/types.h>
13027 FILE *f=fopen("conftestval", "w");
13029 fprintf(f, "%d\n", sizeof(off_t));
13033 rm -f conftest
$ac_exeext
13034 if { (ac_try
="$ac_link"
13035 case "(($ac_try" in
13036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13044 { (case "(($ac_try" in
13045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13046 *) ac_try_echo
=$ac_try;;
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_try") 2>&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_sizeof_off_t
=`cat conftestval`
13055 echo "$as_me: program exited with status $ac_status" >&5
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.
$ac_ext >&5
13059 ( exit $ac_status )
13060 ac_cv_sizeof_off_t
=0
13062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13069 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13070 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13072 cat >>confdefs.h
<<_ACEOF
13073 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13077 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13078 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13079 if test "$have_long_long" = yes -a \
13080 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13081 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13083 cat >>confdefs.h
<<\_ACEOF
13084 #define HAVE_LARGEFILE_SUPPORT 1
13087 { echo "$as_me:$LINENO: result: yes" >&5
13088 echo "${ECHO_T}yes" >&6; }
13090 { echo "$as_me:$LINENO: result: no" >&5
13091 echo "${ECHO_T}no" >&6; }
13094 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13095 { echo "$as_me:$LINENO: checking size of time_t" >&5
13096 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13097 if test "${ac_cv_sizeof_time_t+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 if test "$cross_compiling" = yes; then
13101 ac_cv_sizeof_time_t
=4
13103 cat >conftest.
$ac_ext <<_ACEOF
13106 cat confdefs.h
>>conftest.
$ac_ext
13107 cat >>conftest.
$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13113 FILE *f=fopen("conftestval", "w");
13115 fprintf(f, "%d\n", sizeof(time_t));
13119 rm -f conftest
$ac_exeext
13120 if { (ac_try
="$ac_link"
13121 case "(($ac_try" in
13122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_link") 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13132 *) ac_try_echo
=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_cv_sizeof_time_t
=`cat conftestval`
13141 echo "$as_me: program exited with status $ac_status" >&5
13142 echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.
$ac_ext >&5
13145 ( exit $ac_status )
13146 ac_cv_sizeof_time_t
=0
13148 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13155 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13156 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13158 cat >>confdefs.h
<<_ACEOF
13159 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13164 # if have pthread_t then define SIZEOF_PTHREAD_T
13166 if test "$ac_cv_kpthread" = "yes"
13167 then CC
="$CC -Kpthread"
13168 elif test "$ac_cv_kthread" = "yes"
13169 then CC
="$CC -Kthread"
13170 elif test "$ac_cv_pthread" = "yes"
13171 then CC
="$CC -pthread"
13173 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13174 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13176 cat >conftest.
$ac_ext <<_ACEOF
13179 cat confdefs.h
>>conftest.
$ac_ext
13180 cat >>conftest.
$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 #include <pthread.h>
13186 pthread_t x; x = *(pthread_t*)0;
13191 rm -f conftest.
$ac_objext
13192 if { (ac_try
="$ac_compile"
13193 case "(($ac_try" in
13194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_compile") 2>conftest.er1
13200 grep -v '^ *+' conftest.er1 >conftest.err
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } && {
13205 test -z "$ac_c_werror_flag" ||
13206 test ! -s conftest.err
13207 } && test -s conftest.$ac_objext; then
13210 echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13217 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13218 echo "${ECHO_T}$have_pthread_t" >&6; }
13219 if test "$have_pthread_t" = yes ; then
13220 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13221 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13222 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13223 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 if test "$cross_compiling" = yes; then
13227 ac_cv_sizeof_pthread_t=4
13229 cat >conftest.$ac_ext <<_ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13236 #include <pthread.h>
13239 FILE *f=fopen("conftestval", "w");
13241 fprintf(f, "%d\n", sizeof(pthread_t));
13245 rm -f conftest$ac_exeext
13246 if { (ac_try="$ac_link"
13247 case "(($ac_try" in
13248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13249 *) ac_try_echo
=$ac_try;;
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_link") 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13256 { (case "(($ac_try" in
13257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 ac_cv_sizeof_pthread_t=`cat conftestval
`
13267 echo "$as_me: program exited with status $ac_status" >&5
13268 echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 ( exit $ac_status )
13272 ac_cv_sizeof_pthread_t=0
13274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13281 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13282 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13284 cat >>confdefs.h <<_ACEOF
13285 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13291 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13292 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13293 # Check whether --enable-toolbox-glue was given.
13294 if test "${enable_toolbox_glue+set}" = set; then
13295 enableval=$enable_toolbox_glue;
13299 if test -z "$enable_toolbox_glue"
13301 case $ac_sys_system/$ac_sys_release in
13303 enable_toolbox_glue="yes";;
13305 enable_toolbox_glue="no";;
13308 case "$enable_toolbox_glue" in
13310 extra_machdep_objs="Python/mactoolboxglue.o"
13311 extra_undefs="-u _PyMac_Error"
13313 cat >>confdefs.h <<\_ACEOF
13314 #define USE_TOOLBOX_OBJECT_GLUE 1
13319 extra_machdep_objs=""
13323 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13324 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13328 case $ac_sys_system/$ac_sys_release in
13329 Darwin/[01567]\..*)
13330 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13333 OTHER_LIBTOOL_OPT=""
13338 case $ac_sys_system/$ac_sys_release in
13339 Darwin/[01567]\..*)
13340 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13341 if test "${enable_universalsdk}"; then
13344 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
13346 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13347 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13349 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
13350 if test ${gcc_version} '<' 4.0
13352 LIBTOOL_CRUFT="-lcc_dynamic"
13356 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
13357 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13358 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13361 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13362 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13363 if test "$enable_framework"
13365 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13366 # -F. is needed to allow linking to the framework while
13367 # in the build location.
13369 cat >>confdefs.h <<\_ACEOF
13370 #define WITH_NEXT_FRAMEWORK 1
13373 { echo "$as_me:$LINENO: result: yes" >&5
13374 echo "${ECHO_T}yes" >&6; }
13376 { echo "$as_me:$LINENO: result: no" >&5
13377 echo "${ECHO_T}no" >&6; }
13380 { echo "$as_me:$LINENO: checking for dyld" >&5
13381 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13382 case $ac_sys_system/$ac_sys_release in
13385 cat >>confdefs.h <<\_ACEOF
13386 #define WITH_DYLD 1
13389 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13390 echo "${ECHO_T}always on for Darwin" >&6; }
13393 { echo "$as_me:$LINENO: result: no" >&5
13394 echo "${ECHO_T}no" >&6; }
13398 # Set info about shared libraries.
13404 # SO is the extension of shared libraries `(including the dot
!)
13405 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13406 { echo "$as_me:$LINENO: checking SO" >&5
13407 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13410 case $ac_sys_system in
13421 # this might also be a termcap variable, see #610332
13423 echo '====================================================================='
13425 echo '+ WARNING: You have set SO in your environment. +'
13426 echo '+ Do you really mean to change the extension for shared libraries? +'
13427 echo '+ Continuing in 10 seconds to let you to ponder. +'
13429 echo '====================================================================='
13432 { echo "$as_me:$LINENO: result: $SO" >&5
13433 echo "${ECHO_T}$SO" >&6; }
13436 cat >>confdefs.h
<<_ACEOF
13437 #define SHLIB_EXT "$SO"
13440 # LDSHARED is the ld *command* used to create shared library
13441 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13442 # (Shared libraries in this instance are shared modules to be loaded into
13443 # Python, as opposed to building Python itself as a shared library.)
13444 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13445 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13446 if test -z "$LDSHARED"
13448 case $ac_sys_system/$ac_sys_release in
13450 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13451 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13454 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13455 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13457 IRIX
/5*) LDSHARED
="ld -shared";;
13458 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13460 if test "$GCC" = "yes"
13461 then LDSHARED
='$(CC) -shared'
13462 else LDSHARED
='$(CC) -G';
13465 if test "$GCC" = "yes"
13466 then LDSHARED
='$(CC) -shared'
13467 else LDSHARED
='ld -b';
13469 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13471 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13472 if test "$enable_framework" ; then
13473 # Link against the framework. All externals should be defined.
13474 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13475 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13477 # No framework. Ignore undefined symbols, assuming they come from Python
13478 LDSHARED
="$LDSHARED -undefined suppress"
13480 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13481 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13482 if test "$enable_framework" ; then
13483 # Link against the framework. All externals should be defined.
13484 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13485 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13487 # No framework, use the Python app as bundle-loader
13488 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13489 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13492 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13493 # This allows an extension to be used in any Python
13495 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13497 if test "${enable_universalsdk}"; then
13498 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13500 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13501 BLDSHARED
="$LDSHARED"
13503 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13504 if test "$enable_framework" ; then
13505 # Link against the framework. All externals should be defined.
13506 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13507 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13509 # No framework, use the Python app as bundle-loader
13510 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13511 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13515 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13516 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13518 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13520 LDSHARED
="$CC -shared ${LDFLAGS}"
13522 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13525 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13527 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13530 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13531 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13534 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13538 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13539 OpenUNIX
*|UnixWare
*)
13540 if test "$GCC" = "yes"
13541 then LDSHARED
='$(CC) -shared'
13542 else LDSHARED
='$(CC) -G'
13544 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13545 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13546 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13547 atheos
*) LDSHARED
="gcc -shared";;
13551 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13552 echo "${ECHO_T}$LDSHARED" >&6; }
13553 BLDSHARED
=${BLDSHARED-$LDSHARED}
13554 # CCSHARED are the C *flags* used to create objects to go into a shared
13555 # library (module) -- this is only needed for a few systems
13556 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13557 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13558 if test -z "$CCSHARED"
13560 case $ac_sys_system/$ac_sys_release in
13561 SunOS
*) if test "$GCC" = yes;
13562 then CCSHARED
="-fPIC";
13563 elif test `uname -p` = sparc
;
13564 then CCSHARED
="-xcode=pic32";
13565 else CCSHARED
="-Kpic";
13567 hp
*|HP
*) if test "$GCC" = yes;
13568 then CCSHARED
="-fPIC";
13569 else CCSHARED
="+z";
13571 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13572 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13573 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13574 OpenUNIX
*|UnixWare
*)
13575 if test "$GCC" = "yes"
13576 then CCSHARED
="-fPIC"
13577 else CCSHARED
="-KPIC"
13580 if test "$GCC" = "yes"
13581 then CCSHARED
="-fPIC"
13582 else CCSHARED
="-Kpic -belf"
13584 Monterey
*) CCSHARED
="-G";;
13585 IRIX
*/6*) case $CC in
13586 *gcc
*) CCSHARED
="-shared";;
13589 atheos
*) CCSHARED
="-fPIC";;
13592 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13593 echo "${ECHO_T}$CCSHARED" >&6; }
13594 # LINKFORSHARED are the flags passed to the $(CC) command that links
13595 # the python executable -- this is only needed for a few systems
13596 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13597 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13598 if test -z "$LINKFORSHARED"
13600 case $ac_sys_system/$ac_sys_release in
13601 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13603 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13604 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13605 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13606 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13607 # -u libsys_s pulls in all symbols in libsys
13609 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13611 # not used by the core itself but which needs to be in the core so
13612 # that dynamically loaded extension modules have access to it.
13613 # -prebind is no longer used, because it actually seems to give a
13614 # slowdown in stead of a speedup, maybe due to the large number of
13615 # dynamic loads Python does.
13617 LINKFORSHARED
="$extra_undefs"
13618 if test "$enable_framework"
13620 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13622 LINKFORSHARED
="$LINKFORSHARED";;
13623 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13624 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13625 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13626 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13627 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13629 LINKFORSHARED
="-Wl,--export-dynamic"
13631 SunOS
/5*) case $CC in
13633 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13635 LINKFORSHARED
="-Xlinker --export-dynamic"
13639 if test $enable_shared = "no"
13641 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13644 # -Wl,-E causes the symbols to be added to the dynamic
13645 # symbol table so that they can be found when a module
13646 # is loaded. -N 2048K causes the stack size to be set
13647 # to 2048 kilobytes so that the stack doesn't overflow
13648 # when running test_compile.py.
13649 LINKFORSHARED
='-Wl,-E -N 2048K';;
13652 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13653 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13657 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13658 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13659 if test ! "$LIBRARY" = "$LDLIBRARY"
13661 case $ac_sys_system in
13663 # Cygwin needs CCSHARED when building extension DLLs
13664 # but not when building the interpreter DLL.
13665 CFLAGSFORSHARED
='';;
13667 CFLAGSFORSHARED
='$(CCSHARED)'
13670 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13671 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13673 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13674 # library (with --enable-shared).
13675 # For platforms on which shared libraries are not allowed to have unresolved
13676 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13677 # if it is not required, since it creates a dependency of the shared library
13678 # to LIBS. This, in turn, means that applications linking the shared libpython
13679 # don't need to link LIBS explicitly. The default should be only changed
13680 # on systems where this approach causes problems.
13682 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13683 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13684 case "$ac_sys_system" in
13688 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13689 echo "${ECHO_T}$SHLIBS" >&6; }
13692 # checks for libraries
13694 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13695 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13696 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 ac_check_lib_save_LIBS
=$LIBS
13701 cat >conftest.
$ac_ext <<_ACEOF
13704 cat confdefs.h
>>conftest.
$ac_ext
13705 cat >>conftest.
$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13708 /* Override any GCC internal prototype to avoid an error.
13709 Use char because int might match the return type of a GCC
13710 builtin and then its argument prototype would still apply. */
13723 rm -f conftest.
$ac_objext conftest
$ac_exeext
13724 if { (ac_try
="$ac_link"
13725 case "(($ac_try" in
13726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_link") 2>conftest.er1
13732 grep -v '^ *+' conftest.er1 >conftest.err
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } && {
13737 test -z "$ac_c_werror_flag" ||
13738 test ! -s conftest.err
13739 } && test -s conftest$ac_exeext &&
13740 $as_test_x conftest$ac_exeext; then
13741 ac_cv_lib_dl_dlopen=yes
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13746 ac_cv_lib_dl_dlopen=no
13749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13750 conftest$ac_exeext conftest.$ac_ext
13751 LIBS=$ac_check_lib_save_LIBS
13753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13754 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13755 if test $ac_cv_lib_dl_dlopen = yes; then
13756 cat >>confdefs.h <<_ACEOF
13757 #define HAVE_LIBDL 1
13763 # Dynamic linking for SunOS/Solaris and SYSV
13765 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 ac_check_lib_save_LIBS=$LIBS
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
13789 return shl_load ();
13794 rm -f conftest.$ac_objext conftest$ac_exeext
13795 if { (ac_try="$ac_link"
13796 case "(($ac_try" in
13797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13798 *) ac_try_echo
=$ac_try;;
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_link") 2>conftest.er1
13803 grep -v '^ *+' conftest.er1
>conftest.err
13805 cat conftest.err
>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } && {
13808 test -z "$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 } && test -s conftest
$ac_exeext &&
13811 $as_test_x conftest
$ac_exeext; then
13812 ac_cv_lib_dld_shl_load
=yes
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.
$ac_ext >&5
13817 ac_cv_lib_dld_shl_load
=no
13820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13821 conftest
$ac_exeext conftest.
$ac_ext
13822 LIBS
=$ac_check_lib_save_LIBS
13824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13825 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13826 if test $ac_cv_lib_dld_shl_load = yes; then
13827 cat >>confdefs.h
<<_ACEOF
13828 #define HAVE_LIBDLD 1
13834 # Dynamic linking for HP-UX
13836 # only check for sem_init if thread support is requested
13837 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13838 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13839 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13840 if test "${ac_cv_search_sem_init+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13843 ac_func_search_save_LIBS
=$LIBS
13844 cat >conftest.
$ac_ext <<_ACEOF
13847 cat confdefs.h
>>conftest.
$ac_ext
13848 cat >>conftest.
$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13851 /* Override any GCC internal prototype to avoid an error.
13852 Use char because int might match the return type of a GCC
13853 builtin and then its argument prototype would still apply. */
13861 return sem_init ();
13866 for ac_lib
in '' pthread rt posix4
; do
13867 if test -z "$ac_lib"; then
13868 ac_res
="none required"
13871 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13873 rm -f conftest.
$ac_objext conftest
$ac_exeext
13874 if { (ac_try
="$ac_link"
13875 case "(($ac_try" in
13876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_link") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest$ac_exeext &&
13890 $as_test_x conftest$ac_exeext; then
13891 ac_cv_search_sem_init=$ac_res
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13901 if test "${ac_cv_search_sem_init+set}" = set; then
13905 if test "${ac_cv_search_sem_init+set}" = set; then
13908 ac_cv_search_sem_init=no
13910 rm conftest.$ac_ext
13911 LIBS=$ac_func_search_save_LIBS
13913 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13914 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13915 ac_res=$ac_cv_search_sem_init
13916 if test "$ac_res" != no; then
13917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13920 # 'Real Time' functions on Solaris
13921 # posix4 on Solaris 2.6
13922 # pthread (first!) on Linux
13925 # check if we need libintl for locale functions
13926 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13927 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13928 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 ac_check_lib_save_LIBS=$LIBS
13932 LIBS="-lintl $LIBS"
13933 cat >conftest.$ac_ext <<_ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13940 /* Override any GCC internal prototype to avoid an error.
13941 Use char because int might match the return type of a GCC
13942 builtin and then its argument prototype would still apply. */
13946 char textdomain ();
13950 return textdomain ();
13955 rm -f conftest.$ac_objext conftest$ac_exeext
13956 if { (ac_try="$ac_link"
13957 case "(($ac_try" in
13958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13959 *) ac_try_echo
=$ac_try;;
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962 (eval "$ac_link") 2>conftest.er1
13964 grep -v '^ *+' conftest.er1
>conftest.err
13966 cat conftest.err
>&5
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest
$ac_exeext &&
13972 $as_test_x conftest
$ac_exeext; then
13973 ac_cv_lib_intl_textdomain
=yes
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.
$ac_ext >&5
13978 ac_cv_lib_intl_textdomain
=no
13981 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13982 conftest
$ac_exeext conftest.
$ac_ext
13983 LIBS
=$ac_check_lib_save_LIBS
13985 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13986 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13987 if test $ac_cv_lib_intl_textdomain = yes; then
13989 cat >>confdefs.h
<<\_ACEOF
13990 #define WITH_LIBINTL 1
13996 # checks for system dependent C++ extensions support
13997 case "$ac_sys_system" in
13998 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13999 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14000 cat >conftest.
$ac_ext <<_ACEOF
14003 cat confdefs.h
>>conftest.
$ac_ext
14004 cat >>conftest.
$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 #include "/usr/lpp/xlC/include/load.h"
14010 loadAndInit("", 0, "")
14015 rm -f conftest.
$ac_objext conftest
$ac_exeext
14016 if { (ac_try
="$ac_link"
14017 case "(($ac_try" in
14018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14019 *) ac_try_echo=$ac_try;;
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022 (eval "$ac_link") 2>conftest.er1
14024 grep -v '^ *+' conftest.er1 >conftest.err
14026 cat conftest.err >&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } && {
14029 test -z "$ac_c_werror_flag" ||
14030 test ! -s conftest.err
14031 } && test -s conftest$ac_exeext &&
14032 $as_test_x conftest$ac_exeext; then
14034 cat >>confdefs.h <<\_ACEOF
14035 #define AIX_GENUINE_CPLUSPLUS 1
14038 { echo "$as_me:$LINENO: result: yes" >&5
14039 echo "${ECHO_T}yes" >&6; }
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 { echo "$as_me:$LINENO: result: no" >&5
14045 echo "${ECHO_T}no" >&6; }
14048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14049 conftest$ac_exeext conftest.$ac_ext;;
14053 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14054 # BeOS' sockets are stashed in libnet.
14055 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14056 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14057 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 ac_check_lib_save_LIBS=$LIBS
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14069 /* Override any GCC internal prototype to avoid an error.
14070 Use char because int might match the return type of a GCC
14071 builtin and then its argument prototype would still apply. */
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14088 *) ac_try_echo
=$ac_try;;
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_link") 2>conftest.er1
14093 grep -v '^ *+' conftest.er1
>conftest.err
14095 cat conftest.err
>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } && {
14098 test -z "$ac_c_werror_flag" ||
14099 test ! -s conftest.err
14100 } && test -s conftest
$ac_exeext &&
14101 $as_test_x conftest
$ac_exeext; then
14102 ac_cv_lib_nsl_t_open
=yes
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.
$ac_ext >&5
14107 ac_cv_lib_nsl_t_open
=no
14110 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14111 conftest
$ac_exeext conftest.
$ac_ext
14112 LIBS
=$ac_check_lib_save_LIBS
14114 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14115 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14116 if test $ac_cv_lib_nsl_t_open = yes; then
14120 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14121 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14122 if test "${ac_cv_lib_socket_socket+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 ac_check_lib_save_LIBS
=$LIBS
14126 LIBS
="-lsocket $LIBS $LIBS"
14127 cat >conftest.
$ac_ext <<_ACEOF
14130 cat confdefs.h
>>conftest.
$ac_ext
14131 cat >>conftest.
$ac_ext <<_ACEOF
14132 /* end confdefs.h. */
14134 /* Override any GCC internal prototype to avoid an error.
14135 Use char because int might match the return type of a GCC
14136 builtin and then its argument prototype would still apply. */
14149 rm -f conftest.
$ac_objext conftest
$ac_exeext
14150 if { (ac_try
="$ac_link"
14151 case "(($ac_try" in
14152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14156 (eval "$ac_link") 2>conftest.er1
14158 grep -v '^ *+' conftest.er1 >conftest.err
14160 cat conftest.err >&5
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } && {
14163 test -z "$ac_c_werror_flag" ||
14164 test ! -s conftest.err
14165 } && test -s conftest$ac_exeext &&
14166 $as_test_x conftest$ac_exeext; then
14167 ac_cv_lib_socket_socket=yes
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ac_cv_lib_socket_socket=no
14175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14176 conftest$ac_exeext conftest.$ac_ext
14177 LIBS=$ac_check_lib_save_LIBS
14179 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14180 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14181 if test $ac_cv_lib_socket_socket = yes; then
14182 LIBS="-lsocket $LIBS"
14186 case "$ac_sys_system" in
14188 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14189 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14190 if test "${ac_cv_lib_net_socket+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 ac_check_lib_save_LIBS=$LIBS
14194 LIBS="-lnet $LIBS $LIBS"
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14202 /* Override any GCC internal prototype to avoid an error.
14203 Use char because int might match the return type of a GCC
14204 builtin and then its argument prototype would still apply. */
14217 rm -f conftest.$ac_objext conftest$ac_exeext
14218 if { (ac_try="$ac_link"
14219 case "(($ac_try" in
14220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14221 *) ac_try_echo
=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_link") 2>conftest.er1
14226 grep -v '^ *+' conftest.er1
>conftest.err
14228 cat conftest.err
>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } && {
14231 test -z "$ac_c_werror_flag" ||
14232 test ! -s conftest.err
14233 } && test -s conftest
$ac_exeext &&
14234 $as_test_x conftest
$ac_exeext; then
14235 ac_cv_lib_net_socket
=yes
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.
$ac_ext >&5
14240 ac_cv_lib_net_socket
=no
14243 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14244 conftest
$ac_exeext conftest.
$ac_ext
14245 LIBS
=$ac_check_lib_save_LIBS
14247 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14248 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14249 if test $ac_cv_lib_net_socket = yes; then
14256 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14257 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14259 # Check whether --with-libs was given.
14260 if test "${with_libs+set}" = set; then
14261 withval
=$with_libs;
14262 { echo "$as_me:$LINENO: result: $withval" >&5
14263 echo "${ECHO_T}$withval" >&6; }
14264 LIBS
="$withval $LIBS"
14267 { echo "$as_me:$LINENO: result: no" >&5
14268 echo "${ECHO_T}no" >&6; }
14272 # Check for use of the system libffi library
14273 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14274 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14276 # Check whether --with-system_ffi was given.
14277 if test "${with_system_ffi+set}" = set; then
14278 withval
=$with_system_ffi;
14282 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14283 echo "${ECHO_T}$with_system_ffi" >&6; }
14285 # Check for --with-dbmliborder
14286 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14287 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14289 # Check whether --with-dbmliborder was given.
14290 if test "${with_dbmliborder+set}" = set; then
14291 withval
=$with_dbmliborder;
14292 if test x
$with_dbmliborder = xyes
14294 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14295 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14296 { (exit 1); exit 1; }; }
14298 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
14299 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
14301 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14302 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14303 { (exit 1); exit 1; }; }
14309 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14310 echo "${ECHO_T}$with_dbmliborder" >&6; }
14312 # Determine if signalmodule should be used.
14315 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14316 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14318 # Check whether --with-signal-module was given.
14319 if test "${with_signal_module+set}" = set; then
14320 withval
=$with_signal_module;
14324 if test -z "$with_signal_module"
14325 then with_signal_module
="yes"
14327 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14328 echo "${ECHO_T}$with_signal_module" >&6; }
14330 if test "${with_signal_module}" = "yes"; then
14331 USE_SIGNAL_MODULE
=""
14334 USE_SIGNAL_MODULE
="#"
14335 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
14338 # This is used to generate Setup.config
14340 USE_THREAD_MODULE
=""
14342 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14343 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14346 # Check whether --with-dec-threads was given.
14347 if test "${with_dec_threads+set}" = set; then
14348 withval
=$with_dec_threads;
14349 { echo "$as_me:$LINENO: result: $withval" >&5
14350 echo "${ECHO_T}$withval" >&6; }
14352 if test "${with_thread+set}" != set; then
14353 with_thread
="$withval";
14356 { echo "$as_me:$LINENO: result: no" >&5
14357 echo "${ECHO_T}no" >&6; }
14361 # Templates for things AC_DEFINEd more than once.
14362 # For a single AC_DEFINE, no template is needed.
14370 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14371 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14373 # Check whether --with-threads was given.
14374 if test "${with_threads+set}" = set; then
14375 withval
=$with_threads;
14379 # --with-thread is deprecated, but check for it anyway
14381 # Check whether --with-thread was given.
14382 if test "${with_thread+set}" = set; then
14383 withval
=$with_thread; with_threads
=$with_thread
14387 if test -z "$with_threads"
14388 then with_threads
="yes"
14390 { echo "$as_me:$LINENO: result: $with_threads" >&5
14391 echo "${ECHO_T}$with_threads" >&6; }
14394 if test "$with_threads" = "no"
14396 USE_THREAD_MODULE
="#"
14397 elif test "$ac_cv_pthread_is_default" = yes
14399 cat >>confdefs.h
<<\_ACEOF
14400 #define WITH_THREAD 1
14403 # Defining _REENTRANT on system with POSIX threads should not hurt.
14404 cat >>confdefs.h
<<\_ACEOF
14405 #define _REENTRANT 1
14409 THREADOBJ
="Python/thread.o"
14410 elif test "$ac_cv_kpthread" = "yes"
14413 if test "$ac_cv_cxx_thread" = "yes"; then
14414 CXX
="$CXX -Kpthread"
14416 cat >>confdefs.h
<<\_ACEOF
14417 #define WITH_THREAD 1
14421 THREADOBJ
="Python/thread.o"
14422 elif test "$ac_cv_kthread" = "yes"
14425 if test "$ac_cv_cxx_thread" = "yes"; then
14426 CXX
="$CXX -Kthread"
14428 cat >>confdefs.h
<<\_ACEOF
14429 #define WITH_THREAD 1
14433 THREADOBJ
="Python/thread.o"
14434 elif test "$ac_cv_pthread" = "yes"
14437 if test "$ac_cv_cxx_thread" = "yes"; then
14438 CXX
="$CXX -pthread"
14440 cat >>confdefs.h
<<\_ACEOF
14441 #define WITH_THREAD 1
14445 THREADOBJ
="Python/thread.o"
14447 if test ! -z "$with_threads" -a -d "$with_threads"
14448 then LDFLAGS
="$LDFLAGS -L$with_threads"
14450 if test ! -z "$withval" -a -d "$withval"
14451 then LDFLAGS
="$LDFLAGS -L$withval"
14454 # According to the POSIX spec, a pthreads implementation must
14455 # define _POSIX_THREADS in unistd.h. Some apparently don't
14456 # (e.g. gnu pth with pthread emulation)
14457 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14458 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14459 cat >conftest.
$ac_ext <<_ACEOF
14462 cat confdefs.h
>>conftest.
$ac_ext
14463 cat >>conftest.
$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14466 #include <unistd.h>
14467 #ifdef _POSIX_THREADS
14472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14473 $EGREP "yes" >/dev
/null
2>&1; then
14474 unistd_defines_pthreads
=yes
14476 unistd_defines_pthreads
=no
14480 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14481 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14483 cat >>confdefs.h
<<\_ACEOF
14484 #define _REENTRANT 1
14487 if test "${ac_cv_header_cthreads_h+set}" = set; then
14488 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14489 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14490 if test "${ac_cv_header_cthreads_h+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14496 # Is the header compilable?
14497 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14498 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14499 cat >conftest.
$ac_ext <<_ACEOF
14502 cat confdefs.h
>>conftest.
$ac_ext
14503 cat >>conftest.
$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 $ac_includes_default
14506 #include <cthreads.h>
14508 rm -f conftest.
$ac_objext
14509 if { (ac_try
="$ac_compile"
14510 case "(($ac_try" in
14511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_compile") 2>conftest.er1
14517 grep -v '^ *+' conftest.er1 >conftest.err
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } && {
14522 test -z "$ac_c_werror_flag" ||
14523 test ! -s conftest.err
14524 } && test -s conftest.$ac_objext; then
14525 ac_header_compiler=yes
14527 echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14530 ac_header_compiler=no
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14535 echo "${ECHO_T}$ac_header_compiler" >&6; }
14537 # Is the header present?
14538 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14539 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14540 cat >conftest.$ac_ext <<_ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 #include <cthreads.h>
14548 if { (ac_try="$ac_cpp conftest.$ac_ext"
14549 case "(($ac_try" in
14550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14551 *) ac_try_echo
=$ac_try;;
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14556 grep -v '^ *+' conftest.er1
>conftest.err
14558 cat conftest.err
>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } >/dev
/null
&& {
14561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14564 ac_header_preproc
=yes
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.
$ac_ext >&5
14569 ac_header_preproc
=no
14572 rm -f conftest.err conftest.
$ac_ext
14573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14574 echo "${ECHO_T}$ac_header_preproc" >&6; }
14576 # So? What about this header?
14577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14579 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14580 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14581 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14582 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14583 ac_header_preproc
=yes
14586 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14587 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14589 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14591 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14593 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14595 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14597 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14599 ## ------------------------------------------------ ##
14600 ## Report this to http://www.python.org/python-bugs ##
14601 ## ------------------------------------------------ ##
14603 ) |
sed "s/^/$as_me: WARNING: /" >&2
14606 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14607 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14608 if test "${ac_cv_header_cthreads_h+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 ac_cv_header_cthreads_h
=$ac_header_preproc
14613 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14614 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14617 if test $ac_cv_header_cthreads_h = yes; then
14618 cat >>confdefs.h
<<\_ACEOF
14619 #define WITH_THREAD 1
14622 cat >>confdefs.h
<<\_ACEOF
14623 #define C_THREADS 1
14627 cat >>confdefs.h
<<\_ACEOF
14628 #define HURD_C_THREADS 1
14631 LIBS
="$LIBS -lthreads"
14632 THREADOBJ
="Python/thread.o"
14635 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14636 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14637 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14638 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14642 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14644 # Is the header compilable?
14645 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14646 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14647 cat >conftest.
$ac_ext <<_ACEOF
14650 cat confdefs.h
>>conftest.
$ac_ext
14651 cat >>conftest.
$ac_ext <<_ACEOF
14652 /* end confdefs.h. */
14653 $ac_includes_default
14654 #include <mach/cthreads.h>
14656 rm -f conftest.
$ac_objext
14657 if { (ac_try
="$ac_compile"
14658 case "(($ac_try" in
14659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_compile") 2>conftest.er1
14665 grep -v '^ *+' conftest.er1 >conftest.err
14667 cat conftest.err >&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } && {
14670 test -z "$ac_c_werror_flag" ||
14671 test ! -s conftest.err
14672 } && test -s conftest.$ac_objext; then
14673 ac_header_compiler=yes
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 ac_header_compiler=no
14681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14683 echo "${ECHO_T}$ac_header_compiler" >&6; }
14685 # Is the header present?
14686 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14687 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14688 cat >conftest.$ac_ext <<_ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h. */
14694 #include <mach/cthreads.h>
14696 if { (ac_try="$ac_cpp conftest.$ac_ext"
14697 case "(($ac_try" in
14698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14699 *) ac_try_echo
=$ac_try;;
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14704 grep -v '^ *+' conftest.er1
>conftest.err
14706 cat conftest.err
>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } >/dev
/null
&& {
14709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14710 test ! -s conftest.err
14712 ac_header_preproc
=yes
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.
$ac_ext >&5
14717 ac_header_preproc
=no
14720 rm -f conftest.err conftest.
$ac_ext
14721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14722 echo "${ECHO_T}$ac_header_preproc" >&6; }
14724 # So? What about this header?
14725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14727 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14728 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14730 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14731 ac_header_preproc
=yes
14734 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14735 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14737 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14739 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14741 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14742 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14743 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14745 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14747 ## ------------------------------------------------ ##
14748 ## Report this to http://www.python.org/python-bugs ##
14749 ## ------------------------------------------------ ##
14751 ) |
sed "s/^/$as_me: WARNING: /" >&2
14754 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14755 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14756 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14759 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
14761 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14762 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14765 if test $ac_cv_header_mach_cthreads_h = yes; then
14766 cat >>confdefs.h
<<\_ACEOF
14767 #define WITH_THREAD 1
14770 cat >>confdefs.h
<<\_ACEOF
14771 #define C_THREADS 1
14775 cat >>confdefs.h
<<\_ACEOF
14776 #define MACH_C_THREADS 1
14779 THREADOBJ
="Python/thread.o"
14782 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14783 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14785 # Check whether --with-pth was given.
14786 if test "${with_pth+set}" = set; then
14787 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14788 echo "${ECHO_T}$withval" >&6; }
14789 cat >>confdefs.h
<<\_ACEOF
14790 #define WITH_THREAD 1
14794 cat >>confdefs.h
<<\_ACEOF
14799 THREADOBJ
="Python/thread.o"
14801 { echo "$as_me:$LINENO: result: no" >&5
14802 echo "${ECHO_T}no" >&6; }
14804 # Just looking for pthread_create in libpthread is not enough:
14805 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14806 # So we really have to include pthread.h, and then link.
14808 LIBS
="$LIBS -lpthread"
14809 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14810 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14811 cat >conftest.
$ac_ext <<_ACEOF
14814 cat confdefs.h
>>conftest.
$ac_ext
14815 cat >>conftest.
$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817 #include <pthread.h>
14819 void * start_routine (void *arg) { exit (0); }
14824 pthread_create (NULL, NULL, start_routine, NULL)
14829 rm -f conftest.
$ac_objext conftest
$ac_exeext
14830 if { (ac_try
="$ac_link"
14831 case "(($ac_try" in
14832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_link") 2>conftest.er1
14838 grep -v '^ *+' conftest.er1 >conftest.err
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); } && {
14843 test -z "$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14845 } && test -s conftest$ac_exeext &&
14846 $as_test_x conftest$ac_exeext; then
14848 { echo "$as_me:$LINENO: result: yes" >&5
14849 echo "${ECHO_T}yes" >&6; }
14850 cat >>confdefs.h <<\_ACEOF
14851 #define WITH_THREAD 1
14855 THREADOBJ="Python/thread.o"
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14862 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14863 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14864 if test "${ac_cv_func_pthread_detach+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14875 #define pthread_detach innocuous_pthread_detach
14877 /* System header to define __stub macros and hopefully few prototypes,
14878 which can conflict with char pthread_detach (); below.
14879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14880 <limits.h> exists even on freestanding compilers. */
14883 # include <limits.h>
14885 # include <assert.h>
14888 #undef pthread_detach
14890 /* Override any GCC internal prototype to avoid an error.
14891 Use char because int might match the return type of a GCC
14892 builtin and then its argument prototype would still apply. */
14896 char pthread_detach ();
14897 /* The GNU C library defines this for functions which it implements
14898 to always fail with ENOSYS. Some functions are actually named
14899 something starting with __ and the normal name is an alias. */
14900 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14907 return pthread_detach ();
14912 rm -f conftest.$ac_objext conftest$ac_exeext
14913 if { (ac_try="$ac_link"
14914 case "(($ac_try" in
14915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14916 *) ac_try_echo
=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_link") 2>conftest.er1
14921 grep -v '^ *+' conftest.er1
>conftest.err
14923 cat conftest.err
>&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest
$ac_exeext &&
14929 $as_test_x conftest
$ac_exeext; then
14930 ac_cv_func_pthread_detach
=yes
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.
$ac_ext >&5
14935 ac_cv_func_pthread_detach
=no
14938 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14939 conftest
$ac_exeext conftest.
$ac_ext
14941 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14942 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14943 if test $ac_cv_func_pthread_detach = yes; then
14944 cat >>confdefs.h
<<\_ACEOF
14945 #define WITH_THREAD 1
14949 THREADOBJ
="Python/thread.o"
14952 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14953 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14954 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14955 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14956 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14959 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14961 # Is the header compilable?
14962 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14963 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14964 cat >conftest.
$ac_ext <<_ACEOF
14967 cat confdefs.h
>>conftest.
$ac_ext
14968 cat >>conftest.
$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970 $ac_includes_default
14971 #include <atheos/threads.h>
14973 rm -f conftest.
$ac_objext
14974 if { (ac_try
="$ac_compile"
14975 case "(($ac_try" in
14976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14977 *) ac_try_echo=$ac_try;;
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980 (eval "$ac_compile") 2>conftest.er1
14982 grep -v '^ *+' conftest.er1 >conftest.err
14984 cat conftest.err >&5
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } && {
14987 test -z "$ac_c_werror_flag" ||
14988 test ! -s conftest.err
14989 } && test -s conftest.$ac_objext; then
14990 ac_header_compiler=yes
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 ac_header_compiler=no
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15000 echo "${ECHO_T}$ac_header_compiler" >&6; }
15002 # Is the header present?
15003 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15004 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
15005 cat >conftest.$ac_ext <<_ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15011 #include <atheos/threads.h>
15013 if { (ac_try="$ac_cpp conftest.$ac_ext"
15014 case "(($ac_try" in
15015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15016 *) ac_try_echo
=$ac_try;;
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15021 grep -v '^ *+' conftest.er1
>conftest.err
15023 cat conftest.err
>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } >/dev
/null
&& {
15026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15027 test ! -s conftest.err
15029 ac_header_preproc
=yes
15031 echo "$as_me: failed program was:" >&5
15032 sed 's/^/| /' conftest.
$ac_ext >&5
15034 ac_header_preproc
=no
15037 rm -f conftest.err conftest.
$ac_ext
15038 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15039 echo "${ECHO_T}$ac_header_preproc" >&6; }
15041 # So? What about this header?
15042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15044 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15045 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15046 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15047 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15048 ac_header_preproc
=yes
15051 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15052 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15054 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15056 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15058 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15060 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15062 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15064 ## ------------------------------------------------ ##
15065 ## Report this to http://www.python.org/python-bugs ##
15066 ## ------------------------------------------------ ##
15068 ) |
sed "s/^/$as_me: WARNING: /" >&2
15071 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15072 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15073 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 ac_cv_header_atheos_threads_h
=$ac_header_preproc
15078 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15079 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15082 if test $ac_cv_header_atheos_threads_h = yes; then
15083 cat >>confdefs.h
<<\_ACEOF
15084 #define WITH_THREAD 1
15088 cat >>confdefs.h
<<\_ACEOF
15089 #define ATHEOS_THREADS 1
15092 THREADOBJ
="Python/thread.o"
15095 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15096 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15097 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15098 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15102 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15104 # Is the header compilable?
15105 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15106 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15107 cat >conftest.
$ac_ext <<_ACEOF
15110 cat confdefs.h
>>conftest.
$ac_ext
15111 cat >>conftest.
$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 $ac_includes_default
15114 #include <kernel/OS.h>
15116 rm -f conftest.
$ac_objext
15117 if { (ac_try
="$ac_compile"
15118 case "(($ac_try" in
15119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_compile") 2>conftest.er1
15125 grep -v '^ *+' conftest.er1 >conftest.err
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } && {
15130 test -z "$ac_c_werror_flag" ||
15131 test ! -s conftest.err
15132 } && test -s conftest.$ac_objext; then
15133 ac_header_compiler=yes
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15138 ac_header_compiler=no
15141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15143 echo "${ECHO_T}$ac_header_compiler" >&6; }
15145 # Is the header present?
15146 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15147 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15148 cat >conftest.$ac_ext <<_ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 #include <kernel/OS.h>
15156 if { (ac_try="$ac_cpp conftest.$ac_ext"
15157 case "(($ac_try" in
15158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15159 *) ac_try_echo
=$ac_try;;
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15164 grep -v '^ *+' conftest.er1
>conftest.err
15166 cat conftest.err
>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } >/dev
/null
&& {
15169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15170 test ! -s conftest.err
15172 ac_header_preproc
=yes
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.
$ac_ext >&5
15177 ac_header_preproc
=no
15180 rm -f conftest.err conftest.
$ac_ext
15181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15182 echo "${ECHO_T}$ac_header_preproc" >&6; }
15184 # So? What about this header?
15185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15187 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15188 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15189 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15190 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15191 ac_header_preproc
=yes
15194 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15195 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15197 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15199 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15201 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15202 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15203 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15205 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15207 ## ------------------------------------------------ ##
15208 ## Report this to http://www.python.org/python-bugs ##
15209 ## ------------------------------------------------ ##
15211 ) |
sed "s/^/$as_me: WARNING: /" >&2
15214 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15215 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15216 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 ac_cv_header_kernel_OS_h
=$ac_header_preproc
15221 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15222 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15225 if test $ac_cv_header_kernel_OS_h = yes; then
15226 cat >>confdefs.h
<<\_ACEOF
15227 #define WITH_THREAD 1
15231 cat >>confdefs.h
<<\_ACEOF
15232 #define BEOS_THREADS 1
15235 THREADOBJ
="Python/thread.o"
15238 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15239 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15240 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 ac_check_lib_save_LIBS
=$LIBS
15244 LIBS
="-lpthreads $LIBS"
15245 cat >conftest.
$ac_ext <<_ACEOF
15248 cat confdefs.h
>>conftest.
$ac_ext
15249 cat >>conftest.
$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15252 /* Override any GCC internal prototype to avoid an error.
15253 Use char because int might match the return type of a GCC
15254 builtin and then its argument prototype would still apply. */
15258 char pthread_create ();
15262 return pthread_create ();
15267 rm -f conftest.
$ac_objext conftest
$ac_exeext
15268 if { (ac_try
="$ac_link"
15269 case "(($ac_try" in
15270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15274 (eval "$ac_link") 2>conftest.er1
15276 grep -v '^ *+' conftest.er1 >conftest.err
15278 cat conftest.err >&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } && {
15281 test -z "$ac_c_werror_flag" ||
15282 test ! -s conftest.err
15283 } && test -s conftest$ac_exeext &&
15284 $as_test_x conftest$ac_exeext; then
15285 ac_cv_lib_pthreads_pthread_create=yes
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ac_cv_lib_pthreads_pthread_create=no
15293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15294 conftest$ac_exeext conftest.$ac_ext
15295 LIBS=$ac_check_lib_save_LIBS
15297 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15298 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15299 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15300 cat >>confdefs.h <<\_ACEOF
15301 #define WITH_THREAD 1
15305 LIBS="$LIBS -lpthreads"
15306 THREADOBJ="Python/thread.o"
15309 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15310 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15311 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 ac_check_lib_save_LIBS=$LIBS
15316 cat >conftest.$ac_ext <<_ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15323 /* Override any GCC internal prototype to avoid an error.
15324 Use char because int might match the return type of a GCC
15325 builtin and then its argument prototype would still apply. */
15329 char pthread_create ();
15333 return pthread_create ();
15338 rm -f conftest.$ac_objext conftest$ac_exeext
15339 if { (ac_try="$ac_link"
15340 case "(($ac_try" in
15341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15342 *) ac_try_echo
=$ac_try;;
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345 (eval "$ac_link") 2>conftest.er1
15347 grep -v '^ *+' conftest.er1
>conftest.err
15349 cat conftest.err
>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } && {
15352 test -z "$ac_c_werror_flag" ||
15353 test ! -s conftest.err
15354 } && test -s conftest
$ac_exeext &&
15355 $as_test_x conftest
$ac_exeext; then
15356 ac_cv_lib_c_r_pthread_create
=yes
15358 echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.
$ac_ext >&5
15361 ac_cv_lib_c_r_pthread_create
=no
15364 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15365 conftest
$ac_exeext conftest.
$ac_ext
15366 LIBS
=$ac_check_lib_save_LIBS
15368 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15369 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15370 if test $ac_cv_lib_c_r_pthread_create = yes; then
15371 cat >>confdefs.h
<<\_ACEOF
15372 #define WITH_THREAD 1
15377 THREADOBJ
="Python/thread.o"
15380 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15381 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15382 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 ac_check_lib_save_LIBS
=$LIBS
15386 LIBS
="-lpthread $LIBS"
15387 cat >conftest.
$ac_ext <<_ACEOF
15390 cat confdefs.h
>>conftest.
$ac_ext
15391 cat >>conftest.
$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15394 /* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
15400 char __pthread_create_system ();
15404 return __pthread_create_system ();
15409 rm -f conftest.
$ac_objext conftest
$ac_exeext
15410 if { (ac_try
="$ac_link"
15411 case "(($ac_try" in
15412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_link") 2>conftest.er1
15418 grep -v '^ *+' conftest.er1 >conftest.err
15420 cat conftest.err >&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); } && {
15423 test -z "$ac_c_werror_flag" ||
15424 test ! -s conftest.err
15425 } && test -s conftest$ac_exeext &&
15426 $as_test_x conftest$ac_exeext; then
15427 ac_cv_lib_pthread___pthread_create_system=yes
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 ac_cv_lib_pthread___pthread_create_system=no
15435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15436 conftest$ac_exeext conftest.$ac_ext
15437 LIBS=$ac_check_lib_save_LIBS
15439 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15440 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15441 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15442 cat >>confdefs.h <<\_ACEOF
15443 #define WITH_THREAD 1
15447 LIBS="$LIBS -lpthread"
15448 THREADOBJ="Python/thread.o"
15451 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15452 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15453 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 ac_check_lib_save_LIBS=$LIBS
15458 cat >conftest.$ac_ext <<_ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15465 /* Override any GCC internal prototype to avoid an error.
15466 Use char because int might match the return type of a GCC
15467 builtin and then its argument prototype would still apply. */
15471 char pthread_create ();
15475 return pthread_create ();
15480 rm -f conftest.$ac_objext conftest$ac_exeext
15481 if { (ac_try="$ac_link"
15482 case "(($ac_try" in
15483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15484 *) ac_try_echo
=$ac_try;;
15486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15487 (eval "$ac_link") 2>conftest.er1
15489 grep -v '^ *+' conftest.er1
>conftest.err
15491 cat conftest.err
>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && {
15494 test -z "$ac_c_werror_flag" ||
15495 test ! -s conftest.err
15496 } && test -s conftest
$ac_exeext &&
15497 $as_test_x conftest
$ac_exeext; then
15498 ac_cv_lib_cma_pthread_create
=yes
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.
$ac_ext >&5
15503 ac_cv_lib_cma_pthread_create
=no
15506 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15507 conftest
$ac_exeext conftest.
$ac_ext
15508 LIBS
=$ac_check_lib_save_LIBS
15510 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15511 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15512 if test $ac_cv_lib_cma_pthread_create = yes; then
15513 cat >>confdefs.h
<<\_ACEOF
15514 #define WITH_THREAD 1
15519 THREADOBJ
="Python/thread.o"
15522 USE_THREAD_MODULE
="#"
15542 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15543 conftest
$ac_exeext conftest.
$ac_ext
15553 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15554 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15555 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 ac_check_lib_save_LIBS
=$LIBS
15560 cat >conftest.
$ac_ext <<_ACEOF
15563 cat confdefs.h
>>conftest.
$ac_ext
15564 cat >>conftest.
$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15567 /* Override any GCC internal prototype to avoid an error.
15568 Use char because int might match the return type of a GCC
15569 builtin and then its argument prototype would still apply. */
15577 return usconfig ();
15582 rm -f conftest.
$ac_objext conftest
$ac_exeext
15583 if { (ac_try
="$ac_link"
15584 case "(($ac_try" in
15585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_link") 2>conftest.er1
15591 grep -v '^ *+' conftest.er1 >conftest.err
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } && {
15596 test -z "$ac_c_werror_flag" ||
15597 test ! -s conftest.err
15598 } && test -s conftest$ac_exeext &&
15599 $as_test_x conftest$ac_exeext; then
15600 ac_cv_lib_mpc_usconfig=yes
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15605 ac_cv_lib_mpc_usconfig=no
15608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15609 conftest$ac_exeext conftest.$ac_ext
15610 LIBS=$ac_check_lib_save_LIBS
15612 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15613 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15614 if test $ac_cv_lib_mpc_usconfig = yes; then
15615 cat >>confdefs.h <<\_ACEOF
15616 #define WITH_THREAD 1
15620 THREADOBJ="Python/thread.o"
15621 USE_THREAD_MODULE=""
15625 if test "$posix_threads" != "yes"; then
15626 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15627 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15628 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 ac_check_lib_save_LIBS=$LIBS
15632 LIBS="-lthread $LIBS"
15633 cat >conftest.$ac_ext <<_ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15640 /* Override any GCC internal prototype to avoid an error.
15641 Use char because int might match the return type of a GCC
15642 builtin and then its argument prototype would still apply. */
15646 char thr_create ();
15650 return thr_create ();
15655 rm -f conftest.$ac_objext conftest$ac_exeext
15656 if { (ac_try="$ac_link"
15657 case "(($ac_try" in
15658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15659 *) ac_try_echo
=$ac_try;;
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_link") 2>conftest.er1
15664 grep -v '^ *+' conftest.er1
>conftest.err
15666 cat conftest.err
>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } && {
15669 test -z "$ac_c_werror_flag" ||
15670 test ! -s conftest.err
15671 } && test -s conftest
$ac_exeext &&
15672 $as_test_x conftest
$ac_exeext; then
15673 ac_cv_lib_thread_thr_create
=yes
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.
$ac_ext >&5
15678 ac_cv_lib_thread_thr_create
=no
15681 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15682 conftest
$ac_exeext conftest.
$ac_ext
15683 LIBS
=$ac_check_lib_save_LIBS
15685 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15686 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15687 if test $ac_cv_lib_thread_thr_create = yes; then
15688 cat >>confdefs.h
<<\_ACEOF
15689 #define WITH_THREAD 1
15692 LIBS
="$LIBS -lthread"
15693 THREADOBJ
="Python/thread.o"
15694 USE_THREAD_MODULE
=""
15699 if test "$USE_THREAD_MODULE" != "#"
15701 # If the above checks didn't disable threads, (at least) OSF1
15702 # needs this '-threads' argument during linking.
15703 case $ac_sys_system in
15704 OSF1
) LDLAST
=-threads;;
15709 if test "$posix_threads" = "yes"; then
15710 if test "$unistd_defines_pthreads" = "no"; then
15712 cat >>confdefs.h
<<\_ACEOF
15713 #define _POSIX_THREADS 1
15718 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15719 case $ac_sys_system/$ac_sys_release in
15721 cat >>confdefs.h
<<\_ACEOF
15722 #define HAVE_PTHREAD_DESTRUCTOR 1
15727 cat >>confdefs.h
<<\_ACEOF
15728 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15733 cat >>confdefs.h
<<\_ACEOF
15734 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15740 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15741 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15742 if test "${ac_cv_pthread_system_supported+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
15745 if test "$cross_compiling" = yes; then
15746 ac_cv_pthread_system_supported
=no
15748 cat >conftest.
$ac_ext <<_ACEOF
15751 cat confdefs.h
>>conftest.
$ac_ext
15752 cat >>conftest.
$ac_ext <<_ACEOF
15753 /* end confdefs.h. */
15754 #include <pthread.h>
15755 void *foo(void *parm) {
15759 pthread_attr_t attr;
15761 if (pthread_attr_init(&attr)) exit(-1);
15762 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15763 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15767 rm -f conftest
$ac_exeext
15768 if { (ac_try
="$ac_link"
15769 case "(($ac_try" in
15770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_link") 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15778 { (case "(($ac_try" in
15779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15780 *) ac_try_echo
=$ac_try;;
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_try") 2>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 ac_cv_pthread_system_supported
=yes
15789 echo "$as_me: program exited with status $ac_status" >&5
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.
$ac_ext >&5
15793 ( exit $ac_status )
15794 ac_cv_pthread_system_supported
=no
15796 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15803 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15804 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15805 if test "$ac_cv_pthread_system_supported" = "yes"; then
15807 cat >>confdefs.h
<<\_ACEOF
15808 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15813 for ac_func
in pthread_sigmask
15815 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15818 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15821 cat >conftest.
$ac_ext <<_ACEOF
15824 cat confdefs.h
>>conftest.
$ac_ext
15825 cat >>conftest.
$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15829 #define $ac_func innocuous_$ac_func
15831 /* System header to define __stub macros and hopefully few prototypes,
15832 which can conflict with char $ac_func (); below.
15833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15834 <limits.h> exists even on freestanding compilers. */
15837 # include <limits.h>
15839 # include <assert.h>
15844 /* Override any GCC internal prototype to avoid an error.
15845 Use char because int might match the return type of a GCC
15846 builtin and then its argument prototype would still apply. */
15851 /* The GNU C library defines this for functions which it implements
15852 to always fail with ENOSYS. Some functions are actually named
15853 something starting with __ and the normal name is an alias. */
15854 #if defined __stub_$ac_func || defined __stub___$ac_func
15861 return $ac_func ();
15866 rm -f conftest.
$ac_objext conftest
$ac_exeext
15867 if { (ac_try
="$ac_link"
15868 case "(($ac_try" in
15869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_link") 2>conftest.er1
15875 grep -v '^ *+' conftest.er1 >conftest.err
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } && {
15880 test -z "$ac_c_werror_flag" ||
15881 test ! -s conftest.err
15882 } && test -s conftest$ac_exeext &&
15883 $as_test_x conftest$ac_exeext; then
15884 eval "$as_ac_var=yes"
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 eval "$as_ac_var=no"
15892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15893 conftest$ac_exeext conftest.$ac_ext
15895 ac_res=`eval echo '${'$as_ac_var'}'`
15896 { echo "$as_me:$LINENO: result: $ac_res" >&5
15897 echo "${ECHO_T}$ac_res" >&6; }
15898 if test `eval echo '${'$as_ac_var'}'` = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15902 case $ac_sys_system in
15905 cat >>confdefs.h <<\_ACEOF
15906 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15917 # Check for enable-ipv6
15920 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15921 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15922 # Check whether --enable-ipv6 was given.
15923 if test "${enable_ipv6+set}" = set; then
15924 enableval=$enable_ipv6; case "$enableval" in
15926 { echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6; }
15930 *) { echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6; }
15932 cat >>confdefs.h <<\_ACEOF
15933 #define ENABLE_IPV6 1
15941 if test "$cross_compiling" = yes; then
15942 { echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6; }
15947 cat >conftest.$ac_ext <<_ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 /* AF_INET6 available check */
15954 #include <sys/types.h>
15955 #include <sys/socket.h>
15958 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15965 rm -f conftest$ac_exeext
15966 if { (ac_try="$ac_link"
15967 case "(($ac_try" in
15968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15969 *) ac_try_echo
=$ac_try;;
15971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15972 (eval "$ac_link") 2>&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15976 { (case "(($ac_try" in
15977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_try") 2>&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 { echo "$as_me:$LINENO: result: yes" >&5
15986 echo "${ECHO_T}yes" >&6; }
15989 echo "$as_me: program exited with status $ac_status" >&5
15990 echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15993 ( exit $ac_status )
15994 { echo "$as_me:$LINENO: result: no" >&5
15995 echo "${ECHO_T}no" >&6; }
15998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16003 if test "$ipv6" = "yes"; then
16004 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
16005 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
16006 cat >conftest.$ac_ext <<_ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 #include <sys/types.h>
16013 #include <netinet/in.h>
16017 struct sockaddr_in6 x;
16023 rm -f conftest.$ac_objext
16024 if { (ac_try="$ac_compile"
16025 case "(($ac_try" in
16026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16027 *) ac_try_echo
=$ac_try;;
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_compile") 2>conftest.er1
16032 grep -v '^ *+' conftest.er1
>conftest.err
16034 cat conftest.err
>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } && {
16037 test -z "$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 } && test -s conftest.
$ac_objext; then
16040 { echo "$as_me:$LINENO: result: yes" >&5
16041 echo "${ECHO_T}yes" >&6; }
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.
$ac_ext >&5
16047 { echo "$as_me:$LINENO: result: no" >&5
16048 echo "${ECHO_T}no" >&6; }
16052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16055 if test "$ipv6" = "yes"; then
16056 cat >>confdefs.h
<<\_ACEOF
16057 #define ENABLE_IPV6 1
16069 if test "$ipv6" = "yes"; then
16070 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16071 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16072 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
16076 cat >conftest.
$ac_ext <<_ACEOF
16079 cat confdefs.h
>>conftest.
$ac_ext
16080 cat >>conftest.
$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16083 #include <netinet/in.h>
16084 #ifdef IPV6_INRIA_VERSION
16088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16089 $EGREP "yes" >/dev
/null
2>&1; then
16096 cat >conftest.
$ac_ext <<_ACEOF
16099 cat confdefs.h
>>conftest.
$ac_ext
16100 cat >>conftest.
$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16103 #include <netinet/in.h>
16108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16109 $EGREP "yes" >/dev
/null
2>&1; then
16112 ipv6libdir
=/usr
/local
/v
6/lib
16119 cat >conftest.
$ac_ext <<_ACEOF
16122 cat confdefs.h
>>conftest.
$ac_ext
16123 cat >>conftest.
$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16126 #include <features.h>
16127 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16132 $EGREP "yes" >/dev
/null
2>&1; then
16140 if test -d /usr
/inet6
; then
16143 ipv6libdir
=/usr
/inet
6/lib
16144 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
16148 if test -f /etc
/netconfig
; then
16149 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
16156 cat >conftest.
$ac_ext <<_ACEOF
16159 cat confdefs.h
>>conftest.
$ac_ext
16160 cat >>conftest.
$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16163 #include <sys/param.h>
16164 #ifdef _TOSHIBA_INET6
16168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16169 $EGREP "yes" >/dev
/null
2>&1; then
16172 ipv6libdir
=/usr
/local
/v
6/lib
16178 cat >conftest.
$ac_ext <<_ACEOF
16181 cat confdefs.h
>>conftest.
$ac_ext
16182 cat >>conftest.
$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16185 #include </usr/local/v6/include/sys/v6config.h>
16190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16191 $EGREP "yes" >/dev
/null
2>&1; then
16194 ipv6libdir
=/usr
/local
/v
6/lib
;
16195 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
16201 cat >conftest.
$ac_ext <<_ACEOF
16204 cat confdefs.h
>>conftest.
$ac_ext
16205 cat >>conftest.
$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16208 #include <sys/param.h>
16209 #ifdef _ZETA_MINAMI_INET6
16213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16214 $EGREP "yes" >/dev
/null
2>&1; then
16217 ipv6libdir
=/usr
/local
/v
6/lib
16223 if test "$ipv6type" != "unknown"; then
16227 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16228 echo "${ECHO_T}$ipv6type" >&6; }
16231 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16232 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
16233 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
16234 echo "using lib$ipv6lib"
16236 if test $ipv6trylibc = "yes"; then
16239 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16240 echo "You need to fetch lib$ipv6lib.a from appropriate"
16241 echo 'ipv6 kit and compile beforehand.'
16247 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16248 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16249 cat >conftest.
$ac_ext <<_ACEOF
16252 cat confdefs.h
>>conftest.
$ac_ext
16253 cat >>conftest.
$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 #include <Carbon/Carbon.h>
16259 FSIORefNum fRef = 0
16264 rm -f conftest.
$ac_objext
16265 if { (ac_try
="$ac_compile"
16266 case "(($ac_try" in
16267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_compile") 2>conftest.er1
16273 grep -v '^ *+' conftest.er1 >conftest.err
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } && {
16278 test -z "$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16280 } && test -s conftest.$ac_objext; then
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_OSX105_SDK 1
16286 { echo "$as_me:$LINENO: result: yes" >&5
16287 echo "${ECHO_T}yes" >&6; }
16289 echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 { echo "$as_me:$LINENO: result: no" >&5
16293 echo "${ECHO_T}no" >&6; }
16297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 # Check for --with-doc-strings
16300 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16301 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16303 # Check whether --with-doc-strings was given.
16304 if test "${with_doc_strings+set}" = set; then
16305 withval=$with_doc_strings;
16309 if test -z "$with_doc_strings"
16310 then with_doc_strings="yes"
16312 if test "$with_doc_strings" != "no"
16315 cat >>confdefs.h <<\_ACEOF
16316 #define WITH_DOC_STRINGS 1
16320 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16321 echo "${ECHO_T}$with_doc_strings" >&6; }
16323 # Check for Python-specific malloc support
16324 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16325 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16327 # Check whether --with-tsc was given.
16328 if test "${with_tsc+set}" = set; then
16330 if test "$withval" != no
16333 cat >>confdefs.h <<\_ACEOF
16337 { echo "$as_me:$LINENO: result: yes" >&5
16338 echo "${ECHO_T}yes" >&6; }
16339 else { echo "$as_me:$LINENO: result: no" >&5
16340 echo "${ECHO_T}no" >&6; }
16343 { echo "$as_me:$LINENO: result: no" >&5
16344 echo "${ECHO_T}no" >&6; }
16348 # Check for Python-specific malloc support
16349 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16350 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16352 # Check whether --with-pymalloc was given.
16353 if test "${with_pymalloc+set}" = set; then
16354 withval=$with_pymalloc;
16358 if test -z "$with_pymalloc"
16359 then with_pymalloc="yes"
16361 if test "$with_pymalloc" != "no"
16364 cat >>confdefs.h <<\_ACEOF
16365 #define WITH_PYMALLOC 1
16369 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16370 echo "${ECHO_T}$with_pymalloc" >&6; }
16372 # Check for --with-wctype-functions
16373 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16374 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16376 # Check whether --with-wctype-functions was given.
16377 if test "${with_wctype_functions+set}" = set; then
16378 withval=$with_wctype_functions;
16379 if test "$withval" != no
16382 cat >>confdefs.h <<\_ACEOF
16383 #define WANT_WCTYPE_FUNCTIONS 1
16386 { echo "$as_me:$LINENO: result: yes" >&5
16387 echo "${ECHO_T}yes" >&6; }
16388 else { echo "$as_me:$LINENO: result: no" >&5
16389 echo "${ECHO_T}no" >&6; }
16392 { echo "$as_me:$LINENO: result: no" >&5
16393 echo "${ECHO_T}no" >&6; }
16397 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16401 # the dlopen() function means we might want to use dynload_shlib.o. some
16402 # platforms, such as AIX, have dlopen(), but don't want to use it.
16404 for ac_func in dlopen
16406 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16420 #define $ac_func innocuous_$ac_func
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425 <limits.h> exists even on freestanding compilers. */
16428 # include <limits.h>
16430 # include <assert.h>
16435 /* Override any GCC internal prototype to avoid an error.
16436 Use char because int might match the return type of a GCC
16437 builtin and then its argument prototype would still apply. */
16442 /* The GNU C library defines this for functions which it implements
16443 to always fail with ENOSYS. Some functions are actually named
16444 something starting with __ and the normal name is an alias. */
16445 #if defined __stub_$ac_func || defined __stub___$ac_func
16452 return $ac_func ();
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16461 *) ac_try_echo
=$ac_try;;
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>conftest.er1
16466 grep -v '^ *+' conftest.er1
>conftest.err
16468 cat conftest.err
>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } && {
16471 test -z "$ac_c_werror_flag" ||
16472 test ! -s conftest.err
16473 } && test -s conftest
$ac_exeext &&
16474 $as_test_x conftest
$ac_exeext; then
16475 eval "$as_ac_var=yes"
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.
$ac_ext >&5
16480 eval "$as_ac_var=no"
16483 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16484 conftest
$ac_exeext conftest.
$ac_ext
16486 ac_res
=`eval echo '${'$as_ac_var'}'`
16487 { echo "$as_me:$LINENO: result: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16489 if test `eval echo '${'$as_ac_var'}'` = yes; then
16490 cat >>confdefs.h
<<_ACEOF
16491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16498 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16499 # loading of modules.
16501 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16502 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16503 if test -z "$DYNLOADFILE"
16505 case $ac_sys_system/$ac_sys_release in
16506 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16507 if test "$ac_cv_func_dlopen" = yes
16508 then DYNLOADFILE
="dynload_shlib.o"
16509 else DYNLOADFILE
="dynload_aix.o"
16512 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
16513 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
16514 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16515 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
16516 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
16518 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16519 # out any dynamic loading
16520 if test "$ac_cv_func_dlopen" = yes
16521 then DYNLOADFILE
="dynload_shlib.o"
16522 else DYNLOADFILE
="dynload_stub.o"
16527 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16528 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16529 if test "$DYNLOADFILE" != "dynload_stub.o"
16532 cat >>confdefs.h
<<\_ACEOF
16533 #define HAVE_DYNAMIC_LOADING 1
16538 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16541 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16542 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16543 if test -z "$MACHDEP_OBJS"
16545 MACHDEP_OBJS
=$extra_machdep_objs
16547 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
16549 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16550 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16552 # checks for library functions
16638 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
16639 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16640 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16641 getpriority getpwent getspnam getspent getsid getwd \
16642 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
16643 mremap nice pathconf pause plock poll pthread_init \
16644 putenv readlink realpath \
16645 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16647 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16648 sigaction siginterrupt sigrelse strftime \
16649 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
16650 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16652 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16655 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16658 cat >conftest.
$ac_ext <<_ACEOF
16661 cat confdefs.h
>>conftest.
$ac_ext
16662 cat >>conftest.
$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16666 #define $ac_func innocuous_$ac_func
16668 /* System header to define __stub macros and hopefully few prototypes,
16669 which can conflict with char $ac_func (); below.
16670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16671 <limits.h> exists even on freestanding compilers. */
16674 # include <limits.h>
16676 # include <assert.h>
16681 /* Override any GCC internal prototype to avoid an error.
16682 Use char because int might match the return type of a GCC
16683 builtin and then its argument prototype would still apply. */
16688 /* The GNU C library defines this for functions which it implements
16689 to always fail with ENOSYS. Some functions are actually named
16690 something starting with __ and the normal name is an alias. */
16691 #if defined __stub_$ac_func || defined __stub___$ac_func
16698 return $ac_func ();
16703 rm -f conftest.
$ac_objext conftest
$ac_exeext
16704 if { (ac_try
="$ac_link"
16705 case "(($ac_try" in
16706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_link") 2>conftest.er1
16712 grep -v '^ *+' conftest.er1 >conftest.err
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } && {
16717 test -z "$ac_c_werror_flag" ||
16718 test ! -s conftest.err
16719 } && test -s conftest$ac_exeext &&
16720 $as_test_x conftest$ac_exeext; then
16721 eval "$as_ac_var=yes"
16723 echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16726 eval "$as_ac_var=no"
16729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16730 conftest$ac_exeext conftest.$ac_ext
16732 ac_res=`eval echo '${'$as_ac_var'}'`
16733 { echo "$as_me:$LINENO: result: $ac_res" >&5
16734 echo "${ECHO_T}$ac_res" >&6; }
16735 if test `eval echo '${'$as_ac_var'}'` = yes; then
16736 cat >>confdefs.h <<_ACEOF
16737 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16744 # For some functions, having a definition is not sufficient, since
16745 # we want to take their address.
16746 { echo "$as_me:$LINENO: checking for chroot" >&5
16747 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16748 cat >conftest.$ac_ext <<_ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754 #include <unistd.h>
16763 rm -f conftest.$ac_objext
16764 if { (ac_try="$ac_compile"
16765 case "(($ac_try" in
16766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16767 *) ac_try_echo
=$ac_try;;
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_compile") 2>conftest.er1
16772 grep -v '^ *+' conftest.er1
>conftest.err
16774 cat conftest.err
>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); } && {
16777 test -z "$ac_c_werror_flag" ||
16778 test ! -s conftest.err
16779 } && test -s conftest.
$ac_objext; then
16781 cat >>confdefs.h
<<\_ACEOF
16782 #define HAVE_CHROOT 1
16785 { echo "$as_me:$LINENO: result: yes" >&5
16786 echo "${ECHO_T}yes" >&6; }
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.
$ac_ext >&5
16791 { echo "$as_me:$LINENO: result: no" >&5
16792 echo "${ECHO_T}no" >&6; }
16796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16797 { echo "$as_me:$LINENO: checking for link" >&5
16798 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16799 cat >conftest.
$ac_ext <<_ACEOF
16802 cat confdefs.h
>>conftest.
$ac_ext
16803 cat >>conftest.
$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805 #include <unistd.h>
16814 rm -f conftest.
$ac_objext
16815 if { (ac_try
="$ac_compile"
16816 case "(($ac_try" in
16817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_compile") 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } && {
16828 test -z "$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16830 } && test -s conftest.$ac_objext; then
16832 cat >>confdefs.h <<\_ACEOF
16833 #define HAVE_LINK 1
16836 { echo "$as_me:$LINENO: result: yes" >&5
16837 echo "${ECHO_T}yes" >&6; }
16839 echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16842 { echo "$as_me:$LINENO: result: no" >&5
16843 echo "${ECHO_T}no" >&6; }
16847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848 { echo "$as_me:$LINENO: checking for symlink" >&5
16849 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16850 cat >conftest.$ac_ext <<_ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 #include <unistd.h>
16865 rm -f conftest.$ac_objext
16866 if { (ac_try="$ac_compile"
16867 case "(($ac_try" in
16868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16869 *) ac_try_echo
=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_compile") 2>conftest.er1
16874 grep -v '^ *+' conftest.er1
>conftest.err
16876 cat conftest.err
>&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } && {
16879 test -z "$ac_c_werror_flag" ||
16880 test ! -s conftest.err
16881 } && test -s conftest.
$ac_objext; then
16883 cat >>confdefs.h
<<\_ACEOF
16884 #define HAVE_SYMLINK 1
16887 { echo "$as_me:$LINENO: result: yes" >&5
16888 echo "${ECHO_T}yes" >&6; }
16890 echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.
$ac_ext >&5
16893 { echo "$as_me:$LINENO: result: no" >&5
16894 echo "${ECHO_T}no" >&6; }
16898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16899 { echo "$as_me:$LINENO: checking for fchdir" >&5
16900 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16901 cat >conftest.
$ac_ext <<_ACEOF
16904 cat confdefs.h
>>conftest.
$ac_ext
16905 cat >>conftest.
$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 #include <unistd.h>
16916 rm -f conftest.
$ac_objext
16917 if { (ac_try
="$ac_compile"
16918 case "(($ac_try" in
16919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_compile") 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } && {
16930 test -z "$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 } && test -s conftest.$ac_objext; then
16934 cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_FCHDIR 1
16938 { echo "$as_me:$LINENO: result: yes" >&5
16939 echo "${ECHO_T}yes" >&6; }
16941 echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 { echo "$as_me:$LINENO: result: no" >&5
16945 echo "${ECHO_T}no" >&6; }
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 { echo "$as_me:$LINENO: checking for fsync" >&5
16951 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16952 cat >conftest.$ac_ext <<_ACEOF
16955 cat confdefs.h >>conftest.$ac_ext
16956 cat >>conftest.$ac_ext <<_ACEOF
16957 /* end confdefs.h. */
16958 #include <unistd.h>
16967 rm -f conftest.$ac_objext
16968 if { (ac_try="$ac_compile"
16969 case "(($ac_try" in
16970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16971 *) ac_try_echo
=$ac_try;;
16973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_compile") 2>conftest.er1
16976 grep -v '^ *+' conftest.er1
>conftest.err
16978 cat conftest.err
>&5
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.
$ac_objext; then
16985 cat >>confdefs.h
<<\_ACEOF
16986 #define HAVE_FSYNC 1
16989 { echo "$as_me:$LINENO: result: yes" >&5
16990 echo "${ECHO_T}yes" >&6; }
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.
$ac_ext >&5
16995 { echo "$as_me:$LINENO: result: no" >&5
16996 echo "${ECHO_T}no" >&6; }
17000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17001 { echo "$as_me:$LINENO: checking for fdatasync" >&5
17002 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
17003 cat >conftest.
$ac_ext <<_ACEOF
17006 cat confdefs.h
>>conftest.
$ac_ext
17007 cat >>conftest.
$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17009 #include <unistd.h>
17018 rm -f conftest.
$ac_objext
17019 if { (ac_try
="$ac_compile"
17020 case "(($ac_try" in
17021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_compile") 2>conftest.er1
17027 grep -v '^ *+' conftest.er1 >conftest.err
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } && {
17032 test -z "$ac_c_werror_flag" ||
17033 test ! -s conftest.err
17034 } && test -s conftest.$ac_objext; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_FDATASYNC 1
17040 { echo "$as_me:$LINENO: result: yes" >&5
17041 echo "${ECHO_T}yes" >&6; }
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046 { echo "$as_me:$LINENO: result: no" >&5
17047 echo "${ECHO_T}no" >&6; }
17051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17052 { echo "$as_me:$LINENO: checking for epoll" >&5
17053 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060 #include <sys/epoll.h>
17064 void *x=epoll_create
17069 rm -f conftest.$ac_objext
17070 if { (ac_try="$ac_compile"
17071 case "(($ac_try" in
17072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17073 *) ac_try_echo
=$ac_try;;
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_compile") 2>conftest.er1
17078 grep -v '^ *+' conftest.er1
>conftest.err
17080 cat conftest.err
>&5
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); } && {
17083 test -z "$ac_c_werror_flag" ||
17084 test ! -s conftest.err
17085 } && test -s conftest.
$ac_objext; then
17087 cat >>confdefs.h
<<\_ACEOF
17088 #define HAVE_EPOLL 1
17091 { echo "$as_me:$LINENO: result: yes" >&5
17092 echo "${ECHO_T}yes" >&6; }
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.
$ac_ext >&5
17097 { echo "$as_me:$LINENO: result: no" >&5
17098 echo "${ECHO_T}no" >&6; }
17102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17103 { echo "$as_me:$LINENO: checking for kqueue" >&5
17104 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17105 cat >conftest.
$ac_ext <<_ACEOF
17108 cat confdefs.h
>>conftest.
$ac_ext
17109 cat >>conftest.
$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17112 #include <sys/types.h>
17113 #include <sys/event.h>
17123 rm -f conftest.
$ac_objext
17124 if { (ac_try
="$ac_compile"
17125 case "(($ac_try" in
17126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_compile") 2>conftest.er1
17132 grep -v '^ *+' conftest.er1 >conftest.err
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } && {
17137 test -z "$ac_c_werror_flag" ||
17138 test ! -s conftest.err
17139 } && test -s conftest.$ac_objext; then
17141 cat >>confdefs.h <<\_ACEOF
17142 #define HAVE_KQUEUE 1
17145 { echo "$as_me:$LINENO: result: yes" >&5
17146 echo "${ECHO_T}yes" >&6; }
17148 echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 { echo "$as_me:$LINENO: result: no" >&5
17152 echo "${ECHO_T}no" >&6; }
17156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17157 # On some systems (eg. FreeBSD 5), we would find a definition of the
17158 # functions ctermid_r, setgroups in the library, but no prototype
17159 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17160 # address to avoid compiler warnings and potential miscompilations
17161 # because of the missing prototypes.
17163 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17164 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17165 cat >conftest.$ac_ext <<_ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17172 #include "confdefs.h"
17178 void* p = ctermid_r
17183 rm -f conftest.$ac_objext
17184 if { (ac_try="$ac_compile"
17185 case "(($ac_try" in
17186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17187 *) ac_try_echo
=$ac_try;;
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190 (eval "$ac_compile") 2>conftest.er1
17192 grep -v '^ *+' conftest.er1
>conftest.err
17194 cat conftest.err
>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } && {
17197 test -z "$ac_c_werror_flag" ||
17198 test ! -s conftest.err
17199 } && test -s conftest.
$ac_objext; then
17201 cat >>confdefs.h
<<\_ACEOF
17202 #define HAVE_CTERMID_R 1
17205 { echo "$as_me:$LINENO: result: yes" >&5
17206 echo "${ECHO_T}yes" >&6; }
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.
$ac_ext >&5
17211 { echo "$as_me:$LINENO: result: no" >&5
17212 echo "${ECHO_T}no" >&6; }
17216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17218 { echo "$as_me:$LINENO: checking for flock" >&5
17219 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17220 cat >conftest.
$ac_ext <<_ACEOF
17223 cat confdefs.h
>>conftest.
$ac_ext
17224 cat >>conftest.
$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17227 #include "confdefs.h"
17228 #include <sys/file.h>
17238 rm -f conftest.
$ac_objext
17239 if { (ac_try
="$ac_compile"
17240 case "(($ac_try" in
17241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17242 *) ac_try_echo=$ac_try;;
17244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17245 (eval "$ac_compile") 2>conftest.er1
17247 grep -v '^ *+' conftest.er1 >conftest.err
17249 cat conftest.err >&5
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); } && {
17252 test -z "$ac_c_werror_flag" ||
17253 test ! -s conftest.err
17254 } && test -s conftest.$ac_objext; then
17256 cat >>confdefs.h <<\_ACEOF
17257 #define HAVE_FLOCK 1
17260 { echo "$as_me:$LINENO: result: yes" >&5
17261 echo "${ECHO_T}yes" >&6; }
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 { echo "$as_me:$LINENO: result: no" >&5
17267 echo "${ECHO_T}no" >&6; }
17271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17274 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 #include "confdefs.h"
17283 #include <unistd.h>
17288 void* p = getpagesize
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17297 *) ac_try_echo
=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_compile") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1
>conftest.err
17304 cat conftest.err
>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest.
$ac_objext; then
17311 cat >>confdefs.h
<<\_ACEOF
17312 #define HAVE_GETPAGESIZE 1
17315 { echo "$as_me:$LINENO: result: yes" >&5
17316 echo "${ECHO_T}yes" >&6; }
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.
$ac_ext >&5
17321 { echo "$as_me:$LINENO: result: no" >&5
17322 echo "${ECHO_T}no" >&6; }
17326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17328 for ac_prog
in true
17330 # Extract the first word of "$ac_prog", so it can be a program name with args.
17331 set dummy
$ac_prog; ac_word
=$2
17332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17334 if test "${ac_cv_prog_TRUE+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 if test -n "$TRUE"; then
17338 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
17340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17341 for as_dir
in $PATH
17344 test -z "$as_dir" && as_dir
=.
17345 for ac_exec_ext
in '' $ac_executable_extensions; do
17346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17347 ac_cv_prog_TRUE
="$ac_prog"
17348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17357 TRUE
=$ac_cv_prog_TRUE
17358 if test -n "$TRUE"; then
17359 { echo "$as_me:$LINENO: result: $TRUE" >&5
17360 echo "${ECHO_T}$TRUE" >&6; }
17362 { echo "$as_me:$LINENO: result: no" >&5
17363 echo "${ECHO_T}no" >&6; }
17367 test -n "$TRUE" && break
17369 test -n "$TRUE" || TRUE
="/bin/true"
17372 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17373 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17374 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17377 ac_check_lib_save_LIBS
=$LIBS
17379 cat >conftest.
$ac_ext <<_ACEOF
17382 cat confdefs.h
>>conftest.
$ac_ext
17383 cat >>conftest.
$ac_ext <<_ACEOF
17384 /* end confdefs.h. */
17386 /* Override any GCC internal prototype to avoid an error.
17387 Use char because int might match the return type of a GCC
17388 builtin and then its argument prototype would still apply. */
17396 return inet_aton ();
17401 rm -f conftest.
$ac_objext conftest
$ac_exeext
17402 if { (ac_try
="$ac_link"
17403 case "(($ac_try" in
17404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_link") 2>conftest.er1
17410 grep -v '^ *+' conftest.er1 >conftest.err
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && {
17415 test -z "$ac_c_werror_flag" ||
17416 test ! -s conftest.err
17417 } && test -s conftest$ac_exeext &&
17418 $as_test_x conftest$ac_exeext; then
17419 ac_cv_lib_c_inet_aton=yes
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17424 ac_cv_lib_c_inet_aton=no
17427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17428 conftest$ac_exeext conftest.$ac_ext
17429 LIBS=$ac_check_lib_save_LIBS
17431 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17432 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17433 if test $ac_cv_lib_c_inet_aton = yes; then
17437 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17438 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17439 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 ac_check_lib_save_LIBS=$LIBS
17443 LIBS="-lresolv $LIBS"
17444 cat >conftest.$ac_ext <<_ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17451 /* Override any GCC internal prototype to avoid an error.
17452 Use char because int might match the return type of a GCC
17453 builtin and then its argument prototype would still apply. */
17461 return inet_aton ();
17466 rm -f conftest.$ac_objext conftest$ac_exeext
17467 if { (ac_try="$ac_link"
17468 case "(($ac_try" in
17469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17470 *) ac_try_echo
=$ac_try;;
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>conftest.er1
17475 grep -v '^ *+' conftest.er1
>conftest.err
17477 cat conftest.err
>&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } && {
17480 test -z "$ac_c_werror_flag" ||
17481 test ! -s conftest.err
17482 } && test -s conftest
$ac_exeext &&
17483 $as_test_x conftest
$ac_exeext; then
17484 ac_cv_lib_resolv_inet_aton
=yes
17486 echo "$as_me: failed program was:" >&5
17487 sed 's/^/| /' conftest.
$ac_ext >&5
17489 ac_cv_lib_resolv_inet_aton
=no
17492 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17493 conftest
$ac_exeext conftest.
$ac_ext
17494 LIBS
=$ac_check_lib_save_LIBS
17496 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17497 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17498 if test $ac_cv_lib_resolv_inet_aton = yes; then
17499 cat >>confdefs.h
<<_ACEOF
17500 #define HAVE_LIBRESOLV 1
17503 LIBS
="-lresolv $LIBS"
17511 # On Tru64, chflags seems to be present, but calling it will
17513 { echo "$as_me:$LINENO: checking for chflags" >&5
17514 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17515 if test "$cross_compiling" = yes; then
17516 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17517 See \`config.log' for more details." >&5
17518 echo "$as_me: error: cannot run test program while cross compiling
17519 See \`config.log' for more details." >&2;}
17520 { (exit 1); exit 1; }; }
17522 cat >conftest.
$ac_ext <<_ACEOF
17525 cat confdefs.h
>>conftest.
$ac_ext
17526 cat >>conftest.
$ac_ext <<_ACEOF
17527 /* end confdefs.h. */
17529 #include <sys/stat.h>
17530 #include <unistd.h>
17531 int main(int argc, char*argv[])
17533 if(chflags(argv[0], 0) != 0)
17539 rm -f conftest
$ac_exeext
17540 if { (ac_try
="$ac_link"
17541 case "(($ac_try" in
17542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_link") 2>&5
17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17550 { (case "(($ac_try" in
17551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17552 *) ac_try_echo
=$ac_try;;
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_try") 2>&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17560 cat >>confdefs.h
<<\_ACEOF
17561 #define HAVE_CHFLAGS 1
17564 { echo "$as_me:$LINENO: result: yes" >&5
17565 echo "${ECHO_T}yes" >&6; }
17567 echo "$as_me: program exited with status $ac_status" >&5
17568 echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.
$ac_ext >&5
17571 ( exit $ac_status )
17572 { echo "$as_me:$LINENO: result: no" >&5
17573 echo "${ECHO_T}no" >&6; }
17576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17581 { echo "$as_me:$LINENO: checking for lchflags" >&5
17582 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17583 if test "$cross_compiling" = yes; then
17584 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17585 See \`config.log' for more details." >&5
17586 echo "$as_me: error: cannot run test program while cross compiling
17587 See \`config.log' for more details." >&2;}
17588 { (exit 1); exit 1; }; }
17590 cat >conftest.
$ac_ext <<_ACEOF
17593 cat confdefs.h
>>conftest.
$ac_ext
17594 cat >>conftest.
$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17597 #include <sys/stat.h>
17598 #include <unistd.h>
17599 int main(int argc, char*argv[])
17601 if(lchflags(argv[0], 0) != 0)
17607 rm -f conftest
$ac_exeext
17608 if { (ac_try
="$ac_link"
17609 case "(($ac_try" in
17610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17618 { (case "(($ac_try" in
17619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17620 *) ac_try_echo
=$ac_try;;
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_try") 2>&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17628 cat >>confdefs.h
<<\_ACEOF
17629 #define HAVE_LCHFLAGS 1
17632 { echo "$as_me:$LINENO: result: yes" >&5
17633 echo "${ECHO_T}yes" >&6; }
17635 echo "$as_me: program exited with status $ac_status" >&5
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.
$ac_ext >&5
17639 ( exit $ac_status )
17640 { echo "$as_me:$LINENO: result: no" >&5
17641 echo "${ECHO_T}no" >&6; }
17644 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17649 case $ac_sys_system/$ac_sys_release in
17651 _CUR_CFLAGS
="${CFLAGS}"
17652 _CUR_LDFLAGS
="${LDFLAGS}"
17653 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
17654 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17658 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17659 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17660 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 ac_check_lib_save_LIBS
=$LIBS
17665 cat >conftest.
$ac_ext <<_ACEOF
17668 cat confdefs.h
>>conftest.
$ac_ext
17669 cat >>conftest.
$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17672 /* Override any GCC internal prototype to avoid an error.
17673 Use char because int might match the return type of a GCC
17674 builtin and then its argument prototype would still apply. */
17678 char inflateCopy ();
17682 return inflateCopy ();
17687 rm -f conftest.
$ac_objext conftest
$ac_exeext
17688 if { (ac_try
="$ac_link"
17689 case "(($ac_try" in
17690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_link") 2>conftest.er1
17696 grep -v '^ *+' conftest.er1 >conftest.err
17698 cat conftest.err >&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } && {
17701 test -z "$ac_c_werror_flag" ||
17702 test ! -s conftest.err
17703 } && test -s conftest$ac_exeext &&
17704 $as_test_x conftest$ac_exeext; then
17705 ac_cv_lib_z_inflateCopy=yes
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_cv_lib_z_inflateCopy=no
17713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17714 conftest$ac_exeext conftest.$ac_ext
17715 LIBS=$ac_check_lib_save_LIBS
17717 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17718 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17719 if test $ac_cv_lib_z_inflateCopy = yes; then
17721 cat >>confdefs.h <<\_ACEOF
17722 #define HAVE_ZLIB_COPY 1
17728 case $ac_sys_system/$ac_sys_release in
17730 CFLAGS="${_CUR_CFLAGS}"
17731 LDFLAGS="${_CUR_LDFLAGS}"
17735 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17736 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17737 cat >conftest.$ac_ext <<_ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17744 #include "confdefs.h"
17750 void* p = hstrerror; hstrerror(0)
17755 rm -f conftest.$ac_objext conftest$ac_exeext
17756 if { (ac_try="$ac_link"
17757 case "(($ac_try" in
17758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17759 *) ac_try_echo
=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_link") 2>conftest.er1
17764 grep -v '^ *+' conftest.er1
>conftest.err
17766 cat conftest.err
>&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } && {
17769 test -z "$ac_c_werror_flag" ||
17770 test ! -s conftest.err
17771 } && test -s conftest
$ac_exeext &&
17772 $as_test_x conftest
$ac_exeext; then
17774 cat >>confdefs.h
<<\_ACEOF
17775 #define HAVE_HSTRERROR 1
17778 { echo "$as_me:$LINENO: result: yes" >&5
17779 echo "${ECHO_T}yes" >&6; }
17781 echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.
$ac_ext >&5
17784 { echo "$as_me:$LINENO: result: no" >&5
17785 echo "${ECHO_T}no" >&6; }
17789 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17790 conftest
$ac_exeext conftest.
$ac_ext
17792 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17793 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17794 cat >conftest.
$ac_ext <<_ACEOF
17797 cat confdefs.h
>>conftest.
$ac_ext
17798 cat >>conftest.
$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17801 #include "confdefs.h"
17802 #include <sys/types.h>
17803 #include <sys/socket.h>
17804 #include <netinet/in.h>
17805 #include <arpa/inet.h>
17810 void* p = inet_aton;inet_aton(0,0)
17815 rm -f conftest.
$ac_objext conftest
$ac_exeext
17816 if { (ac_try
="$ac_link"
17817 case "(($ac_try" in
17818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_link") 2>conftest.er1
17824 grep -v '^ *+' conftest.er1 >conftest.err
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } && {
17829 test -z "$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 } && test -s conftest$ac_exeext &&
17832 $as_test_x conftest$ac_exeext; then
17834 cat >>confdefs.h <<\_ACEOF
17835 #define HAVE_INET_ATON 1
17838 { echo "$as_me:$LINENO: result: yes" >&5
17839 echo "${ECHO_T}yes" >&6; }
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 { echo "$as_me:$LINENO: result: no" >&5
17845 echo "${ECHO_T}no" >&6; }
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850 conftest$ac_exeext conftest.$ac_ext
17852 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17853 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17854 cat >conftest.$ac_ext <<_ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17861 #include "confdefs.h"
17862 #include <sys/types.h>
17863 #include <sys/socket.h>
17864 #include <netinet/in.h>
17865 #include <arpa/inet.h>
17870 void* p = inet_pton
17875 rm -f conftest.$ac_objext
17876 if { (ac_try="$ac_compile"
17877 case "(($ac_try" in
17878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17879 *) ac_try_echo
=$ac_try;;
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_compile") 2>conftest.er1
17884 grep -v '^ *+' conftest.er1
>conftest.err
17886 cat conftest.err
>&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } && {
17889 test -z "$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 } && test -s conftest.
$ac_objext; then
17893 cat >>confdefs.h
<<\_ACEOF
17894 #define HAVE_INET_PTON 1
17897 { echo "$as_me:$LINENO: result: yes" >&5
17898 echo "${ECHO_T}yes" >&6; }
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.
$ac_ext >&5
17903 { echo "$as_me:$LINENO: result: no" >&5
17904 echo "${ECHO_T}no" >&6; }
17908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17910 # On some systems, setgroups is in unistd.h, on others, in grp.h
17911 { echo "$as_me:$LINENO: checking for setgroups" >&5
17912 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17913 cat >conftest.
$ac_ext <<_ACEOF
17916 cat confdefs.h
>>conftest.
$ac_ext
17917 cat >>conftest.
$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17920 #include "confdefs.h"
17921 #include <unistd.h>
17929 void* p = setgroups
17934 rm -f conftest.
$ac_objext
17935 if { (ac_try
="$ac_compile"
17936 case "(($ac_try" in
17937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_compile") 2>conftest.er1
17943 grep -v '^ *+' conftest.er1 >conftest.err
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } && {
17948 test -z "$ac_c_werror_flag" ||
17949 test ! -s conftest.err
17950 } && test -s conftest.$ac_objext; then
17952 cat >>confdefs.h <<\_ACEOF
17953 #define HAVE_SETGROUPS 1
17956 { echo "$as_me:$LINENO: result: yes" >&5
17957 echo "${ECHO_T}yes" >&6; }
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 { echo "$as_me:$LINENO: result: no" >&5
17963 echo "${ECHO_T}no" >&6; }
17967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969 # check for openpty and forkpty
17972 for ac_func in openpty
17974 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 cat >conftest.$ac_ext <<_ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h. */
17986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17988 #define $ac_func innocuous_$ac_func
17990 /* System header to define __stub macros and hopefully few prototypes,
17991 which can conflict with char $ac_func (); below.
17992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17993 <limits.h> exists even on freestanding compilers. */
17996 # include <limits.h>
17998 # include <assert.h>
18003 /* Override any GCC internal prototype to avoid an error.
18004 Use char because int might match the return type of a GCC
18005 builtin and then its argument prototype would still apply. */
18010 /* The GNU C library defines this for functions which it implements
18011 to always fail with ENOSYS. Some functions are actually named
18012 something starting with __ and the normal name is an alias. */
18013 #if defined __stub_$ac_func || defined __stub___$ac_func
18020 return $ac_func ();
18025 rm -f conftest.$ac_objext conftest$ac_exeext
18026 if { (ac_try="$ac_link"
18027 case "(($ac_try" in
18028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18029 *) ac_try_echo
=$ac_try;;
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_link") 2>conftest.er1
18034 grep -v '^ *+' conftest.er1
>conftest.err
18036 cat conftest.err
>&5
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } && {
18039 test -z "$ac_c_werror_flag" ||
18040 test ! -s conftest.err
18041 } && test -s conftest
$ac_exeext &&
18042 $as_test_x conftest
$ac_exeext; then
18043 eval "$as_ac_var=yes"
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.
$ac_ext >&5
18048 eval "$as_ac_var=no"
18051 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18052 conftest
$ac_exeext conftest.
$ac_ext
18054 ac_res
=`eval echo '${'$as_ac_var'}'`
18055 { echo "$as_me:$LINENO: result: $ac_res" >&5
18056 echo "${ECHO_T}$ac_res" >&6; }
18057 if test `eval echo '${'$as_ac_var'}'` = yes; then
18058 cat >>confdefs.h
<<_ACEOF
18059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18063 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18064 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18065 if test "${ac_cv_lib_util_openpty+set}" = set; then
18066 echo $ECHO_N "(cached) $ECHO_C" >&6
18068 ac_check_lib_save_LIBS
=$LIBS
18069 LIBS
="-lutil $LIBS"
18070 cat >conftest.
$ac_ext <<_ACEOF
18073 cat confdefs.h
>>conftest.
$ac_ext
18074 cat >>conftest.
$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18077 /* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18092 rm -f conftest.
$ac_objext conftest
$ac_exeext
18093 if { (ac_try
="$ac_link"
18094 case "(($ac_try" in
18095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_link") 2>conftest.er1
18101 grep -v '^ *+' conftest.er1 >conftest.err
18103 cat conftest.err >&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } && {
18106 test -z "$ac_c_werror_flag" ||
18107 test ! -s conftest.err
18108 } && test -s conftest$ac_exeext &&
18109 $as_test_x conftest$ac_exeext; then
18110 ac_cv_lib_util_openpty=yes
18112 echo "$as_me: failed program was:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 ac_cv_lib_util_openpty=no
18118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119 conftest$ac_exeext conftest.$ac_ext
18120 LIBS=$ac_check_lib_save_LIBS
18122 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18123 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18124 if test $ac_cv_lib_util_openpty = yes; then
18125 cat >>confdefs.h <<\_ACEOF
18126 #define HAVE_OPENPTY 1
18128 LIBS="$LIBS -lutil"
18130 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18131 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18132 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18135 ac_check_lib_save_LIBS=$LIBS
18137 cat >conftest.$ac_ext <<_ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18144 /* Override any GCC internal prototype to avoid an error.
18145 Use char because int might match the return type of a GCC
18146 builtin and then its argument prototype would still apply. */
18159 rm -f conftest.$ac_objext conftest$ac_exeext
18160 if { (ac_try="$ac_link"
18161 case "(($ac_try" in
18162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18163 *) ac_try_echo
=$ac_try;;
18165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18166 (eval "$ac_link") 2>conftest.er1
18168 grep -v '^ *+' conftest.er1
>conftest.err
18170 cat conftest.err
>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } && {
18173 test -z "$ac_c_werror_flag" ||
18174 test ! -s conftest.err
18175 } && test -s conftest
$ac_exeext &&
18176 $as_test_x conftest
$ac_exeext; then
18177 ac_cv_lib_bsd_openpty
=yes
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.
$ac_ext >&5
18182 ac_cv_lib_bsd_openpty
=no
18185 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18186 conftest
$ac_exeext conftest.
$ac_ext
18187 LIBS
=$ac_check_lib_save_LIBS
18189 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18190 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18191 if test $ac_cv_lib_bsd_openpty = yes; then
18192 cat >>confdefs.h
<<\_ACEOF
18193 #define HAVE_OPENPTY 1
18206 for ac_func
in forkpty
18208 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18211 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 cat >conftest.
$ac_ext <<_ACEOF
18217 cat confdefs.h
>>conftest.
$ac_ext
18218 cat >>conftest.
$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18222 #define $ac_func innocuous_$ac_func
18224 /* System header to define __stub macros and hopefully few prototypes,
18225 which can conflict with char $ac_func (); below.
18226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18227 <limits.h> exists even on freestanding compilers. */
18230 # include <limits.h>
18232 # include <assert.h>
18237 /* Override any GCC internal prototype to avoid an error.
18238 Use char because int might match the return type of a GCC
18239 builtin and then its argument prototype would still apply. */
18244 /* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
18247 #if defined __stub_$ac_func || defined __stub___$ac_func
18254 return $ac_func ();
18259 rm -f conftest.
$ac_objext conftest
$ac_exeext
18260 if { (ac_try
="$ac_link"
18261 case "(($ac_try" in
18262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_link") 2>conftest.er1
18268 grep -v '^ *+' conftest.er1 >conftest.err
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } && {
18273 test -z "$ac_c_werror_flag" ||
18274 test ! -s conftest.err
18275 } && test -s conftest$ac_exeext &&
18276 $as_test_x conftest$ac_exeext; then
18277 eval "$as_ac_var=yes"
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 eval "$as_ac_var=no"
18285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18286 conftest$ac_exeext conftest.$ac_ext
18288 ac_res=`eval echo '${'$as_ac_var'}'`
18289 { echo "$as_me:$LINENO: result: $ac_res" >&5
18290 echo "${ECHO_T}$ac_res" >&6; }
18291 if test `eval echo '${'$as_ac_var'}'` = yes; then
18292 cat >>confdefs.h <<_ACEOF
18293 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18297 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18298 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18299 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18302 ac_check_lib_save_LIBS=$LIBS
18303 LIBS="-lutil $LIBS"
18304 cat >conftest.$ac_ext <<_ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h. */
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18330 *) ac_try_echo
=$ac_try;;
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18335 grep -v '^ *+' conftest.er1
>conftest.err
18337 cat conftest.err
>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest
$ac_exeext &&
18343 $as_test_x conftest
$ac_exeext; then
18344 ac_cv_lib_util_forkpty
=yes
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.
$ac_ext >&5
18349 ac_cv_lib_util_forkpty
=no
18352 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18353 conftest
$ac_exeext conftest.
$ac_ext
18354 LIBS
=$ac_check_lib_save_LIBS
18356 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18357 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18358 if test $ac_cv_lib_util_forkpty = yes; then
18359 cat >>confdefs.h
<<\_ACEOF
18360 #define HAVE_FORKPTY 1
18362 LIBS
="$LIBS -lutil"
18364 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18365 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18366 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
18369 ac_check_lib_save_LIBS
=$LIBS
18371 cat >conftest.
$ac_ext <<_ACEOF
18374 cat confdefs.h
>>conftest.
$ac_ext
18375 cat >>conftest.
$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18378 /* Override any GCC internal prototype to avoid an error.
18379 Use char because int might match the return type of a GCC
18380 builtin and then its argument prototype would still apply. */
18393 rm -f conftest.
$ac_objext conftest
$ac_exeext
18394 if { (ac_try
="$ac_link"
18395 case "(($ac_try" in
18396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18397 *) ac_try_echo=$ac_try;;
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400 (eval "$ac_link") 2>conftest.er1
18402 grep -v '^ *+' conftest.er1 >conftest.err
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } && {
18407 test -z "$ac_c_werror_flag" ||
18408 test ! -s conftest.err
18409 } && test -s conftest$ac_exeext &&
18410 $as_test_x conftest$ac_exeext; then
18411 ac_cv_lib_bsd_forkpty=yes
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18416 ac_cv_lib_bsd_forkpty=no
18419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18420 conftest$ac_exeext conftest.$ac_ext
18421 LIBS=$ac_check_lib_save_LIBS
18423 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18424 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18425 if test $ac_cv_lib_bsd_forkpty = yes; then
18426 cat >>confdefs.h <<\_ACEOF
18427 #define HAVE_FORKPTY 1
18442 for ac_func in memmove
18444 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18448 echo $ECHO_N "(cached) $ECHO_C" >&6
18450 cat >conftest.$ac_ext <<_ACEOF
18453 cat confdefs.h >>conftest.$ac_ext
18454 cat >>conftest.$ac_ext <<_ACEOF
18455 /* end confdefs.h. */
18456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18458 #define $ac_func innocuous_$ac_func
18460 /* System header to define __stub macros and hopefully few prototypes,
18461 which can conflict with char $ac_func (); below.
18462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18463 <limits.h> exists even on freestanding compilers. */
18466 # include <limits.h>
18468 # include <assert.h>
18473 /* Override any GCC internal prototype to avoid an error.
18474 Use char because int might match the return type of a GCC
18475 builtin and then its argument prototype would still apply. */
18480 /* The GNU C library defines this for functions which it implements
18481 to always fail with ENOSYS. Some functions are actually named
18482 something starting with __ and the normal name is an alias. */
18483 #if defined __stub_$ac_func || defined __stub___$ac_func
18490 return $ac_func ();
18495 rm -f conftest.$ac_objext conftest$ac_exeext
18496 if { (ac_try="$ac_link"
18497 case "(($ac_try" in
18498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18499 *) ac_try_echo
=$ac_try;;
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_link") 2>conftest.er1
18504 grep -v '^ *+' conftest.er1
>conftest.err
18506 cat conftest.err
>&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest
$ac_exeext &&
18512 $as_test_x conftest
$ac_exeext; then
18513 eval "$as_ac_var=yes"
18515 echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.
$ac_ext >&5
18518 eval "$as_ac_var=no"
18521 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18522 conftest
$ac_exeext conftest.
$ac_ext
18524 ac_res
=`eval echo '${'$as_ac_var'}'`
18525 { echo "$as_me:$LINENO: result: $ac_res" >&5
18526 echo "${ECHO_T}$ac_res" >&6; }
18527 if test `eval echo '${'$as_ac_var'}'` = yes; then
18528 cat >>confdefs.h
<<_ACEOF
18529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18536 # check for long file support functions
18543 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18545 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18548 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18551 cat >conftest.
$ac_ext <<_ACEOF
18554 cat confdefs.h
>>conftest.
$ac_ext
18555 cat >>conftest.
$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18559 #define $ac_func innocuous_$ac_func
18561 /* System header to define __stub macros and hopefully few prototypes,
18562 which can conflict with char $ac_func (); below.
18563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18564 <limits.h> exists even on freestanding compilers. */
18567 # include <limits.h>
18569 # include <assert.h>
18574 /* Override any GCC internal prototype to avoid an error.
18575 Use char because int might match the return type of a GCC
18576 builtin and then its argument prototype would still apply. */
18581 /* The GNU C library defines this for functions which it implements
18582 to always fail with ENOSYS. Some functions are actually named
18583 something starting with __ and the normal name is an alias. */
18584 #if defined __stub_$ac_func || defined __stub___$ac_func
18591 return $ac_func ();
18596 rm -f conftest.
$ac_objext conftest
$ac_exeext
18597 if { (ac_try
="$ac_link"
18598 case "(($ac_try" in
18599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_link") 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && {
18610 test -z "$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18612 } && test -s conftest$ac_exeext &&
18613 $as_test_x conftest$ac_exeext; then
18614 eval "$as_ac_var=yes"
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 eval "$as_ac_var=no"
18622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18623 conftest$ac_exeext conftest.$ac_ext
18625 ac_res=`eval echo '${'$as_ac_var'}'`
18626 { echo "$as_me:$LINENO: result: $ac_res" >&5
18627 echo "${ECHO_T}$ac_res" >&6; }
18628 if test `eval echo '${'$as_ac_var'}'` = yes; then
18629 cat >>confdefs.h <<_ACEOF
18630 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18640 for ac_func in dup2 getcwd strdup
18642 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18648 cat >conftest.$ac_ext <<_ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h. */
18654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18656 #define $ac_func innocuous_$ac_func
18658 /* System header to define __stub macros and hopefully few prototypes,
18659 which can conflict with char $ac_func (); below.
18660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18661 <limits.h> exists even on freestanding compilers. */
18664 # include <limits.h>
18666 # include <assert.h>
18671 /* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
18678 /* The GNU C library defines this for functions which it implements
18679 to always fail with ENOSYS. Some functions are actually named
18680 something starting with __ and the normal name is an alias. */
18681 #if defined __stub_$ac_func || defined __stub___$ac_func
18688 return $ac_func ();
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18697 *) ac_try_echo
=$ac_try;;
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
18702 grep -v '^ *+' conftest.er1
>conftest.err
18704 cat conftest.err
>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest
$ac_exeext &&
18710 $as_test_x conftest
$ac_exeext; then
18711 eval "$as_ac_var=yes"
18713 echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.
$ac_ext >&5
18716 eval "$as_ac_var=no"
18719 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18720 conftest
$ac_exeext conftest.
$ac_ext
18722 ac_res
=`eval echo '${'$as_ac_var'}'`
18723 { echo "$as_me:$LINENO: result: $ac_res" >&5
18724 echo "${ECHO_T}$ac_res" >&6; }
18725 if test `eval echo '${'$as_ac_var'}'` = yes; then
18726 cat >>confdefs.h
<<_ACEOF
18727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18731 case " $LIBOBJS " in
18732 *" $ac_func.$ac_objext "* ) ;;
18733 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18742 for ac_func
in getpgrp
18744 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18747 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 cat >conftest.
$ac_ext <<_ACEOF
18753 cat confdefs.h
>>conftest.
$ac_ext
18754 cat >>conftest.
$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18758 #define $ac_func innocuous_$ac_func
18760 /* System header to define __stub macros and hopefully few prototypes,
18761 which can conflict with char $ac_func (); below.
18762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18763 <limits.h> exists even on freestanding compilers. */
18766 # include <limits.h>
18768 # include <assert.h>
18773 /* Override any GCC internal prototype to avoid an error.
18774 Use char because int might match the return type of a GCC
18775 builtin and then its argument prototype would still apply. */
18780 /* The GNU C library defines this for functions which it implements
18781 to always fail with ENOSYS. Some functions are actually named
18782 something starting with __ and the normal name is an alias. */
18783 #if defined __stub_$ac_func || defined __stub___$ac_func
18790 return $ac_func ();
18795 rm -f conftest.
$ac_objext conftest
$ac_exeext
18796 if { (ac_try
="$ac_link"
18797 case "(($ac_try" in
18798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18804 grep -v '^ *+' conftest.er1 >conftest.err
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest$ac_exeext &&
18812 $as_test_x conftest$ac_exeext; then
18813 eval "$as_ac_var=yes"
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 eval "$as_ac_var=no"
18821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18822 conftest$ac_exeext conftest.$ac_ext
18824 ac_res=`eval echo '${'$as_ac_var'}'`
18825 { echo "$as_me:$LINENO: result: $ac_res" >&5
18826 echo "${ECHO_T}$ac_res" >&6; }
18827 if test `eval echo '${'$as_ac_var'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 #include <unistd.h>
18846 rm -f conftest.$ac_objext
18847 if { (ac_try="$ac_compile"
18848 case "(($ac_try" in
18849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18850 *) ac_try_echo
=$ac_try;;
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_compile") 2>conftest.er1
18855 grep -v '^ *+' conftest.er1
>conftest.err
18857 cat conftest.err
>&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } && {
18860 test -z "$ac_c_werror_flag" ||
18861 test ! -s conftest.err
18862 } && test -s conftest.
$ac_objext; then
18864 cat >>confdefs.h
<<\_ACEOF
18865 #define GETPGRP_HAVE_ARG 1
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.
$ac_ext >&5
18876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18882 for ac_func
in setpgrp
18884 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18887 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 cat >conftest.
$ac_ext <<_ACEOF
18893 cat confdefs.h
>>conftest.
$ac_ext
18894 cat >>conftest.
$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18898 #define $ac_func innocuous_$ac_func
18900 /* System header to define __stub macros and hopefully few prototypes,
18901 which can conflict with char $ac_func (); below.
18902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18903 <limits.h> exists even on freestanding compilers. */
18906 # include <limits.h>
18908 # include <assert.h>
18913 /* Override any GCC internal prototype to avoid an error.
18914 Use char because int might match the return type of a GCC
18915 builtin and then its argument prototype would still apply. */
18920 /* The GNU C library defines this for functions which it implements
18921 to always fail with ENOSYS. Some functions are actually named
18922 something starting with __ and the normal name is an alias. */
18923 #if defined __stub_$ac_func || defined __stub___$ac_func
18930 return $ac_func ();
18935 rm -f conftest.
$ac_objext conftest
$ac_exeext
18936 if { (ac_try
="$ac_link"
18937 case "(($ac_try" in
18938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942 (eval "$ac_link") 2>conftest.er1
18944 grep -v '^ *+' conftest.er1 >conftest.err
18946 cat conftest.err >&5
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } && {
18949 test -z "$ac_c_werror_flag" ||
18950 test ! -s conftest.err
18951 } && test -s conftest$ac_exeext &&
18952 $as_test_x conftest$ac_exeext; then
18953 eval "$as_ac_var=yes"
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18958 eval "$as_ac_var=no"
18961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18962 conftest$ac_exeext conftest.$ac_ext
18964 ac_res=`eval echo '${'$as_ac_var'}'`
18965 { echo "$as_me:$LINENO: result: $ac_res" >&5
18966 echo "${ECHO_T}$ac_res" >&6; }
18967 if test `eval echo '${'$as_ac_var'}'` = yes; then
18968 cat >>confdefs.h <<_ACEOF
18969 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18971 cat >conftest.$ac_ext <<_ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <unistd.h>
18986 rm -f conftest.$ac_objext
18987 if { (ac_try="$ac_compile"
18988 case "(($ac_try" in
18989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18990 *) ac_try_echo
=$ac_try;;
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_compile") 2>conftest.er1
18995 grep -v '^ *+' conftest.er1
>conftest.err
18997 cat conftest.err
>&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest.
$ac_objext; then
19004 cat >>confdefs.h
<<\_ACEOF
19005 #define SETPGRP_HAVE_ARG 1
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.
$ac_ext >&5
19016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19022 for ac_func
in gettimeofday
19024 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19027 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19028 echo $ECHO_N "(cached) $ECHO_C" >&6
19030 cat >conftest.
$ac_ext <<_ACEOF
19033 cat confdefs.h
>>conftest.
$ac_ext
19034 cat >>conftest.
$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19038 #define $ac_func innocuous_$ac_func
19040 /* System header to define __stub macros and hopefully few prototypes,
19041 which can conflict with char $ac_func (); below.
19042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19043 <limits.h> exists even on freestanding compilers. */
19046 # include <limits.h>
19048 # include <assert.h>
19053 /* Override any GCC internal prototype to avoid an error.
19054 Use char because int might match the return type of a GCC
19055 builtin and then its argument prototype would still apply. */
19060 /* The GNU C library defines this for functions which it implements
19061 to always fail with ENOSYS. Some functions are actually named
19062 something starting with __ and the normal name is an alias. */
19063 #if defined __stub_$ac_func || defined __stub___$ac_func
19070 return $ac_func ();
19075 rm -f conftest.
$ac_objext conftest
$ac_exeext
19076 if { (ac_try
="$ac_link"
19077 case "(($ac_try" in
19078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_link") 2>conftest.er1
19084 grep -v '^ *+' conftest.er1 >conftest.err
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); } && {
19089 test -z "$ac_c_werror_flag" ||
19090 test ! -s conftest.err
19091 } && test -s conftest$ac_exeext &&
19092 $as_test_x conftest$ac_exeext; then
19093 eval "$as_ac_var=yes"
19095 echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19098 eval "$as_ac_var=no"
19101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19102 conftest$ac_exeext conftest.$ac_ext
19104 ac_res=`eval echo '${'$as_ac_var'}'`
19105 { echo "$as_me:$LINENO: result: $ac_res" >&5
19106 echo "${ECHO_T}$ac_res" >&6; }
19107 if test `eval echo '${'$as_ac_var'}'` = yes; then
19108 cat >>confdefs.h <<_ACEOF
19109 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19111 cat >conftest.$ac_ext <<_ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 #include <sys/time.h>
19121 gettimeofday((struct timeval*)0,(struct timezone*)0);
19126 rm -f conftest.$ac_objext
19127 if { (ac_try="$ac_compile"
19128 case "(($ac_try" in
19129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19130 *) ac_try_echo
=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_compile") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1
>conftest.err
19137 cat conftest.err
>&5
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && {
19140 test -z "$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19142 } && test -s conftest.
$ac_objext; then
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.
$ac_ext >&5
19149 cat >>confdefs.h
<<\_ACEOF
19150 #define GETTIMEOFDAY_NO_TZ 1
19156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19162 { echo "$as_me:$LINENO: checking for major" >&5
19163 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19164 cat >conftest.
$ac_ext <<_ACEOF
19167 cat confdefs.h
>>conftest.
$ac_ext
19168 cat >>conftest.
$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19171 #if defined(MAJOR_IN_MKDEV)
19172 #include <sys/mkdev.h>
19173 #elif defined(MAJOR_IN_SYSMACROS)
19174 #include <sys/sysmacros.h>
19176 #include <sys/types.h>
19183 makedev(major(0),minor(0));
19189 rm -f conftest.
$ac_objext conftest
$ac_exeext
19190 if { (ac_try
="$ac_link"
19191 case "(($ac_try" in
19192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19196 (eval "$ac_link") 2>conftest.er1
19198 grep -v '^ *+' conftest.er1 >conftest.err
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } && {
19203 test -z "$ac_c_werror_flag" ||
19204 test ! -s conftest.err
19205 } && test -s conftest$ac_exeext &&
19206 $as_test_x conftest$ac_exeext; then
19209 cat >>confdefs.h <<\_ACEOF
19210 #define HAVE_DEVICE_MACROS 1
19213 { echo "$as_me:$LINENO: result: yes" >&5
19214 echo "${ECHO_T}yes" >&6; }
19217 echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19221 { echo "$as_me:$LINENO: result: no" >&5
19222 echo "${ECHO_T}no" >&6; }
19226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19227 conftest$ac_exeext conftest.$ac_ext
19229 # On OSF/1 V5.1, getaddrinfo is available, but a define
19230 # for [no]getaddrinfo in netdb.h.
19231 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19232 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19233 cat >conftest.$ac_ext <<_ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h. */
19240 #include <sys/types.h>
19241 #include <sys/socket.h>
19249 getaddrinfo(NULL, NULL, NULL, NULL);
19255 rm -f conftest.$ac_objext conftest$ac_exeext
19256 if { (ac_try="$ac_link"
19257 case "(($ac_try" in
19258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19259 *) ac_try_echo
=$ac_try;;
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_link") 2>conftest.er1
19264 grep -v '^ *+' conftest.er1
>conftest.err
19266 cat conftest.err
>&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } && {
19269 test -z "$ac_c_werror_flag" ||
19270 test ! -s conftest.err
19271 } && test -s conftest
$ac_exeext &&
19272 $as_test_x conftest
$ac_exeext; then
19274 { echo "$as_me:$LINENO: result: yes" >&5
19275 echo "${ECHO_T}yes" >&6; }
19276 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19277 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19278 if test "$cross_compiling" = yes; then
19279 { echo "$as_me:$LINENO: result: buggy" >&5
19280 echo "${ECHO_T}buggy" >&6; }
19281 buggygetaddrinfo
=yes
19283 cat >conftest.
$ac_ext <<_ACEOF
19286 cat confdefs.h
>>conftest.
$ac_ext
19287 cat >>conftest.
$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19290 #include <sys/types.h>
19292 #include <string.h>
19293 #include <sys/socket.h>
19294 #include <netinet/in.h>
19298 int passive, gaierr, inet4 = 0, inet6 = 0;
19299 struct addrinfo hints, *ai, *aitop;
19300 char straddr[INET6_ADDRSTRLEN], strport[16];
19302 for (passive = 0; passive <= 1; passive++) {
19303 memset(&hints, 0, sizeof(hints));
19304 hints.ai_family = AF_UNSPEC;
19305 hints.ai_flags = passive ? AI_PASSIVE : 0;
19306 hints.ai_socktype = SOCK_STREAM;
19307 hints.ai_protocol = IPPROTO_TCP;
19308 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19309 (void)gai_strerror(gaierr);
19312 for (ai = aitop; ai; ai = ai->ai_next) {
19313 if (ai->ai_addr == NULL ||
19314 ai->ai_addrlen == 0 ||
19315 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19316 straddr, sizeof(straddr), strport, sizeof(strport),
19317 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19320 switch (ai->ai_family) {
19322 if (strcmp(strport, "54321") != 0) {
19326 if (strcmp(straddr, "0.0.0.0") != 0) {
19330 if (strcmp(straddr, "127.0.0.1") != 0) {
19337 if (strcmp(strport, "54321") != 0) {
19341 if (strcmp(straddr, "::") != 0) {
19345 if (strcmp(straddr, "::1") != 0) {
19355 /* another family support? */
19361 if (!(inet4 == 0 || inet4 == 2))
19363 if (!(inet6 == 0 || inet6 == 2))
19367 freeaddrinfo(aitop);
19372 freeaddrinfo(aitop);
19377 rm -f conftest
$ac_exeext
19378 if { (ac_try
="$ac_link"
19379 case "(($ac_try" in
19380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_link") 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19390 *) ac_try_echo
=$ac_try;;
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 { echo "$as_me:$LINENO: result: good" >&5
19398 echo "${ECHO_T}good" >&6; }
19399 buggygetaddrinfo
=no
19401 echo "$as_me: program exited with status $ac_status" >&5
19402 echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.
$ac_ext >&5
19405 ( exit $ac_status )
19406 { echo "$as_me:$LINENO: result: buggy" >&5
19407 echo "${ECHO_T}buggy" >&6; }
19408 buggygetaddrinfo
=yes
19410 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19415 echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.
$ac_ext >&5
19419 { echo "$as_me:$LINENO: result: no" >&5
19420 echo "${ECHO_T}no" >&6; }
19421 buggygetaddrinfo
=yes
19425 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19426 conftest
$ac_exeext conftest.
$ac_ext
19428 if test "$buggygetaddrinfo" = "yes"; then
19429 if test "$ipv6" = "yes"; then
19430 echo 'Fatal: You must get working getaddrinfo() function.'
19431 echo ' or you can specify "--disable-ipv6"'.
19436 cat >>confdefs.h
<<\_ACEOF
19437 #define HAVE_GETADDRINFO 1
19442 for ac_func
in getnameinfo
19444 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19447 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19450 cat >conftest.
$ac_ext <<_ACEOF
19453 cat confdefs.h
>>conftest.
$ac_ext
19454 cat >>conftest.
$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19458 #define $ac_func innocuous_$ac_func
19460 /* System header to define __stub macros and hopefully few prototypes,
19461 which can conflict with char $ac_func (); below.
19462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19463 <limits.h> exists even on freestanding compilers. */
19466 # include <limits.h>
19468 # include <assert.h>
19473 /* Override any GCC internal prototype to avoid an error.
19474 Use char because int might match the return type of a GCC
19475 builtin and then its argument prototype would still apply. */
19480 /* The GNU C library defines this for functions which it implements
19481 to always fail with ENOSYS. Some functions are actually named
19482 something starting with __ and the normal name is an alias. */
19483 #if defined __stub_$ac_func || defined __stub___$ac_func
19490 return $ac_func ();
19495 rm -f conftest.
$ac_objext conftest
$ac_exeext
19496 if { (ac_try
="$ac_link"
19497 case "(($ac_try" in
19498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>conftest.er1
19504 grep -v '^ *+' conftest.er1 >conftest.err
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest$ac_exeext &&
19512 $as_test_x conftest$ac_exeext; then
19513 eval "$as_ac_var=yes"
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 eval "$as_ac_var=no"
19521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19522 conftest$ac_exeext conftest.$ac_ext
19524 ac_res=`eval echo '${'$as_ac_var'}'`
19525 { echo "$as_me:$LINENO: result: $ac_res" >&5
19526 echo "${ECHO_T}$ac_res" >&6; }
19527 if test `eval echo '${'$as_ac_var'}'` = yes; then
19528 cat >>confdefs.h <<_ACEOF
19529 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19536 # checks for structures
19537 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19538 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19539 if test "${ac_cv_header_time+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 cat >conftest.$ac_ext <<_ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 #include <sys/types.h>
19549 #include <sys/time.h>
19555 if ((struct tm *) 0)
19561 rm -f conftest.$ac_objext
19562 if { (ac_try="$ac_compile"
19563 case "(($ac_try" in
19564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19565 *) ac_try_echo
=$ac_try;;
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_compile") 2>conftest.er1
19570 grep -v '^ *+' conftest.er1
>conftest.err
19572 cat conftest.err
>&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && {
19575 test -z "$ac_c_werror_flag" ||
19576 test ! -s conftest.err
19577 } && test -s conftest.
$ac_objext; then
19578 ac_cv_header_time
=yes
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.
$ac_ext >&5
19583 ac_cv_header_time
=no
19586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19588 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19589 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19590 if test $ac_cv_header_time = yes; then
19592 cat >>confdefs.h
<<\_ACEOF
19593 #define TIME_WITH_SYS_TIME 1
19598 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19599 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19600 if test "${ac_cv_struct_tm+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 cat >conftest.
$ac_ext <<_ACEOF
19606 cat confdefs.h
>>conftest.
$ac_ext
19607 cat >>conftest.
$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 #include <sys/types.h>
19616 int *p = &tm.tm_sec;
19622 rm -f conftest.
$ac_objext
19623 if { (ac_try
="$ac_compile"
19624 case "(($ac_try" in
19625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_compile") 2>conftest.er1
19631 grep -v '^ *+' conftest.er1 >conftest.err
19633 cat conftest.err >&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); } && {
19636 test -z "$ac_c_werror_flag" ||
19637 test ! -s conftest.err
19638 } && test -s conftest.$ac_objext; then
19639 ac_cv_struct_tm=time.h
19641 echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19644 ac_cv_struct_tm=sys/time.h
19647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19650 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19651 if test $ac_cv_struct_tm = sys/time.h; then
19653 cat >>confdefs.h <<\_ACEOF
19654 #define TM_IN_SYS_TIME 1
19659 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19660 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19661 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 cat >conftest.$ac_ext <<_ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 #include <sys/types.h>
19671 #include <$ac_cv_struct_tm>
19677 static struct tm ac_aggr;
19678 if (ac_aggr.tm_zone)
19684 rm -f conftest.$ac_objext
19685 if { (ac_try="$ac_compile"
19686 case "(($ac_try" in
19687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19688 *) ac_try_echo
=$ac_try;;
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_compile") 2>conftest.er1
19693 grep -v '^ *+' conftest.er1
>conftest.err
19695 cat conftest.err
>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } && {
19698 test -z "$ac_c_werror_flag" ||
19699 test ! -s conftest.err
19700 } && test -s conftest.
$ac_objext; then
19701 ac_cv_member_struct_tm_tm_zone
=yes
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.
$ac_ext >&5
19706 cat >conftest.
$ac_ext <<_ACEOF
19709 cat confdefs.h
>>conftest.
$ac_ext
19710 cat >>conftest.
$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712 #include <sys/types.h>
19713 #include <$ac_cv_struct_tm>
19719 static struct tm ac_aggr;
19720 if (sizeof ac_aggr.tm_zone)
19726 rm -f conftest.
$ac_objext
19727 if { (ac_try
="$ac_compile"
19728 case "(($ac_try" in
19729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_compile") 2>conftest.er1
19735 grep -v '^ *+' conftest.er1 >conftest.err
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } && {
19740 test -z "$ac_c_werror_flag" ||
19741 test ! -s conftest.err
19742 } && test -s conftest.$ac_objext; then
19743 ac_cv_member_struct_tm_tm_zone=yes
19745 echo "$as_me: failed program was:" >&5
19746 sed 's/^/| /' conftest.$ac_ext >&5
19748 ac_cv_member_struct_tm_tm_zone=no
19751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19757 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19758 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19760 cat >>confdefs.h <<_ACEOF
19761 #define HAVE_STRUCT_TM_TM_ZONE 1
19767 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19769 cat >>confdefs.h <<\_ACEOF
19770 #define HAVE_TM_ZONE 1
19774 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19775 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19776 if test "${ac_cv_have_decl_tzname+set}" = set; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19798 rm -f conftest.$ac_objext
19799 if { (ac_try="$ac_compile"
19800 case "(($ac_try" in
19801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19802 *) ac_try_echo
=$ac_try;;
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_compile") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1
>conftest.err
19809 cat conftest.err
>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest.
$ac_objext; then
19815 ac_cv_have_decl_tzname
=yes
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.
$ac_ext >&5
19820 ac_cv_have_decl_tzname
=no
19823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19825 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19826 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19827 if test $ac_cv_have_decl_tzname = yes; then
19829 cat >>confdefs.h
<<_ACEOF
19830 #define HAVE_DECL_TZNAME 1
19835 cat >>confdefs.h
<<_ACEOF
19836 #define HAVE_DECL_TZNAME 0
19843 { echo "$as_me:$LINENO: checking for tzname" >&5
19844 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19845 if test "${ac_cv_var_tzname+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 cat >conftest.
$ac_ext <<_ACEOF
19851 cat confdefs.h
>>conftest.
$ac_ext
19852 cat >>conftest.
$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19855 #if !HAVE_DECL_TZNAME
19856 extern char *tzname[];
19862 return tzname[0][0];
19867 rm -f conftest.
$ac_objext conftest
$ac_exeext
19868 if { (ac_try
="$ac_link"
19869 case "(($ac_try" in
19870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_link") 2>conftest.er1
19876 grep -v '^ *+' conftest.er1 >conftest.err
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest$ac_exeext &&
19884 $as_test_x conftest$ac_exeext; then
19885 ac_cv_var_tzname=yes
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_var_tzname=no
19893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19894 conftest$ac_exeext conftest.$ac_ext
19896 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19897 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19898 if test $ac_cv_var_tzname = yes; then
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_TZNAME 1
19907 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19908 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19909 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 cat >conftest.$ac_ext <<_ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 $ac_includes_default
19922 static struct stat ac_aggr;
19923 if (ac_aggr.st_rdev)
19929 rm -f conftest.$ac_objext
19930 if { (ac_try="$ac_compile"
19931 case "(($ac_try" in
19932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19933 *) ac_try_echo
=$ac_try;;
19935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_compile") 2>conftest.er1
19938 grep -v '^ *+' conftest.er1
>conftest.err
19940 cat conftest.err
>&5
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest.
$ac_objext; then
19946 ac_cv_member_struct_stat_st_rdev
=yes
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.
$ac_ext >&5
19951 cat >conftest.
$ac_ext <<_ACEOF
19954 cat confdefs.h
>>conftest.
$ac_ext
19955 cat >>conftest.
$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19957 $ac_includes_default
19961 static struct stat ac_aggr;
19962 if (sizeof ac_aggr.st_rdev)
19968 rm -f conftest.
$ac_objext
19969 if { (ac_try
="$ac_compile"
19970 case "(($ac_try" in
19971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_compile") 2>conftest.er1
19977 grep -v '^ *+' conftest.er1 >conftest.err
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } && {
19982 test -z "$ac_c_werror_flag" ||
19983 test ! -s conftest.err
19984 } && test -s conftest.$ac_objext; then
19985 ac_cv_member_struct_stat_st_rdev=yes
19987 echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19990 ac_cv_member_struct_stat_st_rdev=no
19993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19999 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20000 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20002 cat >>confdefs.h <<_ACEOF
20003 #define HAVE_STRUCT_STAT_ST_RDEV 1
20009 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20010 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20011 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 cat >conftest.$ac_ext <<_ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 $ac_includes_default
20024 static struct stat ac_aggr;
20025 if (ac_aggr.st_blksize)
20031 rm -f conftest.$ac_objext
20032 if { (ac_try="$ac_compile"
20033 case "(($ac_try" in
20034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20035 *) ac_try_echo
=$ac_try;;
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_compile") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1
>conftest.err
20042 cat conftest.err
>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest.
$ac_objext; then
20048 ac_cv_member_struct_stat_st_blksize
=yes
20050 echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.
$ac_ext >&5
20053 cat >conftest.
$ac_ext <<_ACEOF
20056 cat confdefs.h
>>conftest.
$ac_ext
20057 cat >>conftest.
$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20059 $ac_includes_default
20063 static struct stat ac_aggr;
20064 if (sizeof ac_aggr.st_blksize)
20070 rm -f conftest.
$ac_objext
20071 if { (ac_try
="$ac_compile"
20072 case "(($ac_try" in
20073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_compile") 2>conftest.er1
20079 grep -v '^ *+' conftest.er1 >conftest.err
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } && {
20084 test -z "$ac_c_werror_flag" ||
20085 test ! -s conftest.err
20086 } && test -s conftest.$ac_objext; then
20087 ac_cv_member_struct_stat_st_blksize=yes
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 ac_cv_member_struct_stat_st_blksize=no
20095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20101 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20102 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20104 cat >>confdefs.h <<_ACEOF
20105 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20111 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20112 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20113 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 cat >conftest.$ac_ext <<_ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h. */
20122 $ac_includes_default
20126 static struct stat ac_aggr;
20127 if (ac_aggr.st_flags)
20133 rm -f conftest.$ac_objext
20134 if { (ac_try="$ac_compile"
20135 case "(($ac_try" in
20136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20137 *) ac_try_echo
=$ac_try;;
20139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_compile") 2>conftest.er1
20142 grep -v '^ *+' conftest.er1
>conftest.err
20144 cat conftest.err
>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); } && {
20147 test -z "$ac_c_werror_flag" ||
20148 test ! -s conftest.err
20149 } && test -s conftest.
$ac_objext; then
20150 ac_cv_member_struct_stat_st_flags
=yes
20152 echo "$as_me: failed program was:" >&5
20153 sed 's/^/| /' conftest.
$ac_ext >&5
20155 cat >conftest.
$ac_ext <<_ACEOF
20158 cat confdefs.h
>>conftest.
$ac_ext
20159 cat >>conftest.
$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20161 $ac_includes_default
20165 static struct stat ac_aggr;
20166 if (sizeof ac_aggr.st_flags)
20172 rm -f conftest.
$ac_objext
20173 if { (ac_try
="$ac_compile"
20174 case "(($ac_try" in
20175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_compile") 2>conftest.er1
20181 grep -v '^ *+' conftest.er1 >conftest.err
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest.$ac_objext; then
20189 ac_cv_member_struct_stat_st_flags=yes
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20194 ac_cv_member_struct_stat_st_flags=no
20197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20202 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20203 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20204 if test $ac_cv_member_struct_stat_st_flags = yes; then
20206 cat >>confdefs.h <<_ACEOF
20207 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20213 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20214 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20215 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20216 echo $ECHO_N "(cached) $ECHO_C" >&6
20218 cat >conftest.$ac_ext <<_ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h. */
20224 $ac_includes_default
20228 static struct stat ac_aggr;
20229 if (ac_aggr.st_gen)
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20239 *) ac_try_echo
=$ac_try;;
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_compile") 2>conftest.er1
20244 grep -v '^ *+' conftest.er1
>conftest.err
20246 cat conftest.err
>&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } && {
20249 test -z "$ac_c_werror_flag" ||
20250 test ! -s conftest.err
20251 } && test -s conftest.
$ac_objext; then
20252 ac_cv_member_struct_stat_st_gen
=yes
20254 echo "$as_me: failed program was:" >&5
20255 sed 's/^/| /' conftest.
$ac_ext >&5
20257 cat >conftest.
$ac_ext <<_ACEOF
20260 cat confdefs.h
>>conftest.
$ac_ext
20261 cat >>conftest.
$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20263 $ac_includes_default
20267 static struct stat ac_aggr;
20268 if (sizeof ac_aggr.st_gen)
20274 rm -f conftest.
$ac_objext
20275 if { (ac_try
="$ac_compile"
20276 case "(($ac_try" in
20277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
20283 grep -v '^ *+' conftest.er1 >conftest.err
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest.$ac_objext; then
20291 ac_cv_member_struct_stat_st_gen=yes
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20296 ac_cv_member_struct_stat_st_gen=no
20299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20305 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20306 if test $ac_cv_member_struct_stat_st_gen = yes; then
20308 cat >>confdefs.h <<_ACEOF
20309 #define HAVE_STRUCT_STAT_ST_GEN 1
20315 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20316 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20317 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 cat >conftest.$ac_ext <<_ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 $ac_includes_default
20330 static struct stat ac_aggr;
20331 if (ac_aggr.st_birthtime)
20337 rm -f conftest.$ac_objext
20338 if { (ac_try="$ac_compile"
20339 case "(($ac_try" in
20340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20341 *) ac_try_echo
=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_compile") 2>conftest.er1
20346 grep -v '^ *+' conftest.er1
>conftest.err
20348 cat conftest.err
>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest.
$ac_objext; then
20354 ac_cv_member_struct_stat_st_birthtime
=yes
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.
$ac_ext >&5
20359 cat >conftest.
$ac_ext <<_ACEOF
20362 cat confdefs.h
>>conftest.
$ac_ext
20363 cat >>conftest.
$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20365 $ac_includes_default
20369 static struct stat ac_aggr;
20370 if (sizeof ac_aggr.st_birthtime)
20376 rm -f conftest.
$ac_objext
20377 if { (ac_try
="$ac_compile"
20378 case "(($ac_try" in
20379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_compile") 2>conftest.er1
20385 grep -v '^ *+' conftest.er1 >conftest.err
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.$ac_objext; then
20393 ac_cv_member_struct_stat_st_birthtime=yes
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.$ac_ext >&5
20398 ac_cv_member_struct_stat_st_birthtime=no
20401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20406 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20407 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20408 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20410 cat >>confdefs.h <<_ACEOF
20411 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20417 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20418 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20419 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 cat >conftest.$ac_ext <<_ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20428 $ac_includes_default
20432 static struct stat ac_aggr;
20433 if (ac_aggr.st_blocks)
20439 rm -f conftest.$ac_objext
20440 if { (ac_try="$ac_compile"
20441 case "(($ac_try" in
20442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20443 *) ac_try_echo
=$ac_try;;
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_compile") 2>conftest.er1
20448 grep -v '^ *+' conftest.er1
>conftest.err
20450 cat conftest.err
>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest.
$ac_objext; then
20456 ac_cv_member_struct_stat_st_blocks
=yes
20458 echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.
$ac_ext >&5
20461 cat >conftest.
$ac_ext <<_ACEOF
20464 cat confdefs.h
>>conftest.
$ac_ext
20465 cat >>conftest.
$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467 $ac_includes_default
20471 static struct stat ac_aggr;
20472 if (sizeof ac_aggr.st_blocks)
20478 rm -f conftest.
$ac_objext
20479 if { (ac_try
="$ac_compile"
20480 case "(($ac_try" in
20481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_compile") 2>conftest.er1
20487 grep -v '^ *+' conftest.er1 >conftest.err
20489 cat conftest.err >&5
20490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491 (exit $ac_status); } && {
20492 test -z "$ac_c_werror_flag" ||
20493 test ! -s conftest.err
20494 } && test -s conftest.$ac_objext; then
20495 ac_cv_member_struct_stat_st_blocks=yes
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 ac_cv_member_struct_stat_st_blocks=no
20503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20509 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20510 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20517 cat >>confdefs.h <<\_ACEOF
20518 #define HAVE_ST_BLOCKS 1
20522 case " $LIBOBJS " in
20523 *" fileblocks.$ac_objext "* ) ;;
20524 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20532 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20533 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20534 if test "${ac_cv_header_time_altzone+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20552 rm -f conftest.$ac_objext
20553 if { (ac_try="$ac_compile"
20554 case "(($ac_try" in
20555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20556 *) ac_try_echo
=$ac_try;;
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_compile") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1
>conftest.err
20563 cat conftest.err
>&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest.
$ac_objext; then
20569 ac_cv_header_time_altzone
=yes
20571 echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.
$ac_ext >&5
20574 ac_cv_header_time_altzone
=no
20577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20580 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20581 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20582 if test $ac_cv_header_time_altzone = yes; then
20584 cat >>confdefs.h
<<\_ACEOF
20585 #define HAVE_ALTZONE 1
20591 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20592 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20593 cat >conftest.
$ac_ext <<_ACEOF
20596 cat confdefs.h
>>conftest.
$ac_ext
20597 cat >>conftest.
$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20600 #include <sys/types.h>
20601 #include <sys/select.h>
20602 #include <sys/time.h>
20612 rm -f conftest.
$ac_objext
20613 if { (ac_try
="$ac_compile"
20614 case "(($ac_try" in
20615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_compile") 2>conftest.er1
20621 grep -v '^ *+' conftest.er1 >conftest.err
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } && {
20626 test -z "$ac_c_werror_flag" ||
20627 test ! -s conftest.err
20628 } && test -s conftest.$ac_objext; then
20631 cat >>confdefs.h <<\_ACEOF
20632 #define SYS_SELECT_WITH_SYS_TIME 1
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20646 echo "${ECHO_T}$was_it_defined" >&6; }
20648 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20649 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20650 if test "${ac_cv_struct_addrinfo+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 cat >conftest.$ac_ext <<_ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h. */
20660 # include <netdb.h>
20669 rm -f conftest.$ac_objext
20670 if { (ac_try="$ac_compile"
20671 case "(($ac_try" in
20672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20673 *) ac_try_echo
=$ac_try;;
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_compile") 2>conftest.er1
20678 grep -v '^ *+' conftest.er1
>conftest.err
20680 cat conftest.err
>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } && {
20683 test -z "$ac_c_werror_flag" ||
20684 test ! -s conftest.err
20685 } && test -s conftest.
$ac_objext; then
20686 ac_cv_struct_addrinfo
=yes
20688 echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.
$ac_ext >&5
20691 ac_cv_struct_addrinfo
=no
20694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20697 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20698 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20699 if test $ac_cv_struct_addrinfo = yes; then
20701 cat >>confdefs.h
<<\_ACEOF
20702 #define HAVE_ADDRINFO 1
20707 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20708 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20709 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 cat >conftest.
$ac_ext <<_ACEOF
20715 cat confdefs.h
>>conftest.
$ac_ext
20716 cat >>conftest.
$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20719 # include <sys/types.h>
20720 # include <sys/socket.h>
20724 struct sockaddr_storage s
20729 rm -f conftest.
$ac_objext
20730 if { (ac_try
="$ac_compile"
20731 case "(($ac_try" in
20732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_compile") 2>conftest.er1
20738 grep -v '^ *+' conftest.er1 >conftest.err
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest.$ac_objext; then
20746 ac_cv_struct_sockaddr_storage=yes
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 ac_cv_struct_sockaddr_storage=no
20754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20758 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20759 if test $ac_cv_struct_sockaddr_storage = yes; then
20761 cat >>confdefs.h <<\_ACEOF
20762 #define HAVE_SOCKADDR_STORAGE 1
20767 # checks for compiler characteristics
20770 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20771 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20772 if test "${ac_cv_c_char_unsigned+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20775 cat >conftest.$ac_ext <<_ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20781 $ac_includes_default
20785 static int test_array [1 - 2 * !(((char) -1) < 0)];
20792 rm -f conftest.$ac_objext
20793 if { (ac_try="$ac_compile"
20794 case "(($ac_try" in
20795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20796 *) ac_try_echo
=$ac_try;;
20798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_compile") 2>conftest.er1
20801 grep -v '^ *+' conftest.er1
>conftest.err
20803 cat conftest.err
>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); } && {
20806 test -z "$ac_c_werror_flag" ||
20807 test ! -s conftest.err
20808 } && test -s conftest.
$ac_objext; then
20809 ac_cv_c_char_unsigned
=no
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.
$ac_ext >&5
20814 ac_cv_c_char_unsigned
=yes
20817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20819 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20820 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20821 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20822 cat >>confdefs.h
<<\_ACEOF
20823 #define __CHAR_UNSIGNED__ 1
20828 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20829 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20830 if test "${ac_cv_c_const+set}" = set; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 cat >conftest.
$ac_ext <<_ACEOF
20836 cat confdefs.h
>>conftest.
$ac_ext
20837 cat >>conftest.
$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20843 /* FIXME: Include the comments suggested by Paul. */
20844 #ifndef __cplusplus
20845 /* Ultrix mips cc rejects this. */
20846 typedef int charset[2];
20848 /* SunOS 4.1.1 cc rejects this. */
20849 char const *const *pcpcc;
20851 /* NEC SVR4.0.2 mips cc rejects this. */
20852 struct point {int x, y;};
20853 static struct point const zero = {0,0};
20854 /* AIX XL C 1.02.0.0 rejects this.
20855 It does not let you subtract one const X* pointer from another in
20856 an arm of an if-expression whose if-part is not a constant
20858 const char *g = "string";
20859 pcpcc = &g + (g ? g-g : 0);
20860 /* HPUX 7.0 cc rejects these. */
20862 ppc = (char**) pcpcc;
20863 pcpcc = (char const *const *) ppc;
20864 { /* SCO 3.2v4 cc rejects this. */
20866 char const *s = 0 ? (char *) 0 : (char const *) 0;
20871 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20872 int x[] = {25, 17};
20873 const int *foo = &x[0];
20876 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20877 typedef const int *iptr;
20881 { /* AIX XL C 1.02.0.0 rejects this saying
20882 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20883 struct s { int j; const int *ap[3]; };
20884 struct s *b; b->j = 5;
20886 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20887 const int foo = 10;
20888 if (!foo) return 0;
20890 return !cs[0] && !zero.x;
20897 rm -f conftest.
$ac_objext
20898 if { (ac_try
="$ac_compile"
20899 case "(($ac_try" in
20900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20901 *) ac_try_echo=$ac_try;;
20903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20904 (eval "$ac_compile") 2>conftest.er1
20906 grep -v '^ *+' conftest.er1 >conftest.err
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); } && {
20911 test -z "$ac_c_werror_flag" ||
20912 test ! -s conftest.err
20913 } && test -s conftest.$ac_objext; then
20916 echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20924 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20925 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20926 if test $ac_cv_c_const = no; then
20928 cat >>confdefs.h <<\_ACEOF
20936 { echo "$as_me:$LINENO: checking for working volatile" >&5
20937 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20948 volatile int x; x = 0;
20953 rm -f conftest.$ac_objext
20954 if { (ac_try="$ac_compile"
20955 case "(($ac_try" in
20956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20957 *) ac_try_echo
=$ac_try;;
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_compile") 2>conftest.er1
20962 grep -v '^ *+' conftest.er1
>conftest.err
20964 cat conftest.err
>&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } && {
20967 test -z "$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 } && test -s conftest.
$ac_objext; then
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.
$ac_ext >&5
20976 cat >>confdefs.h
<<\_ACEOF
20983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20984 { echo "$as_me:$LINENO: result: $works" >&5
20985 echo "${ECHO_T}$works" >&6; }
20988 { echo "$as_me:$LINENO: checking for working signed char" >&5
20989 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20990 cat >conftest.
$ac_ext <<_ACEOF
20993 cat confdefs.h
>>conftest.
$ac_ext
20994 cat >>conftest.
$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
21005 rm -f conftest.
$ac_objext
21006 if { (ac_try
="$ac_compile"
21007 case "(($ac_try" in
21008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012 (eval "$ac_compile") 2>conftest.er1
21014 grep -v '^ *+' conftest.er1 >conftest.err
21016 cat conftest.err >&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); } && {
21019 test -z "$ac_c_werror_flag" ||
21020 test ! -s conftest.err
21021 } && test -s conftest.$ac_objext; then
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21028 cat >>confdefs.h <<\_ACEOF
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21036 { echo "$as_me:$LINENO: result: $works" >&5
21037 echo "${ECHO_T}$works" >&6; }
21040 { echo "$as_me:$LINENO: checking for prototypes" >&5
21041 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21042 cat >conftest.$ac_ext <<_ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 int foo(int x) { return 0; }
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21061 *) ac_try_echo
=$ac_try;;
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_compile") 2>conftest.er1
21066 grep -v '^ *+' conftest.er1
>conftest.err
21068 cat conftest.err
>&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } && {
21071 test -z "$ac_c_werror_flag" ||
21072 test ! -s conftest.err
21073 } && test -s conftest.
$ac_objext; then
21076 cat >>confdefs.h
<<\_ACEOF
21077 #define HAVE_PROTOTYPES 1
21080 have_prototypes
=yes
21083 echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.
$ac_ext >&5
21089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21090 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21091 echo "${ECHO_T}$have_prototypes" >&6; }
21094 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21095 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21096 cat >conftest.
$ac_ext <<_ACEOF
21099 cat confdefs.h
>>conftest.
$ac_ext
21100 cat >>conftest.
$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21103 #include <stdarg.h>
21104 int foo(int x, ...) {
21108 va_arg(va, char *);
21109 va_arg(va, double);
21116 return foo(10, "", 3.14);
21121 rm -f conftest.
$ac_objext
21122 if { (ac_try
="$ac_compile"
21123 case "(($ac_try" in
21124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_compile") 2>conftest.er1
21130 grep -v '^ *+' conftest.er1 >conftest.err
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } && {
21135 test -z "$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21137 } && test -s conftest.$ac_objext; then
21140 cat >>confdefs.h <<\_ACEOF
21141 #define HAVE_STDARG_PROTOTYPES 1
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 { echo "$as_me:$LINENO: result: $works" >&5
21155 echo "${ECHO_T}$works" >&6; }
21157 # check for socketpair
21158 { echo "$as_me:$LINENO: checking for socketpair" >&5
21159 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21160 cat >conftest.$ac_ext <<_ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21167 #include <sys/types.h>
21168 #include <sys/socket.h>
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21182 *) ac_try_echo
=$ac_try;;
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21187 grep -v '^ *+' conftest.er1
>conftest.err
21189 cat conftest.err
>&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.
$ac_objext; then
21196 cat >>confdefs.h
<<\_ACEOF
21197 #define HAVE_SOCKETPAIR 1
21200 { echo "$as_me:$LINENO: result: yes" >&5
21201 echo "${ECHO_T}yes" >&6; }
21203 echo "$as_me: failed program was:" >&5
21204 sed 's/^/| /' conftest.
$ac_ext >&5
21206 { echo "$as_me:$LINENO: result: no" >&5
21207 echo "${ECHO_T}no" >&6; }
21211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21213 # check if sockaddr has sa_len member
21214 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21215 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21216 cat >conftest.
$ac_ext <<_ACEOF
21219 cat confdefs.h
>>conftest.
$ac_ext
21220 cat >>conftest.
$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 #include <sys/types.h>
21223 #include <sys/socket.h>
21233 rm -f conftest.
$ac_objext
21234 if { (ac_try
="$ac_compile"
21235 case "(($ac_try" in
21236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_compile") 2>conftest.er1
21242 grep -v '^ *+' conftest.er1 >conftest.err
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } && {
21247 test -z "$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21249 } && test -s conftest.$ac_objext; then
21250 { echo "$as_me:$LINENO: result: yes" >&5
21251 echo "${ECHO_T}yes" >&6; }
21253 cat >>confdefs.h <<\_ACEOF
21254 #define HAVE_SOCKADDR_SA_LEN 1
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21261 { echo "$as_me:$LINENO: result: no" >&5
21262 echo "${ECHO_T}no" >&6; }
21265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21267 va_list_is_array=no
21268 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21269 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21270 cat >conftest.$ac_ext <<_ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21277 #ifdef HAVE_STDARG_PROTOTYPES
21278 #include <stdarg.h>
21280 #include <varargs.h>
21286 va_list list1, list2; list1 = list2;
21291 rm -f conftest.$ac_objext
21292 if { (ac_try="$ac_compile"
21293 case "(($ac_try" in
21294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21295 *) ac_try_echo
=$ac_try;;
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298 (eval "$ac_compile") 2>conftest.er1
21300 grep -v '^ *+' conftest.er1
>conftest.err
21302 cat conftest.err
>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } && {
21305 test -z "$ac_c_werror_flag" ||
21306 test ! -s conftest.err
21307 } && test -s conftest.
$ac_objext; then
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.
$ac_ext >&5
21315 cat >>confdefs.h
<<\_ACEOF
21316 #define VA_LIST_IS_ARRAY 1
21319 va_list_is_array
=yes
21323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21324 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21325 echo "${ECHO_T}$va_list_is_array" >&6; }
21327 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21331 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21332 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21333 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21336 cat >conftest.
$ac_ext <<_ACEOF
21339 cat confdefs.h
>>conftest.
$ac_ext
21340 cat >>conftest.
$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21344 #define gethostbyname_r innocuous_gethostbyname_r
21346 /* System header to define __stub macros and hopefully few prototypes,
21347 which can conflict with char gethostbyname_r (); below.
21348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21349 <limits.h> exists even on freestanding compilers. */
21352 # include <limits.h>
21354 # include <assert.h>
21357 #undef gethostbyname_r
21359 /* Override any GCC internal prototype to avoid an error.
21360 Use char because int might match the return type of a GCC
21361 builtin and then its argument prototype would still apply. */
21365 char gethostbyname_r ();
21366 /* The GNU C library defines this for functions which it implements
21367 to always fail with ENOSYS. Some functions are actually named
21368 something starting with __ and the normal name is an alias. */
21369 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21376 return gethostbyname_r ();
21381 rm -f conftest.
$ac_objext conftest
$ac_exeext
21382 if { (ac_try
="$ac_link"
21383 case "(($ac_try" in
21384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388 (eval "$ac_link") 2>conftest.er1
21390 grep -v '^ *+' conftest.er1 >conftest.err
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } && {
21395 test -z "$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 } && test -s conftest$ac_exeext &&
21398 $as_test_x conftest$ac_exeext; then
21399 ac_cv_func_gethostbyname_r=yes
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21404 ac_cv_func_gethostbyname_r=no
21407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21408 conftest$ac_exeext conftest.$ac_ext
21410 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21411 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21412 if test $ac_cv_func_gethostbyname_r = yes; then
21414 cat >>confdefs.h <<\_ACEOF
21415 #define HAVE_GETHOSTBYNAME_R 1
21418 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21419 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21421 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21422 cat >conftest.$ac_ext <<_ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21429 # include <netdb.h>
21436 struct hostent *he, *res;
21441 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21451 *) ac_try_echo
=$ac_try;;
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_compile") 2>conftest.er1
21456 grep -v '^ *+' conftest.er1
>conftest.err
21458 cat conftest.err
>&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } && {
21461 test -z "$ac_c_werror_flag" ||
21462 test ! -s conftest.err
21463 } && test -s conftest.
$ac_objext; then
21465 cat >>confdefs.h
<<\_ACEOF
21466 #define HAVE_GETHOSTBYNAME_R 1
21470 cat >>confdefs.h
<<\_ACEOF
21471 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21474 { echo "$as_me:$LINENO: result: yes" >&5
21475 echo "${ECHO_T}yes" >&6; }
21478 echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.
$ac_ext >&5
21482 { echo "$as_me:$LINENO: result: no" >&5
21483 echo "${ECHO_T}no" >&6; }
21484 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21485 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21486 cat >conftest.
$ac_ext <<_ACEOF
21489 cat confdefs.h
>>conftest.
$ac_ext
21490 cat >>conftest.
$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21493 # include <netdb.h>
21500 struct hostent *he;
21505 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21511 rm -f conftest.
$ac_objext
21512 if { (ac_try
="$ac_compile"
21513 case "(($ac_try" in
21514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_compile") 2>conftest.er1
21520 grep -v '^ *+' conftest.er1 >conftest.err
21522 cat conftest.err >&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } && {
21525 test -z "$ac_c_werror_flag" ||
21526 test ! -s conftest.err
21527 } && test -s conftest.$ac_objext; then
21529 cat >>confdefs.h <<\_ACEOF
21530 #define HAVE_GETHOSTBYNAME_R 1
21534 cat >>confdefs.h <<\_ACEOF
21535 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21538 { echo "$as_me:$LINENO: result: yes" >&5
21539 echo "${ECHO_T}yes" >&6; }
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.$ac_ext >&5
21546 { echo "$as_me:$LINENO: result: no" >&5
21547 echo "${ECHO_T}no" >&6; }
21548 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21549 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21550 cat >conftest.$ac_ext <<_ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21557 # include <netdb.h>
21564 struct hostent *he;
21565 struct hostent_data data;
21567 (void) gethostbyname_r(name, he, &data);
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21577 *) ac_try_echo
=$ac_try;;
21579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580 (eval "$ac_compile") 2>conftest.er1
21582 grep -v '^ *+' conftest.er1
>conftest.err
21584 cat conftest.err
>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); } && {
21587 test -z "$ac_c_werror_flag" ||
21588 test ! -s conftest.err
21589 } && test -s conftest.
$ac_objext; then
21591 cat >>confdefs.h
<<\_ACEOF
21592 #define HAVE_GETHOSTBYNAME_R 1
21596 cat >>confdefs.h
<<\_ACEOF
21597 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21600 { echo "$as_me:$LINENO: result: yes" >&5
21601 echo "${ECHO_T}yes" >&6; }
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.
$ac_ext >&5
21608 { echo "$as_me:$LINENO: result: no" >&5
21609 echo "${ECHO_T}no" >&6; }
21613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21627 for ac_func
in gethostbyname
21629 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21630 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21632 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21633 echo $ECHO_N "(cached) $ECHO_C" >&6
21635 cat >conftest.
$ac_ext <<_ACEOF
21638 cat confdefs.h
>>conftest.
$ac_ext
21639 cat >>conftest.
$ac_ext <<_ACEOF
21640 /* end confdefs.h. */
21641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21643 #define $ac_func innocuous_$ac_func
21645 /* System header to define __stub macros and hopefully few prototypes,
21646 which can conflict with char $ac_func (); below.
21647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21648 <limits.h> exists even on freestanding compilers. */
21651 # include <limits.h>
21653 # include <assert.h>
21658 /* Override any GCC internal prototype to avoid an error.
21659 Use char because int might match the return type of a GCC
21660 builtin and then its argument prototype would still apply. */
21665 /* The GNU C library defines this for functions which it implements
21666 to always fail with ENOSYS. Some functions are actually named
21667 something starting with __ and the normal name is an alias. */
21668 #if defined __stub_$ac_func || defined __stub___$ac_func
21675 return $ac_func ();
21680 rm -f conftest.
$ac_objext conftest
$ac_exeext
21681 if { (ac_try
="$ac_link"
21682 case "(($ac_try" in
21683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687 (eval "$ac_link") 2>conftest.er1
21689 grep -v '^ *+' conftest.er1 >conftest.err
21691 cat conftest.err >&5
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); } && {
21694 test -z "$ac_c_werror_flag" ||
21695 test ! -s conftest.err
21696 } && test -s conftest$ac_exeext &&
21697 $as_test_x conftest$ac_exeext; then
21698 eval "$as_ac_var=yes"
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 eval "$as_ac_var=no"
21706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21707 conftest$ac_exeext conftest.$ac_ext
21709 ac_res=`eval echo '${'$as_ac_var'}'`
21710 { echo "$as_me:$LINENO: result: $ac_res" >&5
21711 echo "${ECHO_T}$ac_res" >&6; }
21712 if test `eval echo '${'$as_ac_var'}'` = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21729 # checks for system services
21732 # Linux requires this for correct f.p. operations
21733 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21734 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21735 if test "${ac_cv_func___fpu_control+set}" = set; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21738 cat >conftest.$ac_ext <<_ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21746 #define __fpu_control innocuous___fpu_control
21748 /* System header to define __stub macros and hopefully few prototypes,
21749 which can conflict with char __fpu_control (); below.
21750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21751 <limits.h> exists even on freestanding compilers. */
21754 # include <limits.h>
21756 # include <assert.h>
21759 #undef __fpu_control
21761 /* Override any GCC internal prototype to avoid an error.
21762 Use char because int might match the return type of a GCC
21763 builtin and then its argument prototype would still apply. */
21767 char __fpu_control ();
21768 /* The GNU C library defines this for functions which it implements
21769 to always fail with ENOSYS. Some functions are actually named
21770 something starting with __ and the normal name is an alias. */
21771 #if defined __stub___fpu_control || defined __stub_____fpu_control
21778 return __fpu_control ();
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21787 *) ac_try_echo
=$ac_try;;
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_link") 2>conftest.er1
21792 grep -v '^ *+' conftest.er1
>conftest.err
21794 cat conftest.err
>&5
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); } && {
21797 test -z "$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21799 } && test -s conftest
$ac_exeext &&
21800 $as_test_x conftest
$ac_exeext; then
21801 ac_cv_func___fpu_control
=yes
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.
$ac_ext >&5
21806 ac_cv_func___fpu_control
=no
21809 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21810 conftest
$ac_exeext conftest.
$ac_ext
21812 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21813 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21814 if test $ac_cv_func___fpu_control = yes; then
21818 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21819 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21820 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21823 ac_check_lib_save_LIBS
=$LIBS
21824 LIBS
="-lieee $LIBS"
21825 cat >conftest.
$ac_ext <<_ACEOF
21828 cat confdefs.h
>>conftest.
$ac_ext
21829 cat >>conftest.
$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21832 /* Override any GCC internal prototype to avoid an error.
21833 Use char because int might match the return type of a GCC
21834 builtin and then its argument prototype would still apply. */
21838 char __fpu_control ();
21842 return __fpu_control ();
21847 rm -f conftest.
$ac_objext conftest
$ac_exeext
21848 if { (ac_try
="$ac_link"
21849 case "(($ac_try" in
21850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_link") 2>conftest.er1
21856 grep -v '^ *+' conftest.er1 >conftest.err
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } && {
21861 test -z "$ac_c_werror_flag" ||
21862 test ! -s conftest.err
21863 } && test -s conftest$ac_exeext &&
21864 $as_test_x conftest$ac_exeext; then
21865 ac_cv_lib_ieee___fpu_control=yes
21867 echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21870 ac_cv_lib_ieee___fpu_control=no
21873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21874 conftest$ac_exeext conftest.$ac_ext
21875 LIBS=$ac_check_lib_save_LIBS
21877 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21878 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21879 if test $ac_cv_lib_ieee___fpu_control = yes; then
21880 cat >>confdefs.h <<_ACEOF
21881 #define HAVE_LIBIEEE 1
21884 LIBS="-lieee $LIBS"
21892 # Check for --with-fpectl
21893 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21894 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21896 # Check whether --with-fpectl was given.
21897 if test "${with_fpectl+set}" = set; then
21898 withval=$with_fpectl;
21899 if test "$withval" != no
21902 cat >>confdefs.h <<\_ACEOF
21903 #define WANT_SIGFPE_HANDLER 1
21906 { echo "$as_me:$LINENO: result: yes" >&5
21907 echo "${ECHO_T}yes" >&6; }
21908 else { echo "$as_me:$LINENO: result: no" >&5
21909 echo "${ECHO_T}no" >&6; }
21912 { echo "$as_me:$LINENO: result: no" >&5
21913 echo "${ECHO_T}no" >&6; }
21917 # check for --with-libm=...
21919 case $ac_sys_system in
21924 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21925 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21927 # Check whether --with-libm was given.
21928 if test "${with_libm+set}" = set; then
21929 withval=$with_libm;
21930 if test "$withval" = no
21932 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21933 echo "${ECHO_T}force LIBM empty" >&6; }
21934 elif test "$withval" != yes
21936 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21937 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21938 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21939 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21940 { (exit 1); exit 1; }; }
21943 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21944 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21948 # check for --with-libc=...
21950 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21951 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21953 # Check whether --with-libc was given.
21954 if test "${with_libc+set}" = set; then
21955 withval=$with_libc;
21956 if test "$withval" = no
21958 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21959 echo "${ECHO_T}force LIBC empty" >&6; }
21960 elif test "$withval" != yes
21962 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21963 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21964 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21965 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21966 { (exit 1); exit 1; }; }
21969 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21970 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21974 # ************************************
21975 # * Check for mathematical functions *
21976 # ************************************
21981 # Detect whether system arithmetic is subject to x87-style double
21982 # rounding issues. The result of this test has little meaning on non
21983 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21984 # mode is round-to-nearest and double rounding issues are present, and
21985 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21986 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21987 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21988 if test "${ac_cv_x87_double_rounding+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21992 if test "$cross_compiling" = yes; then
21993 ac_cv_x87_double_rounding=no
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22002 #include <stdlib.h>
22005 volatile double x, y, z;
22006 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22007 x = 0.99999999999999989; /* 1-2**-53 */
22011 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22017 /* both tests show evidence of double rounding */
22022 rm -f conftest$ac_exeext
22023 if { (ac_try="$ac_link"
22024 case "(($ac_try" in
22025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22026 *) ac_try_echo
=$ac_try;;
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_link") 2>&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22033 { (case "(($ac_try" in
22034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_try") 2>&5
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 ac_cv_x87_double_rounding=no
22044 echo "$as_me: program exited with status $ac_status" >&5
22045 echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22048 ( exit $ac_status )
22049 ac_cv_x87_double_rounding=yes
22051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22057 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22058 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22059 if test "$ac_cv_x87_double_rounding" = yes
22062 cat >>confdefs.h <<\_ACEOF
22063 #define X87_DOUBLE_ROUNDING 1
22068 # Multiprocessing check for broken sem_getvalue
22069 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22070 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22071 if test "$cross_compiling" = yes; then
22072 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22073 See \`config.log
' for more details." >&5
22074 echo "$as_me: error: cannot run test program while cross compiling
22075 See \`config.log' for more details.
" >&2;}
22076 { (exit 1); exit 1; }; }
22078 cat >conftest.$ac_ext <<_ACEOF
22081 cat confdefs.h >>conftest.$ac_ext
22082 cat >>conftest.$ac_ext <<_ACEOF
22083 /* end confdefs.h. */
22085 #include <unistd.h>
22088 #include <semaphore.h>
22089 #include <sys/stat.h>
22092 sem_t *a = sem_open("/autoconf
", O_CREAT, S_IRUSR|S_IWUSR, 0);
22096 perror("sem_open
");
22100 res = sem_getvalue(a, &count);
22102 return res==-1 ? 1 : 0;
22107 rm -f conftest$ac_exeext
22108 if { (ac_try="$ac_link"
22109 case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_link") 2>&5
22116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22118 { (case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_try") 2>&5
22125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 { echo "$as_me:$LINENO: result
: no
" >&5
22128 echo "${ECHO_T}no
" >&6; }
22130 echo "$as_me: program exited with status
$ac_status" >&5
22131 echo "$as_me: failed program was
:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 ( exit $ac_status )
22135 { echo "$as_me:$LINENO: result
: yes" >&5
22136 echo "${ECHO_T}yes" >&6; }
22138 cat >>confdefs.h <<\_ACEOF
22139 #define HAVE_BROKEN_SEM_GETVALUE 1
22144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22149 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22150 # -0. on some architectures.
22151 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero
" >&5
22152 echo $ECHO_N "checking whether tanh preserves the sign of zero...
$ECHO_C" >&6; }
22153 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22154 echo $ECHO_N "(cached
) $ECHO_C" >&6
22157 if test "$cross_compiling" = yes; then
22158 ac_cv_tanh_preserves_zero_sign=no
22160 cat >conftest.$ac_ext <<_ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h. */
22168 #include <stdlib.h>
22170 /* return 0 if either negative zeros don't exist
22171 on this platform or if negative zeros exist
22172 and tanh(-0.) == -0. */
22173 if (atan2(0., -1.) == atan2(-0., -1.) ||
22174 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22179 rm -f conftest$ac_exeext
22180 if { (ac_try="$ac_link"
22181 case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183 *) ac_try_echo=$ac_try;;
22185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22186 (eval "$ac_link") 2>&5
22188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22190 { (case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_try") 2>&5
22197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22198 (exit $ac_status); }; }; then
22199 ac_cv_tanh_preserves_zero_sign=yes
22201 echo "$as_me: program exited with status
$ac_status" >&5
22202 echo "$as_me: failed program was
:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 ( exit $ac_status )
22206 ac_cv_tanh_preserves_zero_sign=no
22208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22214 { echo "$as_me:$LINENO: result
: $ac_cv_tanh_preserves_zero_sign" >&5
22215 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22216 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22219 cat >>confdefs.h <<\_ACEOF
22220 #define TANH_PRESERVES_ZERO_SIGN 1
22234 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22236 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22237 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22238 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22239 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22240 echo $ECHO_N "(cached
) $ECHO_C" >&6
22242 cat >conftest.$ac_ext <<_ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22250 #define $ac_func innocuous_$ac_func
22252 /* System header to define __stub macros and hopefully few prototypes,
22253 which can conflict with char $ac_func (); below.
22254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255 <limits.h> exists even on freestanding compilers. */
22258 # include <limits.h>
22260 # include <assert.h>
22265 /* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22272 /* The GNU C library defines this for functions which it implements
22273 to always fail with ENOSYS. Some functions are actually named
22274 something starting with __ and the normal name is an alias. */
22275 #if defined __stub_$ac_func || defined __stub___$ac_func
22282 return $ac_func ();
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (ac_try="$ac_link"
22289 case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_link") 2>conftest.er1
22296 grep -v '^ *+' conftest.er1 >conftest.err
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22300 (exit $ac_status); } && {
22301 test -z "$ac_c_werror_flag" ||
22302 test ! -s conftest.err
22303 } && test -s conftest$ac_exeext &&
22304 $as_test_x conftest$ac_exeext; then
22305 eval "$as_ac_var=yes"
22307 echo "$as_me: failed program was
:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22310 eval "$as_ac_var=no
"
22313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22314 conftest$ac_exeext conftest.$ac_ext
22316 ac_res=`eval echo '${'$as_ac_var'}'`
22317 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22318 echo "${ECHO_T}$ac_res" >&6; }
22319 if test `eval echo '${'$as_ac_var'}'` = yes; then
22320 cat >>confdefs.h <<_ACEOF
22321 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22327 { echo "$as_me:$LINENO: checking whether isinf is declared
" >&5
22328 echo $ECHO_N "checking whether isinf is declared...
$ECHO_C" >&6; }
22329 if test "${ac_cv_have_decl_isinf+set}" = set; then
22330 echo $ECHO_N "(cached
) $ECHO_C" >&6
22332 cat >conftest.$ac_ext <<_ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22351 rm -f conftest.$ac_objext
22352 if { (ac_try="$ac_compile"
22353 case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22358 (eval "$ac_compile") 2>conftest.er1
22360 grep -v '^ *+' conftest.er1 >conftest.err
22362 cat conftest.err >&5
22363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22364 (exit $ac_status); } && {
22365 test -z "$ac_c_werror_flag" ||
22366 test ! -s conftest.err
22367 } && test -s conftest.$ac_objext; then
22368 ac_cv_have_decl_isinf=yes
22370 echo "$as_me: failed program was
:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22373 ac_cv_have_decl_isinf=no
22376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22378 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_isinf" >&5
22379 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22380 if test $ac_cv_have_decl_isinf = yes; then
22382 cat >>confdefs.h <<_ACEOF
22383 #define HAVE_DECL_ISINF 1
22388 cat >>confdefs.h <<_ACEOF
22389 #define HAVE_DECL_ISINF 0
22394 { echo "$as_me:$LINENO: checking whether isnan is declared
" >&5
22395 echo $ECHO_N "checking whether isnan is declared...
$ECHO_C" >&6; }
22396 if test "${ac_cv_have_decl_isnan+set}" = set; then
22397 echo $ECHO_N "(cached
) $ECHO_C" >&6
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422 *) ac_try_echo=$ac_try;;
22424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22425 (eval "$ac_compile") 2>conftest.er1
22427 grep -v '^ *+' conftest.er1 >conftest.err
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22431 (exit $ac_status); } && {
22432 test -z "$ac_c_werror_flag" ||
22433 test ! -s conftest.err
22434 } && test -s conftest.$ac_objext; then
22435 ac_cv_have_decl_isnan=yes
22437 echo "$as_me: failed program was
:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 ac_cv_have_decl_isnan=no
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_isnan" >&5
22446 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22447 if test $ac_cv_have_decl_isnan = yes; then
22449 cat >>confdefs.h <<_ACEOF
22450 #define HAVE_DECL_ISNAN 1
22455 cat >>confdefs.h <<_ACEOF
22456 #define HAVE_DECL_ISNAN 0
22461 { echo "$as_me:$LINENO: checking whether isfinite is declared
" >&5
22462 echo $ECHO_N "checking whether isfinite is declared...
$ECHO_C" >&6; }
22463 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22464 echo $ECHO_N "(cached
) $ECHO_C" >&6
22466 cat >conftest.$ac_ext <<_ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22485 rm -f conftest.$ac_objext
22486 if { (ac_try="$ac_compile"
22487 case "(($ac_try" in
22488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489 *) ac_try_echo=$ac_try;;
22491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22492 (eval "$ac_compile") 2>conftest.er1
22494 grep -v '^ *+' conftest.er1 >conftest.err
22496 cat conftest.err >&5
22497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22498 (exit $ac_status); } && {
22499 test -z "$ac_c_werror_flag" ||
22500 test ! -s conftest.err
22501 } && test -s conftest.$ac_objext; then
22502 ac_cv_have_decl_isfinite=yes
22504 echo "$as_me: failed program was
:" >&5
22505 sed 's/^/| /' conftest.$ac_ext >&5
22507 ac_cv_have_decl_isfinite=no
22510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_isfinite" >&5
22513 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22514 if test $ac_cv_have_decl_isfinite = yes; then
22516 cat >>confdefs.h <<_ACEOF
22517 #define HAVE_DECL_ISFINITE 1
22522 cat >>confdefs.h <<_ACEOF
22523 #define HAVE_DECL_ISFINITE 0
22533 # determine what size digit to use for Python's longs
22534 { echo "$as_me:$LINENO: checking digit size
for Python
's longs" >&5
22535 echo $ECHO_N "checking digit size for Python's longs...
$ECHO_C" >&6; }
22536 # Check whether --enable-big-digits was given.
22537 if test "${enable_big_digits+set}" = set; then
22538 enableval=$enable_big_digits; case $enable_big_digits in
22540 enable_big_digits=30 ;;
22542 enable_big_digits=15 ;;
22546 { { echo "$as_me:$LINENO: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&5
22547 echo "$as_me: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&2;}
22548 { (exit 1); exit 1; }; } ;;
22550 { echo "$as_me:$LINENO: result
: $enable_big_digits" >&5
22551 echo "${ECHO_T}$enable_big_digits" >&6; }
22553 cat >>confdefs.h <<_ACEOF
22554 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22559 { echo "$as_me:$LINENO: result
: no value specified
" >&5
22560 echo "${ECHO_T}no value specified
" >&6; }
22564 # check for wchar.h
22565 if test "${ac_cv_header_wchar_h+set}" = set; then
22566 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22567 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22568 if test "${ac_cv_header_wchar_h+set}" = set; then
22569 echo $ECHO_N "(cached
) $ECHO_C" >&6
22571 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22572 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22574 # Is the header compilable?
22575 { echo "$as_me:$LINENO: checking wchar.h usability
" >&5
22576 echo $ECHO_N "checking wchar.h usability...
$ECHO_C" >&6; }
22577 cat >conftest.$ac_ext <<_ACEOF
22580 cat confdefs.h >>conftest.$ac_ext
22581 cat >>conftest.$ac_ext <<_ACEOF
22582 /* end confdefs.h. */
22583 $ac_includes_default
22586 rm -f conftest.$ac_objext
22587 if { (ac_try="$ac_compile"
22588 case "(($ac_try" in
22589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590 *) ac_try_echo=$ac_try;;
22592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22593 (eval "$ac_compile") 2>conftest.er1
22595 grep -v '^ *+' conftest.er1 >conftest.err
22597 cat conftest.err >&5
22598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22599 (exit $ac_status); } && {
22600 test -z "$ac_c_werror_flag" ||
22601 test ! -s conftest.err
22602 } && test -s conftest.$ac_objext; then
22603 ac_header_compiler=yes
22605 echo "$as_me: failed program was
:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22608 ac_header_compiler=no
22611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22613 echo "${ECHO_T}$ac_header_compiler" >&6; }
22615 # Is the header present?
22616 { echo "$as_me:$LINENO: checking wchar.h presence
" >&5
22617 echo $ECHO_N "checking wchar.h presence...
$ECHO_C" >&6; }
22618 cat >conftest.$ac_ext <<_ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22626 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22627 case "(($ac_try" in
22628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629 *) ac_try_echo=$ac_try;;
22631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22632 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22634 grep -v '^ *+' conftest.er1 >conftest.err
22636 cat conftest.err >&5
22637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22638 (exit $ac_status); } >/dev/null && {
22639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22640 test ! -s conftest.err
22642 ac_header_preproc=yes
22644 echo "$as_me: failed program was
:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22647 ac_header_preproc=no
22650 rm -f conftest.err conftest.$ac_ext
22651 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22652 echo "${ECHO_T}$ac_header_preproc" >&6; }
22654 # So? What about this header?
22655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22657 { echo "$as_me:$LINENO: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22658 echo "$as_me: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22659 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the compiler
's result" >&5
22660 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result
" >&2;}
22661 ac_header_preproc=yes
22664 { echo "$as_me:$LINENO: WARNING
: wchar.h
: present but cannot be compiled
" >&5
22665 echo "$as_me: WARNING
: wchar.h
: present but cannot be compiled
" >&2;}
22666 { echo "$as_me:$LINENO: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&5
22667 echo "$as_me: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&2;}
22668 { echo "$as_me:$LINENO: WARNING
: wchar.h
: see the Autoconf documentation
" >&5
22669 echo "$as_me: WARNING
: wchar.h
: see the Autoconf documentation
" >&2;}
22670 { echo "$as_me:$LINENO: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22671 echo "$as_me: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22672 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&5
22673 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result
" >&2;}
22674 { echo "$as_me:$LINENO: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&5
22675 echo "$as_me: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&2;}
22677 ## ------------------------------------------------ ##
22678 ## Report this to http://www.python.org/python-bugs ##
22679 ## ------------------------------------------------ ##
22681 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22684 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22685 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22686 if test "${ac_cv_header_wchar_h+set}" = set; then
22687 echo $ECHO_N "(cached
) $ECHO_C" >&6
22689 ac_cv_header_wchar_h=$ac_header_preproc
22691 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22692 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22695 if test $ac_cv_header_wchar_h = yes; then
22698 cat >>confdefs.h <<\_ACEOF
22699 #define HAVE_WCHAR_H 1
22711 # determine wchar_t size
22712 if test "$wchar_h" = yes
22714 { echo "$as_me:$LINENO: checking
for wchar_t
" >&5
22715 echo $ECHO_N "checking
for wchar_t...
$ECHO_C" >&6; }
22716 if test "${ac_cv_type_wchar_t+set}" = set; then
22717 echo $ECHO_N "(cached
) $ECHO_C" >&6
22719 cat >conftest.$ac_ext <<_ACEOF
22722 cat confdefs.h >>conftest.$ac_ext
22723 cat >>conftest.$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22727 typedef wchar_t ac__type_new_;
22731 if ((ac__type_new_ *) 0)
22733 if (sizeof (ac__type_new_))
22739 rm -f conftest.$ac_objext
22740 if { (ac_try="$ac_compile"
22741 case "(($ac_try" in
22742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22743 *) ac_try_echo=$ac_try;;
22745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22746 (eval "$ac_compile") 2>conftest.er1
22748 grep -v '^ *+' conftest.er1 >conftest.err
22750 cat conftest.err >&5
22751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22752 (exit $ac_status); } && {
22753 test -z "$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 } && test -s conftest.$ac_objext; then
22756 ac_cv_type_wchar_t=yes
22758 echo "$as_me: failed program was
:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22761 ac_cv_type_wchar_t=no
22764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 { echo "$as_me:$LINENO: result
: $ac_cv_type_wchar_t" >&5
22767 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22769 # The cast to long int works around a bug in the HP C Compiler
22770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22772 # This bug is HP SR number 8606223364.
22773 { echo "$as_me:$LINENO: checking size of wchar_t
" >&5
22774 echo $ECHO_N "checking size of wchar_t...
$ECHO_C" >&6; }
22775 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22776 echo $ECHO_N "(cached
) $ECHO_C" >&6
22778 if test "$cross_compiling" = yes; then
22779 # Depending upon the size, compute the lo and hi bounds.
22780 cat >conftest.$ac_ext <<_ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22788 typedef wchar_t ac__type_sizeof_;
22792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803 *) ac_try_echo=$ac_try;;
22805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22806 (eval "$ac_compile") 2>conftest.er1
22808 grep -v '^ *+' conftest.er1 >conftest.err
22810 cat conftest.err >&5
22811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22812 (exit $ac_status); } && {
22813 test -z "$ac_c_werror_flag" ||
22814 test ! -s conftest.err
22815 } && test -s conftest.$ac_objext; then
22818 cat >conftest.$ac_ext <<_ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h. */
22826 typedef wchar_t ac__type_sizeof_;
22830 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22837 rm -f conftest.$ac_objext
22838 if { (ac_try="$ac_compile"
22839 case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22844 (eval "$ac_compile") 2>conftest.er1
22846 grep -v '^ *+' conftest.er1 >conftest.err
22848 cat conftest.err >&5
22849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest.$ac_objext; then
22854 ac_hi=$ac_mid; break
22856 echo "$as_me: failed program was
:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 ac_lo=`expr $ac_mid + 1`
22860 if test $ac_lo -le $ac_mid; then
22864 ac_mid=`expr 2 '*' $ac_mid + 1`
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22870 echo "$as_me: failed program was
:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22873 cat >conftest.$ac_ext <<_ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22881 typedef wchar_t ac__type_sizeof_;
22885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896 *) ac_try_echo=$ac_try;;
22898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22899 (eval "$ac_compile") 2>conftest.er1
22901 grep -v '^ *+' conftest.er1 >conftest.err
22903 cat conftest.err >&5
22904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22905 (exit $ac_status); } && {
22906 test -z "$ac_c_werror_flag" ||
22907 test ! -s conftest.err
22908 } && test -s conftest.$ac_objext; then
22911 cat >conftest.$ac_ext <<_ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22919 typedef wchar_t ac__type_sizeof_;
22923 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22930 rm -f conftest.$ac_objext
22931 if { (ac_try="$ac_compile"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_compile") 2>conftest.er1
22939 grep -v '^ *+' conftest.er1 >conftest.err
22941 cat conftest.err >&5
22942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest.$ac_objext; then
22947 ac_lo=$ac_mid; break
22949 echo "$as_me: failed program was
:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22952 ac_hi=`expr '(' $ac_mid ')' - 1`
22953 if test $ac_mid -le $ac_hi; then
22957 ac_mid=`expr 2 '*' $ac_mid`
22960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963 echo "$as_me: failed program was
:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22973 # Binary search between lo and hi bounds.
22974 while test "x
$ac_lo" != "x
$ac_hi"; do
22975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22976 cat >conftest.$ac_ext <<_ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22984 typedef wchar_t ac__type_sizeof_;
22988 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22995 rm -f conftest.$ac_objext
22996 if { (ac_try="$ac_compile"
22997 case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_compile") 2>conftest.er1
23004 grep -v '^ *+' conftest.er1 >conftest.err
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23008 (exit $ac_status); } && {
23009 test -z "$ac_c_werror_flag" ||
23010 test ! -s conftest.err
23011 } && test -s conftest.$ac_objext; then
23014 echo "$as_me: failed program was
:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 ac_lo=`expr '(' $ac_mid ')' + 1`
23020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23024 '') if test "$ac_cv_type_wchar_t" = yes; then
23025 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
23026 See \
`config.log' for more details." >&5
23027 echo "$as_me: error: cannot compute sizeof (wchar_t)
23028 See \`config.log
' for more details." >&2;}
23029 { (exit 77); exit 77; }; }
23031 ac_cv_sizeof_wchar_t=0
23035 cat >conftest.$ac_ext <<_ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23043 typedef wchar_t ac__type_sizeof_;
23044 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23045 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23047 #include <stdlib.h>
23052 FILE *f = fopen ("conftest.val", "w");
23055 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23057 long int i = longval ();
23058 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23060 fprintf (f, "%ld\n", i);
23064 unsigned long int i = ulongval ();
23065 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23067 fprintf (f, "%lu\n", i);
23069 return ferror (f) || fclose (f) != 0;
23075 rm -f conftest$ac_exeext
23076 if { (ac_try="$ac_link"
23077 case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082 (eval "$ac_link") 2>&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23086 { (case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_try") 2>&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_cv_sizeof_wchar_t=`cat conftest.val`
23097 echo "$as_me: program exited with status $ac_status" >&5
23098 echo "$as_me: failed program was:" >&5
23099 sed 's
/^
/|
/' conftest.$ac_ext >&5
23101 ( exit $ac_status )
23102 if test "$ac_cv_type_wchar_t" = yes; then
23103 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23104 See \`config.log' for more details.
" >&5
23105 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
23106 See \
`config.log' for more details." >&2;}
23107 { (exit 77); exit 77; }; }
23109 ac_cv_sizeof_wchar_t=0
23112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23116 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23117 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23121 cat >>confdefs.h <<_ACEOF
23122 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23128 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23129 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23131 cat >conftest.$ac_ext <<_ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h. */
23139 #if TCL_UTF_MAX != 6
23140 # error "NOT UCS4_TCL"
23150 rm -f conftest.$ac_objext
23151 if { (ac_try="$ac_compile"
23152 case "(($ac_try" in
23153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23154 *) ac_try_echo
=$ac_try;;
23156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23157 (eval "$ac_compile") 2>conftest.er1
23159 grep -v '^ *+' conftest.er1
>conftest.err
23161 cat conftest.err
>&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); } && {
23164 test -z "$ac_c_werror_flag" ||
23165 test ! -s conftest.err
23166 } && test -s conftest.
$ac_objext; then
23169 cat >>confdefs.h
<<\_ACEOF
23170 #define HAVE_UCS4_TCL 1
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.
$ac_ext >&5
23182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23183 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23184 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23186 # check whether wchar_t is signed or not
23187 if test "$wchar_h" = yes
23189 # check whether wchar_t is signed or not
23190 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23191 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23192 if test "${ac_cv_wchar_t_signed+set}" = set; then
23193 echo $ECHO_N "(cached) $ECHO_C" >&6
23196 if test "$cross_compiling" = yes; then
23197 ac_cv_wchar_t_signed
=yes
23199 cat >conftest.
$ac_ext <<_ACEOF
23202 cat confdefs.h
>>conftest.
$ac_ext
23203 cat >>conftest.
$ac_ext <<_ACEOF
23204 /* end confdefs.h. */
23209 /* Success: exit code 0 */
23210 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23214 rm -f conftest
$ac_exeext
23215 if { (ac_try
="$ac_link"
23216 case "(($ac_try" in
23217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_link") 2>&5
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23225 { (case "(($ac_try" in
23226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23227 *) ac_try_echo
=$ac_try;;
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_try") 2>&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_wchar_t_signed
=yes
23236 echo "$as_me: program exited with status $ac_status" >&5
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.
$ac_ext >&5
23240 ( exit $ac_status )
23241 ac_cv_wchar_t_signed
=no
23243 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23249 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23250 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23253 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23254 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23255 # Check whether --enable-unicode was given.
23256 if test "${enable_unicode+set}" = set; then
23257 enableval
=$enable_unicode;
23263 if test $enable_unicode = yes
23265 # Without any arguments, Py_UNICODE defaults to two-byte mode
23266 case "$have_ucs4_tcl" in
23267 yes) enable_unicode
="ucs4"
23269 *) enable_unicode
="ucs2"
23276 case "$enable_unicode" in
23277 ucs2
) unicode_size
="2"
23278 cat >>confdefs.h
<<\_ACEOF
23279 #define Py_UNICODE_SIZE 2
23283 ucs4
) unicode_size
="4"
23284 cat >>confdefs.h
<<\_ACEOF
23285 #define Py_UNICODE_SIZE 4
23295 if test "$enable_unicode" = "no"
23298 { echo "$as_me:$LINENO: result: not used" >&5
23299 echo "${ECHO_T}not used" >&6; }
23301 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
23303 cat >>confdefs.h
<<\_ACEOF
23304 #define Py_USING_UNICODE 1
23308 # wchar_t is only usable if it maps to an unsigned type
23309 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23310 -a "$ac_cv_wchar_t_signed" = "no"
23312 PY_UNICODE_TYPE
="wchar_t"
23314 cat >>confdefs.h
<<\_ACEOF
23315 #define HAVE_USABLE_WCHAR_T 1
23318 cat >>confdefs.h
<<\_ACEOF
23319 #define PY_UNICODE_TYPE wchar_t
23322 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23324 PY_UNICODE_TYPE
="unsigned short"
23325 cat >>confdefs.h
<<\_ACEOF
23326 #define PY_UNICODE_TYPE unsigned short
23329 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23331 PY_UNICODE_TYPE
="unsigned long"
23332 cat >>confdefs.h
<<\_ACEOF
23333 #define PY_UNICODE_TYPE unsigned long
23337 PY_UNICODE_TYPE
="no type found"
23339 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23340 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23343 # check for endianness
23344 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23345 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23346 if test "${ac_cv_c_bigendian+set}" = set; then
23347 echo $ECHO_N "(cached) $ECHO_C" >&6
23349 # See if sys/param.h defines the BYTE_ORDER macro.
23350 cat >conftest.
$ac_ext <<_ACEOF
23353 cat confdefs.h
>>conftest.
$ac_ext
23354 cat >>conftest.
$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23356 #include <sys/types.h>
23357 #include <sys/param.h>
23362 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23363 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23364 bogus endian macros
23371 rm -f conftest.
$ac_objext
23372 if { (ac_try
="$ac_compile"
23373 case "(($ac_try" in
23374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_compile") 2>conftest.er1
23380 grep -v '^ *+' conftest.er1 >conftest.err
23382 cat conftest.err >&5
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && {
23385 test -z "$ac_c_werror_flag" ||
23386 test ! -s conftest.err
23387 } && test -s conftest.$ac_objext; then
23388 # It does; now see whether it defined to BIG_ENDIAN or not.
23389 cat >conftest.$ac_ext <<_ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 #include <sys/types.h>
23396 #include <sys/param.h>
23401 #if BYTE_ORDER != BIG_ENDIAN
23409 rm -f conftest.$ac_objext
23410 if { (ac_try="$ac_compile"
23411 case "(($ac_try" in
23412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23413 *) ac_try_echo
=$ac_try;;
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416 (eval "$ac_compile") 2>conftest.er1
23418 grep -v '^ *+' conftest.er1
>conftest.err
23420 cat conftest.err
>&5
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } && {
23423 test -z "$ac_c_werror_flag" ||
23424 test ! -s conftest.err
23425 } && test -s conftest.
$ac_objext; then
23426 ac_cv_c_bigendian
=yes
23428 echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.
$ac_ext >&5
23431 ac_cv_c_bigendian
=no
23434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23436 echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.
$ac_ext >&5
23439 # It does not; compile a test program.
23440 if test "$cross_compiling" = yes; then
23441 # try to guess the endianness by grepping values into an object file
23442 ac_cv_c_bigendian
=unknown
23443 cat >conftest.
$ac_ext <<_ACEOF
23446 cat confdefs.h
>>conftest.
$ac_ext
23447 cat >>conftest.
$ac_ext <<_ACEOF
23448 /* end confdefs.h. */
23449 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23450 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23451 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23452 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23453 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23454 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23458 _ascii (); _ebcdic ();
23463 rm -f conftest.
$ac_objext
23464 if { (ac_try
="$ac_compile"
23465 case "(($ac_try" in
23466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23467 *) ac_try_echo=$ac_try;;
23469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23470 (eval "$ac_compile") 2>conftest.er1
23472 grep -v '^ *+' conftest.er1 >conftest.err
23474 cat conftest.err >&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); } && {
23477 test -z "$ac_c_werror_flag" ||
23478 test ! -s conftest.err
23479 } && test -s conftest.$ac_objext; then
23480 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23481 ac_cv_c_bigendian=yes
23483 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23484 if test "$ac_cv_c_bigendian" = unknown; then
23485 ac_cv_c_bigendian=no
23487 # finding both strings is unlikely to happen, but who knows?
23488 ac_cv_c_bigendian=unknown
23492 echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23500 cat >conftest.$ac_ext <<_ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h. */
23506 $ac_includes_default
23511 /* Are we little or big endian? From Harbison&Steele. */
23515 char c[sizeof (long int)];
23518 return u.c[sizeof (long int) - 1] == 1;
23524 rm -f conftest$ac_exeext
23525 if { (ac_try="$ac_link"
23526 case "(($ac_try" in
23527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23528 *) ac_try_echo
=$ac_try;;
23530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531 (eval "$ac_link") 2>&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23535 { (case "(($ac_try" in
23536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_try") 2>&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); }; }; then
23544 ac_cv_c_bigendian=no
23546 echo "$as_me: program exited with status $ac_status" >&5
23547 echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23550 ( exit $ac_status )
23551 ac_cv_c_bigendian=yes
23553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23562 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23563 case $ac_cv_c_bigendian in
23566 cat >>confdefs.h <<\_ACEOF
23567 #define WORDS_BIGENDIAN 1
23573 { { echo "$as_me:$LINENO: error: unknown endianness
23574 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23575 echo "$as_me: error: unknown endianness
23576 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23577 { (exit 1); exit 1; }; } ;;
23581 # Check whether right shifting a negative integer extends the sign bit
23582 # or fills with zeros (like the Cray J90, according to Tim Peters).
23583 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23584 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23585 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
23589 if test "$cross_compiling" = yes; then
23590 ac_cv_rshift_extends_sign=yes
23592 cat >conftest.$ac_ext <<_ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h. */
23601 exit(((-1)>>3 == -1) ? 0 : 1);
23605 rm -f conftest$ac_exeext
23606 if { (ac_try="$ac_link"
23607 case "(($ac_try" in
23608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23609 *) ac_try_echo
=$ac_try;;
23611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23612 (eval "$ac_link") 2>&5
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23616 { (case "(($ac_try" in
23617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23618 *) ac_try_echo=$ac_try;;
23620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621 (eval "$ac_try") 2>&5
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; }; then
23625 ac_cv_rshift_extends_sign=yes
23627 echo "$as_me: program exited with status $ac_status" >&5
23628 echo "$as_me: failed program was:" >&5
23629 sed 's/^/| /' conftest.$ac_ext >&5
23631 ( exit $ac_status )
23632 ac_cv_rshift_extends_sign=no
23634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23640 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23641 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23642 if test "$ac_cv_rshift_extends_sign" = no
23645 cat >>confdefs.h <<\_ACEOF
23646 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23651 # check for getc_unlocked and related locking functions
23652 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23653 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23654 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
23658 cat >conftest.$ac_ext <<_ACEOF
23661 cat confdefs.h >>conftest.$ac_ext
23662 cat >>conftest.$ac_ext <<_ACEOF
23663 /* end confdefs.h. */
23669 FILE *f = fopen("/dev/null", "r");
23678 rm -f conftest.$ac_objext conftest$ac_exeext
23679 if { (ac_try="$ac_link"
23680 case "(($ac_try" in
23681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23682 *) ac_try_echo
=$ac_try;;
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_link") 2>conftest.er1
23687 grep -v '^ *+' conftest.er1
>conftest.err
23689 cat conftest.err
>&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } && {
23692 test -z "$ac_c_werror_flag" ||
23693 test ! -s conftest.err
23694 } && test -s conftest
$ac_exeext &&
23695 $as_test_x conftest
$ac_exeext; then
23696 ac_cv_have_getc_unlocked
=yes
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.
$ac_ext >&5
23701 ac_cv_have_getc_unlocked
=no
23704 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23705 conftest
$ac_exeext conftest.
$ac_ext
23708 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23709 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23710 if test "$ac_cv_have_getc_unlocked" = yes
23713 cat >>confdefs.h
<<\_ACEOF
23714 #define HAVE_GETC_UNLOCKED 1
23719 # check where readline lives
23720 # save the value of LIBS so we don't actually link Python with readline
23721 LIBS_no_readline
=$LIBS
23723 # On some systems we need to link readline to a termcap compatible
23724 # library. NOTE: Keep the precedence of listed libraries synchronised
23726 py_cv_lib_readline
=no
23727 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23728 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23729 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
23730 if test -z "$py_libtermcap"; then
23731 READLINE_LIBS
="-lreadline"
23733 READLINE_LIBS
="-lreadline -l$py_libtermcap"
23735 LIBS
="$READLINE_LIBS $LIBS_no_readline"
23736 cat >conftest.
$ac_ext <<_ACEOF
23739 cat confdefs.h
>>conftest.
$ac_ext
23740 cat >>conftest.
$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23743 /* Override any GCC internal prototype to avoid an error.
23744 Use char because int might match the return type of a GCC
23745 builtin and then its argument prototype would still apply. */
23753 return readline ();
23758 rm -f conftest.
$ac_objext conftest
$ac_exeext
23759 if { (ac_try
="$ac_link"
23760 case "(($ac_try" in
23761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_link") 2>conftest.er1
23767 grep -v '^ *+' conftest.er1 >conftest.err
23769 cat conftest.err >&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); } && {
23772 test -z "$ac_c_werror_flag" ||
23773 test ! -s conftest.err
23774 } && test -s conftest$ac_exeext &&
23775 $as_test_x conftest$ac_exeext; then
23776 py_cv_lib_readline=yes
23778 echo "$as_me: failed program was:" >&5
23779 sed 's/^/| /' conftest.$ac_ext >&5
23784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23785 conftest$ac_exeext conftest.$ac_ext
23786 if test $py_cv_lib_readline = yes; then
23790 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23791 #AC_SUBST([READLINE_LIBS])
23792 if test $py_cv_lib_readline = no; then
23793 { echo "$as_me:$LINENO: result: none" >&5
23794 echo "${ECHO_T}none" >&6; }
23796 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23797 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23799 cat >>confdefs.h <<\_ACEOF
23800 #define HAVE_LIBREADLINE 1
23805 # check for readline 2.1
23806 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23807 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23808 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23809 echo $ECHO_N "(cached) $ECHO_C" >&6
23811 ac_check_lib_save_LIBS=$LIBS
23812 LIBS="-lreadline $READLINE_LIBS $LIBS"
23813 cat >conftest.$ac_ext <<_ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h. */
23820 /* Override any GCC internal prototype to avoid an error.
23821 Use char because int might match the return type of a GCC
23822 builtin and then its argument prototype would still apply. */
23826 char rl_callback_handler_install ();
23830 return rl_callback_handler_install ();
23835 rm -f conftest.$ac_objext conftest$ac_exeext
23836 if { (ac_try="$ac_link"
23837 case "(($ac_try" in
23838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23839 *) ac_try_echo
=$ac_try;;
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842 (eval "$ac_link") 2>conftest.er1
23844 grep -v '^ *+' conftest.er1
>conftest.err
23846 cat conftest.err
>&5
23847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848 (exit $ac_status); } && {
23849 test -z "$ac_c_werror_flag" ||
23850 test ! -s conftest.err
23851 } && test -s conftest
$ac_exeext &&
23852 $as_test_x conftest
$ac_exeext; then
23853 ac_cv_lib_readline_rl_callback_handler_install
=yes
23855 echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.
$ac_ext >&5
23858 ac_cv_lib_readline_rl_callback_handler_install
=no
23861 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23862 conftest
$ac_exeext conftest.
$ac_ext
23863 LIBS
=$ac_check_lib_save_LIBS
23865 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23866 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23867 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23869 cat >>confdefs.h
<<\_ACEOF
23870 #define HAVE_RL_CALLBACK 1
23876 # check for readline 2.2
23877 cat >conftest.
$ac_ext <<_ACEOF
23880 cat confdefs.h
>>conftest.
$ac_ext
23881 cat >>conftest.
$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23883 #include <readline/readline.h>
23885 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23886 case "(($ac_try" in
23887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23888 *) ac_try_echo=$ac_try;;
23890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23893 grep -v '^ *+' conftest.er1 >conftest.err
23895 cat conftest.err >&5
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } >/dev/null && {
23898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23899 test ! -s conftest.err
23903 echo "$as_me: failed program was:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23909 rm -f conftest.err conftest.$ac_ext
23910 if test $have_readline = yes
23912 cat >conftest.$ac_ext <<_ACEOF
23915 cat confdefs.h >>conftest.$ac_ext
23916 cat >>conftest.$ac_ext <<_ACEOF
23917 /* end confdefs.h. */
23918 #include <readline/readline.h>
23921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23922 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23924 cat >>confdefs.h <<\_ACEOF
23925 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23933 # check for readline 4.0
23934 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23935 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23936 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23939 ac_check_lib_save_LIBS=$LIBS
23940 LIBS="-lreadline $READLINE_LIBS $LIBS"
23941 cat >conftest.$ac_ext <<_ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23948 /* Override any GCC internal prototype to avoid an error.
23949 Use char because int might match the return type of a GCC
23950 builtin and then its argument prototype would still apply. */
23954 char rl_pre_input_hook ();
23958 return rl_pre_input_hook ();
23963 rm -f conftest.$ac_objext conftest$ac_exeext
23964 if { (ac_try="$ac_link"
23965 case "(($ac_try" in
23966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23967 *) ac_try_echo
=$ac_try;;
23969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23970 (eval "$ac_link") 2>conftest.er1
23972 grep -v '^ *+' conftest.er1
>conftest.err
23974 cat conftest.err
>&5
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); } && {
23977 test -z "$ac_c_werror_flag" ||
23978 test ! -s conftest.err
23979 } && test -s conftest
$ac_exeext &&
23980 $as_test_x conftest
$ac_exeext; then
23981 ac_cv_lib_readline_rl_pre_input_hook
=yes
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.
$ac_ext >&5
23986 ac_cv_lib_readline_rl_pre_input_hook
=no
23989 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23990 conftest
$ac_exeext conftest.
$ac_ext
23991 LIBS
=$ac_check_lib_save_LIBS
23993 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23994 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23995 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23997 cat >>confdefs.h
<<\_ACEOF
23998 #define HAVE_RL_PRE_INPUT_HOOK 1
24005 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24006 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24007 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24008 echo $ECHO_N "(cached) $ECHO_C" >&6
24010 ac_check_lib_save_LIBS
=$LIBS
24011 LIBS
="-lreadline $READLINE_LIBS $LIBS"
24012 cat >conftest.
$ac_ext <<_ACEOF
24015 cat confdefs.h
>>conftest.
$ac_ext
24016 cat >>conftest.
$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24019 /* Override any GCC internal prototype to avoid an error.
24020 Use char because int might match the return type of a GCC
24021 builtin and then its argument prototype would still apply. */
24025 char rl_completion_display_matches_hook ();
24029 return rl_completion_display_matches_hook ();
24034 rm -f conftest.
$ac_objext conftest
$ac_exeext
24035 if { (ac_try
="$ac_link"
24036 case "(($ac_try" in
24037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24038 *) ac_try_echo=$ac_try;;
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041 (eval "$ac_link") 2>conftest.er1
24043 grep -v '^ *+' conftest.er1 >conftest.err
24045 cat conftest.err >&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && {
24048 test -z "$ac_c_werror_flag" ||
24049 test ! -s conftest.err
24050 } && test -s conftest$ac_exeext &&
24051 $as_test_x conftest$ac_exeext; then
24052 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24054 echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24057 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24061 conftest$ac_exeext conftest.$ac_ext
24062 LIBS=$ac_check_lib_save_LIBS
24064 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24065 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24066 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24068 cat >>confdefs.h <<\_ACEOF
24069 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24075 # check for readline 4.2
24076 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24077 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24078 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24079 echo $ECHO_N "(cached) $ECHO_C" >&6
24081 ac_check_lib_save_LIBS=$LIBS
24082 LIBS="-lreadline $READLINE_LIBS $LIBS"
24083 cat >conftest.$ac_ext <<_ACEOF
24086 cat confdefs.h >>conftest.$ac_ext
24087 cat >>conftest.$ac_ext <<_ACEOF
24088 /* end confdefs.h. */
24090 /* Override any GCC internal prototype to avoid an error.
24091 Use char because int might match the return type of a GCC
24092 builtin and then its argument prototype would still apply. */
24096 char rl_completion_matches ();
24100 return rl_completion_matches ();
24105 rm -f conftest.$ac_objext conftest$ac_exeext
24106 if { (ac_try="$ac_link"
24107 case "(($ac_try" in
24108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24109 *) ac_try_echo
=$ac_try;;
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112 (eval "$ac_link") 2>conftest.er1
24114 grep -v '^ *+' conftest.er1
>conftest.err
24116 cat conftest.err
>&5
24117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24118 (exit $ac_status); } && {
24119 test -z "$ac_c_werror_flag" ||
24120 test ! -s conftest.err
24121 } && test -s conftest
$ac_exeext &&
24122 $as_test_x conftest
$ac_exeext; then
24123 ac_cv_lib_readline_rl_completion_matches
=yes
24125 echo "$as_me: failed program was:" >&5
24126 sed 's/^/| /' conftest.
$ac_ext >&5
24128 ac_cv_lib_readline_rl_completion_matches
=no
24131 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24132 conftest
$ac_exeext conftest.
$ac_ext
24133 LIBS
=$ac_check_lib_save_LIBS
24135 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24136 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24137 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24139 cat >>confdefs.h
<<\_ACEOF
24140 #define HAVE_RL_COMPLETION_MATCHES 1
24146 # also in readline 4.2
24147 cat >conftest.
$ac_ext <<_ACEOF
24150 cat confdefs.h
>>conftest.
$ac_ext
24151 cat >>conftest.
$ac_ext <<_ACEOF
24152 /* end confdefs.h. */
24153 #include <readline/readline.h>
24155 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24156 case "(($ac_try" in
24157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24158 *) ac_try_echo=$ac_try;;
24160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24163 grep -v '^ *+' conftest.er1 >conftest.err
24165 cat conftest.err >&5
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); } >/dev/null && {
24168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24169 test ! -s conftest.err
24173 echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24179 rm -f conftest.err conftest.$ac_ext
24180 if test $have_readline = yes
24182 cat >conftest.$ac_ext <<_ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24188 #include <readline/readline.h>
24191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24192 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24194 cat >>confdefs.h <<\_ACEOF
24195 #define HAVE_RL_CATCH_SIGNAL 1
24203 # End of readline checks: restore LIBS
24204 LIBS=$LIBS_no_readline
24206 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24207 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24208 if test "${ac_cv_broken_nice+set}" = set; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
24212 if test "$cross_compiling" = yes; then
24213 ac_cv_broken_nice=no
24215 cat >conftest.$ac_ext <<_ACEOF
24218 cat confdefs.h >>conftest.$ac_ext
24219 cat >>conftest.$ac_ext <<_ACEOF
24220 /* end confdefs.h. */
24224 int val1 = nice(1);
24225 if (val1 != -1 && val1 == nice(2))
24231 rm -f conftest$ac_exeext
24232 if { (ac_try="$ac_link"
24233 case "(($ac_try" in
24234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24235 *) ac_try_echo
=$ac_try;;
24237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24238 (eval "$ac_link") 2>&5
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24242 { (case "(($ac_try" in
24243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247 (eval "$ac_try") 2>&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; }; then
24251 ac_cv_broken_nice=yes
24253 echo "$as_me: program exited with status $ac_status" >&5
24254 echo "$as_me: failed program was:" >&5
24255 sed 's/^/| /' conftest.$ac_ext >&5
24257 ( exit $ac_status )
24258 ac_cv_broken_nice=no
24260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24266 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24267 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24268 if test "$ac_cv_broken_nice" = yes
24271 cat >>confdefs.h <<\_ACEOF
24272 #define HAVE_BROKEN_NICE 1
24277 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24278 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24279 if test "$cross_compiling" = yes; then
24280 ac_cv_broken_poll=no
24282 cat >conftest.$ac_ext <<_ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24293 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24297 int poll_test = poll (&poll_struct, 1, 0);
24303 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24314 rm -f conftest$ac_exeext
24315 if { (ac_try="$ac_link"
24316 case "(($ac_try" in
24317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24318 *) ac_try_echo
=$ac_try;;
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321 (eval "$ac_link") 2>&5
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24325 { (case "(($ac_try" in
24326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24327 *) ac_try_echo=$ac_try;;
24329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24330 (eval "$ac_try") 2>&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); }; }; then
24334 ac_cv_broken_poll=yes
24336 echo "$as_me: program exited with status $ac_status" >&5
24337 echo "$as_me: failed program was:" >&5
24338 sed 's/^/| /' conftest.$ac_ext >&5
24340 ( exit $ac_status )
24341 ac_cv_broken_poll=no
24343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24347 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24348 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24349 if test "$ac_cv_broken_poll" = yes
24352 cat >>confdefs.h <<\_ACEOF
24353 #define HAVE_BROKEN_POLL 1
24358 # Before we can test tzset, we need to check if struct tm has a tm_zone
24359 # (which is not required by ISO C or UNIX spec) and/or if we support
24361 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24362 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24363 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24364 echo $ECHO_N "(cached) $ECHO_C" >&6
24366 cat >conftest.$ac_ext <<_ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h. */
24372 #include <sys/types.h>
24373 #include <$ac_cv_struct_tm>
24379 static struct tm ac_aggr;
24380 if (ac_aggr.tm_zone)
24386 rm -f conftest.$ac_objext
24387 if { (ac_try="$ac_compile"
24388 case "(($ac_try" in
24389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24390 *) ac_try_echo
=$ac_try;;
24392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24393 (eval "$ac_compile") 2>conftest.er1
24395 grep -v '^ *+' conftest.er1
>conftest.err
24397 cat conftest.err
>&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } && {
24400 test -z "$ac_c_werror_flag" ||
24401 test ! -s conftest.err
24402 } && test -s conftest.
$ac_objext; then
24403 ac_cv_member_struct_tm_tm_zone
=yes
24405 echo "$as_me: failed program was:" >&5
24406 sed 's/^/| /' conftest.
$ac_ext >&5
24408 cat >conftest.
$ac_ext <<_ACEOF
24411 cat confdefs.h
>>conftest.
$ac_ext
24412 cat >>conftest.
$ac_ext <<_ACEOF
24413 /* end confdefs.h. */
24414 #include <sys/types.h>
24415 #include <$ac_cv_struct_tm>
24421 static struct tm ac_aggr;
24422 if (sizeof ac_aggr.tm_zone)
24428 rm -f conftest.
$ac_objext
24429 if { (ac_try
="$ac_compile"
24430 case "(($ac_try" in
24431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24432 *) ac_try_echo=$ac_try;;
24434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24435 (eval "$ac_compile") 2>conftest.er1
24437 grep -v '^ *+' conftest.er1 >conftest.err
24439 cat conftest.err >&5
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); } && {
24442 test -z "$ac_c_werror_flag" ||
24443 test ! -s conftest.err
24444 } && test -s conftest.$ac_objext; then
24445 ac_cv_member_struct_tm_tm_zone=yes
24447 echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24450 ac_cv_member_struct_tm_tm_zone=no
24453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24458 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24459 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24460 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24462 cat >>confdefs.h <<_ACEOF
24463 #define HAVE_STRUCT_TM_TM_ZONE 1
24469 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24471 cat >>confdefs.h <<\_ACEOF
24472 #define HAVE_TM_ZONE 1
24476 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24477 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24478 if test "${ac_cv_have_decl_tzname+set}" = set; then
24479 echo $ECHO_N "(cached) $ECHO_C" >&6
24481 cat >conftest.$ac_ext <<_ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24500 rm -f conftest.$ac_objext
24501 if { (ac_try="$ac_compile"
24502 case "(($ac_try" in
24503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24504 *) ac_try_echo
=$ac_try;;
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_compile") 2>conftest.er1
24509 grep -v '^ *+' conftest.er1
>conftest.err
24511 cat conftest.err
>&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && {
24514 test -z "$ac_c_werror_flag" ||
24515 test ! -s conftest.err
24516 } && test -s conftest.
$ac_objext; then
24517 ac_cv_have_decl_tzname
=yes
24519 echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.
$ac_ext >&5
24522 ac_cv_have_decl_tzname
=no
24525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24528 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24529 if test $ac_cv_have_decl_tzname = yes; then
24531 cat >>confdefs.h
<<_ACEOF
24532 #define HAVE_DECL_TZNAME 1
24537 cat >>confdefs.h
<<_ACEOF
24538 #define HAVE_DECL_TZNAME 0
24545 { echo "$as_me:$LINENO: checking for tzname" >&5
24546 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24547 if test "${ac_cv_var_tzname+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 cat >conftest.
$ac_ext <<_ACEOF
24553 cat confdefs.h
>>conftest.
$ac_ext
24554 cat >>conftest.
$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24557 #if !HAVE_DECL_TZNAME
24558 extern char *tzname[];
24564 return tzname[0][0];
24569 rm -f conftest.
$ac_objext conftest
$ac_exeext
24570 if { (ac_try
="$ac_link"
24571 case "(($ac_try" in
24572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24573 *) ac_try_echo=$ac_try;;
24575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576 (eval "$ac_link") 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest$ac_exeext &&
24586 $as_test_x conftest$ac_exeext; then
24587 ac_cv_var_tzname=yes
24589 echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24592 ac_cv_var_tzname=no
24595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24596 conftest$ac_exeext conftest.$ac_ext
24598 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24599 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24600 if test $ac_cv_var_tzname = yes; then
24602 cat >>confdefs.h <<\_ACEOF
24603 #define HAVE_TZNAME 1
24610 # check tzset(3) exists and works like we expect it to
24611 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24612 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24613 if test "${ac_cv_working_tzset+set}" = set; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24617 if test "$cross_compiling" = yes; then
24618 ac_cv_working_tzset=no
24620 cat >conftest.$ac_ext <<_ACEOF
24623 cat confdefs.h >>conftest.$ac_ext
24624 cat >>conftest.$ac_ext <<_ACEOF
24625 /* end confdefs.h. */
24627 #include <stdlib.h>
24629 #include <string.h>
24632 extern char *tzname[];
24637 /* Note that we need to ensure that not only does tzset(3)
24638 do 'something' with localtime, but it works as documented
24639 in the library reference and as expected by the test suite.
24640 This includes making sure that tzname is set properly if
24641 tm->tm_zone does not exist since it is the alternative way
24642 of getting timezone info.
24644 Red Hat 6.2 doesn't understand the southern hemisphere
24645 after New Year's Day.
24648 time_t groundhogday = 1044144000; /* GMT-based */
24649 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24651 putenv("TZ=UTC+0");
24653 if (localtime(&groundhogday)->tm_hour != 0)
24656 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24657 if (strcmp(tzname[0], "UTC") ||
24658 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24662 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24664 if (localtime(&groundhogday)->tm_hour != 19)
24667 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24671 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24673 if (localtime(&groundhogday)->tm_hour != 11)
24676 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24680 #if HAVE_STRUCT_TM_TM_ZONE
24681 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24683 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24691 rm -f conftest$ac_exeext
24692 if { (ac_try="$ac_link"
24693 case "(($ac_try" in
24694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24695 *) ac_try_echo
=$ac_try;;
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_link") 2>&5
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24702 { (case "(($ac_try" in
24703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24704 *) ac_try_echo=$ac_try;;
24706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24707 (eval "$ac_try") 2>&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); }; }; then
24711 ac_cv_working_tzset=yes
24713 echo "$as_me: program exited with status $ac_status" >&5
24714 echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24717 ( exit $ac_status )
24718 ac_cv_working_tzset=no
24720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24726 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24727 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24728 if test "$ac_cv_working_tzset" = yes
24731 cat >>confdefs.h <<\_ACEOF
24732 #define HAVE_WORKING_TZSET 1
24737 # Look for subsecond timestamps in struct stat
24738 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24739 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24740 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24743 cat >conftest.$ac_ext <<_ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h. */
24749 #include <sys/stat.h>
24755 st.st_mtim.tv_nsec = 1;
24761 rm -f conftest.$ac_objext
24762 if { (ac_try="$ac_compile"
24763 case "(($ac_try" in
24764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24765 *) ac_try_echo
=$ac_try;;
24767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24768 (eval "$ac_compile") 2>conftest.er1
24770 grep -v '^ *+' conftest.er1
>conftest.err
24772 cat conftest.err
>&5
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } && {
24775 test -z "$ac_c_werror_flag" ||
24776 test ! -s conftest.err
24777 } && test -s conftest.
$ac_objext; then
24778 ac_cv_stat_tv_nsec
=yes
24780 echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.
$ac_ext >&5
24783 ac_cv_stat_tv_nsec
=no
24786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24789 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24790 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24791 if test "$ac_cv_stat_tv_nsec" = yes
24794 cat >>confdefs.h
<<\_ACEOF
24795 #define HAVE_STAT_TV_NSEC 1
24800 # Look for BSD style subsecond timestamps in struct stat
24801 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24802 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24803 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24804 echo $ECHO_N "(cached) $ECHO_C" >&6
24806 cat >conftest.
$ac_ext <<_ACEOF
24809 cat confdefs.h
>>conftest.
$ac_ext
24810 cat >>conftest.
$ac_ext <<_ACEOF
24811 /* end confdefs.h. */
24812 #include <sys/stat.h>
24818 st.st_mtimespec.tv_nsec = 1;
24824 rm -f conftest.
$ac_objext
24825 if { (ac_try
="$ac_compile"
24826 case "(($ac_try" in
24827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24828 *) ac_try_echo=$ac_try;;
24830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24831 (eval "$ac_compile") 2>conftest.er1
24833 grep -v '^ *+' conftest.er1 >conftest.err
24835 cat conftest.err >&5
24836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 (exit $ac_status); } && {
24838 test -z "$ac_c_werror_flag" ||
24839 test ! -s conftest.err
24840 } && test -s conftest.$ac_objext; then
24841 ac_cv_stat_tv_nsec2=yes
24843 echo "$as_me: failed program was:" >&5
24844 sed 's/^/| /' conftest.$ac_ext >&5
24846 ac_cv_stat_tv_nsec2=no
24849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24852 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24853 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24854 if test "$ac_cv_stat_tv_nsec2" = yes
24857 cat >>confdefs.h <<\_ACEOF
24858 #define HAVE_STAT_TV_NSEC2 1
24863 # On HP/UX 11.0, mvwdelch is a block with a return statement
24864 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24865 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24866 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24867 echo $ECHO_N "(cached) $ECHO_C" >&6
24869 cat >conftest.$ac_ext <<_ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h. */
24875 #include <curses.h>
24881 rtn = mvwdelch(0,0,0);
24887 rm -f conftest.$ac_objext
24888 if { (ac_try="$ac_compile"
24889 case "(($ac_try" in
24890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24891 *) ac_try_echo
=$ac_try;;
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_compile") 2>conftest.er1
24896 grep -v '^ *+' conftest.er1
>conftest.err
24898 cat conftest.err
>&5
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } && {
24901 test -z "$ac_c_werror_flag" ||
24902 test ! -s conftest.err
24903 } && test -s conftest.
$ac_objext; then
24904 ac_cv_mvwdelch_is_expression
=yes
24906 echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.
$ac_ext >&5
24909 ac_cv_mvwdelch_is_expression
=no
24912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24915 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24916 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24918 if test "$ac_cv_mvwdelch_is_expression" = yes
24921 cat >>confdefs.h
<<\_ACEOF
24922 #define MVWDELCH_IS_EXPRESSION 1
24927 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24928 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24929 if test "${ac_cv_window_has_flags+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24932 cat >conftest.
$ac_ext <<_ACEOF
24935 cat confdefs.h
>>conftest.
$ac_ext
24936 cat >>conftest.
$ac_ext <<_ACEOF
24937 /* end confdefs.h. */
24938 #include <curses.h>
24950 rm -f conftest.
$ac_objext
24951 if { (ac_try
="$ac_compile"
24952 case "(($ac_try" in
24953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24954 *) ac_try_echo=$ac_try;;
24956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24957 (eval "$ac_compile") 2>conftest.er1
24959 grep -v '^ *+' conftest.er1 >conftest.err
24961 cat conftest.err >&5
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); } && {
24964 test -z "$ac_c_werror_flag" ||
24965 test ! -s conftest.err
24966 } && test -s conftest.$ac_objext; then
24967 ac_cv_window_has_flags=yes
24969 echo "$as_me: failed program was:" >&5
24970 sed 's/^/| /' conftest.$ac_ext >&5
24972 ac_cv_window_has_flags=no
24975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24978 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24979 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24982 if test "$ac_cv_window_has_flags" = yes
24985 cat >>confdefs.h <<\_ACEOF
24986 #define WINDOW_HAS_FLAGS 1
24991 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24992 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24993 cat >conftest.$ac_ext <<_ACEOF
24996 cat confdefs.h >>conftest.$ac_ext
24997 cat >>conftest.$ac_ext <<_ACEOF
24998 /* end confdefs.h. */
24999 #include <curses.h>
25003 void *x=is_term_resized
25008 rm -f conftest.$ac_objext
25009 if { (ac_try="$ac_compile"
25010 case "(($ac_try" in
25011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25012 *) ac_try_echo
=$ac_try;;
25014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25015 (eval "$ac_compile") 2>conftest.er1
25017 grep -v '^ *+' conftest.er1
>conftest.err
25019 cat conftest.err
>&5
25020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021 (exit $ac_status); } && {
25022 test -z "$ac_c_werror_flag" ||
25023 test ! -s conftest.err
25024 } && test -s conftest.
$ac_objext; then
25026 cat >>confdefs.h
<<\_ACEOF
25027 #define HAVE_CURSES_IS_TERM_RESIZED 1
25030 { echo "$as_me:$LINENO: result: yes" >&5
25031 echo "${ECHO_T}yes" >&6; }
25033 echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.
$ac_ext >&5
25036 { echo "$as_me:$LINENO: result: no" >&5
25037 echo "${ECHO_T}no" >&6; }
25041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25043 { echo "$as_me:$LINENO: checking for resize_term" >&5
25044 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25045 cat >conftest.
$ac_ext <<_ACEOF
25048 cat confdefs.h
>>conftest.
$ac_ext
25049 cat >>conftest.
$ac_ext <<_ACEOF
25050 /* end confdefs.h. */
25051 #include <curses.h>
25055 void *x=resize_term
25060 rm -f conftest.
$ac_objext
25061 if { (ac_try
="$ac_compile"
25062 case "(($ac_try" in
25063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25064 *) ac_try_echo=$ac_try;;
25066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25067 (eval "$ac_compile") 2>conftest.er1
25069 grep -v '^ *+' conftest.er1 >conftest.err
25071 cat conftest.err >&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } && {
25074 test -z "$ac_c_werror_flag" ||
25075 test ! -s conftest.err
25076 } && test -s conftest.$ac_objext; then
25078 cat >>confdefs.h <<\_ACEOF
25079 #define HAVE_CURSES_RESIZE_TERM 1
25082 { echo "$as_me:$LINENO: result: yes" >&5
25083 echo "${ECHO_T}yes" >&6; }
25085 echo "$as_me: failed program was:" >&5
25086 sed 's/^/| /' conftest.$ac_ext >&5
25088 { echo "$as_me:$LINENO: result: no" >&5
25089 echo "${ECHO_T}no" >&6; }
25093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25095 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25096 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25097 cat >conftest.$ac_ext <<_ACEOF
25100 cat confdefs.h >>conftest.$ac_ext
25101 cat >>conftest.$ac_ext <<_ACEOF
25102 /* end confdefs.h. */
25103 #include <curses.h>
25112 rm -f conftest.$ac_objext
25113 if { (ac_try="$ac_compile"
25114 case "(($ac_try" in
25115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25116 *) ac_try_echo
=$ac_try;;
25118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119 (eval "$ac_compile") 2>conftest.er1
25121 grep -v '^ *+' conftest.er1
>conftest.err
25123 cat conftest.err
>&5
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); } && {
25126 test -z "$ac_c_werror_flag" ||
25127 test ! -s conftest.err
25128 } && test -s conftest.
$ac_objext; then
25130 cat >>confdefs.h
<<\_ACEOF
25131 #define HAVE_CURSES_RESIZETERM 1
25134 { echo "$as_me:$LINENO: result: yes" >&5
25135 echo "${ECHO_T}yes" >&6; }
25137 echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.
$ac_ext >&5
25140 { echo "$as_me:$LINENO: result: no" >&5
25141 echo "${ECHO_T}no" >&6; }
25145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25147 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25148 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25150 if test -r /dev
/ptmx
25152 { echo "$as_me:$LINENO: result: yes" >&5
25153 echo "${ECHO_T}yes" >&6; }
25155 cat >>confdefs.h
<<\_ACEOF
25156 #define HAVE_DEV_PTMX 1
25160 { echo "$as_me:$LINENO: result: no" >&5
25161 echo "${ECHO_T}no" >&6; }
25164 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25165 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25167 if test -r /dev
/ptc
25169 { echo "$as_me:$LINENO: result: yes" >&5
25170 echo "${ECHO_T}yes" >&6; }
25172 cat >>confdefs.h
<<\_ACEOF
25173 #define HAVE_DEV_PTC 1
25177 { echo "$as_me:$LINENO: result: no" >&5
25178 echo "${ECHO_T}no" >&6; }
25181 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25182 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25183 if test "$cross_compiling" = yes; then
25184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25185 See \`config.log' for more details." >&5
25186 echo "$as_me: error: cannot run test program while cross compiling
25187 See \`config.log' for more details." >&2;}
25188 { (exit 1); exit 1; }; }
25190 cat >conftest.
$ac_ext <<_ACEOF
25193 cat confdefs.h
>>conftest.
$ac_ext
25194 cat >>conftest.
$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25197 #include <stddef.h>
25198 #include <string.h>
25200 #ifdef HAVE_SYS_TYPES_H
25201 #include <sys/types.h>
25204 #ifdef HAVE_SSIZE_T
25205 typedef ssize_t Py_ssize_t;
25206 #elif SIZEOF_VOID_P == SIZEOF_LONG
25207 typedef long Py_ssize_t;
25209 typedef int Py_ssize_t;
25216 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25219 if (strcmp(buffer, "123"))
25222 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25225 if (strcmp(buffer, "-123"))
25231 rm -f conftest
$ac_exeext
25232 if { (ac_try
="$ac_link"
25233 case "(($ac_try" in
25234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25235 *) ac_try_echo=$ac_try;;
25237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25238 (eval "$ac_link") 2>&5
25240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25242 { (case "(($ac_try" in
25243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25244 *) ac_try_echo
=$ac_try;;
25246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25247 (eval "$ac_try") 2>&5
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); }; }; then
25251 { echo "$as_me:$LINENO: result: yes" >&5
25252 echo "${ECHO_T}yes" >&6; }
25254 cat >>confdefs.h
<<\_ACEOF
25255 #define PY_FORMAT_SIZE_T "z"
25259 echo "$as_me: program exited with status $ac_status" >&5
25260 echo "$as_me: failed program was:" >&5
25261 sed 's/^/| /' conftest.
$ac_ext >&5
25263 ( exit $ac_status )
25264 { echo "$as_me:$LINENO: result: no" >&5
25265 echo "${ECHO_T}no" >&6; }
25267 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25272 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25273 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25274 if test "${ac_cv_type_socklen_t+set}" = set; then
25275 echo $ECHO_N "(cached) $ECHO_C" >&6
25277 cat >conftest.
$ac_ext <<_ACEOF
25280 cat confdefs.h
>>conftest.
$ac_ext
25281 cat >>conftest.
$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25284 #ifdef HAVE_SYS_TYPES_H
25285 #include <sys/types.h>
25287 #ifdef HAVE_SYS_SOCKET_H
25288 #include <sys/socket.h>
25292 typedef socklen_t ac__type_new_;
25296 if ((ac__type_new_ *) 0)
25298 if (sizeof (ac__type_new_))
25304 rm -f conftest.
$ac_objext
25305 if { (ac_try
="$ac_compile"
25306 case "(($ac_try" in
25307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25308 *) ac_try_echo=$ac_try;;
25310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25311 (eval "$ac_compile") 2>conftest.er1
25313 grep -v '^ *+' conftest.er1 >conftest.err
25315 cat conftest.err >&5
25316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25317 (exit $ac_status); } && {
25318 test -z "$ac_c_werror_flag" ||
25319 test ! -s conftest.err
25320 } && test -s conftest.$ac_objext; then
25321 ac_cv_type_socklen_t=yes
25323 echo "$as_me: failed program was:" >&5
25324 sed 's/^/| /' conftest.$ac_ext >&5
25326 ac_cv_type_socklen_t=no
25329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25332 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25333 if test $ac_cv_type_socklen_t = yes; then
25337 cat >>confdefs.h <<\_ACEOF
25338 #define socklen_t int
25346 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25348 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25352 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25353 { echo "$as_me:$LINENO: checking for build directories" >&5
25354 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25355 for dir in $SRCDIRS; do
25356 if test ! -d $dir; then
25360 { echo "$as_me:$LINENO: result: done" >&5
25361 echo "${ECHO_T}done" >&6; }
25363 # generate output files
25364 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25366 cat >confcache <<\_ACEOF
25367 # This file is a shell script that caches the results of configure
25368 # tests run on this system so they can be shared between configure
25369 # scripts and configure runs, see configure's option --config-cache.
25370 # It is not useful on other systems. If it contains results you don't
25371 # want to keep, you may remove or edit it.
25373 # config.status only pays attention to the cache file if you give it
25374 # the --recheck option to rerun configure.
25376 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25378 # following values.
25382 # The following way of writing the cache mishandles newlines in values,
25383 # but we know of no workaround that is simple, portable, and efficient.
25384 # So, we kill variables containing newlines.
25385 # Ultrix sh set writes to stderr and can't be redirected directly,
25386 # and sets the high bit in the cache file unless we assign to the vars.
25388 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25389 eval ac_val
=\$
$ac_var
25393 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25394 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25397 _ | IFS | as_nl
) ;; #(
25398 *) $as_unset $ac_var ;;
25404 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25405 *${as_nl}ac_space
=\
*)
25406 # `set' does not quote correctly, so add quotes (double-quote
25407 # substitution turns \\\\ into \\, and sed turns \\ into \).
25410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25413 # `set' quotes correctly as required by POSIX, so do not add quotes.
25414 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25425 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25427 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25428 if test -w "$cache_file"; then
25429 test "x$cache_file" != "x/dev/null" &&
25430 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25431 echo "$as_me: updating cache $cache_file" >&6;}
25432 cat confcache
>$cache_file
25434 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25435 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25440 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25441 # Let make expand exec_prefix.
25442 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25444 DEFS
=-DHAVE_CONFIG_H
25448 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25449 # 1. Remove the extension, and $U if already installed.
25450 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25451 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25452 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25453 # will be set to the directory where LIBOBJS objects are built.
25454 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25455 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25457 LIBOBJS
=$ac_libobjs
25459 LTLIBOBJS
=$ac_ltlibobjs
25463 : ${CONFIG_STATUS=./config.status}
25464 ac_clean_files_save
=$ac_clean_files
25465 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25466 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25467 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25468 cat >$CONFIG_STATUS <<_ACEOF
25470 # Generated by $as_me.
25471 # Run this file to recreate the current configuration.
25472 # Compiler output produced by configure, useful for debugging
25473 # configure, is in config.log if it exists.
25476 ac_cs_recheck=false
25478 SHELL=\${CONFIG_SHELL-$SHELL}
25481 cat >>$CONFIG_STATUS <<\_ACEOF
25482 ## --------------------- ##
25483 ## M4sh Initialization. ##
25484 ## --------------------- ##
25486 # Be more Bourne compatible
25487 DUALCASE
=1; export DUALCASE
# for MKS sh
25488 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25491 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25492 # is contrary to our usage. Disable this feature.
25493 alias -g '${1+"$@"}'='"$@"'
25494 setopt NO_GLOB_SUBST
25496 case `(set -o) 2>/dev/null` in
25497 *posix
*) set -o posix
;;
25506 # Avoid depending upon Character Ranges.
25507 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25508 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25509 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25510 as_cr_digits
='0123456789'
25511 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25513 # The user is always right.
25514 if test "${PATH_SEPARATOR+set}" != set; then
25515 echo "#! /bin/sh" >conf$$.sh
25516 echo "exit 0" >>conf$$.sh
25518 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25526 # Support unset when possible.
25527 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25535 # We need space, tab and new line, in precisely that order. Quoting is
25536 # there to prevent editors from complaining about space-tab.
25537 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25538 # splitting by setting IFS to empty value.)
25543 # Find who we are. Look in the path if we contain no directory separator.
25545 *[\\/]* ) as_myself
=$0 ;;
25546 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25547 for as_dir
in $PATH
25550 test -z "$as_dir" && as_dir
=.
25551 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25557 # We did not find ourselves, most probably we were run as `sh COMMAND'
25558 # in which case we are not to be found in the path.
25559 if test "x$as_myself" = x
; then
25562 if test ! -f "$as_myself"; then
25563 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25564 { (exit 1); exit 1; }
25567 # Work around bugs in pre-3.0 UWIN ksh.
25568 for as_var
in ENV MAIL MAILPATH
25569 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25577 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25578 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25579 LC_TELEPHONE LC_TIME
25581 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25582 eval $as_var=C
; export $as_var
25584 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25588 # Required to use basename.
25589 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25590 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25596 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25597 as_basename
=basename
25603 # Name of the executable.
25604 as_me
=`$as_basename -- "$0" ||
25605 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25606 X"$0" : 'X\(//\)$' \| \
25607 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25609 sed '/^.*\/\([^/][^/]*\)\/*$/{
25628 as_lineno_1
=$LINENO
25629 as_lineno_2
=$LINENO
25630 test "x$as_lineno_1" != "x$as_lineno_2" &&
25631 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25633 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25634 # uniformly replaced by the line number. The first 'sed' inserts a
25635 # line-number line after each line using $LINENO; the second 'sed'
25636 # does the real work. The second script uses 'N' to pair each
25637 # line-number line with the line containing $LINENO, and appends
25638 # trailing '-' during substitution so that $LINENO is not a special
25639 # case at line end.
25640 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25641 # scripts with optimization help from Paolo Bonzini. Blame Lee
25642 # E. McMahon (1931-1989) for sed's syntax. :-)
25654 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25657 ' >$as_me.lineno
&&
25658 chmod +x
"$as_me.lineno" ||
25659 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25660 { (exit 1); exit 1; }; }
25662 # Don't try to exec as it changes $[0], causing all sort of problems
25663 # (the dirname of $[0] is not the place where we might find the
25664 # original and so on. Autoconf is especially sensitive to this).
25665 .
"./$as_me.lineno"
25666 # Exit status is that of the last command.
25671 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25677 ECHO_C
= ECHO_N
= ECHO_T
=
25678 case `echo -n x` in
25680 case `echo 'x\c'` in
25681 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25688 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25689 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25695 rm -f conf$$ conf$$.exe conf$$.
file
25696 if test -d conf$$.dir
; then
25697 rm -f conf$$.dir
/conf$$.
file
25703 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25705 # ... but there are two gotchas:
25706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25708 # In both cases, we have to default to `cp -p'.
25709 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25711 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25716 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25717 rmdir conf$$.dir
2>/dev
/null
25719 if mkdir
-p .
2>/dev
/null
; then
25722 test -d .
/-p && rmdir .
/-p
25726 if test -x / >/dev
/null
2>&1; then
25727 as_test_x
='test -x'
25729 if ls -dL / >/dev
/null
2>&1; then
25736 if test -d "$1"; then
25742 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25743 ???[sx]*):;;*)false;;esac;fi
25747 as_executable_p
=$as_test_x
25749 # Sed expression to map a string onto a valid CPP name.
25750 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25752 # Sed expression to map a string onto a valid variable name.
25753 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25758 # Save the log message, to keep $[0] and so on meaningful, and to
25759 # report actual input values of CONFIG_FILES etc. instead of their
25760 # values after options handling.
25762 This file was extended by python $as_me 2.7, which was
25763 generated by GNU Autoconf 2.61. Invocation command line was
25765 CONFIG_FILES = $CONFIG_FILES
25766 CONFIG_HEADERS = $CONFIG_HEADERS
25767 CONFIG_LINKS = $CONFIG_LINKS
25768 CONFIG_COMMANDS = $CONFIG_COMMANDS
25771 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25776 cat >>$CONFIG_STATUS <<_ACEOF
25777 # Files that config.status was made for.
25778 config_files="$ac_config_files"
25779 config_headers="$ac_config_headers"
25783 cat >>$CONFIG_STATUS <<\_ACEOF
25785 \`$as_me' instantiates files from templates according to the
25786 current configuration.
25788 Usage: $0 [OPTIONS] [FILE]...
25790 -h, --help print this help, then exit
25791 -V, --version print version number and configuration settings, then exit
25792 -q, --quiet do not print progress messages
25793 -d, --debug don't remove temporary files
25794 --recheck update $as_me by reconfiguring in the same conditions
25795 --file=FILE[:TEMPLATE]
25796 instantiate the configuration file FILE
25797 --header=FILE[:TEMPLATE]
25798 instantiate the configuration header FILE
25800 Configuration files:
25803 Configuration headers:
25806 Report bugs to <bug-autoconf@gnu.org>."
25809 cat >>$CONFIG_STATUS <<_ACEOF
25811 python config.status 2.7
25812 configured by $0, generated by GNU Autoconf 2.61,
25813 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25815 Copyright (C) 2006 Free Software Foundation, Inc.
25816 This config.status script is free software; the Free Software Foundation
25817 gives unlimited permission to copy, distribute and modify it."
25824 cat >>$CONFIG_STATUS <<\_ACEOF
25825 # If no file are specified by the user, then we need to provide default
25826 # value. By we need to know if files were specified by the user.
25832 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25833 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25844 # Handling of the options.
25845 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25847 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25848 echo "$ac_cs_version"; exit ;;
25849 --debug |
--debu |
--deb |
--de |
--d |
-d )
25851 --file |
--fil |
--fi |
--f )
25853 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25854 ac_need_defaults
=false
;;
25855 --header |
--heade |
--head |
--hea )
25857 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25858 ac_need_defaults
=false
;;
25860 # Conflict between --help and --header
25861 { echo "$as_me: error: ambiguous option: $1
25862 Try \`$0 --help' for more information." >&2
25863 { (exit 1); exit 1; }; };;
25864 --help |
--hel |
-h )
25865 echo "$ac_cs_usage"; exit ;;
25866 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25867 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25870 # This is an error.
25871 -*) { echo "$as_me: error: unrecognized option: $1
25872 Try \`$0 --help' for more information." >&2
25873 { (exit 1); exit 1; }; } ;;
25875 *) ac_config_targets
="$ac_config_targets $1"
25876 ac_need_defaults
=false
;;
25882 ac_configure_extra_args
=
25884 if $ac_cs_silent; then
25886 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25890 cat >>$CONFIG_STATUS <<_ACEOF
25891 if \$ac_cs_recheck; then
25892 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25893 CONFIG_SHELL=$SHELL
25894 export CONFIG_SHELL
25895 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25899 cat >>$CONFIG_STATUS <<\_ACEOF
25903 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25904 ## Running $as_me. ##
25910 cat >>$CONFIG_STATUS <<_ACEOF
25913 cat >>$CONFIG_STATUS <<\_ACEOF
25915 # Handling of arguments.
25916 for ac_config_target
in $ac_config_targets
25918 case $ac_config_target in
25919 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25920 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25921 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25922 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25923 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25924 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25925 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25926 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25928 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25929 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25930 { (exit 1); exit 1; }; };;
25935 # If the user did not use the arguments to specify the items to instantiate,
25936 # then the envvar interface is used. Set only those that are not.
25937 # We use the long form for the default assignment because of an extremely
25938 # bizarre bug on SunOS 4.1.3.
25939 if $ac_need_defaults; then
25940 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25941 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25944 # Have a temporary directory for convenience. Make it in the build tree
25945 # simply because there is no reason against having it here, and in addition,
25946 # creating and moving files from /tmp can sometimes cause problems.
25947 # Hook for its removal unless debugging.
25948 # Note that there is a small window in which the directory will not be cleaned:
25949 # after its creation but before its name has been assigned to `$tmp'.
25953 trap 'exit_status=$?
25954 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25956 trap '{ (exit 1); exit 1; }' 1 2 13 15
25958 # Create a (secure) tmp directory for tmp files.
25961 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25962 test -n "$tmp" && test -d "$tmp"
25965 tmp
=.
/conf$$
-$RANDOM
25966 (umask 077 && mkdir
"$tmp")
25969 echo "$me: cannot create a temporary directory in ." >&2
25970 { (exit 1); exit 1; }
25974 # Set up the sed scripts for CONFIG_FILES section.
25977 # No need to generate the scripts if there are no CONFIG_FILES.
25978 # This happens for instance when ./config.status config.h
25979 if test -n "$CONFIG_FILES"; then
25986 for ac_last_try
in false false false false false
:; do
25987 cat >conf$
$subs.
sed <<_ACEOF
25988 SHELL!$SHELL$ac_delim
25989 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25990 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25991 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25992 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25993 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25994 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25995 exec_prefix!$exec_prefix$ac_delim
25996 prefix!$prefix$ac_delim
25997 program_transform_name!$program_transform_name$ac_delim
25998 bindir!$bindir$ac_delim
25999 sbindir!$sbindir$ac_delim
26000 libexecdir!$libexecdir$ac_delim
26001 datarootdir!$datarootdir$ac_delim
26002 datadir!$datadir$ac_delim
26003 sysconfdir!$sysconfdir$ac_delim
26004 sharedstatedir!$sharedstatedir$ac_delim
26005 localstatedir!$localstatedir$ac_delim
26006 includedir!$includedir$ac_delim
26007 oldincludedir!$oldincludedir$ac_delim
26008 docdir!$docdir$ac_delim
26009 infodir!$infodir$ac_delim
26010 htmldir!$htmldir$ac_delim
26011 dvidir!$dvidir$ac_delim
26012 pdfdir!$pdfdir$ac_delim
26013 psdir!$psdir$ac_delim
26014 libdir!$libdir$ac_delim
26015 localedir!$localedir$ac_delim
26016 mandir!$mandir$ac_delim
26017 DEFS!$DEFS$ac_delim
26018 ECHO_C!$ECHO_C$ac_delim
26019 ECHO_N!$ECHO_N$ac_delim
26020 ECHO_T!$ECHO_T$ac_delim
26021 LIBS!$LIBS$ac_delim
26022 build_alias!$build_alias$ac_delim
26023 host_alias!$host_alias$ac_delim
26024 target_alias!$target_alias$ac_delim
26025 VERSION!$VERSION$ac_delim
26026 SOVERSION!$SOVERSION$ac_delim
26027 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26028 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26029 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26030 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26031 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26032 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26033 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26034 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26035 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26036 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26037 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26038 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26039 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26040 MACHDEP!$MACHDEP$ac_delim
26041 SGI_ABI!$SGI_ABI$ac_delim
26042 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
26043 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
26044 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26045 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26047 CFLAGS!$CFLAGS$ac_delim
26048 LDFLAGS!$LDFLAGS$ac_delim
26049 CPPFLAGS!$CPPFLAGS$ac_delim
26050 ac_ct_CC!$ac_ct_CC$ac_delim
26051 EXEEXT!$EXEEXT$ac_delim
26052 OBJEXT!$OBJEXT$ac_delim
26054 MAINCC!$MAINCC$ac_delim
26056 GREP!$GREP$ac_delim
26057 EGREP!$EGREP$ac_delim
26058 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26059 LIBRARY!$LIBRARY$ac_delim
26060 LDLIBRARY!$LDLIBRARY$ac_delim
26061 DLLLIBRARY!$DLLLIBRARY$ac_delim
26062 BLDLIBRARY!$BLDLIBRARY$ac_delim
26063 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26064 INSTSONAME!$INSTSONAME$ac_delim
26065 RUNSHARED!$RUNSHARED$ac_delim
26066 LINKCC!$LINKCC$ac_delim
26067 GNULD!$GNULD$ac_delim
26068 RANLIB!$RANLIB$ac_delim
26070 ARFLAGS!$ARFLAGS$ac_delim
26071 SVNVERSION!$SVNVERSION$ac_delim
26072 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26073 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26074 INSTALL_DATA!$INSTALL_DATA$ac_delim
26077 BASECFLAGS!$BASECFLAGS$ac_delim
26078 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26079 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26080 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26082 LDSHARED!$LDSHARED$ac_delim
26083 BLDSHARED!$BLDSHARED$ac_delim
26084 CCSHARED!$CCSHARED$ac_delim
26087 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26089 elif $ac_last_try; then
26090 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26091 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26092 { (exit 1); exit 1; }; }
26094 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26098 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26099 if test -n "$ac_eof"; then
26100 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26101 ac_eof
=`expr $ac_eof + 1`
26104 cat >>$CONFIG_STATUS <<_ACEOF
26105 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26109 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26110 s/^/s,@/; s/!/@,|#_!!_#|/
26113 s/'"$ac_delim"'$/,g/; t
26115 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26116 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26117 rm -f conf$
$subs.
sed
26118 cat >>$CONFIG_STATUS <<_ACEOF
26124 for ac_last_try
in false false false false false
:; do
26125 cat >conf$
$subs.
sed <<_ACEOF
26126 LINKFORSHARED!$LINKFORSHARED$ac_delim
26127 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26128 SHLIBS!$SHLIBS$ac_delim
26129 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26130 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26131 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26132 LDLAST!$LDLAST$ac_delim
26133 THREADOBJ!$THREADOBJ$ac_delim
26134 DLINCLDIR!$DLINCLDIR$ac_delim
26135 DYNLOADFILE!$DYNLOADFILE$ac_delim
26136 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26137 TRUE!$TRUE$ac_delim
26138 LIBOBJS!$LIBOBJS$ac_delim
26139 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26140 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26141 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26142 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26143 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26144 LIBM!$LIBM$ac_delim
26145 LIBC!$LIBC$ac_delim
26146 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
26147 THREADHEADERS!$THREADHEADERS$ac_delim
26148 SRCDIRS!$SRCDIRS$ac_delim
26149 LTLIBOBJS!$LTLIBOBJS$ac_delim
26152 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
26154 elif $ac_last_try; then
26155 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26156 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26157 { (exit 1); exit 1; }; }
26159 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26163 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26164 if test -n "$ac_eof"; then
26165 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26166 ac_eof
=`expr $ac_eof + 1`
26169 cat >>$CONFIG_STATUS <<_ACEOF
26170 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26174 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26175 s/^/s,@/; s/!/@,|#_!!_#|/
26178 s/'"$ac_delim"'$/,g/; t
26180 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26181 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26182 rm -f conf$
$subs.
sed
26183 cat >>$CONFIG_STATUS <<_ACEOF
26190 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26191 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26192 # trailing colons and then remove the whole line if VPATH becomes empty
26193 # (actually we leave an empty line to preserve line numbers).
26194 if test "x$srcdir" = x.
; then
26195 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26196 s/:*\$(srcdir):*/:/
26197 s/:*\${srcdir}:*/:/
26199 s/^\([^=]*=[ ]*\):*/\1/
26205 cat >>$CONFIG_STATUS <<\_ACEOF
26206 fi # test -n "$CONFIG_FILES"
26209 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26212 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26214 case $ac_mode$ac_tag in
26216 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26217 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26218 { (exit 1); exit 1; }; };;
26219 :[FH
]-) ac_tag
=-:-;;
26220 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26237 -) ac_f
="$tmp/stdin";;
26238 *) # Look for the file first in the build tree, then in the source tree
26239 # (if the path is not absolute). The absolute path cannot be DOS-style,
26240 # because $ac_f cannot contain `:'.
26244 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26246 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26247 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26248 { (exit 1); exit 1; }; };;
26250 ac_file_inputs
="$ac_file_inputs $ac_f"
26253 # Let's still pretend it is `configure' which instantiates (i.e., don't
26254 # use $as_me), people would be surprised to read:
26255 # /* config.h. Generated by config.status. */
26256 configure_input
="Generated from "`IFS=:
26257 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26258 if test x
"$ac_file" != x-
; then
26259 configure_input
="$ac_file. $configure_input"
26260 { echo "$as_me:$LINENO: creating $ac_file" >&5
26261 echo "$as_me: creating $ac_file" >&6;}
26265 *:-:* |
*:-) cat >"$tmp/stdin";;
26270 ac_dir
=`$as_dirname -- "$ac_file" ||
26271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26272 X"$ac_file" : 'X\(//\)[^/]' \| \
26273 X"$ac_file" : 'X\(//\)$' \| \
26274 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26280 /^X\(\/\/\)[^/].*/{
26295 -*) as_dir
=.
/$as_dir;;
26297 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26301 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26302 *) as_qdir
=$as_dir;;
26304 as_dirs
="'$as_qdir' $as_dirs"
26305 as_dir
=`$as_dirname -- "$as_dir" ||
26306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26307 X"$as_dir" : 'X\(//\)[^/]' \| \
26308 X"$as_dir" : 'X\(//\)$' \| \
26309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26315 /^X\(\/\/\)[^/].*/{
26328 test -d "$as_dir" && break
26330 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26331 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26332 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26333 { (exit 1); exit 1; }; }; }
26337 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26339 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26340 # A ".." for each directory in $ac_dir_suffix.
26341 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26342 case $ac_top_builddir_sub in
26343 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26344 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26347 ac_abs_top_builddir
=$ac_pwd
26348 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26349 # for backward compatibility:
26350 ac_top_builddir
=$ac_top_build_prefix
26353 .
) # We are building in place.
26355 ac_top_srcdir
=$ac_top_builddir_sub
26356 ac_abs_top_srcdir
=$ac_pwd ;;
26357 [\\/]* | ?
:[\\/]* ) # Absolute name.
26358 ac_srcdir
=$srcdir$ac_dir_suffix;
26359 ac_top_srcdir
=$srcdir
26360 ac_abs_top_srcdir
=$srcdir ;;
26361 *) # Relative name.
26362 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26363 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26364 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26366 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26376 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26377 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26381 cat >>$CONFIG_STATUS <<\_ACEOF
26382 # If the template does not know about datarootdir, expand it.
26383 # FIXME: This hack should be removed a few years after 2.60.
26384 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26386 case `sed -n '/datarootdir/ {
26395 ' $ac_file_inputs` in
26396 *datarootdir
*) ac_datarootdir_seen
=yes;;
26397 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26398 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26399 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26401 cat >>$CONFIG_STATUS <<_ACEOF
26402 ac_datarootdir_hack='
26403 s&@datadir@&$datadir&g
26404 s&@docdir@&$docdir&g
26405 s&@infodir@&$infodir&g
26406 s&@localedir@&$localedir&g
26407 s&@mandir@&$mandir&g
26408 s&\\\${datarootdir}&$datarootdir&g' ;;
26412 # Neutralize VPATH when `$srcdir' = `.'.
26413 # Shell code in configure.ac might set extrasub.
26414 # FIXME: do we really want to maintain this feature?
26415 cat >>$CONFIG_STATUS <<_ACEOF
26419 cat >>$CONFIG_STATUS <<\_ACEOF
26421 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26422 s
&@configure_input@
&$configure_input&;t t
26423 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26424 s
&@srcdir@
&$ac_srcdir&;t t
26425 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26426 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26427 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26428 s
&@builddir@
&$ac_builddir&;t t
26429 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26430 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26431 s
&@INSTALL@
&$ac_INSTALL&;t t
26432 $ac_datarootdir_hack
26433 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26435 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26436 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26437 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26438 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26439 which seems to be undefined. Please make sure it is defined." >&5
26440 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26441 which seems to be undefined. Please make sure it is defined." >&2;}
26445 -) cat "$tmp/out"; rm -f "$tmp/out";;
26446 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26455 # Transform confdefs.h into a sed script `conftest.defines', that
26456 # substitutes the proper values into config.h.in to produce config.h.
26457 rm -f conftest.defines conftest.
tail
26458 # First, append a space to every undef/define line, to ease matching.
26459 echo 's/$/ /' >conftest.defines
26460 # Then, protect against being on the right side of a sed subst, or in
26461 # an unquoted here document, in config.status. If some macros were
26462 # called several times there might be several #defines for the same
26463 # symbol, which is useless. But do not sort them, since the last
26464 # AC_DEFINE must be honored.
26465 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26466 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26467 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26468 # PARAMS is the parameter list in the macro definition--in most cases, it's
26469 # just an empty string.
26470 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26471 ac_dB
='\\)[ (].*,\\1define\\2'
26479 s/^[ ]*#[ ]*define[ ][ ]*//
26484 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26485 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26486 ' >>conftest.defines
26488 # Remove the space that was appended to ease matching.
26489 # Then replace #undef with comments. This is necessary, for
26490 # example, in the case of _POSIX_SOURCE, which is predefined and required
26491 # on some systems where configure will not decide to define it.
26492 # (The regexp can be short, since the line contains either #define or #undef.)
26494 s,^[ #]*u.*,/* & */,' >>conftest.defines
26496 # Break up conftest.defines:
26497 ac_max_sed_lines
=50
26499 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26500 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26501 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26503 ac_in
='$ac_file_inputs'
26504 ac_out
='"$tmp/out1"'
26505 ac_nxt
='"$tmp/out2"'
26509 # Write a here document:
26510 cat >>$CONFIG_STATUS <<_ACEOF
26511 # First, check the format of the line:
26512 cat >"\$tmp/defines.sed" <<\\CEOF
26513 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26514 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26518 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26520 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26521 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26522 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26523 grep . conftest.
tail >/dev
/null ||
break
26524 rm -f conftest.defines
26525 mv conftest.
tail conftest.defines
26527 rm -f conftest.defines conftest.
tail
26529 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26530 cat >>$CONFIG_STATUS <<\_ACEOF
26531 if test x
"$ac_file" != x-
; then
26532 echo "/* $configure_input */" >"$tmp/config.h"
26533 cat "$ac_result" >>"$tmp/config.h"
26534 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26535 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26536 echo "$as_me: $ac_file is unchanged" >&6;}
26539 mv "$tmp/config.h" $ac_file
26542 echo "/* $configure_input */"
26554 { (exit 0); exit 0; }
26556 chmod +x
$CONFIG_STATUS
26557 ac_clean_files
=$ac_clean_files_save
26560 # configure is writing to config.log, and then calls config.status.
26561 # config.status does its own redirection, appending to config.log.
26562 # Unfortunately, on DOS this fails, as config.log is still kept open
26563 # by configure, so config.status won't be able to write to it; its
26564 # output is simply discarded. So we exec the FD to /dev/null,
26565 # effectively closing config.log, so it can be properly (re)opened and
26566 # appended to by config.status. When coming back to configure, we
26567 # need to make the FD available again.
26568 if test "$no_create" != yes; then
26570 ac_config_status_args
=
26571 test "$silent" = yes &&
26572 ac_config_status_args
="$ac_config_status_args --quiet"
26574 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26576 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26577 # would make configure fail if this is the last instruction.
26578 $ac_cs_success ||
{ (exit 1); exit 1; }
26582 echo "creating Modules/Setup"
26583 if test ! -f Modules
/Setup
26585 cp $srcdir/Modules
/Setup.dist Modules
/Setup
26588 echo "creating Modules/Setup.local"
26589 if test ! -f Modules
/Setup.
local
26591 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
26594 echo "creating Makefile"
26595 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
26596 -s Modules Modules
/Setup.config \
26597 Modules
/Setup.
local Modules
/Setup
26599 case $ac_sys_system in
26601 { echo "$as_me:$LINENO: WARNING:
26603 Support for BeOS is deprecated as of Python 2.6.
26604 See PEP 11 for the gory details.
26606 echo "$as_me: WARNING:
26608 Support for BeOS is deprecated as of Python 2.6.
26609 See PEP 11 for the gory details.
26615 mv config.c Modules