2 # From configure.in Revision: 76636 .
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://bugs.python.org/>.
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://bugs.python.org/'
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",
1339 "64-bit", "3-way", "intel" or
"all")
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-valgrind Enable Valgrind support
1366 --with-wctype-functions use wctype.h functions
1367 --with-fpectl enable SIGFPE catching
1368 --with-libm=STRING math library
1369 --with-libc=STRING C library
1371 Some influential environment variables
:
1372 CC C compiler
command
1373 CFLAGS C compiler flags
1374 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1375 nonstandard directory
<lib dir
>
1376 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1377 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1378 you have headers
in a nonstandard directory
<include dir
>
1381 Use these variables to override the choices made by
`configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1384 Report bugs to <http://bugs.python.org/>.
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" || continue
1396 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 ac_abs_top_builddir=$ac_pwd
1407 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408 # for backward compatibility:
1409 ac_top_builddir=$ac_top_build_prefix
1412 .) # We are building in place.
1414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
1417 ac_srcdir=$srcdir$ac_dir_suffix;
1418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1425 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
1429 if test -f "$ac_srcdir/configure.gnu"; then
1431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
1434 $SHELL "$ac_srcdir/configure" --help=recursive
1436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1438 cd "$ac_pwd" || { ac_status=$?; break; }
1442 test -n "$ac_init_help" && exit $ac_status
1443 if $ac_init_version; then
1445 python configure 2.7
1446 generated by GNU Autoconf 2.61
1448 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1449 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1450 This configure script is free software; the Free Software Foundation
1451 gives unlimited permission to copy, distribute and modify it.
1455 cat >config.log <<_ACEOF
1456 This file contains any messages produced by compilers while
1457 running configure, to aid debugging if configure makes a mistake.
1459 It was created by python $as_me 2.7, which was
1460 generated by GNU Autoconf 2.61. Invocation command line was
1472 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1473 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1474 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1475 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1476 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1478 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1479 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1481 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1482 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1483 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1484 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1485 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1486 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1487 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 test -z "$as_dir" && as_dir=.
1496 echo "PATH: $as_dir"
1512 # Keep a trace of the command line.
1513 # Strip out --no-create and --no-recursion so they do not pile up.
1514 # Strip out --silent because we don't want to record it for future runs.
1515 # Also quote any args containing shell meta-characters.
1516 # Make two passes to allow for proper duplicate-argument suppression.
1520 ac_must_keep_next=false
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1531 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1534 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1536 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
1538 ac_must_keep_next=false # Got value, back to normal.
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1549 -* ) ac_must_keep_next=true ;;
1552 ac_configure_args="$ac_configure_args '$ac_arg'"
1557 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1558 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1560 # When interrupted or exit'd, cleanup temporary files, and complete
1561 # config.log. We remove comments because anyway the quotes in there
1562 # would cause problems or look ugly.
1563 # WARNING: Use '\'' to represent an apostrophe within the trap.
1564 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1565 trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
1571 ## ---------------- ##
1572 ## Cache variables. ##
1573 ## ---------------- ##
1576 # The following way of writing the cache mishandles newlines in values,
1578 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1579 eval ac_val=\$$ac_var
1583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1584 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1587 _ | IFS | as_nl) ;; #(
1588 *) $as_unset $ac_var ;;
1593 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1594 *${as_nl}ac_space=\ *)
1596 "s/'\''/'\''\\\\'\'''\''/g;
1597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1608 ## ----------------- ##
1609 ## Output variables. ##
1610 ## ----------------- ##
1613 for ac_var in $ac_subst_vars
1615 eval ac_val=\$$ac_var
1617 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1619 echo "$ac_var='\''$ac_val'\''"
1623 if test -n "$ac_subst_files"; then
1625 ## ------------------- ##
1626 ## File substitutions. ##
1627 ## ------------------- ##
1630 for ac_var in $ac_subst_files
1632 eval ac_val=\$$ac_var
1634 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636 echo "$ac_var='\''$ac_val'\''"
1641 if test -s confdefs.h; then
1651 test "$ac_signal" != 0 &&
1652 echo "$as_me: caught signal $ac_signal"
1653 echo "$as_me: exit $exit_status"
1655 rm -f core *.core core.conftest.* &&
1656 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1659 for ac_signal in 1 2 13 15; do
1660 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1664 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1665 rm -f -r conftest* confdefs.h
1667 # Predefined preprocessor variables.
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_NAME "$PACKAGE_NAME"
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_STRING "$PACKAGE_STRING"
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1694 # Let the site file select an alternate cache file if it wants to.
1695 # Prefer explicitly selected file to automatically selected ones.
1696 if test -n "$CONFIG_SITE"; then
1697 set x "$CONFIG_SITE"
1698 elif test "x$prefix" != xNONE; then
1699 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1701 set x "$ac_default_prefix/share/config.site" \
1702 "$ac_default_prefix/etc/config.site"
1707 if test -r "$ac_site_file"; then
1708 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1709 echo "$as_me: loading site script $ac_site_file" >&6;}
1710 sed 's/^/| /' "$ac_site_file" >&5
1715 if test -r "$cache_file"; then
1716 # Some versions of bash will fail to source /dev/null (special
1717 # files actually), so we avoid doing that.
1718 if test -f "$cache_file"; then
1719 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1720 echo "$as_me: loading cache $cache_file" >&6;}
1722 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1723 *) . "./$cache_file";;
1727 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1728 echo "$as_me: creating cache $cache_file" >&6;}
1732 # Check that the precious variables saved in the cache have kept the same
1734 ac_cache_corrupted=false
1735 for ac_var in $ac_precious_vars; do
1736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1737 eval ac_new_set=\$ac_env_${ac_var}_set
1738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1739 eval ac_new_val=\$ac_env_${ac_var}_value
1740 case $ac_old_set,$ac_new_set in
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1743 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1746 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1747 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1748 ac_cache_corrupted=: ;;
1751 if test "x$ac_old_val" != "x$ac_new_val"; then
1752 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1753 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1754 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1755 echo "$as_me: former value
: $ac_old_val" >&2;}
1756 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1757 echo "$as_me: current value
: $ac_new_val" >&2;}
1758 ac_cache_corrupted=:
1761 # Pass precious variables to config.status.
1762 if test "$ac_new_set" = set; then
1764 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1765 *) ac_arg=$ac_var=$ac_new_val ;;
1767 case " $ac_configure_args " in
1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1769 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1773 if $ac_cache_corrupted; then
1774 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1775 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1776 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1777 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1778 { (exit 1); exit 1; }; }
1806 ac_cpp='$CPP $CPPFLAGS'
1807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1813 ac_config_headers="$ac_config_headers pyconfig.h"
1817 if test "$prefix" != "/"; then
1818 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1826 # We don't use PACKAGE_ variables, and they cause conflicts
1827 # with other autoconf-based packages that include Python.h
1828 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1830 mv confdefs.h.new confdefs.h
1838 # The later defininition of _XOPEN_SOURCE disables certain features
1839 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1841 cat >>confdefs.h <<\_ACEOF
1842 #define _GNU_SOURCE 1
1846 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1847 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1850 cat >>confdefs.h <<\_ACEOF
1851 #define _NETBSD_SOURCE 1
1855 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1856 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1859 cat >>confdefs.h <<\_ACEOF
1860 #define __BSD_VISIBLE 1
1864 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1865 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1867 cat >>confdefs.h <<\_ACEOF
1868 #define _BSD_TYPES 1
1872 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1873 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1876 cat >>confdefs.h <<\_ACEOF
1877 #define _DARWIN_C_SOURCE 1
1882 define_xopen_source=yes
1884 # Arguments passed to configure.
1886 CONFIG_ARGS="$ac_configure_args"
1888 # Check whether --enable-universalsdk was given.
1889 if test "${enable_universalsdk+set}" = set; then
1890 enableval=$enable_universalsdk;
1893 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1899 enable_universalsdk=
1902 UNIVERSALSDK=$enableval
1909 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"
1927 if test "${enable_universalsdk}" ; then
1930 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1931 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1932 { (exit 1); exit 1; }; }
1937 { echo "$as_me:$LINENO: result: 32-bit" >&5
1938 echo "${ECHO_T}32-bit" >&6; }
1946 # Check whether --with-framework-name was given.
1947 if test "${with_framework_name+set}" = set; then
1948 withval=$with_framework_name;
1949 if test "${enable_framework}"; then
1952 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1953 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1954 { (exit 1); exit 1; }; }
1956 PYTHONFRAMEWORK=${withval}
1957 PYTHONFRAMEWORKDIR=${withval}.framework
1958 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1962 PYTHONFRAMEWORK=Python
1963 PYTHONFRAMEWORKDIR=Python.framework
1964 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1968 # Check whether --enable-framework was given.
1969 if test "${enable_framework+set}" = set; then
1970 enableval=$enable_framework;
1973 enableval=/Library/Frameworks
1978 PYTHONFRAMEWORKDIR=no-framework
1979 PYTHONFRAMEWORKPREFIX=
1980 PYTHONFRAMEWORKINSTALLDIR=
1981 FRAMEWORKINSTALLFIRST=
1982 FRAMEWORKINSTALLLAST=
1983 FRAMEWORKALTINSTALLFIRST=
1984 FRAMEWORKALTINSTALLLAST=
1985 if test "x${prefix}" = "xNONE"; then
1986 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1988 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1993 PYTHONFRAMEWORKPREFIX=$enableval
1994 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1995 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1996 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1997 if test "$UNIVERSAL_ARCHS" = "all"
1999 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2000 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2002 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2003 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2006 if test "x${prefix}" = "xNONE" ; then
2007 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2009 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2011 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2013 # Add files for Mac specific code to the list of output
2015 ac_config_files="$ac_config_files Mac/Makefile"
2017 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2019 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2021 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2023 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2030 PYTHONFRAMEWORKDIR=no-framework
2031 PYTHONFRAMEWORKPREFIX=
2032 PYTHONFRAMEWORKINSTALLDIR=
2033 FRAMEWORKINSTALLFIRST=
2034 FRAMEWORKINSTALLLAST=
2035 FRAMEWORKALTINSTALLFIRST=
2036 FRAMEWORKALTINSTALLLAST=
2037 if test "x${prefix}" = "xNONE" ; then
2038 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2040 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2044 if test "$UNIVERSAL_ARCHS" = "all"
2046 FRAMEWORKINSTALLLAST=update4wayuniversal
2047 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2064 ## AC_HELP_STRING(--with-dyld,
2065 ## Use (OpenStep|Rhapsody) dynamic linker))
2067 # Set name for machine-dependent library files
2069 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2070 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2071 if test -z "$MACHDEP"
2073 ac_sys_system=`uname
-s`
2074 if test "$ac_sys_system" = "AIX" \
2075 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2076 ac_sys_release=`uname
-v`
2078 ac_sys_release=`uname
-r`
2080 ac_md_system=`echo $ac_sys_system |
2081 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2082 ac_md_release=`echo $ac_sys_release |
2083 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2084 MACHDEP="$ac_md_system$ac_md_release"
2087 cygwin*) MACHDEP="cygwin";;
2088 darwin*) MACHDEP="darwin";;
2089 atheos*) MACHDEP="atheos";;
2090 irix646) MACHDEP="irix6";;
2091 '') MACHDEP="unknown";;
2095 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2096 # disable features if it is defined, without any means to access these
2097 # features as extensions. For these systems, we skip the definition of
2098 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2099 # some feature, make sure there is no alternative way to access this
2100 # feature. Also, when using wildcards, make sure you have verified the
2101 # need for not defining _XOPEN_SOURCE on all systems matching the
2102 # wildcard, and that the wildcard does not include future systems
2103 # (which may remove their limitations).
2104 case $ac_sys_system/$ac_sys_release in
2105 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2106 # even though select is a POSIX function. Reported by J. Ribbens.
2107 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2108 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2109 define_xopen_source=no
2110 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2111 # also defined. This can be overridden by defining _BSD_SOURCE
2112 # As this has a different meaning on Linux, only define it on OpenBSD
2114 cat >>confdefs.h <<\_ACEOF
2115 #define _BSD_SOURCE 1
2119 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2120 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2122 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2123 define_xopen_source=no;;
2124 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2125 # of union __?sigval. Reported by Stuart Bishop.
2127 define_xopen_source=no;;
2128 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2129 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2130 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2131 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2132 define_xopen_source=no;;
2133 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2134 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2136 define_xopen_source=no;;
2137 # On FreeBSD 4, the math functions C89 does not cover are never defined
2138 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2140 define_xopen_source=no;;
2141 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2142 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2143 # identifies itself as Darwin/7.*
2144 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2145 # disables platform specific features beyond repair.
2146 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2147 # has no effect, don't bother defining them
2149 define_xopen_source=no;;
2150 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2151 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2152 # or has another value. By not (re)defining it, the defaults come in place.
2154 define_xopen_source=no;;
2156 if test `uname
-r` -eq 1; then
2157 define_xopen_source=no
2160 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2161 # defining NI_NUMERICHOST.
2163 define_xopen_source=no
2168 if test $define_xopen_source = yes
2170 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2171 # defined precisely as g++ defines it
2172 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2174 case $ac_sys_system/$ac_sys_release in
2175 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2177 cat >>confdefs.h <<\_ACEOF
2178 #define _XOPEN_SOURCE 500
2184 cat >>confdefs.h <<\_ACEOF
2185 #define _XOPEN_SOURCE 600
2191 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2192 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2193 # several APIs are not declared. Since this is also needed in some
2194 # cases for HP-UX, we define it globally.
2195 # except for Solaris 10, where it must not be defined,
2196 # as it implies XPG4.2
2197 case $ac_sys_system/$ac_sys_release in
2202 cat >>confdefs.h <<\_ACEOF
2203 #define _XOPEN_SOURCE_EXTENDED 1
2210 cat >>confdefs.h <<\_ACEOF
2211 #define _POSIX_C_SOURCE 200112L
2218 # SGI compilers allow the specification of the both the ABI and the
2219 # ISA on the command line. Depending on the values of these switches,
2220 # different and often incompatable code will be generated.
2222 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2223 # thus supply support for various ABI/ISA combinations. The MACHDEP
2224 # variable is also adjusted.
2227 if test ! -z "$SGI_ABI"
2230 LDFLAGS="$SGI_ABI $LDFLAGS"
2231 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2233 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2234 echo "${ECHO_T}$MACHDEP" >&6; }
2236 # And add extra plat-mac for darwin
2239 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2240 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2241 if test -z "$EXTRAPLATDIR"
2245 EXTRAPLATDIR="\$(PLATMACDIRS)"
2246 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2254 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2255 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2257 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2258 # it may influence the way we can build extensions, so distutils
2262 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2263 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2265 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2266 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2267 ac_sys_machine=`uname
-m`
2268 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2269 echo "${ECHO_T}$ac_sys_machine" >&6; }
2271 # checks for alternative programs
2273 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2274 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2275 # just to get things to compile and link. Users are free to override OPT
2276 # when running configure or make. The build should not break if they do.
2277 # BASECFLAGS should generally not be messed with, however.
2279 # XXX shouldn't some/most/all of this code be merged with the stuff later
2280 # on that fiddles with OPT and BASECFLAGS?
2281 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2282 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2284 # Check whether --with-gcc was given.
2285 if test "${with_gcc+set}" = set; then
2293 without_gcc=$withval;;
2297 case $ac_sys_system in
2301 case $BE_HOST_CPU in
2305 BASECFLAGS="$BASECFLAGS -export pragma"
2307 LDFLAGS="$LDFLAGS -nodup"
2315 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2316 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2317 { (exit 1); exit 1; }; }
2320 AR="\$(srcdir)/Modules/ar_beos"
2327 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2328 echo "${ECHO_T}$without_gcc" >&6; }
2330 # If the user switches compilers, we can't believe the cache
2331 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2333 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2334 (it is also a good idea to do 'make clean' before compiling)" >&5
2335 echo "$as_me: error: cached CC is different -- throw away $cache_file
2336 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2337 { (exit 1); exit 1; }; }
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345 if test -n "$ac_tool_prefix"; then
2346 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_CC+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 if test -n "$CC"; then
2354 ac_cv_prog_CC="$CC" # Let the user override the test.
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 if test -n "$CC"; then
2375 { echo "$as_me:$LINENO: result: $CC" >&5
2376 echo "${ECHO_T}$CC" >&6; }
2378 { echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6; }
2384 if test -z "$ac_cv_prog_CC"; then
2386 # Extract the first word of "gcc", so it can be a program name with args.
2387 set dummy gcc; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2393 if test -n "$ac_ct_CC"; then
2394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_ac_ct_CC="gcc"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414 if test -n "$ac_ct_CC"; then
2415 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416 echo "${ECHO_T}$ac_ct_CC" >&6; }
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2422 if test "x$ac_ct_CC" = x; then
2425 case $cross_compiling:$ac_tool_warned in
2427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&5
2430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2431 whose name does not start with the host triplet. If you think this
2432 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2433 ac_tool_warned=yes ;;
2441 if test -z "$CC"; then
2442 if test -n "$ac_tool_prefix"; then
2443 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}cc; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$CC"; then
2451 ac_cv_prog_CC="$CC" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_CC="${ac_tool_prefix}cc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 if test -n "$CC"; then
2472 { echo "$as_me:$LINENO: result: $CC" >&5
2473 echo "${ECHO_T}$CC" >&6; }
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2482 if test -z "$CC"; then
2483 # Extract the first word of "cc", so it can be a program name with args.
2484 set dummy cc; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_CC+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$CC"; then
2491 ac_cv_prog_CC="$CC" # Let the user override the test.
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2502 ac_prog_rejected=yes
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 if test $ac_prog_rejected = yes; then
2514 # We found a bogon in the path, so make sure we never use it.
2515 set dummy $ac_cv_prog_CC
2517 if test $# != 0; then
2518 # We chose a different compiler from the bogus one.
2519 # However, it has the same basename, so the bogon will be chosen
2520 # first if we set CC to just the basename; use the full file name.
2522 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2528 if test -n "$CC"; then
2529 { echo "$as_me:$LINENO: result: $CC" >&5
2530 echo "${ECHO_T}$CC" >&6; }
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2538 if test -z "$CC"; then
2539 if test -n "$ac_tool_prefix"; then
2540 for ac_prog in cl.exe
2542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 if test -n "$CC"; then
2571 { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2574 { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2579 test -n "$CC" && break
2582 if test -z "$CC"; then
2584 for ac_prog in cl.exe
2586 # Extract the first word of "$ac_prog", so it can be a program name with args.
2587 set dummy $ac_prog; ac_word=$2
2588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2593 if test -n "$ac_ct_CC"; then
2594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_ac_ct_CC="$ac_prog"
2604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2614 if test -n "$ac_ct_CC"; then
2615 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2616 echo "${ECHO_T}$ac_ct_CC" >&6; }
2618 { echo "$as_me:$LINENO: result: no" >&5
2619 echo "${ECHO_T}no" >&6; }
2623 test -n "$ac_ct_CC" && break
2626 if test "x$ac_ct_CC" = x; then
2629 case $cross_compiling:$ac_tool_warned in
2631 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2632 whose name does not start with the host triplet. If you think this
2633 configuration is useful to you, please write to autoconf@gnu.org." >&5
2634 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2635 whose name does not start with the host triplet. If you think this
2636 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2637 ac_tool_warned=yes ;;
2646 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2647 See \`config.log
' for more details." >&5
2648 echo "$as_me: error: no acceptable C compiler found in \$PATH
2649 See \`config.log' for more details.
" >&2;}
2650 { (exit 1); exit 1; }; }
2652 # Provide some information about the compiler.
2653 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2654 ac_compiler=`set X $ac_compile; echo $2`
2655 { (ac_try="$ac_compiler --version >&5"
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compiler --version >&5") 2>&5
2663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2664 (exit $ac_status); }
2665 { (ac_try="$ac_compiler -v >&5"
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compiler -v >&5") 2>&5
2673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2674 (exit $ac_status); }
2675 { (ac_try="$ac_compiler -V >&5"
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compiler -V >&5") 2>&5
2683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2684 (exit $ac_status); }
2686 cat >conftest.$ac_ext <<_ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2701 ac_clean_files_save=$ac_clean_files
2702 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2703 # Try to create an executable without -o first, disregard a.out.
2704 # It will help us diagnose broken compilers, and finding out an intuition
2706 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2707 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2708 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2710 # List of possible output files, starting from the most likely.
2711 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2712 # only as a last resort. b.out is created by i960 compilers.
2713 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2715 # The IRIX 6 linker writes into existing files which may not be
2716 # executable, retaining their permissions. Remove them first so a
2717 # subsequent execution test works.
2719 for ac_file in $ac_files
2722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2723 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2728 if { (ac_try="$ac_link_default"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_link_default") 2>&5
2736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2737 (exit $ac_status); }; then
2738 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2739 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2740 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2741 # so that the user can short-circuit this test for compilers unknown to
2743 for ac_file in $ac_files ''
2745 test -f "$ac_file" || continue
2747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2750 # We found the default executable, but exeext='' is most
2754 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2756 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758 # We set ac_cv_exeext here because the later test for it is not
2759 # safe: cross compilers may not add the suffix if given an `-o'
2760 # argument, so we may need to know it at that point already.
2761 # Even if this section looks crufty: it has the advantage of
2768 test "$ac_cv_exeext" = no && ac_cv_exeext=
2774 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2775 echo "${ECHO_T}$ac_file" >&6; }
2776 if test -z "$ac_file"; then
2777 echo "$as_me: failed program was
:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2780 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2781 See \
`config.log' for more details." >&5
2782 echo "$as_me: error: C compiler cannot create executables
2783 See \`config.log
' for more details." >&2;}
2784 { (exit 77); exit 77; }; }
2787 ac_exeext=$ac_cv_exeext
2789 # Check that the compiler produces executables we can run. If not, either
2790 # the compiler is broken, or we cross compile.
2791 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2792 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2793 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2794 # If not cross compiling, check that we can run a simple program.
2795 if test "$cross_compiling" != yes; then
2796 if { ac_try='.
/$ac_file'
2797 { (case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_try") 2>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2808 if test "$cross_compiling" = maybe; then
2811 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2812 If you meant to cross compile, use \`--host'.
2813 See \
`config.log' for more details." >&5
2814 echo "$as_me: error: cannot run C compiled programs.
2815 If you meant to cross compile, use \`--host'.
2816 See \`config.log' for more details.
" >&2;}
2817 { (exit 1); exit 1; }; }
2821 { echo "$as_me:$LINENO: result
: yes" >&5
2822 echo "${ECHO_T}yes" >&6; }
2824 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2825 ac_clean_files=$ac_clean_files_save
2826 # Check that the compiler produces executables we can run. If not, either
2827 # the compiler is broken, or we cross compile.
2828 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2829 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2830 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2831 echo "${ECHO_T}$cross_compiling" >&6; }
2833 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2834 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2835 if { (ac_try="$ac_link"
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_link") 2>&5
2843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2844 (exit $ac_status); }; then
2845 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2846 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2847 # work properly (i.e., refer to `conftest.exe'), while it won't with
2849 for ac_file in conftest.exe conftest conftest.*; do
2850 test -f "$ac_file" || continue
2852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2853 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2859 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2860 See \
`config.log' for more details." >&5
2861 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2862 See \`config.log
' for more details." >&2;}
2863 { (exit 1); exit 1; }; }
2866 rm -f conftest$ac_cv_exeext
2867 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2868 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2870 rm -f conftest.$ac_ext
2871 EXEEXT=$ac_cv_exeext
2873 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2874 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2875 if test "${ac_cv_objext+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 cat >conftest.$ac_ext <<_ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2893 rm -f conftest.o conftest.obj
2894 if { (ac_try="$ac_compile"
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_compile") 2>&5
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 for ac_file in conftest.o conftest.obj conftest.*; do
2905 test -f "$ac_file" || continue;
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2908 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2913 echo "$as_me: failed program was:" >&5
2914 sed 's
/^
/|
/' conftest.$ac_ext >&5
2916 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2917 See \`config.log' for more details.
" >&5
2918 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2919 See \
`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2923 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2925 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2926 echo "${ECHO_T}$ac_cv_objext" >&6; }
2927 OBJEXT=$ac_cv_objext
2929 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2930 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2931 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 cat >conftest.$ac_ext <<_ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2956 *) ac_try_echo
=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2961 grep -v '^ *+' conftest.er1
>conftest.err
2963 cat conftest.err
>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && {
2966 test -z "$ac_c_werror_flag" ||
2967 test ! -s conftest.err
2968 } && test -s conftest.
$ac_objext; then
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.
$ac_ext >&5
2977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2978 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2981 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2982 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2983 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2984 ac_test_CFLAGS
=${CFLAGS+set}
2985 ac_save_CFLAGS
=$CFLAGS
2986 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2987 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_cc_g+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 ac_save_c_werror_flag
=$ac_c_werror_flag
2992 ac_c_werror_flag
=yes
2995 cat >conftest.
$ac_ext <<_ACEOF
2998 cat confdefs.h
>>conftest.
$ac_ext
2999 cat >>conftest.
$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3010 rm -f conftest.
$ac_objext
3011 if { (ac_try
="$ac_compile"
3013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3019 grep -v '^ *+' conftest.er1 >conftest.err
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } && {
3024 test -z "$ac_c_werror_flag" ||
3025 test ! -s conftest.err
3026 } && test -s conftest.$ac_objext; then
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3048 rm -f conftest.$ac_objext
3049 if { (ac_try="$ac_compile"
3051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3052 *) ac_try_echo
=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compile") 2>conftest.er1
3057 grep -v '^ *+' conftest.er1
>conftest.err
3059 cat conftest.err
>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } && {
3062 test -z "$ac_c_werror_flag" ||
3063 test ! -s conftest.err
3064 } && test -s conftest.
$ac_objext; then
3067 echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.
$ac_ext >&5
3070 ac_c_werror_flag
=$ac_save_c_werror_flag
3072 cat >conftest.
$ac_ext <<_ACEOF
3075 cat confdefs.h
>>conftest.
$ac_ext
3076 cat >>conftest.
$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3087 rm -f conftest.
$ac_objext
3088 if { (ac_try
="$ac_compile"
3090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_compile") 2>conftest.er1
3096 grep -v '^ *+' conftest.er1 >conftest.err
3098 cat conftest.err >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); } && {
3101 test -z "$ac_c_werror_flag" ||
3102 test ! -s conftest.err
3103 } && test -s conftest.$ac_objext; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3119 ac_c_werror_flag=$ac_save_c_werror_flag
3121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3122 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3123 if test "$ac_test_CFLAGS" = set; then
3124 CFLAGS=$ac_save_CFLAGS
3125 elif test $ac_cv_prog_cc_g = yes; then
3126 if test "$GCC" = yes; then
3132 if test "$GCC" = yes; then
3138 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3139 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3140 if test "${ac_cv_prog_cc_c89+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 ac_cv_prog_cc_c89=no
3145 cat >conftest.$ac_ext <<_ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3153 #include <sys/types.h>
3154 #include <sys/stat.h>
3155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3156 struct buf { int x; };
3157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3158 static char *e (p, i)
3164 static char *f (char * (*g) (char **, int), char **p, ...)
3169 s = g (p, va_arg (v,int));
3174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3175 function prototypes and stuff, but not '\xHH' hex character constants.
3176 These don't provoke an error unfortunately, instead are silently treated
3177 as 'x'. The following induces an error, until -std is added to get
3178 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3179 array size at least. It's necessary to write '\x00'==0 to get something
3180 that's true only with -std. */
3181 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3184 inside strings and character constants. */
3186 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3188 int test (int i, double x);
3189 struct s1 {int (*f) (int a);};
3190 struct s2 {int (*f) (double a);};
3191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3197 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3202 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3203 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3205 CC="$ac_save_CC $ac_arg"
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3210 *) ac_try_echo
=$ac_try;;
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3215 grep -v '^ *+' conftest.er1
>conftest.err
3217 cat conftest.err
>&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } && {
3220 test -z "$ac_c_werror_flag" ||
3221 test ! -s conftest.err
3222 } && test -s conftest.
$ac_objext; then
3223 ac_cv_prog_cc_c89
=$ac_arg
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.
$ac_ext >&5
3231 rm -f core conftest.err conftest.
$ac_objext
3232 test "x$ac_cv_prog_cc_c89" != "xno" && break
3234 rm -f conftest.
$ac_ext
3239 case "x$ac_cv_prog_cc_c89" in
3241 { echo "$as_me:$LINENO: result: none needed" >&5
3242 echo "${ECHO_T}none needed" >&6; } ;;
3244 { echo "$as_me:$LINENO: result: unsupported" >&5
3245 echo "${ECHO_T}unsupported" >&6; } ;;
3247 CC
="$CC $ac_cv_prog_cc_c89"
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3254 ac_cpp
='$CPP $CPPFLAGS'
3255 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3262 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3263 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3265 # Check whether --with-cxx_main was given.
3266 if test "${with_cxx_main+set}" = set; then
3267 withval
=$with_cxx_main;
3270 no
) with_cxx_main
=no
3272 yes) with_cxx_main
=yes
3274 *) with_cxx_main
=yes
3288 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3289 echo "${ECHO_T}$with_cxx_main" >&6; }
3295 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3296 set dummy g
++; ac_word
=$2
3297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3299 if test "${ac_cv_path_CXX+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3308 for as_dir
in notfound
3311 test -z "$as_dir" && as_dir
=.
3312 for ac_exec_ext
in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3327 if test -n "$CXX"; then
3328 { echo "$as_me:$LINENO: result: $CXX" >&5
3329 echo "${ECHO_T}$CXX" >&6; }
3331 { echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6; }
3336 cc
) # Extract the first word of "c++", so it can be a program name with args.
3337 set dummy c
++; ac_word
=$2
3338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3340 if test "${ac_cv_path_CXX+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3349 for as_dir
in notfound
3352 test -z "$as_dir" && as_dir
=.
3353 for ac_exec_ext
in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3368 if test -n "$CXX"; then
3369 { echo "$as_me:$LINENO: result: $CXX" >&5
3370 echo "${ECHO_T}$CXX" >&6; }
3372 { echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6; }
3378 if test "$CXX" = "notfound"
3385 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3387 # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy
$ac_prog; ac_word
=$2
3389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3391 if test "${ac_cv_prog_CXX+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 if test -n "$CXX"; then
3395 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3401 test -z "$as_dir" && as_dir
=.
3402 for ac_exec_ext
in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 ac_cv_prog_CXX
="$ac_prog"
3405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 if test -n "$CXX"; then
3416 { echo "$as_me:$LINENO: result: $CXX" >&5
3417 echo "${ECHO_T}$CXX" >&6; }
3419 { echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6; }
3424 test -n "$CXX" && break
3426 test -n "$CXX" || CXX
="notfound"
3428 if test "$CXX" = "notfound"
3433 if test "$preset_cxx" != "$CXX"
3435 { echo "$as_me:$LINENO: WARNING:
3437 By default, distutils will build C++ extension modules with \"$CXX\".
3438 If this is not intended, then set CXX on the configure command line.
3440 echo "$as_me: WARNING:
3442 By default, distutils will build C++ extension modules with \"$CXX\".
3443 If this is not intended, then set CXX on the configure command line.
3448 # checks for UNIX variants that set C preprocessor variables
3451 ac_cpp
='$CPP $CPPFLAGS'
3452 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3455 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3456 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3457 # On Suns, sometimes $CPP names a directory.
3458 if test -n "$CPP" && test -d "$CPP"; then
3461 if test -z "$CPP"; then
3462 if test "${ac_cv_prog_CPP+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 # Double quotes because CPP needs to be expanded
3466 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3469 for ac_c_preproc_warn_flag
in '' yes
3471 # Use a header file that comes with gcc, so configuring glibc
3472 # with a fresh cross-compiler works.
3473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3474 # <limits.h> exists even on freestanding compilers.
3475 # On the NeXT, cc -E runs the code through the compiler's parser,
3476 # not just through cpp. "Syntax error" is here to catch this case.
3477 cat >conftest.
$ac_ext <<_ACEOF
3480 cat confdefs.h
>>conftest.
$ac_ext
3481 cat >>conftest.
$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3484 # include <limits.h>
3486 # include <assert.h>
3490 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3498 grep -v '^ *+' conftest.er1 >conftest.err
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } >/dev/null && {
3503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 # Broken: fails on valid input.
3515 rm -f conftest.err conftest.$ac_ext
3517 # OK, works on sane cases. Now check whether nonexistent headers
3518 # can be detected and how.
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525 #include <ac_nonexistent.h>
3527 if { (ac_try="$ac_cpp conftest.$ac_ext"
3529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3530 *) ac_try_echo
=$ac_try;;
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3535 grep -v '^ *+' conftest.er1
>conftest.err
3537 cat conftest.err
>&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } >/dev
/null
&& {
3540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3543 # Broken: success on invalid input.
3546 echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.
$ac_ext >&5
3549 # Passes both tests.
3554 rm -f conftest.err conftest.
$ac_ext
3557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3558 rm -f conftest.err conftest.
$ac_ext
3559 if $ac_preproc_ok; then
3571 { echo "$as_me:$LINENO: result: $CPP" >&5
3572 echo "${ECHO_T}$CPP" >&6; }
3574 for ac_c_preproc_warn_flag
in '' yes
3576 # Use a header file that comes with gcc, so configuring glibc
3577 # with a fresh cross-compiler works.
3578 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3579 # <limits.h> exists even on freestanding compilers.
3580 # On the NeXT, cc -E runs the code through the compiler's parser,
3581 # not just through cpp. "Syntax error" is here to catch this case.
3582 cat >conftest.
$ac_ext <<_ACEOF
3585 cat confdefs.h
>>conftest.
$ac_ext
3586 cat >>conftest.
$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3589 # include <limits.h>
3591 # include <assert.h>
3595 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null && {
3608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 # Broken: fails on valid input.
3620 rm -f conftest.err conftest.$ac_ext
3622 # OK, works on sane cases. Now check whether nonexistent headers
3623 # can be detected and how.
3624 cat >conftest.$ac_ext <<_ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 #include <ac_nonexistent.h>
3632 if { (ac_try="$ac_cpp conftest.$ac_ext"
3634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3635 *) ac_try_echo
=$ac_try;;
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3640 grep -v '^ *+' conftest.er1
>conftest.err
3642 cat conftest.err
>&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); } >/dev
/null
&& {
3645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3646 test ! -s conftest.err
3648 # Broken: success on invalid input.
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.
$ac_ext >&5
3654 # Passes both tests.
3659 rm -f conftest.err conftest.
$ac_ext
3662 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3663 rm -f conftest.err conftest.
$ac_ext
3664 if $ac_preproc_ok; then
3667 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3668 See \`config.log' for more details." >&5
3669 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3670 See \`config.log' for more details." >&2;}
3671 { (exit 1); exit 1; }; }
3675 ac_cpp
='$CPP $CPPFLAGS'
3676 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3681 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3682 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3683 if test "${ac_cv_path_GREP+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 # Extract the first word of "grep ggrep" to use in msg output
3687 if test -z "$GREP"; then
3688 set dummy
grep ggrep
; ac_prog_name
=$2
3689 if test "${ac_cv_path_GREP+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 ac_path_GREP_found
=false
3693 # Loop through the user's path and test for each of PROGNAME-LIST
3694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3695 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3698 test -z "$as_dir" && as_dir
=.
3699 for ac_prog
in grep ggrep
; do
3700 for ac_exec_ext
in '' $ac_executable_extensions; do
3701 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3702 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3703 # Check for GNU ac_path_GREP and select it if it is found.
3704 # Check for GNU $ac_path_GREP
3705 case `"$ac_path_GREP" --version 2>&1` in
3707 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3710 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3713 cat "conftest.in" "conftest.in" >"conftest.tmp"
3714 mv "conftest.tmp" "conftest.in"
3715 cp "conftest.in" "conftest.nl"
3716 echo 'GREP' >> "conftest.nl"
3717 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3718 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3719 ac_count
=`expr $ac_count + 1`
3720 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3721 # Best one so far, save it but keep looking for a better one
3722 ac_cv_path_GREP
="$ac_path_GREP"
3723 ac_path_GREP_max
=$ac_count
3725 # 10*(2^10) chars as input seems more than enough
3726 test $ac_count -gt 10 && break
3728 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3732 $ac_path_GREP_found && break 3
3742 GREP
="$ac_cv_path_GREP"
3743 if test -z "$GREP"; then
3744 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3745 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3746 { (exit 1); exit 1; }; }
3750 ac_cv_path_GREP
=$GREP
3755 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3756 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3757 GREP
="$ac_cv_path_GREP"
3760 { echo "$as_me:$LINENO: checking for egrep" >&5
3761 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3762 if test "${ac_cv_path_EGREP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3766 then ac_cv_path_EGREP
="$GREP -E"
3768 # Extract the first word of "egrep" to use in msg output
3769 if test -z "$EGREP"; then
3770 set dummy
egrep; ac_prog_name
=$2
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 ac_path_EGREP_found
=false
3775 # Loop through the user's path and test for each of PROGNAME-LIST
3776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3777 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3780 test -z "$as_dir" && as_dir
=.
3781 for ac_prog
in egrep; do
3782 for ac_exec_ext
in '' $ac_executable_extensions; do
3783 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3784 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3785 # Check for GNU ac_path_EGREP and select it if it is found.
3786 # Check for GNU $ac_path_EGREP
3787 case `"$ac_path_EGREP" --version 2>&1` in
3789 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3792 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3795 cat "conftest.in" "conftest.in" >"conftest.tmp"
3796 mv "conftest.tmp" "conftest.in"
3797 cp "conftest.in" "conftest.nl"
3798 echo 'EGREP' >> "conftest.nl"
3799 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3800 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3801 ac_count
=`expr $ac_count + 1`
3802 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3803 # Best one so far, save it but keep looking for a better one
3804 ac_cv_path_EGREP
="$ac_path_EGREP"
3805 ac_path_EGREP_max
=$ac_count
3807 # 10*(2^10) chars as input seems more than enough
3808 test $ac_count -gt 10 && break
3810 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3814 $ac_path_EGREP_found && break 3
3824 EGREP
="$ac_cv_path_EGREP"
3825 if test -z "$EGREP"; then
3826 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3827 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3828 { (exit 1); exit 1; }; }
3832 ac_cv_path_EGREP
=$EGREP
3838 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3839 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3840 EGREP
="$ac_cv_path_EGREP"
3844 { echo "$as_me:$LINENO: checking for AIX" >&5
3845 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3846 cat >conftest.
$ac_ext <<_ACEOF
3849 cat confdefs.h
>>conftest.
$ac_ext
3850 cat >>conftest.
$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 $EGREP "yes" >/dev
/null
2>&1; then
3859 { echo "$as_me:$LINENO: result: yes" >&5
3860 echo "${ECHO_T}yes" >&6; }
3861 cat >>confdefs.h
<<\_ACEOF
3862 #define _ALL_SOURCE 1
3866 { echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6; }
3873 # Check for unsupported systems
3874 case $ac_sys_system/$ac_sys_release in
3876 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3877 echo See README
for details.
3882 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3883 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3885 # Check whether --with-suffix was given.
3886 if test "${with_suffix+set}" = set; then
3887 withval
=$with_suffix;
3891 *) EXEEXT
=$withval;;
3895 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3896 echo "${ECHO_T}$EXEEXT" >&6; }
3898 # Test whether we're running on a non-case-sensitive system, in which
3899 # case we give a warning if no ext is given
3901 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3902 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3903 if test ! -d CaseSensitiveTestDir
; then
3904 mkdir CaseSensitiveTestDir
3907 if test -d casesensitivetestdir
3909 { echo "$as_me:$LINENO: result: yes" >&5
3910 echo "${ECHO_T}yes" >&6; }
3913 { echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6; }
3917 rmdir CaseSensitiveTestDir
3922 gcc
) CC
="$CC -D_HAVE_BSDI";;
3926 case $ac_sys_system in
3929 cc|
*/cc
) CC
="$CC -Ae";;
3932 # Some functions have a prototype only with that define, e.g. confstr
3934 cat >>confdefs.h
<<\_ACEOF
3935 #define __EXTENSIONS__ 1
3943 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3944 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3945 if test -z "$LIBRARY"
3947 LIBRARY
='libpython$(VERSION).a'
3949 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3950 echo "${ECHO_T}$LIBRARY" >&6; }
3952 # LDLIBRARY is the name of the library to link against (as opposed to the
3953 # name of the library into which to insert object files). BLDLIBRARY is also
3954 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3955 # is blank as the main program is not linked directly against LDLIBRARY.
3956 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3957 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3958 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3959 # DLLLIBRARY is the shared (i.e., DLL) library.
3961 # RUNSHARED is used to run shared python without installed libraries
3963 # INSTSONAME is the name of the shared library that will be use to install
3964 # on the system - some systems like version suffix, others don't
3971 LDLIBRARY
="$LIBRARY"
3972 BLDLIBRARY
='$(LDLIBRARY)'
3973 INSTSONAME
='$(LDLIBRARY)'
3978 # LINKCC is the command that links the python executable -- default is $(CC).
3979 # If CXX is set, and if it is needed to link a main function that was
3980 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3981 # python might then depend on the C++ runtime
3982 # This is altered for AIX in order to build the export list before
3985 { echo "$as_me:$LINENO: checking LINKCC" >&5
3986 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3987 if test -z "$LINKCC"
3989 LINKCC
='$(PURIFY) $(MAINCC)'
3990 case $ac_sys_system in
3993 if test $ac_sys_release -ge 5 -o \
3994 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3997 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3999 # qcc must be used because the other compilers do not
4004 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4005 echo "${ECHO_T}$LINKCC" >&6; }
4007 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4008 # make sure we default having it set to "no": this is used by
4009 # distutils.unixccompiler to know if it should add --enable-new-dtags
4010 # to linker command lines, and failing to detect GNU ld simply results
4011 # in the same bahaviour as before.
4013 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4014 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4016 if test "$GCC" = yes; then
4017 ac_prog
=`$CC -print-prog-name=ld`
4019 case `"$ac_prog" -V 2>&1 < /dev/null` in
4025 { echo "$as_me:$LINENO: result: $GNULD" >&5
4026 echo "${ECHO_T}$GNULD" >&6; }
4028 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4029 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4030 # Check whether --enable-shared was given.
4031 if test "${enable_shared+set}" = set; then
4032 enableval
=$enable_shared;
4036 if test -z "$enable_shared"
4038 case $ac_sys_system in
4040 enable_shared
="yes";;
4042 enable_shared
="no";;
4045 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4046 echo "${ECHO_T}$enable_shared" >&6; }
4048 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4049 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4050 # Check whether --enable-profiling was given.
4051 if test "${enable_profiling+set}" = set; then
4052 enableval
=$enable_profiling; ac_save_cc
="$CC"
4054 if test "$cross_compiling" = yes; then
4055 ac_enable_profiling
="no"
4057 cat >conftest.
$ac_ext <<_ACEOF
4060 cat confdefs.h
>>conftest.
$ac_ext
4061 cat >>conftest.
$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 int main() { return 0; }
4065 rm -f conftest
$ac_exeext
4066 if { (ac_try
="$ac_link"
4068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_link") 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4076 { (case "(($ac_try" in
4077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4078 *) ac_try_echo
=$ac_try;;
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_try") 2>&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
4085 ac_enable_profiling
="yes"
4087 echo "$as_me: program exited with status $ac_status" >&5
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.
$ac_ext >&5
4092 ac_enable_profiling
="no"
4094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4101 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4102 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4104 case "$ac_enable_profiling" in
4106 BASECFLAGS
="-pg $BASECFLAGS"
4107 LDFLAGS
="-pg $LDFLAGS"
4111 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4112 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4114 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4115 # library that we build, but we do not want to link against it (we
4116 # will find it with a -framework option). For this reason there is an
4117 # extra variable BLDLIBRARY against which Python and the extension
4118 # modules are linked, BLDLIBRARY. This is normally the same as
4119 # LDLIBRARY, but empty for MacOSX framework builds.
4120 if test "$enable_framework"
4122 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4123 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4126 BLDLIBRARY
='$(LDLIBRARY)'
4129 # Other platforms follow
4130 if test $enable_shared = "yes"; then
4132 cat >>confdefs.h
<<\_ACEOF
4133 #define Py_ENABLE_SHARED 1
4136 case $ac_sys_system in
4138 LDLIBRARY
='libpython$(VERSION).so'
4141 LDLIBRARY
='libpython$(VERSION).dll.a'
4142 DLLLIBRARY
='libpython$(VERSION).dll'
4145 LDLIBRARY
='libpython$(VERSION).so'
4146 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4147 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4148 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4150 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4151 LDLIBRARY
='libpython$(VERSION).so'
4152 BLDLIBRARY
='-L. -lpython$(VERSION)'
4153 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4154 case $ac_sys_system in
4156 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4159 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4164 LDLIBRARY
='libpython$(VERSION).so'
4167 LDLIBRARY
='libpython$(VERSION).sl'
4170 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4171 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4174 LDLIBRARY
='libpython$(VERSION).so'
4175 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4176 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4179 LDLIBRARY
='libpython$(VERSION).so'
4180 BLDLIBRARY
='-L. -lpython$(VERSION)'
4181 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4184 LDLIBRARY
='libpython$(VERSION).dylib'
4185 BLDLIBRARY
='-L. -lpython$(VERSION)'
4186 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4190 else # shared is disabled
4191 case $ac_sys_system in
4193 BLDLIBRARY
='$(LIBRARY)'
4194 LDLIBRARY
='libpython$(VERSION).dll.a'
4199 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4200 echo "${ECHO_T}$LDLIBRARY" >&6; }
4202 if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4204 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4207 if test "${ac_cv_prog_RANLIB+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$RANLIB"; then
4211 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir
=.
4218 for ac_exec_ext
in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 RANLIB
=$ac_cv_prog_RANLIB
4231 if test -n "$RANLIB"; then
4232 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4233 echo "${ECHO_T}$RANLIB" >&6; }
4235 { echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6; }
4241 if test -z "$ac_cv_prog_RANLIB"; then
4242 ac_ct_RANLIB
=$RANLIB
4243 # Extract the first word of "ranlib", so it can be a program name with args.
4244 set dummy ranlib
; ac_word
=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 if test -n "$ac_ct_RANLIB"; then
4251 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir
=.
4258 for ac_exec_ext
in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4271 if test -n "$ac_ct_RANLIB"; then
4272 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4273 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4275 { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4279 if test "x$ac_ct_RANLIB" = x
; then
4282 case $cross_compiling:$ac_tool_warned in
4284 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4285 whose name does not start with the host triplet. If you think this
4286 configuration is useful to you, please write to autoconf@gnu.org." >&5
4287 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4288 whose name does not start with the host triplet. If you think this
4289 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4290 ac_tool_warned
=yes ;;
4292 RANLIB
=$ac_ct_RANLIB
4295 RANLIB
="$ac_cv_prog_RANLIB"
4299 for ac_prog
in ar aal
4301 # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy
$ac_prog; ac_word
=$2
4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305 if test "${ac_cv_prog_AR+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$AR"; then
4309 ac_cv_prog_AR
="$AR" # Let the user override the test.
4311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir
=.
4316 for ac_exec_ext
in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_AR
="$ac_prog"
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 if test -n "$AR"; then
4330 { echo "$as_me:$LINENO: result: $AR" >&5
4331 echo "${ECHO_T}$AR" >&6; }
4333 { echo "$as_me:$LINENO: result: no" >&5
4334 echo "${ECHO_T}no" >&6; }
4338 test -n "$AR" && break
4340 test -n "$AR" || AR
="ar"
4343 # tweak ARFLAGS only if the user didn't set it on the command line
4345 if test -z "$ARFLAGS"
4351 # Extract the first word of "svnversion", so it can be a program name with args.
4352 set dummy svnversion
; ac_word
=$2
4353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4355 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 if test -n "$SVNVERSION"; then
4359 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4365 test -z "$as_dir" && as_dir
=.
4366 for ac_exec_ext
in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_SVNVERSION
="found"
4369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4379 SVNVERSION
=$ac_cv_prog_SVNVERSION
4380 if test -n "$SVNVERSION"; then
4381 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4382 echo "${ECHO_T}$SVNVERSION" >&6; }
4384 { echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6; }
4389 if test $SVNVERSION = found
4391 SVNVERSION
="svnversion \$(srcdir)"
4393 SVNVERSION
="echo Unversioned directory"
4398 # install -d does not work on BSDI or HP-UX
4399 if test -z "$INSTALL"
4401 INSTALL
="${srcdir}/install-sh -c"
4405 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4406 if test -f "$ac_dir/install-sh"; then
4408 ac_install_sh
="$ac_aux_dir/install-sh -c"
4410 elif test -f "$ac_dir/install.sh"; then
4412 ac_install_sh
="$ac_aux_dir/install.sh -c"
4414 elif test -f "$ac_dir/shtool"; then
4416 ac_install_sh
="$ac_aux_dir/shtool install -c"
4420 if test -z "$ac_aux_dir"; then
4421 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4422 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4423 { (exit 1); exit 1; }; }
4426 # These three variables are undocumented and unsupported,
4427 # and are intended to be withdrawn in a future Autoconf release.
4428 # They can cause serious problems if a builder's source tree is in a directory
4429 # whose full name contains unusual characters.
4430 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4431 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4432 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4435 # Find a good install program. We prefer a C program (faster),
4436 # so one script is as good as another. But avoid the broken or
4437 # incompatible versions:
4438 # SysV /etc/install, /usr/sbin/install
4439 # SunOS /usr/etc/install
4440 # IRIX /sbin/install
4442 # AmigaOS /C/install, which installs bootblocks on floppy discs
4443 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4444 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4445 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4446 # OS/2's system install, which has a completely different semantic
4447 # ./install, which can be erroneously created by make from ./install.sh.
4448 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4449 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4450 if test -z "$INSTALL"; then
4451 if test "${ac_cv_path_install+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4458 test -z "$as_dir" && as_dir
=.
4459 # Account for people who put trailing slashes in PATH elements.
4461 .
/ | .
// |
/cC
/* | \
4462 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4463 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4466 # OSF1 and SCO ODT 3.0 have their own names for install.
4467 # Don't use installbsd from OSF since it installs stuff as root
4469 for ac_prog
in ginstall scoinst
install; do
4470 for ac_exec_ext
in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4472 if test $ac_prog = install &&
4473 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4474 # AIX install. It has an incompatible calling convention.
4476 elif test $ac_prog = install &&
4477 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4478 # program-specific install script used by HP pwplus--don't use.
4481 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4494 if test "${ac_cv_path_install+set}" = set; then
4495 INSTALL
=$ac_cv_path_install
4497 # As a last resort, use the slow shell script. Don't cache a
4498 # value for INSTALL within a source directory, because that will
4499 # break other packages using the cache if that directory is
4500 # removed, or if the value is a relative name.
4501 INSTALL
=$ac_install_sh
4504 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4505 echo "${ECHO_T}$INSTALL" >&6; }
4507 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4508 # It thinks the first close brace ends the variable substitution.
4509 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4511 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4513 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4516 # Not every filesystem supports hard links
4518 if test -z "$LN" ; then
4519 case $ac_sys_system in
4521 CYGWIN
*) LN
="ln -s";;
4522 atheos
*) LN
="ln -s";;
4527 # Check for --with-pydebug
4528 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4529 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4531 # Check whether --with-pydebug was given.
4532 if test "${with_pydebug+set}" = set; then
4533 withval
=$with_pydebug;
4534 if test "$withval" != no
4537 cat >>confdefs.h
<<\_ACEOF
4541 { echo "$as_me:$LINENO: result: yes" >&5
4542 echo "${ECHO_T}yes" >&6; };
4544 else { echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4553 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4554 # merged with this chunk of code?
4556 # Optimizer/debugger flags
4557 # ------------------------
4558 # (The following bit of code is complicated enough - please keep things
4559 # indented properly. Just pretend you're editing Python code. ;-)
4561 # There are two parallel sets of case statements below, one that checks to
4562 # see if OPT was set and one that does BASECFLAGS setting based upon
4563 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4566 # tweak OPT based on compiler and platform, only if the user didn't set
4567 # it on the command line
4573 if test "$CC" != 'g++' ; then
4574 STRICT_PROTO
="-Wstrict-prototypes"
4576 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4577 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4580 case $ac_cv_prog_cc_g in
4582 if test "$Py_DEBUG" = 'true' ; then
4583 # Optimization messes up debuggers, so turn it off for
4585 OPT
="-g -Wall $STRICT_PROTO"
4587 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4591 OPT
="-O3 -Wall $STRICT_PROTO"
4594 case $ac_sys_system in
4595 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4608 # The -arch flags for universal builds on OSX
4609 UNIVERSAL_ARCH_FLAGS
=
4612 # tweak BASECFLAGS based on compiler and platform
4615 # Python violates C99 rules, by casting between incompatible
4616 # pointer types. GCC may generate bad code as a result of that,
4617 # so use -fno-strict-aliasing if supported.
4618 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4619 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4621 CC
="$CC -fno-strict-aliasing"
4622 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.
$ac_ext <<_ACEOF
4628 cat confdefs.h
>>conftest.
$ac_ext
4629 cat >>conftest.
$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4635 int main() { return 0; }
4640 rm -f conftest.
$ac_objext
4641 if { (ac_try
="$ac_compile"
4643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4657 ac_cv_no_strict_aliasing_ok=yes
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_cv_no_strict_aliasing_ok=no
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4670 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4671 if test $ac_cv_no_strict_aliasing_ok = yes
4673 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4676 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4677 # support. Without this, treatment of subnormals doesn't follow
4679 case $ac_sys_machine in
4681 BASECFLAGS="$BASECFLAGS -mieee"
4685 case $ac_sys_system in
4687 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4689 # is there any other compiler on Darwin besides gcc?
4691 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4692 # used to be here, but non-Apple gcc doesn't accept them.
4695 if test "${enable_universalsdk}"; then
4696 UNIVERSAL_ARCH_FLAGS=""
4697 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4698 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4701 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4702 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4703 ARCH_RUN_32BIT="true"
4705 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4706 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4707 ARCH_RUN_32BIT="arch -i386 -ppc"
4709 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4710 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4711 ARCH_RUN_32BIT="arch -i386"
4713 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4714 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4715 ARCH_RUN_32BIT="arch -i386 -ppc"
4718 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4719 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4720 { (exit 1); exit 1; }; }
4725 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4726 tgt=`sw_vers
-productVersion |
sed 's/\(10\.[0-9]*\).*/\1/'`
4727 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4728 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4732 # Calculate the right deployment target for this build.
4734 cur_target=`sw_vers
-productVersion |
sed 's/\(10\.[0-9]*\).*/\1/'`
4735 if test ${cur_target} '>' 10.2; then
4737 if test ${enable_universalsdk}; then
4738 if test "${UNIVERSAL_ARCHS}" = "all"; then
4739 # Ensure that the default platform for a
4740 # 4-way universal build is OSX 10.5,
4741 # that's the first OS release where
4742 # 4-way builds make sense.
4745 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4748 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4751 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4755 if test `arch
` = "i386"; then
4756 # On Intel macs default to a deployment
4757 # target of 10.4, that's the first OSX
4758 # release with Intel support.
4763 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4765 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4766 # environment with a value that is the same as what we'll use
4767 # in the Makefile to ensure that we'll get the same compiler
4768 # environment during configure and build time.
4769 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4770 export MACOSX_DEPLOYMENT_TARGET
4771 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4775 BASECFLAGS="$BASECFLAGS -mieee"
4781 case $ac_sys_system in
4782 OpenUNIX*|UnixWare*)
4783 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4786 BASECFLAGS="$BASECFLAGS -ieee -std"
4789 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4795 if test "$Py_DEBUG" = 'true'; then
4801 if test "$ac_arch_flags"
4803 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4806 # disable check for icc since it seems to pass, but generates a warning
4809 ac_cv_opt_olimit_ok=no
4812 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4813 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4814 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 CC="$CC -OPT:Olimit=0"
4819 cat >conftest.$ac_ext <<_ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4829 int main() { return 0; }
4834 rm -f conftest.$ac_objext
4835 if { (ac_try="$ac_compile"
4837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4838 *) ac_try_echo
=$ac_try;;
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_compile") 2>conftest.er1
4843 grep -v '^ *+' conftest.er1
>conftest.err
4845 cat conftest.err
>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } && {
4848 test -z "$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4850 } && test -s conftest.
$ac_objext; then
4851 ac_cv_opt_olimit_ok
=yes
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.
$ac_ext >&5
4856 ac_cv_opt_olimit_ok
=no
4859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4863 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4864 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4865 if test $ac_cv_opt_olimit_ok = yes; then
4866 case $ac_sys_system in
4867 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4868 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4873 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4877 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4878 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4879 if test "${ac_cv_olimit_ok+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 CC
="$CC -Olimit 1500"
4884 cat >conftest.
$ac_ext <<_ACEOF
4887 cat confdefs.h
>>conftest.
$ac_ext
4888 cat >>conftest.
$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4894 int main() { return 0; }
4899 rm -f conftest.
$ac_objext
4900 if { (ac_try
="$ac_compile"
4902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906 (eval "$ac_compile") 2>conftest.er1
4908 grep -v '^ *+' conftest.er1 >conftest.err
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && {
4913 test -z "$ac_c_werror_flag" ||
4914 test ! -s conftest.err
4915 } && test -s conftest.$ac_objext; then
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4929 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4930 if test $ac_cv_olimit_ok = yes; then
4931 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4935 # Check whether GCC supports PyArg_ParseTuple format
4936 if test "$GCC" = "yes"
4938 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4939 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4941 CFLAGS="$CFLAGS -Werror"
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4959 rm -f conftest.$ac_objext
4960 if { (ac_try="$ac_compile"
4962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4963 *) ac_try_echo
=$ac_try;;
4965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4966 (eval "$ac_compile") 2>conftest.er1
4968 grep -v '^ *+' conftest.er1
>conftest.err
4970 cat conftest.err
>&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.
$ac_objext; then
4977 cat >>confdefs.h
<<\_ACEOF
4978 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4981 { echo "$as_me:$LINENO: result: yes" >&5
4982 echo "${ECHO_T}yes" >&6; }
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.
$ac_ext >&5
4987 { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4996 # On some compilers, pthreads are available without further options
4997 # (e.g. MacOS X). On some of these systems, the compiler will not
4998 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4999 # So we have to see first whether pthreads are available without
5000 # options before we can check whether -Kpthread improves anything.
5001 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5002 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5003 if test "${ac_cv_pthread_is_default+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 if test "$cross_compiling" = yes; then
5007 ac_cv_pthread_is_default
=no
5009 cat >conftest.
$ac_ext <<_ACEOF
5012 cat confdefs.h
>>conftest.
$ac_ext
5013 cat >>conftest.
$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 #include <pthread.h>
5018 void* routine(void* p){return NULL;}
5022 if(pthread_create(&p,NULL,routine,NULL)!=0)
5024 (void)pthread_detach(p);
5029 rm -f conftest
$ac_exeext
5030 if { (ac_try
="$ac_link"
5032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_link") 2>&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5040 { (case "(($ac_try" in
5041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5042 *) ac_try_echo
=$ac_try;;
5044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_try") 2>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5050 ac_cv_pthread_is_default
=yes
5055 echo "$as_me: program exited with status $ac_status" >&5
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.
$ac_ext >&5
5060 ac_cv_pthread_is_default
=no
5062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5069 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5070 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5073 if test $ac_cv_pthread_is_default = yes
5077 # -Kpthread, if available, provides the right #defines
5078 # and linker options to make pthread_create available
5079 # Some compilers won't report that they do not support -Kpthread,
5080 # so we need to run a program to see whether it really made the
5081 # function available.
5082 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5083 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5084 if test "${ac_cv_kpthread+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 if test "$cross_compiling" = yes; then
5092 cat >conftest.
$ac_ext <<_ACEOF
5095 cat confdefs.h
>>conftest.
$ac_ext
5096 cat >>conftest.
$ac_ext <<_ACEOF
5097 /* end confdefs.h. */
5099 #include <pthread.h>
5101 void* routine(void* p){return NULL;}
5105 if(pthread_create(&p,NULL,routine,NULL)!=0)
5107 (void)pthread_detach(p);
5112 rm -f conftest
$ac_exeext
5113 if { (ac_try
="$ac_link"
5115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_link") 2>&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5123 { (case "(($ac_try" in
5124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5125 *) ac_try_echo
=$ac_try;;
5127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_try") 2>&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5134 echo "$as_me: program exited with status $ac_status" >&5
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.
$ac_ext >&5
5141 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5148 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5149 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5152 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
5154 # -Kthread, if available, provides the right #defines
5155 # and linker options to make pthread_create available
5156 # Some compilers won't report that they do not support -Kthread,
5157 # so we need to run a program to see whether it really made the
5158 # function available.
5159 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5160 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5161 if test "${ac_cv_kthread+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 if test "$cross_compiling" = yes; then
5169 cat >conftest.
$ac_ext <<_ACEOF
5172 cat confdefs.h
>>conftest.
$ac_ext
5173 cat >>conftest.
$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5176 #include <pthread.h>
5178 void* routine(void* p){return NULL;}
5182 if(pthread_create(&p,NULL,routine,NULL)!=0)
5184 (void)pthread_detach(p);
5189 rm -f conftest
$ac_exeext
5190 if { (ac_try
="$ac_link"
5192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_link") 2>&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5200 { (case "(($ac_try" in
5201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5202 *) ac_try_echo
=$ac_try;;
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_try") 2>&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5211 echo "$as_me: program exited with status $ac_status" >&5
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.
$ac_ext >&5
5218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5225 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5226 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5229 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
5231 # -pthread, if available, provides the right #defines
5232 # and linker options to make pthread_create available
5233 # Some compilers won't report that they do not support -pthread,
5234 # so we need to run a program to see whether it really made the
5235 # function available.
5236 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5237 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5238 if test "${ac_cv_thread+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 if test "$cross_compiling" = yes; then
5246 cat >conftest.
$ac_ext <<_ACEOF
5249 cat confdefs.h
>>conftest.
$ac_ext
5250 cat >>conftest.
$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5253 #include <pthread.h>
5255 void* routine(void* p){return NULL;}
5259 if(pthread_create(&p,NULL,routine,NULL)!=0)
5261 (void)pthread_detach(p);
5266 rm -f conftest
$ac_exeext
5267 if { (ac_try
="$ac_link"
5269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_link") 2>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5277 { (case "(($ac_try" in
5278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5279 *) ac_try_echo
=$ac_try;;
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_try") 2>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5288 echo "$as_me: program exited with status $ac_status" >&5
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.
$ac_ext >&5
5295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5302 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5303 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5306 # If we have set a CC compiler flag for thread support then
5307 # check if it works for CXX, too.
5311 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5312 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5315 if test "$ac_cv_kpthread" = "yes"
5317 CXX
="$CXX -Kpthread"
5318 ac_cv_cxx_thread
=yes
5319 elif test "$ac_cv_kthread" = "yes"
5322 ac_cv_cxx_thread
=yes
5323 elif test "$ac_cv_pthread" = "yes"
5326 ac_cv_cxx_thread
=yes
5329 if test $ac_cv_cxx_thread = yes
5331 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
5332 $CXX -c conftest.
$ac_ext 2>&5
5333 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
5334 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
5336 ac_cv_cxx_thread
=yes
5342 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5343 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5348 # checks for header files
5349 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5351 if test "${ac_cv_header_stdc+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 cat >conftest.
$ac_ext <<_ACEOF
5357 cat confdefs.h
>>conftest.
$ac_ext
5358 cat >>conftest.
$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5373 rm -f conftest.
$ac_objext
5374 if { (ac_try
="$ac_compile"
5376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_compile") 2>conftest.er1
5382 grep -v '^ *+' conftest.er1 >conftest.err
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } && {
5387 test -z "$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 } && test -s conftest.$ac_objext; then
5390 ac_cv_header_stdc=yes
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_cv_header_stdc=no
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400 if test $ac_cv_header_stdc = yes; then
5401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5402 cat >conftest.$ac_ext <<_ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 $EGREP "memchr" >/dev/null 2>&1; then
5415 ac_cv_header_stdc=no
5421 if test $ac_cv_header_stdc = yes; then
5422 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5423 cat >conftest.$ac_ext <<_ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5433 $EGREP "free" >/dev/null 2>&1; then
5436 ac_cv_header_stdc=no
5442 if test $ac_cv_header_stdc = yes; then
5443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5444 if test "$cross_compiling" = yes; then
5447 cat >conftest.$ac_ext <<_ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5455 #if ((' ' & 0x0FF) == 0x020)
5456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5459 # define ISLOWER(c) \
5460 (('a' <= (c) && (c) <= 'i') \
5461 || ('j' <= (c) && (c) <= 'r') \
5462 || ('s' <= (c) && (c) <= 'z'))
5463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5471 for (i = 0; i < 256; i++)
5472 if (XOR (islower (i), ISLOWER (i))
5473 || toupper (i) != TOUPPER (i))
5478 rm -f conftest$ac_exeext
5479 if { (ac_try="$ac_link"
5481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5482 *) ac_try_echo
=$ac_try;;
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_link") 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5489 { (case "(($ac_try" in
5490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494 (eval "$ac_try") 2>&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5500 echo "$as_me: program exited with status $ac_status" >&5
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_cv_header_stdc=no
5507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5513 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5514 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5515 if test $ac_cv_header_stdc = yes; then
5517 cat >>confdefs.h <<\_ACEOF
5518 #define STDC_HEADERS 1
5523 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5533 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5534 inttypes.h stdint.h unistd.h
5536 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 cat >conftest.$ac_ext <<_ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 $ac_includes_default
5550 #include <$ac_header>
5552 rm -f conftest.$ac_objext
5553 if { (ac_try="$ac_compile"
5555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5556 *) ac_try_echo
=$ac_try;;
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_compile") 2>conftest.er1
5561 grep -v '^ *+' conftest.er1
>conftest.err
5563 cat conftest.err
>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && {
5566 test -z "$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5568 } && test -s conftest.
$ac_objext; then
5569 eval "$as_ac_Header=yes"
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.
$ac_ext >&5
5574 eval "$as_ac_Header=no"
5577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5579 ac_res
=`eval echo '${'$as_ac_Header'}'`
5580 { echo "$as_me:$LINENO: result: $ac_res" >&5
5581 echo "${ECHO_T}$ac_res" >&6; }
5582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5583 cat >>confdefs.h
<<_ACEOF
5584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5646 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5648 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5649 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5651 sys
/audioio.h sys
/bsdtty.h sys
/epoll.h sys
/event.h sys
/file.h sys
/loadavg.h \
5652 sys
/lock.h sys
/mkdev.h sys
/modem.h \
5653 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
5654 sys
/termio.h sys
/time.h \
5655 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
5656 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
5657 bluetooth
/bluetooth.h linux
/tipc.h
5659 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5660 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5663 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 ac_res
=`eval echo '${'$as_ac_Header'}'`
5667 { echo "$as_me:$LINENO: result: $ac_res" >&5
5668 echo "${ECHO_T}$ac_res" >&6; }
5670 # Is the header compilable?
5671 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5673 cat >conftest.
$ac_ext <<_ACEOF
5676 cat confdefs.h
>>conftest.
$ac_ext
5677 cat >>conftest.
$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 $ac_includes_default
5680 #include <$ac_header>
5682 rm -f conftest.
$ac_objext
5683 if { (ac_try
="$ac_compile"
5685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5691 grep -v '^ *+' conftest.er1 >conftest.err
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.$ac_objext; then
5699 ac_header_compiler=yes
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5704 ac_header_compiler=no
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5709 echo "${ECHO_T}$ac_header_compiler" >&6; }
5711 # Is the header present?
5712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5714 cat >conftest.$ac_ext <<_ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720 #include <$ac_header>
5722 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5725 *) ac_try_echo
=$ac_try;;
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730 grep -v '^ *+' conftest.er1
>conftest.err
5732 cat conftest.err
>&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } >/dev
/null
&& {
5735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5738 ac_header_preproc
=yes
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.
$ac_ext >&5
5743 ac_header_preproc
=no
5746 rm -f conftest.err conftest.
$ac_ext
5747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5748 echo "${ECHO_T}$ac_header_preproc" >&6; }
5750 # So? What about this header?
5751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5757 ac_header_preproc
=yes
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5765 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5767 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5771 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5773 ## -------------------------------------- ##
5774 ## Report this to http://bugs.python.org/ ##
5775 ## -------------------------------------- ##
5777 ) |
sed "s/^/$as_me: WARNING: /" >&2
5780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5782 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 eval "$as_ac_Header=\$ac_header_preproc"
5787 ac_res
=`eval echo '${'$as_ac_Header'}'`
5788 { echo "$as_me:$LINENO: result: $ac_res" >&5
5789 echo "${ECHO_T}$ac_res" >&6; }
5792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5793 cat >>confdefs.h
<<_ACEOF
5794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5807 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5808 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5809 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5810 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5811 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 cat >conftest.
$ac_ext <<_ACEOF
5817 cat confdefs.h
>>conftest.
$ac_ext
5818 cat >>conftest.
$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #include <sys/types.h>
5832 rm -f conftest.
$ac_objext
5833 if { (ac_try
="$ac_compile"
5835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } && {
5846 test -z "$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 } && test -s conftest.$ac_objext; then
5849 eval "$as_ac_Header=yes"
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 eval "$as_ac_Header=no"
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 ac_res=`eval echo '${'$as_ac_Header'}'`
5860 { echo "$as_me:$LINENO: result: $ac_res" >&5
5861 echo "${ECHO_T}$ac_res" >&6; }
5862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5863 cat >>confdefs.h <<_ACEOF
5864 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
5867 ac_header_dirent=$ac_hdr; break
5871 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5872 if test $ac_header_dirent = dirent.h; then
5873 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5874 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5875 if test "${ac_cv_search_opendir+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 ac_func_search_save_LIBS=$LIBS
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5886 /* Override any GCC internal prototype to avoid an error.
5887 Use char because int might match the return type of a GCC
5888 builtin and then its argument prototype would still apply. */
5901 for ac_lib in '' dir; do
5902 if test -z "$ac_lib"; then
5903 ac_res="none required"
5906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (ac_try="$ac_link"
5911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5912 *) ac_try_echo
=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_link") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1
>conftest.err
5919 cat conftest.err
>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest
$ac_exeext &&
5925 $as_test_x conftest
$ac_exeext; then
5926 ac_cv_search_opendir
=$ac_res
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.
$ac_ext >&5
5934 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5936 if test "${ac_cv_search_opendir+set}" = set; then
5940 if test "${ac_cv_search_opendir+set}" = set; then
5943 ac_cv_search_opendir
=no
5946 LIBS
=$ac_func_search_save_LIBS
5948 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5949 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5950 ac_res
=$ac_cv_search_opendir
5951 if test "$ac_res" != no
; then
5952 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5957 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5958 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5959 if test "${ac_cv_search_opendir+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 ac_func_search_save_LIBS
=$LIBS
5963 cat >conftest.
$ac_ext <<_ACEOF
5966 cat confdefs.h
>>conftest.
$ac_ext
5967 cat >>conftest.
$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5970 /* Override any GCC internal prototype to avoid an error.
5971 Use char because int might match the return type of a GCC
5972 builtin and then its argument prototype would still apply. */
5985 for ac_lib
in '' x
; do
5986 if test -z "$ac_lib"; then
5987 ac_res
="none required"
5990 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5992 rm -f conftest.
$ac_objext conftest
$ac_exeext
5993 if { (ac_try
="$ac_link"
5995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_link") 2>conftest.er1
6001 grep -v '^ *+' conftest.er1 >conftest.err
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest$ac_exeext &&
6009 $as_test_x conftest$ac_exeext; then
6010 ac_cv_search_opendir=$ac_res
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6020 if test "${ac_cv_search_opendir+set}" = set; then
6024 if test "${ac_cv_search_opendir+set}" = set; then
6027 ac_cv_search_opendir=no
6030 LIBS=$ac_func_search_save_LIBS
6032 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6033 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6034 ac_res=$ac_cv_search_opendir
6035 if test "$ac_res" != no; then
6036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6042 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6043 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6044 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 #include <sys/types.h>
6057 return makedev(0, 0);
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (ac_try="$ac_link"
6065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6066 *) ac_try_echo
=$ac_try;;
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_link") 2>conftest.er1
6071 grep -v '^ *+' conftest.er1
>conftest.err
6073 cat conftest.err
>&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest
$ac_exeext &&
6079 $as_test_x conftest
$ac_exeext; then
6080 ac_cv_header_sys_types_h_makedev
=yes
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.
$ac_ext >&5
6085 ac_cv_header_sys_types_h_makedev
=no
6088 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6089 conftest
$ac_exeext conftest.
$ac_ext
6092 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6093 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6095 if test $ac_cv_header_sys_types_h_makedev = no
; then
6096 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6097 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6098 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6099 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6103 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6105 # Is the header compilable?
6106 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6107 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6108 cat >conftest.
$ac_ext <<_ACEOF
6111 cat confdefs.h
>>conftest.
$ac_ext
6112 cat >>conftest.
$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 $ac_includes_default
6115 #include <sys/mkdev.h>
6117 rm -f conftest.
$ac_objext
6118 if { (ac_try
="$ac_compile"
6120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest.$ac_objext; then
6134 ac_header_compiler=yes
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 ac_header_compiler=no
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6144 echo "${ECHO_T}$ac_header_compiler" >&6; }
6146 # Is the header present?
6147 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6148 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #include <sys/mkdev.h>
6157 if { (ac_try="$ac_cpp conftest.$ac_ext"
6159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6160 *) ac_try_echo
=$ac_try;;
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6165 grep -v '^ *+' conftest.er1
>conftest.err
6167 cat conftest.err
>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } >/dev
/null
&& {
6170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6173 ac_header_preproc
=yes
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.
$ac_ext >&5
6178 ac_header_preproc
=no
6181 rm -f conftest.err conftest.
$ac_ext
6182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6183 echo "${ECHO_T}$ac_header_preproc" >&6; }
6185 # So? What about this header?
6186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6189 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6191 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6192 ac_header_preproc
=yes
6195 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6196 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6198 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6200 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6202 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6204 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6206 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6208 ## -------------------------------------- ##
6209 ## Report this to http://bugs.python.org/ ##
6210 ## -------------------------------------- ##
6212 ) |
sed "s/^/$as_me: WARNING: /" >&2
6215 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6216 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6217 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
6220 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
6222 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6223 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6226 if test $ac_cv_header_sys_mkdev_h = yes; then
6228 cat >>confdefs.h
<<\_ACEOF
6229 #define MAJOR_IN_MKDEV 1
6236 if test $ac_cv_header_sys_mkdev_h = no
; then
6237 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6238 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6239 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6240 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6244 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6246 # Is the header compilable?
6247 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6248 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6249 cat >conftest.
$ac_ext <<_ACEOF
6252 cat confdefs.h
>>conftest.
$ac_ext
6253 cat >>conftest.
$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 $ac_includes_default
6256 #include <sys/sysmacros.h>
6258 rm -f conftest.
$ac_objext
6259 if { (ac_try
="$ac_compile"
6261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_compile") 2>conftest.er1
6267 grep -v '^ *+' conftest.er1 >conftest.err
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_c_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest.$ac_objext; then
6275 ac_header_compiler=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 ac_header_compiler=no
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6285 echo "${ECHO_T}$ac_header_compiler" >&6; }
6287 # Is the header present?
6288 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6289 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6290 cat >conftest.$ac_ext <<_ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6296 #include <sys/sysmacros.h>
6298 if { (ac_try="$ac_cpp conftest.$ac_ext"
6300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6301 *) ac_try_echo
=$ac_try;;
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6306 grep -v '^ *+' conftest.er1
>conftest.err
6308 cat conftest.err
>&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } >/dev
/null
&& {
6311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6314 ac_header_preproc
=yes
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.
$ac_ext >&5
6319 ac_header_preproc
=no
6322 rm -f conftest.err conftest.
$ac_ext
6323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6324 echo "${ECHO_T}$ac_header_preproc" >&6; }
6326 # So? What about this header?
6327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6329 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6330 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6332 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6333 ac_header_preproc
=yes
6336 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6337 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6339 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6341 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6343 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6345 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6347 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6349 ## -------------------------------------- ##
6350 ## Report this to http://bugs.python.org/ ##
6351 ## -------------------------------------- ##
6353 ) |
sed "s/^/$as_me: WARNING: /" >&2
6356 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6357 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6358 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
6363 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6364 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6367 if test $ac_cv_header_sys_sysmacros_h = yes; then
6369 cat >>confdefs.h
<<\_ACEOF
6370 #define MAJOR_IN_SYSMACROS 1
6380 # On Solaris, term.h requires curses.h
6382 for ac_header
in term.h
6384 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6387 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 #ifdef HAVE_CURSES_H
6402 #include <$ac_header>
6404 rm -f conftest.
$ac_objext
6405 if { (ac_try
="$ac_compile"
6407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest.$ac_objext; then
6421 eval "$as_ac_Header=yes"
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 eval "$as_ac_Header=no"
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 ac_res=`eval echo '${'$as_ac_Header'}'`
6432 { echo "$as_me:$LINENO: result: $ac_res" >&5
6433 echo "${ECHO_T}$ac_res" >&6; }
6434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6435 cat >>confdefs.h <<_ACEOF
6436 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6444 # On Linux, netlink.h requires asm/types.h
6446 for ac_header in linux/netlink.h
6448 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 cat >conftest.$ac_ext <<_ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6461 #ifdef HAVE_ASM_TYPES_H
6462 #include <asm/types.h>
6464 #ifdef HAVE_SYS_SOCKET_H
6465 #include <sys/socket.h>
6469 #include <$ac_header>
6471 rm -f conftest.$ac_objext
6472 if { (ac_try="$ac_compile"
6474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6475 *) ac_try_echo
=$ac_try;;
6477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6478 (eval "$ac_compile") 2>conftest.er1
6480 grep -v '^ *+' conftest.er1
>conftest.err
6482 cat conftest.err
>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } && {
6485 test -z "$ac_c_werror_flag" ||
6486 test ! -s conftest.err
6487 } && test -s conftest.
$ac_objext; then
6488 eval "$as_ac_Header=yes"
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.
$ac_ext >&5
6493 eval "$as_ac_Header=no"
6496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6498 ac_res
=`eval echo '${'$as_ac_Header'}'`
6499 { echo "$as_me:$LINENO: result: $ac_res" >&5
6500 echo "${ECHO_T}$ac_res" >&6; }
6501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6502 cat >>confdefs.h
<<_ACEOF
6503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 # checks for typedefs
6513 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6514 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6515 cat >conftest.
$ac_ext <<_ACEOF
6518 cat confdefs.h
>>conftest.
$ac_ext
6519 cat >>conftest.
$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 $EGREP "clock_t" >/dev
/null
2>&1; then
6530 cat >>confdefs.h
<<\_ACEOF
6531 #define clock_t long
6538 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6539 echo "${ECHO_T}$was_it_defined" >&6; }
6541 # Check whether using makedev requires defining _OSF_SOURCE
6542 { echo "$as_me:$LINENO: checking for makedev" >&5
6543 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6544 cat >conftest.
$ac_ext <<_ACEOF
6547 cat confdefs.h
>>conftest.
$ac_ext
6548 cat >>conftest.
$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6550 #include <sys/types.h>
6559 rm -f conftest.
$ac_objext conftest
$ac_exeext
6560 if { (ac_try
="$ac_link"
6562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566 (eval "$ac_link") 2>conftest.er1
6568 grep -v '^ *+' conftest.er1 >conftest.err
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && {
6573 test -z "$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 } && test -s conftest$ac_exeext &&
6576 $as_test_x conftest$ac_exeext; then
6577 ac_cv_has_makedev=yes
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_cv_has_makedev=no
6585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6586 conftest$ac_exeext conftest.$ac_ext
6587 if test "$ac_cv_has_makedev" = "no"; then
6588 # we didn't link, try if _OSF_SOURCE will allow us to link
6589 cat >conftest.$ac_ext <<_ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6596 #define _OSF_SOURCE 1
6597 #include <sys/types.h>
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (ac_try="$ac_link"
6610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6611 *) ac_try_echo
=$ac_try;;
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_link") 2>conftest.er1
6616 grep -v '^ *+' conftest.er1
>conftest.err
6618 cat conftest.err
>&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest
$ac_exeext &&
6624 $as_test_x conftest
$ac_exeext; then
6625 ac_cv_has_makedev
=yes
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.
$ac_ext >&5
6630 ac_cv_has_makedev
=no
6633 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6634 conftest
$ac_exeext conftest.
$ac_ext
6635 if test "$ac_cv_has_makedev" = "yes"; then
6637 cat >>confdefs.h
<<\_ACEOF
6638 #define _OSF_SOURCE 1
6643 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6644 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6645 if test "$ac_cv_has_makedev" = "yes"; then
6647 cat >>confdefs.h
<<\_ACEOF
6648 #define HAVE_MAKEDEV 1
6653 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6654 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6655 # defined, but the compiler does not support pragma redefine_extname,
6656 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6657 # structures (such as rlimit64) without declaring them. As a
6658 # work-around, disable LFS on such configurations
6661 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6662 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6663 cat >conftest.
$ac_ext <<_ACEOF
6666 cat confdefs.h
>>conftest.
$ac_ext
6667 cat >>conftest.
$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6670 #define _LARGEFILE_SOURCE 1
6671 #define _FILE_OFFSET_BITS 64
6672 #include <sys/resource.h>
6682 rm -f conftest.
$ac_objext
6683 if { (ac_try
="$ac_compile"
6685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_compile") 2>conftest.er1
6691 grep -v '^ *+' conftest.er1 >conftest.err
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && {
6696 test -z "$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 } && test -s conftest.$ac_objext; then
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6709 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6710 if test "$sol_lfs_bug" = "yes"; then
6714 if test "$use_lfs" = "yes"; then
6715 # Two defines needed to enable largefile support on various platforms
6716 # These may affect some typedefs
6718 cat >>confdefs.h <<\_ACEOF
6719 #define _LARGEFILE_SOURCE 1
6723 cat >>confdefs.h <<\_ACEOF
6724 #define _FILE_OFFSET_BITS 64
6729 # Add some code to confdefs.h so that the test for off_t works on SCO
6730 cat >> confdefs.h <<\EOF
6736 # Type availability checks
6737 { echo "$as_me:$LINENO: checking for mode_t" >&5
6738 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6739 if test "${ac_cv_type_mode_t+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 cat >conftest.$ac_ext <<_ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 $ac_includes_default
6749 typedef mode_t ac__type_new_;
6753 if ((ac__type_new_ *) 0)
6755 if (sizeof (ac__type_new_))
6761 rm -f conftest.$ac_objext
6762 if { (ac_try="$ac_compile"
6764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6765 *) ac_try_echo
=$ac_try;;
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_compile") 2>conftest.er1
6770 grep -v '^ *+' conftest.er1
>conftest.err
6772 cat conftest.err
>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } && {
6775 test -z "$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6777 } && test -s conftest.
$ac_objext; then
6778 ac_cv_type_mode_t
=yes
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.
$ac_ext >&5
6783 ac_cv_type_mode_t
=no
6786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6788 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6789 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6790 if test $ac_cv_type_mode_t = yes; then
6794 cat >>confdefs.h
<<_ACEOF
6800 { echo "$as_me:$LINENO: checking for off_t" >&5
6801 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6802 if test "${ac_cv_type_off_t+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 cat >conftest.
$ac_ext <<_ACEOF
6808 cat confdefs.h
>>conftest.
$ac_ext
6809 cat >>conftest.
$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 $ac_includes_default
6812 typedef off_t ac__type_new_;
6816 if ((ac__type_new_ *) 0)
6818 if (sizeof (ac__type_new_))
6824 rm -f conftest.
$ac_objext
6825 if { (ac_try
="$ac_compile"
6827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
6833 grep -v '^ *+' conftest.er1 >conftest.err
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
6841 ac_cv_type_off_t=yes
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6852 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6853 if test $ac_cv_type_off_t = yes; then
6857 cat >>confdefs.h <<_ACEOF
6858 #define off_t long int
6863 { echo "$as_me:$LINENO: checking for pid_t" >&5
6864 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6865 if test "${ac_cv_type_pid_t+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 cat >conftest.$ac_ext <<_ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 $ac_includes_default
6875 typedef pid_t ac__type_new_;
6879 if ((ac__type_new_ *) 0)
6881 if (sizeof (ac__type_new_))
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6891 *) ac_try_echo
=$ac_try;;
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6896 grep -v '^ *+' conftest.er1
>conftest.err
6898 cat conftest.err
>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.
$ac_objext; then
6904 ac_cv_type_pid_t
=yes
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.
$ac_ext >&5
6912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6914 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6915 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6916 if test $ac_cv_type_pid_t = yes; then
6920 cat >>confdefs.h
<<_ACEOF
6926 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6927 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6928 if test "${ac_cv_type_signal+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 cat >conftest.
$ac_ext <<_ACEOF
6934 cat confdefs.h
>>conftest.
$ac_ext
6935 cat >>conftest.
$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 #include <sys/types.h>
6943 return *(signal (0, 0)) (0) == 1;
6948 rm -f conftest.
$ac_objext
6949 if { (ac_try
="$ac_compile"
6951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6957 grep -v '^ *+' conftest.er1 >conftest.err
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
6965 ac_cv_type_signal=int
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_type_signal=void
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6976 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6978 cat >>confdefs.h <<_ACEOF
6979 #define RETSIGTYPE $ac_cv_type_signal
6983 { echo "$as_me:$LINENO: checking for size_t" >&5
6984 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6985 if test "${ac_cv_type_size_t+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6995 typedef size_t ac__type_new_;
6999 if ((ac__type_new_ *) 0)
7001 if (sizeof (ac__type_new_))
7007 rm -f conftest.$ac_objext
7008 if { (ac_try="$ac_compile"
7010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7011 *) ac_try_echo
=$ac_try;;
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014 (eval "$ac_compile") 2>conftest.er1
7016 grep -v '^ *+' conftest.er1
>conftest.err
7018 cat conftest.err
>&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.
$ac_objext; then
7024 ac_cv_type_size_t
=yes
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.
$ac_ext >&5
7029 ac_cv_type_size_t
=no
7032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7034 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7035 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7036 if test $ac_cv_type_size_t = yes; then
7040 cat >>confdefs.h
<<_ACEOF
7041 #define size_t unsigned int
7046 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7047 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7048 if test "${ac_cv_type_uid_t+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 cat >conftest.
$ac_ext <<_ACEOF
7054 cat confdefs.h
>>conftest.
$ac_ext
7055 cat >>conftest.
$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <sys/types.h>
7060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7061 $EGREP "uid_t" >/dev
/null
2>&1; then
7062 ac_cv_type_uid_t
=yes
7069 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7070 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7071 if test $ac_cv_type_uid_t = no
; then
7073 cat >>confdefs.h
<<\_ACEOF
7078 cat >>confdefs.h
<<\_ACEOF
7085 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7086 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7087 if test "${ac_cv_c_uint32_t+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 for ac_type
in 'uint32_t' 'unsigned int' 'unsigned long int' \
7092 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7093 cat >conftest.
$ac_ext <<_ACEOF
7096 cat confdefs.h
>>conftest.
$ac_ext
7097 cat >>conftest.
$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 $ac_includes_default
7103 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7110 rm -f conftest.
$ac_objext
7111 if { (ac_try
="$ac_compile"
7113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117 (eval "$ac_compile") 2>conftest.er1
7119 grep -v '^ *+' conftest.er1 >conftest.err
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest.$ac_objext; then
7128 uint32_t) ac_cv_c_uint32_t=yes ;;
7129 *) ac_cv_c_uint32_t=$ac_type ;;
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 test "$ac_cv_c_uint32_t" != no && break
7143 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7144 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7145 case $ac_cv_c_uint32_t in #(
7149 cat >>confdefs.h <<\_ACEOF
7154 cat >>confdefs.h <<_ACEOF
7155 #define uint32_t $ac_cv_c_uint32_t
7161 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7162 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7163 if test "${ac_cv_c_uint64_t+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7168 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7169 cat >conftest.$ac_ext <<_ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7179 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7186 rm -f conftest.$ac_objext
7187 if { (ac_try="$ac_compile"
7189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7190 *) ac_try_echo
=$ac_try;;
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compile") 2>conftest.er1
7195 grep -v '^ *+' conftest.er1
>conftest.err
7197 cat conftest.err
>&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest.
$ac_objext; then
7204 uint64_t
) ac_cv_c_uint64_t
=yes ;;
7205 *) ac_cv_c_uint64_t
=$ac_type ;;
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.
$ac_ext >&5
7215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7216 test "$ac_cv_c_uint64_t" != no
&& break
7219 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7220 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7221 case $ac_cv_c_uint64_t in #(
7225 cat >>confdefs.h
<<\_ACEOF
7230 cat >>confdefs.h
<<_ACEOF
7231 #define uint64_t $ac_cv_c_uint64_t
7237 { echo "$as_me:$LINENO: checking for int32_t" >&5
7238 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7239 if test "${ac_cv_c_int32_t+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 for ac_type
in 'int32_t' 'int' 'long int' \
7244 'long long int' 'short int' 'signed char'; do
7245 cat >conftest.
$ac_ext <<_ACEOF
7248 cat confdefs.h
>>conftest.
$ac_ext
7249 cat >>conftest.
$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 $ac_includes_default
7255 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7262 rm -f conftest.
$ac_objext
7263 if { (ac_try
="$ac_compile"
7265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7269 (eval "$ac_compile") 2>conftest.er1
7271 grep -v '^ *+' conftest.er1 >conftest.err
7273 cat conftest.err >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } && {
7276 test -z "$ac_c_werror_flag" ||
7277 test ! -s conftest.err
7278 } && test -s conftest.$ac_objext; then
7279 cat >conftest.$ac_ext <<_ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7285 $ac_includes_default
7289 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7290 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7297 rm -f conftest.$ac_objext
7298 if { (ac_try="$ac_compile"
7300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7301 *) ac_try_echo
=$ac_try;;
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7306 grep -v '^ *+' conftest.er1
>conftest.err
7308 cat conftest.err
>&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.
$ac_objext; then
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.
$ac_ext >&5
7320 int32_t
) ac_cv_c_int32_t
=yes ;;
7321 *) ac_cv_c_int32_t
=$ac_type ;;
7326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.
$ac_ext >&5
7334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7335 test "$ac_cv_c_int32_t" != no
&& break
7338 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7339 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7340 case $ac_cv_c_int32_t in #(
7344 cat >>confdefs.h
<<_ACEOF
7345 #define int32_t $ac_cv_c_int32_t
7351 { echo "$as_me:$LINENO: checking for int64_t" >&5
7352 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7353 if test "${ac_cv_c_int64_t+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 for ac_type
in 'int64_t' 'int' 'long int' \
7358 'long long int' 'short int' 'signed char'; do
7359 cat >conftest.
$ac_ext <<_ACEOF
7362 cat confdefs.h
>>conftest.
$ac_ext
7363 cat >>conftest.
$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 $ac_includes_default
7369 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7376 rm -f conftest.
$ac_objext
7377 if { (ac_try
="$ac_compile"
7379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7385 grep -v '^ *+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7403 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7404 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7415 *) ac_try_echo
=$ac_try;;
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7420 grep -v '^ *+' conftest.er1
>conftest.err
7422 cat conftest.err
>&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.
$ac_objext; then
7430 echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.
$ac_ext >&5
7434 int64_t
) ac_cv_c_int64_t
=yes ;;
7435 *) ac_cv_c_int64_t
=$ac_type ;;
7440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.
$ac_ext >&5
7448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7449 test "$ac_cv_c_int64_t" != no
&& break
7452 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7453 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7454 case $ac_cv_c_int64_t in #(
7458 cat >>confdefs.h
<<_ACEOF
7459 #define int64_t $ac_cv_c_int64_t
7464 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7465 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7466 if test "${ac_cv_type_ssize_t+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 cat >conftest.
$ac_ext <<_ACEOF
7472 cat confdefs.h
>>conftest.
$ac_ext
7473 cat >>conftest.
$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 $ac_includes_default
7476 typedef ssize_t ac__type_new_;
7480 if ((ac__type_new_ *) 0)
7482 if (sizeof (ac__type_new_))
7488 rm -f conftest.
$ac_objext
7489 if { (ac_try
="$ac_compile"
7491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7497 grep -v '^ *+' conftest.er1 >conftest.err
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 ac_cv_type_ssize_t=yes
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 ac_cv_type_ssize_t=no
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7516 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7517 if test $ac_cv_type_ssize_t = yes; then
7519 cat >>confdefs.h <<\_ACEOF
7520 #define HAVE_SSIZE_T 1
7526 # Sizes of various common basic types
7527 # ANSI C requires sizeof(char) == 1, so no need to check it
7528 { echo "$as_me:$LINENO: checking for int" >&5
7529 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7530 if test "${ac_cv_type_int+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 cat >conftest.$ac_ext <<_ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 $ac_includes_default
7540 typedef int ac__type_new_;
7544 if ((ac__type_new_ *) 0)
7546 if (sizeof (ac__type_new_))
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7556 *) ac_try_echo
=$ac_try;;
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7561 grep -v '^ *+' conftest.er1
>conftest.err
7563 cat conftest.err
>&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.
$ac_objext; then
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.
$ac_ext >&5
7577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7579 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7580 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7582 # The cast to long int works around a bug in the HP C Compiler
7583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7585 # This bug is HP SR number 8606223364.
7586 { echo "$as_me:$LINENO: checking size of int" >&5
7587 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7588 if test "${ac_cv_sizeof_int+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 if test "$cross_compiling" = yes; then
7592 # Depending upon the size, compute the lo and hi bounds.
7593 cat >conftest.
$ac_ext <<_ACEOF
7596 cat confdefs.h
>>conftest.
$ac_ext
7597 cat >>conftest.
$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 $ac_includes_default
7600 typedef int ac__type_sizeof_;
7604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7611 rm -f conftest.
$ac_objext
7612 if { (ac_try
="$ac_compile"
7614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618 (eval "$ac_compile") 2>conftest.er1
7620 grep -v '^ *+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } && {
7625 test -z "$ac_c_werror_flag" ||
7626 test ! -s conftest.err
7627 } && test -s conftest.$ac_objext; then
7630 cat >conftest.$ac_ext <<_ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7637 typedef int ac__type_sizeof_;
7641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7652 *) ac_try_echo
=$ac_try;;
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7657 grep -v '^ *+' conftest.er1
>conftest.err
7659 cat conftest.err
>&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.
$ac_objext; then
7665 ac_hi
=$ac_mid; break
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.
$ac_ext >&5
7670 ac_lo
=`expr $ac_mid + 1`
7671 if test $ac_lo -le $ac_mid; then
7675 ac_mid
=`expr 2 '*' $ac_mid + 1`
7678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.
$ac_ext >&5
7684 cat >conftest.
$ac_ext <<_ACEOF
7687 cat confdefs.h
>>conftest.
$ac_ext
7688 cat >>conftest.
$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 $ac_includes_default
7691 typedef int ac__type_sizeof_;
7695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7702 rm -f conftest.
$ac_objext
7703 if { (ac_try
="$ac_compile"
7705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7711 grep -v '^ *+' conftest.er1 >conftest.err
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 typedef int ac__type_sizeof_;
7732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7739 rm -f conftest.$ac_objext
7740 if { (ac_try="$ac_compile"
7742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7743 *) ac_try_echo
=$ac_try;;
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_compile") 2>conftest.er1
7748 grep -v '^ *+' conftest.er1
>conftest.err
7750 cat conftest.err
>&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest.
$ac_objext; then
7756 ac_lo
=$ac_mid; break
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.
$ac_ext >&5
7761 ac_hi
=`expr '(' $ac_mid ')' - 1`
7762 if test $ac_mid -le $ac_hi; then
7766 ac_mid
=`expr 2 '*' $ac_mid`
7769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.
$ac_ext >&5
7778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7782 # Binary search between lo and hi bounds.
7783 while test "x$ac_lo" != "x$ac_hi"; do
7784 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7785 cat >conftest.
$ac_ext <<_ACEOF
7788 cat confdefs.h
>>conftest.
$ac_ext
7789 cat >>conftest.
$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 $ac_includes_default
7792 typedef int ac__type_sizeof_;
7796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7803 rm -f conftest.
$ac_objext
7804 if { (ac_try
="$ac_compile"
7806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810 (eval "$ac_compile") 2>conftest.er1
7812 grep -v '^ *+' conftest.er1 >conftest.err
7814 cat conftest.err >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest.$ac_objext; then
7822 echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.$ac_ext >&5
7825 ac_lo=`expr '(' $ac_mid ')' + 1`
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831 ?*) ac_cv_sizeof_int=$ac_lo;;
7832 '') if test "$ac_cv_type_int" = yes; then
7833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7834 See \`config.log
' for more details." >&5
7835 echo "$as_me: error: cannot compute sizeof (int)
7836 See \`config.log' for more details.
" >&2;}
7837 { (exit 77); exit 77; }; }
7843 cat >conftest.$ac_ext <<_ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 $ac_includes_default
7850 typedef int ac__type_sizeof_;
7851 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7852 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7859 FILE *f = fopen ("conftest.val
", "w
");
7862 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7864 long int i = longval ();
7865 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7867 fprintf (f, "%ld
\n", i);
7871 unsigned long int i = ulongval ();
7872 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7874 fprintf (f, "%lu
\n", i);
7876 return ferror (f) || fclose (f) != 0;
7882 rm -f conftest$ac_exeext
7883 if { (ac_try="$ac_link"
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_link") 2>&5
7891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_sizeof_int=`cat conftest.val`
7904 echo "$as_me: program exited with status
$ac_status" >&5
7905 echo "$as_me: failed program was
:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7909 if test "$ac_cv_type_int" = yes; then
7910 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
7911 See \
`config.log' for more details." >&5
7912 echo "$as_me: error: cannot compute sizeof (int)
7913 See \`config.log
' for more details." >&2;}
7914 { (exit 77); exit 77; }; }
7919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7923 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7924 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7928 cat >>confdefs.h <<_ACEOF
7929 #define SIZEOF_INT $ac_cv_sizeof_int
7933 { echo "$as_me:$LINENO: checking for long" >&5
7934 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7935 if test "${ac_cv_type_long+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7945 typedef long ac__type_new_;
7949 if ((ac__type_new_ *) 0)
7951 if (sizeof (ac__type_new_))
7957 rm -f conftest.$ac_objext
7958 if { (ac_try="$ac_compile"
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_compile") 2>conftest.er1
7966 grep -v '^
*+' conftest.er1 >conftest.err
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest.$ac_objext; then
7976 echo "$as_me: failed program was:" >&5
7977 sed 's
/^
/|
/' conftest.$ac_ext >&5
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7985 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7987 # The cast to long int works around a bug in the HP C Compiler
7988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7990 # This bug is HP SR number 8606223364.
7991 { echo "$as_me:$LINENO: checking size of long" >&5
7992 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7993 if test "${ac_cv_sizeof_long+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 if test "$cross_compiling" = yes; then
7997 # Depending upon the size, compute the lo and hi bounds.
7998 cat >conftest.
$ac_ext <<_ACEOF
8001 cat confdefs.h
>>conftest.
$ac_ext
8002 cat >>conftest.
$ac_ext <<_ACEOF
8003 /* end confdefs.h. */
8004 $ac_includes_default
8005 typedef long ac__type_sizeof_;
8009 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8016 rm -f conftest.
$ac_objext
8017 if { (ac_try
="$ac_compile"
8019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_compile") 2>conftest.er1
8025 grep -v '^ *+' conftest.er1 >conftest.err
8027 cat conftest.err >&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest.$ac_objext; then
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 typedef long ac__type_sizeof_;
8046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8057 *) ac_try_echo
=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8062 grep -v '^ *+' conftest.er1
>conftest.err
8064 cat conftest.err
>&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.
$ac_objext; then
8070 ac_hi
=$ac_mid; break
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.
$ac_ext >&5
8075 ac_lo
=`expr $ac_mid + 1`
8076 if test $ac_lo -le $ac_mid; then
8080 ac_mid
=`expr 2 '*' $ac_mid + 1`
8083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8086 echo "$as_me: failed program was:" >&5
8087 sed 's/^/| /' conftest.
$ac_ext >&5
8089 cat >conftest.
$ac_ext <<_ACEOF
8092 cat confdefs.h
>>conftest.
$ac_ext
8093 cat >>conftest.
$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 typedef long ac__type_sizeof_;
8100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8107 rm -f conftest.
$ac_objext
8108 if { (ac_try
="$ac_compile"
8110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
8123 } && test -s conftest.$ac_objext; then
8126 cat >conftest.$ac_ext <<_ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 typedef long ac__type_sizeof_;
8137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8147 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8148 *) ac_try_echo
=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8153 grep -v '^ *+' conftest.er1
>conftest.err
8155 cat conftest.err
>&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.
$ac_objext; then
8161 ac_lo
=$ac_mid; break
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.
$ac_ext >&5
8166 ac_hi
=`expr '(' $ac_mid ')' - 1`
8167 if test $ac_mid -le $ac_hi; then
8171 ac_mid
=`expr 2 '*' $ac_mid`
8174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.
$ac_ext >&5
8183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8187 # Binary search between lo and hi bounds.
8188 while test "x$ac_lo" != "x$ac_hi"; do
8189 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8190 cat >conftest.
$ac_ext <<_ACEOF
8193 cat confdefs.h
>>conftest.
$ac_ext
8194 cat >>conftest.
$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8197 typedef long ac__type_sizeof_;
8201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8208 rm -f conftest.
$ac_objext
8209 if { (ac_try
="$ac_compile"
8211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_compile") 2>conftest.er1
8217 grep -v '^ *+' conftest.er1 >conftest.err
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } && {
8222 test -z "$ac_c_werror_flag" ||
8223 test ! -s conftest.err
8224 } && test -s conftest.$ac_objext; then
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 ac_lo=`expr '(' $ac_mid ')' + 1`
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236 ?*) ac_cv_sizeof_long=$ac_lo;;
8237 '') if test "$ac_cv_type_long" = yes; then
8238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8239 See \`config.log
' for more details." >&5
8240 echo "$as_me: error: cannot compute sizeof (long)
8241 See \`config.log' for more details.
" >&2;}
8242 { (exit 77); exit 77; }; }
8248 cat >conftest.$ac_ext <<_ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h. */
8254 $ac_includes_default
8255 typedef long ac__type_sizeof_;
8256 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8257 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8264 FILE *f = fopen ("conftest.val
", "w
");
8267 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8269 long int i = longval ();
8270 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8272 fprintf (f, "%ld
\n", i);
8276 unsigned long int i = ulongval ();
8277 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8279 fprintf (f, "%lu
\n", i);
8281 return ferror (f) || fclose (f) != 0;
8287 rm -f conftest$ac_exeext
8288 if { (ac_try="$ac_link"
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_link") 2>&5
8296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8298 { (case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_try") 2>&5
8305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_sizeof_long=`cat conftest.val`
8309 echo "$as_me: program exited with status
$ac_status" >&5
8310 echo "$as_me: failed program was
:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8314 if test "$ac_cv_type_long" = yes; then
8315 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8316 See \
`config.log' for more details." >&5
8317 echo "$as_me: error: cannot compute sizeof (long)
8318 See \`config.log
' for more details." >&2;}
8319 { (exit 77); exit 77; }; }
8324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8328 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8329 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8333 cat >>confdefs.h <<_ACEOF
8334 #define SIZEOF_LONG $ac_cv_sizeof_long
8338 { echo "$as_me:$LINENO: checking for void *" >&5
8339 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8340 if test "${ac_cv_type_void_p+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 cat >conftest.$ac_ext <<_ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 $ac_includes_default
8350 typedef void * ac__type_new_;
8354 if ((ac__type_new_ *) 0)
8356 if (sizeof (ac__type_new_))
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_compile") 2>conftest.er1
8371 grep -v '^
*+' conftest.er1 >conftest.err
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && {
8376 test -z "$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 } && test -s conftest.$ac_objext; then
8379 ac_cv_type_void_p=yes
8381 echo "$as_me: failed program was:" >&5
8382 sed 's
/^
/|
/' conftest.$ac_ext >&5
8384 ac_cv_type_void_p=no
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8390 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8392 # The cast to long int works around a bug in the HP C Compiler
8393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8395 # This bug is HP SR number 8606223364.
8396 { echo "$as_me:$LINENO: checking size of void *" >&5
8397 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8398 if test "${ac_cv_sizeof_void_p+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 if test "$cross_compiling" = yes; then
8402 # Depending upon the size, compute the lo and hi bounds.
8403 cat >conftest.
$ac_ext <<_ACEOF
8406 cat confdefs.h
>>conftest.
$ac_ext
8407 cat >>conftest.
$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 $ac_includes_default
8410 typedef void * ac__type_sizeof_;
8414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8421 rm -f conftest.
$ac_objext
8422 if { (ac_try
="$ac_compile"
8424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_compile") 2>conftest.er1
8430 grep -v '^ *+' conftest.er1 >conftest.err
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } && {
8435 test -z "$ac_c_werror_flag" ||
8436 test ! -s conftest.err
8437 } && test -s conftest.$ac_objext; then
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 typedef void * ac__type_sizeof_;
8451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8462 *) ac_try_echo
=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1
>conftest.err
8469 cat conftest.err
>&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.
$ac_objext; then
8475 ac_hi
=$ac_mid; break
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.
$ac_ext >&5
8480 ac_lo
=`expr $ac_mid + 1`
8481 if test $ac_lo -le $ac_mid; then
8485 ac_mid
=`expr 2 '*' $ac_mid + 1`
8488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.
$ac_ext >&5
8494 cat >conftest.
$ac_ext <<_ACEOF
8497 cat confdefs.h
>>conftest.
$ac_ext
8498 cat >>conftest.
$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 $ac_includes_default
8501 typedef void * ac__type_sizeof_;
8505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8512 rm -f conftest.
$ac_objext
8513 if { (ac_try
="$ac_compile"
8515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519 (eval "$ac_compile") 2>conftest.er1
8521 grep -v '^ *+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && {
8526 test -z "$ac_c_werror_flag" ||
8527 test ! -s conftest.err
8528 } && test -s conftest.$ac_objext; then
8531 cat >conftest.$ac_ext <<_ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $ac_includes_default
8538 typedef void * ac__type_sizeof_;
8542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8553 *) ac_try_echo
=$ac_try;;
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8558 grep -v '^ *+' conftest.er1
>conftest.err
8560 cat conftest.err
>&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_c_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.
$ac_objext; then
8566 ac_lo
=$ac_mid; break
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.
$ac_ext >&5
8571 ac_hi
=`expr '(' $ac_mid ')' - 1`
8572 if test $ac_mid -le $ac_hi; then
8576 ac_mid
=`expr 2 '*' $ac_mid`
8579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8592 # Binary search between lo and hi bounds.
8593 while test "x$ac_lo" != "x$ac_hi"; do
8594 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8595 cat >conftest.
$ac_ext <<_ACEOF
8598 cat confdefs.h
>>conftest.
$ac_ext
8599 cat >>conftest.
$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 $ac_includes_default
8602 typedef void * ac__type_sizeof_;
8606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8613 rm -f conftest.
$ac_objext
8614 if { (ac_try
="$ac_compile"
8616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_compile") 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } && {
8627 test -z "$ac_c_werror_flag" ||
8628 test ! -s conftest.err
8629 } && test -s conftest.$ac_objext; then
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_lo=`expr '(' $ac_mid ')' + 1`
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8642 '') if test "$ac_cv_type_void_p" = yes; then
8643 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8644 See \`config.log
' for more details." >&5
8645 echo "$as_me: error: cannot compute sizeof (void *)
8646 See \`config.log' for more details.
" >&2;}
8647 { (exit 77); exit 77; }; }
8649 ac_cv_sizeof_void_p=0
8653 cat >conftest.$ac_ext <<_ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 $ac_includes_default
8660 typedef void * ac__type_sizeof_;
8661 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8662 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8669 FILE *f = fopen ("conftest.val
", "w
");
8672 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8674 long int i = longval ();
8675 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8677 fprintf (f, "%ld
\n", i);
8681 unsigned long int i = ulongval ();
8682 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8684 fprintf (f, "%lu
\n", i);
8686 return ferror (f) || fclose (f) != 0;
8692 rm -f conftest$ac_exeext
8693 if { (ac_try="$ac_link"
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_link") 2>&5
8701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8703 { (case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_try") 2>&5
8710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_cv_sizeof_void_p=`cat conftest.val`
8714 echo "$as_me: program exited with status
$ac_status" >&5
8715 echo "$as_me: failed program was
:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8719 if test "$ac_cv_type_void_p" = yes; then
8720 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8721 See \
`config.log' for more details." >&5
8722 echo "$as_me: error: cannot compute sizeof (void *)
8723 See \`config.log
' for more details." >&2;}
8724 { (exit 77); exit 77; }; }
8726 ac_cv_sizeof_void_p=0
8729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8734 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8738 cat >>confdefs.h <<_ACEOF
8739 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8743 { echo "$as_me:$LINENO: checking for short" >&5
8744 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8745 if test "${ac_cv_type_short+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 cat >conftest.$ac_ext <<_ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 $ac_includes_default
8755 typedef short ac__type_new_;
8759 if ((ac__type_new_ *) 0)
8761 if (sizeof (ac__type_new_))
8767 rm -f conftest.$ac_objext
8768 if { (ac_try="$ac_compile"
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8776 grep -v '^
*+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 ac_cv_type_short=yes
8786 echo "$as_me: failed program was:" >&5
8787 sed 's
/^
/|
/' conftest.$ac_ext >&5
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8795 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8797 # The cast to long int works around a bug in the HP C Compiler
8798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8800 # This bug is HP SR number 8606223364.
8801 { echo "$as_me:$LINENO: checking size of short" >&5
8802 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8803 if test "${ac_cv_sizeof_short+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 if test "$cross_compiling" = yes; then
8807 # Depending upon the size, compute the lo and hi bounds.
8808 cat >conftest.
$ac_ext <<_ACEOF
8811 cat confdefs.h
>>conftest.
$ac_ext
8812 cat >>conftest.
$ac_ext <<_ACEOF
8813 /* end confdefs.h. */
8814 $ac_includes_default
8815 typedef short ac__type_sizeof_;
8819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8826 rm -f conftest.
$ac_objext
8827 if { (ac_try
="$ac_compile"
8829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_compile") 2>conftest.er1
8835 grep -v '^ *+' conftest.er1 >conftest.err
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } && {
8840 test -z "$ac_c_werror_flag" ||
8841 test ! -s conftest.err
8842 } && test -s conftest.$ac_objext; then
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 $ac_includes_default
8852 typedef short ac__type_sizeof_;
8856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8867 *) ac_try_echo
=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8872 grep -v '^ *+' conftest.er1
>conftest.err
8874 cat conftest.err
>&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.
$ac_objext; then
8880 ac_hi
=$ac_mid; break
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.
$ac_ext >&5
8885 ac_lo
=`expr $ac_mid + 1`
8886 if test $ac_lo -le $ac_mid; then
8890 ac_mid
=`expr 2 '*' $ac_mid + 1`
8893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.
$ac_ext >&5
8899 cat >conftest.
$ac_ext <<_ACEOF
8902 cat confdefs.h
>>conftest.
$ac_ext
8903 cat >>conftest.
$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 $ac_includes_default
8906 typedef short ac__type_sizeof_;
8910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8917 rm -f conftest.
$ac_objext
8918 if { (ac_try
="$ac_compile"
8920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8921 *) ac_try_echo=$ac_try;;
8923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8926 grep -v '^ *+' conftest.er1 >conftest.err
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest.$ac_objext; then
8936 cat >conftest.$ac_ext <<_ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 typedef short ac__type_sizeof_;
8947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8954 rm -f conftest.$ac_objext
8955 if { (ac_try="$ac_compile"
8957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8958 *) ac_try_echo
=$ac_try;;
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_compile") 2>conftest.er1
8963 grep -v '^ *+' conftest.er1
>conftest.err
8965 cat conftest.err
>&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest.
$ac_objext; then
8971 ac_lo
=$ac_mid; break
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.
$ac_ext >&5
8976 ac_hi
=`expr '(' $ac_mid ')' - 1`
8977 if test $ac_mid -le $ac_hi; then
8981 ac_mid
=`expr 2 '*' $ac_mid`
8984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.
$ac_ext >&5
8993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8997 # Binary search between lo and hi bounds.
8998 while test "x$ac_lo" != "x$ac_hi"; do
8999 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9000 cat >conftest.
$ac_ext <<_ACEOF
9003 cat confdefs.h
>>conftest.
$ac_ext
9004 cat >>conftest.
$ac_ext <<_ACEOF
9005 /* end confdefs.h. */
9006 $ac_includes_default
9007 typedef short ac__type_sizeof_;
9011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9018 rm -f conftest.
$ac_objext
9019 if { (ac_try
="$ac_compile"
9021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_compile") 2>conftest.er1
9027 grep -v '^ *+' conftest.er1 >conftest.err
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } && {
9032 test -z "$ac_c_werror_flag" ||
9033 test ! -s conftest.err
9034 } && test -s conftest.$ac_objext; then
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9040 ac_lo=`expr '(' $ac_mid ')' + 1`
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9046 ?*) ac_cv_sizeof_short=$ac_lo;;
9047 '') if test "$ac_cv_type_short" = yes; then
9048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9049 See \`config.log
' for more details." >&5
9050 echo "$as_me: error: cannot compute sizeof (short)
9051 See \`config.log' for more details.
" >&2;}
9052 { (exit 77); exit 77; }; }
9054 ac_cv_sizeof_short=0
9058 cat >conftest.$ac_ext <<_ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9065 typedef short ac__type_sizeof_;
9066 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9067 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9074 FILE *f = fopen ("conftest.val
", "w
");
9077 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9079 long int i = longval ();
9080 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9082 fprintf (f, "%ld
\n", i);
9086 unsigned long int i = ulongval ();
9087 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9089 fprintf (f, "%lu
\n", i);
9091 return ferror (f) || fclose (f) != 0;
9097 rm -f conftest$ac_exeext
9098 if { (ac_try="$ac_link"
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_link") 2>&5
9106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_sizeof_short=`cat conftest.val`
9119 echo "$as_me: program exited with status
$ac_status" >&5
9120 echo "$as_me: failed program was
:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9124 if test "$ac_cv_type_short" = yes; then
9125 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9126 See \
`config.log' for more details." >&5
9127 echo "$as_me: error: cannot compute sizeof (short)
9128 See \`config.log
' for more details." >&2;}
9129 { (exit 77); exit 77; }; }
9131 ac_cv_sizeof_short=0
9134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9138 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9139 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9143 cat >>confdefs.h <<_ACEOF
9144 #define SIZEOF_SHORT $ac_cv_sizeof_short
9148 { echo "$as_me:$LINENO: checking for float" >&5
9149 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9150 if test "${ac_cv_type_float+set}" = set; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 cat >conftest.$ac_ext <<_ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 $ac_includes_default
9160 typedef float ac__type_new_;
9164 if ((ac__type_new_ *) 0)
9166 if (sizeof (ac__type_new_))
9172 rm -f conftest.$ac_objext
9173 if { (ac_try="$ac_compile"
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9181 grep -v '^
*+' conftest.er1 >conftest.err
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest.$ac_objext; then
9189 ac_cv_type_float=yes
9191 echo "$as_me: failed program was:" >&5
9192 sed 's
/^
/|
/' conftest.$ac_ext >&5
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9199 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9200 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9202 # The cast to long int works around a bug in the HP C Compiler
9203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9205 # This bug is HP SR number 8606223364.
9206 { echo "$as_me:$LINENO: checking size of float" >&5
9207 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9208 if test "${ac_cv_sizeof_float+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 if test "$cross_compiling" = yes; then
9212 # Depending upon the size, compute the lo and hi bounds.
9213 cat >conftest.
$ac_ext <<_ACEOF
9216 cat confdefs.h
>>conftest.
$ac_ext
9217 cat >>conftest.
$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219 $ac_includes_default
9220 typedef float ac__type_sizeof_;
9224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9231 rm -f conftest.
$ac_objext
9232 if { (ac_try
="$ac_compile"
9234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_compile") 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } && {
9245 test -z "$ac_c_werror_flag" ||
9246 test ! -s conftest.err
9247 } && test -s conftest.$ac_objext; then
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 $ac_includes_default
9257 typedef float ac__type_sizeof_;
9261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9272 *) ac_try_echo
=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_compile") 2>conftest.er1
9277 grep -v '^ *+' conftest.er1
>conftest.err
9279 cat conftest.err
>&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest.
$ac_objext; then
9285 ac_hi
=$ac_mid; break
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.
$ac_ext >&5
9290 ac_lo
=`expr $ac_mid + 1`
9291 if test $ac_lo -le $ac_mid; then
9295 ac_mid
=`expr 2 '*' $ac_mid + 1`
9298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.
$ac_ext >&5
9304 cat >conftest.
$ac_ext <<_ACEOF
9307 cat confdefs.h
>>conftest.
$ac_ext
9308 cat >>conftest.
$ac_ext <<_ACEOF
9309 /* end confdefs.h. */
9310 $ac_includes_default
9311 typedef float ac__type_sizeof_;
9315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9322 rm -f conftest.
$ac_objext
9323 if { (ac_try
="$ac_compile"
9325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9326 *) ac_try_echo=$ac_try;;
9328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9329 (eval "$ac_compile") 2>conftest.er1
9331 grep -v '^ *+' conftest.er1 >conftest.err
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } && {
9336 test -z "$ac_c_werror_flag" ||
9337 test ! -s conftest.err
9338 } && test -s conftest.$ac_objext; then
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 $ac_includes_default
9348 typedef float ac__type_sizeof_;
9352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9363 *) ac_try_echo
=$ac_try;;
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9368 grep -v '^ *+' conftest.er1
>conftest.err
9370 cat conftest.err
>&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.
$ac_objext; then
9376 ac_lo
=$ac_mid; break
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.
$ac_ext >&5
9381 ac_hi
=`expr '(' $ac_mid ')' - 1`
9382 if test $ac_mid -le $ac_hi; then
9386 ac_mid
=`expr 2 '*' $ac_mid`
9389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.
$ac_ext >&5
9398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9402 # Binary search between lo and hi bounds.
9403 while test "x$ac_lo" != "x$ac_hi"; do
9404 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9405 cat >conftest.
$ac_ext <<_ACEOF
9408 cat confdefs.h
>>conftest.
$ac_ext
9409 cat >>conftest.
$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 $ac_includes_default
9412 typedef float ac__type_sizeof_;
9416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9423 rm -f conftest.
$ac_objext
9424 if { (ac_try
="$ac_compile"
9426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9427 *) ac_try_echo=$ac_try;;
9429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9430 (eval "$ac_compile") 2>conftest.er1
9432 grep -v '^ *+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest.$ac_objext; then
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 ac_lo=`expr '(' $ac_mid ')' + 1`
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 ?*) ac_cv_sizeof_float=$ac_lo;;
9452 '') if test "$ac_cv_type_float" = yes; then
9453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9454 See \`config.log
' for more details." >&5
9455 echo "$as_me: error: cannot compute sizeof (float)
9456 See \`config.log' for more details.
" >&2;}
9457 { (exit 77); exit 77; }; }
9459 ac_cv_sizeof_float=0
9463 cat >conftest.$ac_ext <<_ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 $ac_includes_default
9470 typedef float ac__type_sizeof_;
9471 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9472 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9479 FILE *f = fopen ("conftest.val
", "w
");
9482 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9484 long int i = longval ();
9485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9487 fprintf (f, "%ld
\n", i);
9491 unsigned long int i = ulongval ();
9492 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9494 fprintf (f, "%lu
\n", i);
9496 return ferror (f) || fclose (f) != 0;
9502 rm -f conftest$ac_exeext
9503 if { (ac_try="$ac_link"
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_link") 2>&5
9511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9513 { (case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_try") 2>&5
9520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9521 (exit $ac_status); }; }; then
9522 ac_cv_sizeof_float=`cat conftest.val`
9524 echo "$as_me: program exited with status
$ac_status" >&5
9525 echo "$as_me: failed program was
:" >&5
9526 sed 's/^/| /' conftest.$ac_ext >&5
9529 if test "$ac_cv_type_float" = yes; then
9530 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9531 See \
`config.log' for more details." >&5
9532 echo "$as_me: error: cannot compute sizeof (float)
9533 See \`config.log
' for more details." >&2;}
9534 { (exit 77); exit 77; }; }
9536 ac_cv_sizeof_float=0
9539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9543 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9544 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9548 cat >>confdefs.h <<_ACEOF
9549 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9553 { echo "$as_me:$LINENO: checking for double" >&5
9554 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9555 if test "${ac_cv_type_double+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 $ac_includes_default
9565 typedef double ac__type_new_;
9569 if ((ac__type_new_ *) 0)
9571 if (sizeof (ac__type_new_))
9577 rm -f conftest.$ac_objext
9578 if { (ac_try="$ac_compile"
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_compile") 2>conftest.er1
9586 grep -v '^
*+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } && {
9591 test -z "$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 } && test -s conftest.$ac_objext; then
9594 ac_cv_type_double=yes
9596 echo "$as_me: failed program was:" >&5
9597 sed 's
/^
/|
/' conftest.$ac_ext >&5
9599 ac_cv_type_double=no
9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9604 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9605 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9607 # The cast to long int works around a bug in the HP C Compiler
9608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9610 # This bug is HP SR number 8606223364.
9611 { echo "$as_me:$LINENO: checking size of double" >&5
9612 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9613 if test "${ac_cv_sizeof_double+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 if test "$cross_compiling" = yes; then
9617 # Depending upon the size, compute the lo and hi bounds.
9618 cat >conftest.
$ac_ext <<_ACEOF
9621 cat confdefs.h
>>conftest.
$ac_ext
9622 cat >>conftest.
$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 $ac_includes_default
9625 typedef double ac__type_sizeof_;
9629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9636 rm -f conftest.
$ac_objext
9637 if { (ac_try
="$ac_compile"
9639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_compile") 2>conftest.er1
9645 grep -v '^ *+' conftest.er1 >conftest.err
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest.$ac_objext; then
9655 cat >conftest.$ac_ext <<_ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 $ac_includes_default
9662 typedef double ac__type_sizeof_;
9666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9673 rm -f conftest.$ac_objext
9674 if { (ac_try="$ac_compile"
9676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9677 *) ac_try_echo
=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_compile") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1
>conftest.err
9684 cat conftest.err
>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest.
$ac_objext; then
9690 ac_hi
=$ac_mid; break
9692 echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.
$ac_ext >&5
9695 ac_lo
=`expr $ac_mid + 1`
9696 if test $ac_lo -le $ac_mid; then
9700 ac_mid
=`expr 2 '*' $ac_mid + 1`
9703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.
$ac_ext >&5
9709 cat >conftest.
$ac_ext <<_ACEOF
9712 cat confdefs.h
>>conftest.
$ac_ext
9713 cat >>conftest.
$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 $ac_includes_default
9716 typedef double ac__type_sizeof_;
9720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9727 rm -f conftest.
$ac_objext
9728 if { (ac_try
="$ac_compile"
9730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_compile") 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && {
9741 test -z "$ac_c_werror_flag" ||
9742 test ! -s conftest.err
9743 } && test -s conftest.$ac_objext; then
9746 cat >conftest.$ac_ext <<_ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 $ac_includes_default
9753 typedef double ac__type_sizeof_;
9757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9768 *) ac_try_echo
=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1
>conftest.err
9775 cat conftest.err
>&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest.
$ac_objext; then
9781 ac_lo
=$ac_mid; break
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.
$ac_ext >&5
9786 ac_hi
=`expr '(' $ac_mid ')' - 1`
9787 if test $ac_mid -le $ac_hi; then
9791 ac_mid
=`expr 2 '*' $ac_mid`
9794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.
$ac_ext >&5
9803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9807 # Binary search between lo and hi bounds.
9808 while test "x$ac_lo" != "x$ac_hi"; do
9809 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9810 cat >conftest.
$ac_ext <<_ACEOF
9813 cat confdefs.h
>>conftest.
$ac_ext
9814 cat >>conftest.
$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 $ac_includes_default
9817 typedef double ac__type_sizeof_;
9821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9828 rm -f conftest.
$ac_objext
9829 if { (ac_try
="$ac_compile"
9831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_compile") 2>conftest.er1
9837 grep -v '^ *+' conftest.er1 >conftest.err
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest.$ac_objext; then
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_lo=`expr '(' $ac_mid ')' + 1`
9853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 ?*) ac_cv_sizeof_double=$ac_lo;;
9857 '') if test "$ac_cv_type_double" = yes; then
9858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9859 See \`config.log
' for more details." >&5
9860 echo "$as_me: error: cannot compute sizeof (double)
9861 See \`config.log' for more details.
" >&2;}
9862 { (exit 77); exit 77; }; }
9864 ac_cv_sizeof_double=0
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 $ac_includes_default
9875 typedef double ac__type_sizeof_;
9876 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9877 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9884 FILE *f = fopen ("conftest.val
", "w
");
9887 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9889 long int i = longval ();
9890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9892 fprintf (f, "%ld
\n", i);
9896 unsigned long int i = ulongval ();
9897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9899 fprintf (f, "%lu
\n", i);
9901 return ferror (f) || fclose (f) != 0;
9907 rm -f conftest$ac_exeext
9908 if { (ac_try="$ac_link"
9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911 *) ac_try_echo=$ac_try;;
9913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_link") 2>&5
9916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_sizeof_double=`cat conftest.val`
9929 echo "$as_me: program exited with status
$ac_status" >&5
9930 echo "$as_me: failed program was
:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9934 if test "$ac_cv_type_double" = yes; then
9935 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9936 See \
`config.log' for more details." >&5
9937 echo "$as_me: error: cannot compute sizeof (double)
9938 See \`config.log
' for more details." >&2;}
9939 { (exit 77); exit 77; }; }
9941 ac_cv_sizeof_double=0
9944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9948 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9949 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9953 cat >>confdefs.h <<_ACEOF
9954 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9958 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9959 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9960 if test "${ac_cv_type_fpos_t+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 cat >conftest.$ac_ext <<_ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 typedef fpos_t ac__type_new_;
9974 if ((ac__type_new_ *) 0)
9976 if (sizeof (ac__type_new_))
9982 rm -f conftest.$ac_objext
9983 if { (ac_try="$ac_compile"
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_compile") 2>conftest.er1
9991 grep -v '^
*+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } && {
9996 test -z "$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 } && test -s conftest.$ac_objext; then
9999 ac_cv_type_fpos_t=yes
10001 echo "$as_me: failed program was:" >&5
10002 sed 's
/^
/|
/' conftest.$ac_ext >&5
10004 ac_cv_type_fpos_t=no
10007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10009 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10010 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10012 # The cast to long int works around a bug in the HP C Compiler
10013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10015 # This bug is HP SR number 8606223364.
10016 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10017 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10018 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 if test "$cross_compiling" = yes; then
10022 # Depending upon the size, compute the lo and hi bounds.
10023 cat >conftest.
$ac_ext <<_ACEOF
10026 cat confdefs.h
>>conftest.
$ac_ext
10027 cat >>conftest.
$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 $ac_includes_default
10030 typedef fpos_t ac__type_sizeof_;
10034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10041 rm -f conftest.
$ac_objext
10042 if { (ac_try
="$ac_compile"
10043 case "(($ac_try" in
10044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_compile") 2>conftest.er1
10050 grep -v '^ *+' conftest.er1 >conftest.err
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } && {
10055 test -z "$ac_c_werror_flag" ||
10056 test ! -s conftest.err
10057 } && test -s conftest.$ac_objext; then
10060 cat >conftest.$ac_ext <<_ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 $ac_includes_default
10067 typedef fpos_t ac__type_sizeof_;
10071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10078 rm -f conftest.$ac_objext
10079 if { (ac_try="$ac_compile"
10080 case "(($ac_try" in
10081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10082 *) ac_try_echo
=$ac_try;;
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_compile") 2>conftest.er1
10087 grep -v '^ *+' conftest.er1
>conftest.err
10089 cat conftest.err
>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && {
10092 test -z "$ac_c_werror_flag" ||
10093 test ! -s conftest.err
10094 } && test -s conftest.
$ac_objext; then
10095 ac_hi
=$ac_mid; break
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.
$ac_ext >&5
10100 ac_lo
=`expr $ac_mid + 1`
10101 if test $ac_lo -le $ac_mid; then
10105 ac_mid
=`expr 2 '*' $ac_mid + 1`
10108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.
$ac_ext >&5
10114 cat >conftest.
$ac_ext <<_ACEOF
10117 cat confdefs.h
>>conftest.
$ac_ext
10118 cat >>conftest.
$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 $ac_includes_default
10121 typedef fpos_t ac__type_sizeof_;
10125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10132 rm -f conftest.
$ac_objext
10133 if { (ac_try
="$ac_compile"
10134 case "(($ac_try" in
10135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_compile") 2>conftest.er1
10141 grep -v '^ *+' conftest.er1 >conftest.err
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && {
10146 test -z "$ac_c_werror_flag" ||
10147 test ! -s conftest.err
10148 } && test -s conftest.$ac_objext; then
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 $ac_includes_default
10158 typedef fpos_t ac__type_sizeof_;
10162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10169 rm -f conftest.$ac_objext
10170 if { (ac_try="$ac_compile"
10171 case "(($ac_try" in
10172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10173 *) ac_try_echo
=$ac_try;;
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10178 grep -v '^ *+' conftest.er1
>conftest.err
10180 cat conftest.err
>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.
$ac_objext; then
10186 ac_lo
=$ac_mid; break
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.
$ac_ext >&5
10191 ac_hi
=`expr '(' $ac_mid ')' - 1`
10192 if test $ac_mid -le $ac_hi; then
10196 ac_mid
=`expr 2 '*' $ac_mid`
10199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.
$ac_ext >&5
10208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10212 # Binary search between lo and hi bounds.
10213 while test "x$ac_lo" != "x$ac_hi"; do
10214 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10215 cat >conftest.
$ac_ext <<_ACEOF
10218 cat confdefs.h
>>conftest.
$ac_ext
10219 cat >>conftest.
$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10221 $ac_includes_default
10222 typedef fpos_t ac__type_sizeof_;
10226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10233 rm -f conftest.
$ac_objext
10234 if { (ac_try
="$ac_compile"
10235 case "(($ac_try" in
10236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_compile") 2>conftest.er1
10242 grep -v '^ *+' conftest.er1 >conftest.err
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest.$ac_objext; then
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10255 ac_lo=`expr '(' $ac_mid ')' + 1`
10258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10261 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10262 '') if test "$ac_cv_type_fpos_t" = yes; then
10263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10264 See \`config.log
' for more details." >&5
10265 echo "$as_me: error: cannot compute sizeof (fpos_t)
10266 See \`config.log' for more details.
" >&2;}
10267 { (exit 77); exit 77; }; }
10269 ac_cv_sizeof_fpos_t=0
10273 cat >conftest.$ac_ext <<_ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 $ac_includes_default
10280 typedef fpos_t ac__type_sizeof_;
10281 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10282 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10284 #include <stdlib.h>
10289 FILE *f = fopen ("conftest.val
", "w
");
10292 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10294 long int i = longval ();
10295 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10297 fprintf (f, "%ld
\n", i);
10301 unsigned long int i = ulongval ();
10302 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10304 fprintf (f, "%lu
\n", i);
10306 return ferror (f) || fclose (f) != 0;
10312 rm -f conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10316 *) ac_try_echo=$ac_try;;
10318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>&5
10321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10323 { (case "(($ac_try" in
10324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325 *) ac_try_echo=$ac_try;;
10327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10328 (eval "$ac_try") 2>&5
10330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_cv_sizeof_fpos_t=`cat conftest.val`
10334 echo "$as_me: program exited with status
$ac_status" >&5
10335 echo "$as_me: failed program was
:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10338 ( exit $ac_status )
10339 if test "$ac_cv_type_fpos_t" = yes; then
10340 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10341 See \
`config.log' for more details." >&5
10342 echo "$as_me: error: cannot compute sizeof (fpos_t)
10343 See \`config.log
' for more details." >&2;}
10344 { (exit 77); exit 77; }; }
10346 ac_cv_sizeof_fpos_t=0
10349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10353 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10354 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10358 cat >>confdefs.h <<_ACEOF
10359 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10363 { echo "$as_me:$LINENO: checking for size_t" >&5
10364 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10365 if test "${ac_cv_type_size_t+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 cat >conftest.$ac_ext <<_ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 $ac_includes_default
10375 typedef size_t ac__type_new_;
10379 if ((ac__type_new_ *) 0)
10381 if (sizeof (ac__type_new_))
10387 rm -f conftest.$ac_objext
10388 if { (ac_try="$ac_compile"
10389 case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10396 grep -v '^
*+' conftest.er1 >conftest.err
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.$ac_objext; then
10404 ac_cv_type_size_t=yes
10406 echo "$as_me: failed program was:" >&5
10407 sed 's
/^
/|
/' conftest.$ac_ext >&5
10409 ac_cv_type_size_t=no
10412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10414 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10415 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10417 # The cast to long int works around a bug in the HP C Compiler
10418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10420 # This bug is HP SR number 8606223364.
10421 { echo "$as_me:$LINENO: checking size of size_t" >&5
10422 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10423 if test "${ac_cv_sizeof_size_t+set}" = set; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10426 if test "$cross_compiling" = yes; then
10427 # Depending upon the size, compute the lo and hi bounds.
10428 cat >conftest.
$ac_ext <<_ACEOF
10431 cat confdefs.h
>>conftest.
$ac_ext
10432 cat >>conftest.
$ac_ext <<_ACEOF
10433 /* end confdefs.h. */
10434 $ac_includes_default
10435 typedef size_t ac__type_sizeof_;
10439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10446 rm -f conftest.
$ac_objext
10447 if { (ac_try
="$ac_compile"
10448 case "(($ac_try" in
10449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_compile") 2>conftest.er1
10455 grep -v '^ *+' conftest.er1 >conftest.err
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest.$ac_objext; then
10465 cat >conftest.$ac_ext <<_ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 $ac_includes_default
10472 typedef size_t ac__type_sizeof_;
10476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10483 rm -f conftest.$ac_objext
10484 if { (ac_try="$ac_compile"
10485 case "(($ac_try" in
10486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10487 *) ac_try_echo
=$ac_try;;
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_compile") 2>conftest.er1
10492 grep -v '^ *+' conftest.er1
>conftest.err
10494 cat conftest.err
>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && {
10497 test -z "$ac_c_werror_flag" ||
10498 test ! -s conftest.err
10499 } && test -s conftest.
$ac_objext; then
10500 ac_hi
=$ac_mid; break
10502 echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.
$ac_ext >&5
10505 ac_lo
=`expr $ac_mid + 1`
10506 if test $ac_lo -le $ac_mid; then
10510 ac_mid
=`expr 2 '*' $ac_mid + 1`
10513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.
$ac_ext >&5
10519 cat >conftest.
$ac_ext <<_ACEOF
10522 cat confdefs.h
>>conftest.
$ac_ext
10523 cat >>conftest.
$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525 $ac_includes_default
10526 typedef size_t ac__type_sizeof_;
10530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10537 rm -f conftest.
$ac_objext
10538 if { (ac_try
="$ac_compile"
10539 case "(($ac_try" in
10540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_compile") 2>conftest.er1
10546 grep -v '^ *+' conftest.er1 >conftest.err
10548 cat conftest.err >&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } && {
10551 test -z "$ac_c_werror_flag" ||
10552 test ! -s conftest.err
10553 } && test -s conftest.$ac_objext; then
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10563 typedef size_t ac__type_sizeof_;
10567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10574 rm -f conftest.$ac_objext
10575 if { (ac_try="$ac_compile"
10576 case "(($ac_try" in
10577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10578 *) ac_try_echo
=$ac_try;;
10580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_compile") 2>conftest.er1
10583 grep -v '^ *+' conftest.er1
>conftest.err
10585 cat conftest.err
>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest.
$ac_objext; then
10591 ac_lo
=$ac_mid; break
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.
$ac_ext >&5
10596 ac_hi
=`expr '(' $ac_mid ')' - 1`
10597 if test $ac_mid -le $ac_hi; then
10601 ac_mid
=`expr 2 '*' $ac_mid`
10604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10607 echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.
$ac_ext >&5
10613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10617 # Binary search between lo and hi bounds.
10618 while test "x$ac_lo" != "x$ac_hi"; do
10619 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10620 cat >conftest.
$ac_ext <<_ACEOF
10623 cat confdefs.h
>>conftest.
$ac_ext
10624 cat >>conftest.
$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10626 $ac_includes_default
10627 typedef size_t ac__type_sizeof_;
10631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10638 rm -f conftest.
$ac_objext
10639 if { (ac_try
="$ac_compile"
10640 case "(($ac_try" in
10641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_compile") 2>conftest.er1
10647 grep -v '^ *+' conftest.er1 >conftest.err
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest.$ac_objext; then
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_lo=`expr '(' $ac_mid ')' + 1`
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10666 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10667 '') if test "$ac_cv_type_size_t" = yes; then
10668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10669 See \`config.log
' for more details." >&5
10670 echo "$as_me: error: cannot compute sizeof (size_t)
10671 See \`config.log' for more details.
" >&2;}
10672 { (exit 77); exit 77; }; }
10674 ac_cv_sizeof_size_t=0
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 $ac_includes_default
10685 typedef size_t ac__type_sizeof_;
10686 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10687 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10689 #include <stdlib.h>
10694 FILE *f = fopen ("conftest.val
", "w
");
10697 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10699 long int i = longval ();
10700 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10702 fprintf (f, "%ld
\n", i);
10706 unsigned long int i = ulongval ();
10707 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10709 fprintf (f, "%lu
\n", i);
10711 return ferror (f) || fclose (f) != 0;
10717 rm -f conftest$ac_exeext
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_link") 2>&5
10726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10728 { (case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_try") 2>&5
10735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10736 (exit $ac_status); }; }; then
10737 ac_cv_sizeof_size_t=`cat conftest.val`
10739 echo "$as_me: program exited with status
$ac_status" >&5
10740 echo "$as_me: failed program was
:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10743 ( exit $ac_status )
10744 if test "$ac_cv_type_size_t" = yes; then
10745 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10746 See \
`config.log' for more details." >&5
10747 echo "$as_me: error: cannot compute sizeof (size_t)
10748 See \`config.log
' for more details." >&2;}
10749 { (exit 77); exit 77; }; }
10751 ac_cv_sizeof_size_t=0
10754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10758 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10759 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10763 cat >>confdefs.h <<_ACEOF
10764 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10768 { echo "$as_me:$LINENO: checking for pid_t" >&5
10769 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10770 if test "${ac_cv_type_pid_t+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10779 $ac_includes_default
10780 typedef pid_t ac__type_new_;
10784 if ((ac__type_new_ *) 0)
10786 if (sizeof (ac__type_new_))
10792 rm -f conftest.$ac_objext
10793 if { (ac_try="$ac_compile"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_compile") 2>conftest.er1
10801 grep -v '^
*+' conftest.er1 >conftest.err
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest.$ac_objext; then
10809 ac_cv_type_pid_t=yes
10811 echo "$as_me: failed program was:" >&5
10812 sed 's
/^
/|
/' conftest.$ac_ext >&5
10814 ac_cv_type_pid_t=no
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10820 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10822 # The cast to long int works around a bug in the HP C Compiler
10823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10825 # This bug is HP SR number 8606223364.
10826 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10827 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10828 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 if test "$cross_compiling" = yes; then
10832 # Depending upon the size, compute the lo and hi bounds.
10833 cat >conftest.
$ac_ext <<_ACEOF
10836 cat confdefs.h
>>conftest.
$ac_ext
10837 cat >>conftest.
$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839 $ac_includes_default
10840 typedef pid_t ac__type_sizeof_;
10844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10851 rm -f conftest.
$ac_objext
10852 if { (ac_try
="$ac_compile"
10853 case "(($ac_try" in
10854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_compile") 2>conftest.er1
10860 grep -v '^ *+' conftest.er1 >conftest.err
10862 cat conftest.err >&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest.$ac_objext; then
10870 cat >conftest.$ac_ext <<_ACEOF
10873 cat confdefs.h >>conftest.$ac_ext
10874 cat >>conftest.$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 $ac_includes_default
10877 typedef pid_t ac__type_sizeof_;
10881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10892 *) ac_try_echo
=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1
>conftest.err
10899 cat conftest.err
>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest.
$ac_objext; then
10905 ac_hi
=$ac_mid; break
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.
$ac_ext >&5
10910 ac_lo
=`expr $ac_mid + 1`
10911 if test $ac_lo -le $ac_mid; then
10915 ac_mid
=`expr 2 '*' $ac_mid + 1`
10918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.
$ac_ext >&5
10924 cat >conftest.
$ac_ext <<_ACEOF
10927 cat confdefs.h
>>conftest.
$ac_ext
10928 cat >>conftest.
$ac_ext <<_ACEOF
10929 /* end confdefs.h. */
10930 $ac_includes_default
10931 typedef pid_t ac__type_sizeof_;
10935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10942 rm -f conftest.
$ac_objext
10943 if { (ac_try
="$ac_compile"
10944 case "(($ac_try" in
10945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_compile") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest.$ac_objext; then
10961 cat >conftest.$ac_ext <<_ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 $ac_includes_default
10968 typedef pid_t ac__type_sizeof_;
10972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10979 rm -f conftest.$ac_objext
10980 if { (ac_try="$ac_compile"
10981 case "(($ac_try" in
10982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10983 *) ac_try_echo
=$ac_try;;
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_compile") 2>conftest.er1
10988 grep -v '^ *+' conftest.er1
>conftest.err
10990 cat conftest.err
>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_c_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest.
$ac_objext; then
10996 ac_lo
=$ac_mid; break
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.
$ac_ext >&5
11001 ac_hi
=`expr '(' $ac_mid ')' - 1`
11002 if test $ac_mid -le $ac_hi; then
11006 ac_mid
=`expr 2 '*' $ac_mid`
11009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.
$ac_ext >&5
11018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11022 # Binary search between lo and hi bounds.
11023 while test "x$ac_lo" != "x$ac_hi"; do
11024 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11025 cat >conftest.
$ac_ext <<_ACEOF
11028 cat confdefs.h
>>conftest.
$ac_ext
11029 cat >>conftest.
$ac_ext <<_ACEOF
11030 /* end confdefs.h. */
11031 $ac_includes_default
11032 typedef pid_t ac__type_sizeof_;
11036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11043 rm -f conftest.
$ac_objext
11044 if { (ac_try
="$ac_compile"
11045 case "(($ac_try" in
11046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_compile") 2>conftest.er1
11052 grep -v '^ *+' conftest.er1 >conftest.err
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } && {
11057 test -z "$ac_c_werror_flag" ||
11058 test ! -s conftest.err
11059 } && test -s conftest.$ac_objext; then
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 ac_lo=`expr '(' $ac_mid ')' + 1`
11068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11072 '') if test "$ac_cv_type_pid_t" = yes; then
11073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11074 See \`config.log
' for more details." >&5
11075 echo "$as_me: error: cannot compute sizeof (pid_t)
11076 See \`config.log' for more details.
" >&2;}
11077 { (exit 77); exit 77; }; }
11079 ac_cv_sizeof_pid_t=0
11083 cat >conftest.$ac_ext <<_ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 $ac_includes_default
11090 typedef pid_t ac__type_sizeof_;
11091 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11092 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11094 #include <stdlib.h>
11099 FILE *f = fopen ("conftest.val
", "w
");
11102 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11104 long int i = longval ();
11105 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11107 fprintf (f, "%ld
\n", i);
11111 unsigned long int i = ulongval ();
11112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11114 fprintf (f, "%lu
\n", i);
11116 return ferror (f) || fclose (f) != 0;
11122 rm -f conftest$ac_exeext
11123 if { (ac_try="$ac_link"
11124 case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_link") 2>&5
11131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_cv_sizeof_pid_t=`cat conftest.val`
11144 echo "$as_me: program exited with status
$ac_status" >&5
11145 echo "$as_me: failed program was
:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ( exit $ac_status )
11149 if test "$ac_cv_type_pid_t" = yes; then
11150 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11151 See \
`config.log' for more details." >&5
11152 echo "$as_me: error: cannot compute sizeof (pid_t)
11153 See \`config.log
' for more details." >&2;}
11154 { (exit 77); exit 77; }; }
11156 ac_cv_sizeof_pid_t=0
11159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11163 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11164 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11168 cat >>confdefs.h <<_ACEOF
11169 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11174 { echo "$as_me:$LINENO: checking for long long support" >&5
11175 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11177 cat >conftest.$ac_ext <<_ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11187 long long x; x = (long long)0;
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11201 grep -v '^
*+' conftest.er1 >conftest.err
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest.$ac_objext; then
11211 cat >>confdefs.h <<\_ACEOF
11212 #define HAVE_LONG_LONG 1
11218 echo "$as_me: failed program was:" >&5
11219 sed 's
/^
/|
/' conftest.$ac_ext >&5
11224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11226 echo "${ECHO_T}$have_long_long" >&6; }
11227 if test "$have_long_long" = yes ; then
11228 { echo "$as_me:$LINENO: checking for long long" >&5
11229 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11230 if test "${ac_cv_type_long_long+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 cat >conftest.$ac_ext <<_ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 $ac_includes_default
11240 typedef long long ac__type_new_;
11244 if ((ac__type_new_ *) 0)
11246 if (sizeof (ac__type_new_))
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^
*+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest.$ac_objext; then
11269 ac_cv_type_long_long=yes
11271 echo "$as_me: failed program was:" >&5
11272 sed 's
/^
/|
/' conftest.$ac_ext >&5
11274 ac_cv_type_long_long=no
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11280 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11282 # The cast to long int works around a bug in the HP C Compiler
11283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11285 # This bug is HP SR number 8606223364.
11286 { echo "$as_me:$LINENO: checking size of long long" >&5
11287 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11288 if test "${ac_cv_sizeof_long_long+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 if test "$cross_compiling" = yes; then
11292 # Depending upon the size, compute the lo and hi bounds.
11293 cat >conftest.
$ac_ext <<_ACEOF
11296 cat confdefs.h
>>conftest.
$ac_ext
11297 cat >>conftest.
$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 $ac_includes_default
11300 typedef long long ac__type_sizeof_;
11304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11311 rm -f conftest.
$ac_objext
11312 if { (ac_try
="$ac_compile"
11313 case "(($ac_try" in
11314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_compile") 2>conftest.er1
11320 grep -v '^ *+' conftest.er1 >conftest.err
11322 cat conftest.err >&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } && {
11325 test -z "$ac_c_werror_flag" ||
11326 test ! -s conftest.err
11327 } && test -s conftest.$ac_objext; then
11330 cat >conftest.$ac_ext <<_ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 typedef long long ac__type_sizeof_;
11341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11348 rm -f conftest.$ac_objext
11349 if { (ac_try="$ac_compile"
11350 case "(($ac_try" in
11351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11352 *) ac_try_echo
=$ac_try;;
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_compile") 2>conftest.er1
11357 grep -v '^ *+' conftest.er1
>conftest.err
11359 cat conftest.err
>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } && {
11362 test -z "$ac_c_werror_flag" ||
11363 test ! -s conftest.err
11364 } && test -s conftest.
$ac_objext; then
11365 ac_hi
=$ac_mid; break
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.
$ac_ext >&5
11370 ac_lo
=`expr $ac_mid + 1`
11371 if test $ac_lo -le $ac_mid; then
11375 ac_mid
=`expr 2 '*' $ac_mid + 1`
11378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.
$ac_ext >&5
11384 cat >conftest.
$ac_ext <<_ACEOF
11387 cat confdefs.h
>>conftest.
$ac_ext
11388 cat >>conftest.
$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 $ac_includes_default
11391 typedef long long ac__type_sizeof_;
11395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11402 rm -f conftest.
$ac_objext
11403 if { (ac_try
="$ac_compile"
11404 case "(($ac_try" in
11405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11406 *) ac_try_echo=$ac_try;;
11408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11411 grep -v '^ *+' conftest.er1 >conftest.err
11413 cat conftest.err >&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11421 cat >conftest.$ac_ext <<_ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 $ac_includes_default
11428 typedef long long ac__type_sizeof_;
11432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11439 rm -f conftest.$ac_objext
11440 if { (ac_try="$ac_compile"
11441 case "(($ac_try" in
11442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11443 *) ac_try_echo
=$ac_try;;
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_compile") 2>conftest.er1
11448 grep -v '^ *+' conftest.er1
>conftest.err
11450 cat conftest.err
>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest.
$ac_objext; then
11456 ac_lo
=$ac_mid; break
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.
$ac_ext >&5
11461 ac_hi
=`expr '(' $ac_mid ')' - 1`
11462 if test $ac_mid -le $ac_hi; then
11466 ac_mid
=`expr 2 '*' $ac_mid`
11469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.
$ac_ext >&5
11478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11482 # Binary search between lo and hi bounds.
11483 while test "x$ac_lo" != "x$ac_hi"; do
11484 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11485 cat >conftest.
$ac_ext <<_ACEOF
11488 cat confdefs.h
>>conftest.
$ac_ext
11489 cat >>conftest.
$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 $ac_includes_default
11492 typedef long long ac__type_sizeof_;
11496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11503 rm -f conftest.
$ac_objext
11504 if { (ac_try
="$ac_compile"
11505 case "(($ac_try" in
11506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_compile") 2>conftest.er1
11512 grep -v '^ *+' conftest.er1 >conftest.err
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest.$ac_objext; then
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 ac_lo=`expr '(' $ac_mid ')' + 1`
11528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11532 '') if test "$ac_cv_type_long_long" = yes; then
11533 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11534 See \`config.log
' for more details." >&5
11535 echo "$as_me: error: cannot compute sizeof (long long)
11536 See \`config.log' for more details.
" >&2;}
11537 { (exit 77); exit 77; }; }
11539 ac_cv_sizeof_long_long=0
11543 cat >conftest.$ac_ext <<_ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 $ac_includes_default
11550 typedef long long ac__type_sizeof_;
11551 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11552 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11554 #include <stdlib.h>
11559 FILE *f = fopen ("conftest.val
", "w
");
11562 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11564 long int i = longval ();
11565 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11567 fprintf (f, "%ld
\n", i);
11571 unsigned long int i = ulongval ();
11572 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11574 fprintf (f, "%lu
\n", i);
11576 return ferror (f) || fclose (f) != 0;
11582 rm -f conftest$ac_exeext
11583 if { (ac_try="$ac_link"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_link") 2>&5
11591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11593 { (case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_try") 2>&5
11600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_sizeof_long_long=`cat conftest.val`
11604 echo "$as_me: program exited with status
$ac_status" >&5
11605 echo "$as_me: failed program was
:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11608 ( exit $ac_status )
11609 if test "$ac_cv_type_long_long" = yes; then
11610 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11611 See \
`config.log' for more details." >&5
11612 echo "$as_me: error: cannot compute sizeof (long long)
11613 See \`config.log
' for more details." >&2;}
11614 { (exit 77); exit 77; }; }
11616 ac_cv_sizeof_long_long=0
11619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11623 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11624 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11628 cat >>confdefs.h <<_ACEOF
11629 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11635 { echo "$as_me:$LINENO: checking for long double support" >&5
11636 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11637 have_long_double=no
11638 cat >conftest.$ac_ext <<_ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h. */
11648 long double x; x = (long double)0.;
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_compile") 2>conftest.er1
11662 grep -v '^
*+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && {
11667 test -z "$ac_c_werror_flag" ||
11668 test ! -s conftest.err
11669 } && test -s conftest.$ac_objext; then
11672 cat >>confdefs.h <<\_ACEOF
11673 #define HAVE_LONG_DOUBLE 1
11676 have_long_double=yes
11679 echo "$as_me: failed program was:" >&5
11680 sed 's
/^
/|
/' conftest.$ac_ext >&5
11685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11687 echo "${ECHO_T}$have_long_double" >&6; }
11688 if test "$have_long_double" = yes ; then
11689 { echo "$as_me:$LINENO: checking for long double" >&5
11690 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11691 if test "${ac_cv_type_long_double+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11694 cat >conftest.$ac_ext <<_ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 $ac_includes_default
11701 typedef long double ac__type_new_;
11705 if ((ac__type_new_ *) 0)
11707 if (sizeof (ac__type_new_))
11713 rm -f conftest.$ac_objext
11714 if { (ac_try="$ac_compile"
11715 case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_compile") 2>conftest.er1
11722 grep -v '^
*+' conftest.er1 >conftest.err
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest.$ac_objext; then
11730 ac_cv_type_long_double=yes
11732 echo "$as_me: failed program was:" >&5
11733 sed 's
/^
/|
/' conftest.$ac_ext >&5
11735 ac_cv_type_long_double=no
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11741 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11743 # The cast to long int works around a bug in the HP C Compiler
11744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11746 # This bug is HP SR number 8606223364.
11747 { echo "$as_me:$LINENO: checking size of long double" >&5
11748 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11749 if test "${ac_cv_sizeof_long_double+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 if test "$cross_compiling" = yes; then
11753 # Depending upon the size, compute the lo and hi bounds.
11754 cat >conftest.
$ac_ext <<_ACEOF
11757 cat confdefs.h
>>conftest.
$ac_ext
11758 cat >>conftest.
$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 $ac_includes_default
11761 typedef long double ac__type_sizeof_;
11765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11772 rm -f conftest.
$ac_objext
11773 if { (ac_try
="$ac_compile"
11774 case "(($ac_try" in
11775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11776 *) ac_try_echo=$ac_try;;
11778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11779 (eval "$ac_compile") 2>conftest.er1
11781 grep -v '^ *+' conftest.er1 >conftest.err
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } && {
11786 test -z "$ac_c_werror_flag" ||
11787 test ! -s conftest.err
11788 } && test -s conftest.$ac_objext; then
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 $ac_includes_default
11798 typedef long double ac__type_sizeof_;
11802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11809 rm -f conftest.$ac_objext
11810 if { (ac_try="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11813 *) ac_try_echo
=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11818 grep -v '^ *+' conftest.er1
>conftest.err
11820 cat conftest.err
>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest.
$ac_objext; then
11826 ac_hi
=$ac_mid; break
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.
$ac_ext >&5
11831 ac_lo
=`expr $ac_mid + 1`
11832 if test $ac_lo -le $ac_mid; then
11836 ac_mid
=`expr 2 '*' $ac_mid + 1`
11839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.
$ac_ext >&5
11845 cat >conftest.
$ac_ext <<_ACEOF
11848 cat confdefs.h
>>conftest.
$ac_ext
11849 cat >>conftest.
$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 $ac_includes_default
11852 typedef long double ac__type_sizeof_;
11856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11863 rm -f conftest.
$ac_objext
11864 if { (ac_try
="$ac_compile"
11865 case "(($ac_try" in
11866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11867 *) ac_try_echo=$ac_try;;
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870 (eval "$ac_compile") 2>conftest.er1
11872 grep -v '^ *+' conftest.er1 >conftest.err
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } && {
11877 test -z "$ac_c_werror_flag" ||
11878 test ! -s conftest.err
11879 } && test -s conftest.$ac_objext; then
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 $ac_includes_default
11889 typedef long double ac__type_sizeof_;
11893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11900 rm -f conftest.$ac_objext
11901 if { (ac_try="$ac_compile"
11902 case "(($ac_try" in
11903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11904 *) ac_try_echo
=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1
>conftest.err
11911 cat conftest.err
>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.
$ac_objext; then
11917 ac_lo
=$ac_mid; break
11919 echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.
$ac_ext >&5
11922 ac_hi
=`expr '(' $ac_mid ')' - 1`
11923 if test $ac_mid -le $ac_hi; then
11927 ac_mid
=`expr 2 '*' $ac_mid`
11930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.
$ac_ext >&5
11939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11943 # Binary search between lo and hi bounds.
11944 while test "x$ac_lo" != "x$ac_hi"; do
11945 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11946 cat >conftest.
$ac_ext <<_ACEOF
11949 cat confdefs.h
>>conftest.
$ac_ext
11950 cat >>conftest.
$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 $ac_includes_default
11953 typedef long double ac__type_sizeof_;
11957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11964 rm -f conftest.
$ac_objext
11965 if { (ac_try
="$ac_compile"
11966 case "(($ac_try" in
11967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_compile") 2>conftest.er1
11973 grep -v '^ *+' conftest.er1 >conftest.err
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest.$ac_objext; then
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_lo=`expr '(' $ac_mid ')' + 1`
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11992 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11993 '') if test "$ac_cv_type_long_double" = yes; then
11994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11995 See \`config.log
' for more details." >&5
11996 echo "$as_me: error: cannot compute sizeof (long double)
11997 See \`config.log' for more details.
" >&2;}
11998 { (exit 77); exit 77; }; }
12000 ac_cv_sizeof_long_double=0
12004 cat >conftest.$ac_ext <<_ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 $ac_includes_default
12011 typedef long double ac__type_sizeof_;
12012 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12013 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12015 #include <stdlib.h>
12020 FILE *f = fopen ("conftest.val
", "w
");
12023 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12025 long int i = longval ();
12026 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12028 fprintf (f, "%ld
\n", i);
12032 unsigned long int i = ulongval ();
12033 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12035 fprintf (f, "%lu
\n", i);
12037 return ferror (f) || fclose (f) != 0;
12043 rm -f conftest$ac_exeext
12044 if { (ac_try="$ac_link"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_link") 2>&5
12052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12054 { (case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_try") 2>&5
12061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12062 (exit $ac_status); }; }; then
12063 ac_cv_sizeof_long_double=`cat conftest.val`
12065 echo "$as_me: program exited with status
$ac_status" >&5
12066 echo "$as_me: failed program was
:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ( exit $ac_status )
12070 if test "$ac_cv_type_long_double" = yes; then
12071 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12072 See \
`config.log' for more details." >&5
12073 echo "$as_me: error: cannot compute sizeof (long double)
12074 See \`config.log
' for more details." >&2;}
12075 { (exit 77); exit 77; }; }
12077 ac_cv_sizeof_long_double=0
12080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12084 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12085 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12089 cat >>confdefs.h <<_ACEOF
12090 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12096 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12097 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12099 cat >conftest.$ac_ext <<_ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12109 _Bool x; x = (_Bool)0;
12114 rm -f conftest.$ac_objext
12115 if { (ac_try="$ac_compile"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12123 grep -v '^
*+' conftest.er1 >conftest.err
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } && {
12128 test -z "$ac_c_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_C99_BOOL 1
12140 echo "$as_me: failed program was:" >&5
12141 sed 's
/^
/|
/' conftest.$ac_ext >&5
12146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12148 echo "${ECHO_T}$have_c99_bool" >&6; }
12149 if test "$have_c99_bool" = yes ; then
12150 { echo "$as_me:$LINENO: checking for _Bool" >&5
12151 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12152 if test "${ac_cv_type__Bool+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 cat >conftest.$ac_ext <<_ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 $ac_includes_default
12162 typedef _Bool ac__type_new_;
12166 if ((ac__type_new_ *) 0)
12168 if (sizeof (ac__type_new_))
12174 rm -f conftest.$ac_objext
12175 if { (ac_try="$ac_compile"
12176 case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12183 grep -v '^
*+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest.$ac_objext; then
12191 ac_cv_type__Bool=yes
12193 echo "$as_me: failed program was:" >&5
12194 sed 's
/^
/|
/' conftest.$ac_ext >&5
12196 ac_cv_type__Bool=no
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12202 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12204 # The cast to long int works around a bug in the HP C Compiler
12205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12207 # This bug is HP SR number 8606223364.
12208 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12209 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12210 if test "${ac_cv_sizeof__Bool+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 if test "$cross_compiling" = yes; then
12214 # Depending upon the size, compute the lo and hi bounds.
12215 cat >conftest.
$ac_ext <<_ACEOF
12218 cat confdefs.h
>>conftest.
$ac_ext
12219 cat >>conftest.
$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 $ac_includes_default
12222 typedef _Bool ac__type_sizeof_;
12226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12233 rm -f conftest.
$ac_objext
12234 if { (ac_try
="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12252 cat >conftest.$ac_ext <<_ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12258 $ac_includes_default
12259 typedef _Bool ac__type_sizeof_;
12263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12270 rm -f conftest.$ac_objext
12271 if { (ac_try="$ac_compile"
12272 case "(($ac_try" in
12273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12274 *) ac_try_echo
=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_compile") 2>conftest.er1
12279 grep -v '^ *+' conftest.er1
>conftest.err
12281 cat conftest.err
>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest.
$ac_objext; then
12287 ac_hi
=$ac_mid; break
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.
$ac_ext >&5
12292 ac_lo
=`expr $ac_mid + 1`
12293 if test $ac_lo -le $ac_mid; then
12297 ac_mid
=`expr 2 '*' $ac_mid + 1`
12300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.
$ac_ext >&5
12306 cat >conftest.
$ac_ext <<_ACEOF
12309 cat confdefs.h
>>conftest.
$ac_ext
12310 cat >>conftest.
$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12312 $ac_includes_default
12313 typedef _Bool ac__type_sizeof_;
12317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12324 rm -f conftest.
$ac_objext
12325 if { (ac_try
="$ac_compile"
12326 case "(($ac_try" in
12327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_compile") 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest.$ac_objext; then
12343 cat >conftest.$ac_ext <<_ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 typedef _Bool ac__type_sizeof_;
12354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12365 *) ac_try_echo
=$ac_try;;
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12370 grep -v '^ *+' conftest.er1
>conftest.err
12372 cat conftest.err
>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.
$ac_objext; then
12378 ac_lo
=$ac_mid; break
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.
$ac_ext >&5
12383 ac_hi
=`expr '(' $ac_mid ')' - 1`
12384 if test $ac_mid -le $ac_hi; then
12388 ac_mid
=`expr 2 '*' $ac_mid`
12391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12394 echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.
$ac_ext >&5
12400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12404 # Binary search between lo and hi bounds.
12405 while test "x$ac_lo" != "x$ac_hi"; do
12406 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12407 cat >conftest.
$ac_ext <<_ACEOF
12410 cat confdefs.h
>>conftest.
$ac_ext
12411 cat >>conftest.
$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 $ac_includes_default
12414 typedef _Bool ac__type_sizeof_;
12418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12425 rm -f conftest.
$ac_objext
12426 if { (ac_try
="$ac_compile"
12427 case "(($ac_try" in
12428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_compile") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest.$ac_objext; then
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_lo=`expr '(' $ac_mid ')' + 1`
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12454 '') if test "$ac_cv_type__Bool" = yes; then
12455 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12456 See \`config.log
' for more details." >&5
12457 echo "$as_me: error: cannot compute sizeof (_Bool)
12458 See \`config.log' for more details.
" >&2;}
12459 { (exit 77); exit 77; }; }
12461 ac_cv_sizeof__Bool=0
12465 cat >conftest.$ac_ext <<_ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 $ac_includes_default
12472 typedef _Bool ac__type_sizeof_;
12473 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12474 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12476 #include <stdlib.h>
12481 FILE *f = fopen ("conftest.val
", "w
");
12484 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12486 long int i = longval ();
12487 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12489 fprintf (f, "%ld
\n", i);
12493 unsigned long int i = ulongval ();
12494 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12496 fprintf (f, "%lu
\n", i);
12498 return ferror (f) || fclose (f) != 0;
12504 rm -f conftest$ac_exeext
12505 if { (ac_try="$ac_link"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_link") 2>&5
12513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12515 { (case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12520 (eval "$ac_try") 2>&5
12522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 ac_cv_sizeof__Bool=`cat conftest.val`
12526 echo "$as_me: program exited with status
$ac_status" >&5
12527 echo "$as_me: failed program was
:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 ( exit $ac_status )
12531 if test "$ac_cv_type__Bool" = yes; then
12532 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12533 See \
`config.log' for more details." >&5
12534 echo "$as_me: error: cannot compute sizeof (_Bool)
12535 See \`config.log
' for more details." >&2;}
12536 { (exit 77); exit 77; }; }
12538 ac_cv_sizeof__Bool=0
12541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12545 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12546 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12550 cat >>confdefs.h <<_ACEOF
12551 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12557 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12558 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12559 if test "${ac_cv_type_uintptr_t+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 cat >conftest.$ac_ext <<_ACEOF
12565 cat confdefs.h >>conftest.$ac_ext
12566 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */
12568 #ifdef HAVE_STDINT_H
12569 #include <stdint.h>
12572 typedef uintptr_t ac__type_new_;
12576 if ((ac__type_new_ *) 0)
12578 if (sizeof (ac__type_new_))
12584 rm -f conftest.$ac_objext
12585 if { (ac_try="$ac_compile"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_compile") 2>conftest.er1
12593 grep -v '^
*+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && {
12598 test -z "$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12600 } && test -s conftest.$ac_objext; then
12601 ac_cv_type_uintptr_t=yes
12603 echo "$as_me: failed program was:" >&5
12604 sed 's
/^
/|
/' conftest.$ac_ext >&5
12606 ac_cv_type_uintptr_t=no
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12612 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12613 if test $ac_cv_type_uintptr_t = yes; then
12615 cat >>confdefs.h <<_ACEOF
12616 #define HAVE_UINTPTR_T 1
12619 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12620 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12621 if test "${ac_cv_type_uintptr_t+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 cat >conftest.$ac_ext <<_ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12630 $ac_includes_default
12631 typedef uintptr_t ac__type_new_;
12635 if ((ac__type_new_ *) 0)
12637 if (sizeof (ac__type_new_))
12643 rm -f conftest.$ac_objext
12644 if { (ac_try="$ac_compile"
12645 case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12652 grep -v '^
*+' conftest.er1 >conftest.err
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12660 ac_cv_type_uintptr_t=yes
12662 echo "$as_me: failed program was:" >&5
12663 sed 's
/^
/|
/' conftest.$ac_ext >&5
12665 ac_cv_type_uintptr_t=no
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12671 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12673 # The cast to long int works around a bug in the HP C Compiler
12674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12676 # This bug is HP SR number 8606223364.
12677 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12678 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12679 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 if test "$cross_compiling" = yes; then
12683 # Depending upon the size, compute the lo and hi bounds.
12684 cat >conftest.
$ac_ext <<_ACEOF
12687 cat confdefs.h
>>conftest.
$ac_ext
12688 cat >>conftest.
$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690 $ac_includes_default
12691 typedef uintptr_t ac__type_sizeof_;
12695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12702 rm -f conftest.
$ac_objext
12703 if { (ac_try
="$ac_compile"
12704 case "(($ac_try" in
12705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_compile") 2>conftest.er1
12711 grep -v '^ *+' conftest.er1 >conftest.err
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } && {
12716 test -z "$ac_c_werror_flag" ||
12717 test ! -s conftest.err
12718 } && test -s conftest.$ac_objext; then
12721 cat >conftest.$ac_ext <<_ACEOF
12724 cat confdefs.h >>conftest.$ac_ext
12725 cat >>conftest.$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 $ac_includes_default
12728 typedef uintptr_t ac__type_sizeof_;
12732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12739 rm -f conftest.$ac_objext
12740 if { (ac_try="$ac_compile"
12741 case "(($ac_try" in
12742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12743 *) ac_try_echo
=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_compile") 2>conftest.er1
12748 grep -v '^ *+' conftest.er1
>conftest.err
12750 cat conftest.err
>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && {
12753 test -z "$ac_c_werror_flag" ||
12754 test ! -s conftest.err
12755 } && test -s conftest.
$ac_objext; then
12756 ac_hi
=$ac_mid; break
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.
$ac_ext >&5
12761 ac_lo
=`expr $ac_mid + 1`
12762 if test $ac_lo -le $ac_mid; then
12766 ac_mid
=`expr 2 '*' $ac_mid + 1`
12769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.
$ac_ext >&5
12775 cat >conftest.
$ac_ext <<_ACEOF
12778 cat confdefs.h
>>conftest.
$ac_ext
12779 cat >>conftest.
$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12781 $ac_includes_default
12782 typedef uintptr_t ac__type_sizeof_;
12786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12793 rm -f conftest.
$ac_objext
12794 if { (ac_try
="$ac_compile"
12795 case "(($ac_try" in
12796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_compile") 2>conftest.er1
12802 grep -v '^ *+' conftest.er1 >conftest.err
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest.$ac_objext; then
12812 cat >conftest.$ac_ext <<_ACEOF
12815 cat confdefs.h >>conftest.$ac_ext
12816 cat >>conftest.$ac_ext <<_ACEOF
12817 /* end confdefs.h. */
12818 $ac_includes_default
12819 typedef uintptr_t ac__type_sizeof_;
12823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12830 rm -f conftest.$ac_objext
12831 if { (ac_try="$ac_compile"
12832 case "(($ac_try" in
12833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12834 *) ac_try_echo
=$ac_try;;
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_compile") 2>conftest.er1
12839 grep -v '^ *+' conftest.er1
>conftest.err
12841 cat conftest.err
>&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && {
12844 test -z "$ac_c_werror_flag" ||
12845 test ! -s conftest.err
12846 } && test -s conftest.
$ac_objext; then
12847 ac_lo
=$ac_mid; break
12849 echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.
$ac_ext >&5
12852 ac_hi
=`expr '(' $ac_mid ')' - 1`
12853 if test $ac_mid -le $ac_hi; then
12857 ac_mid
=`expr 2 '*' $ac_mid`
12860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.
$ac_ext >&5
12869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12873 # Binary search between lo and hi bounds.
12874 while test "x$ac_lo" != "x$ac_hi"; do
12875 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12876 cat >conftest.
$ac_ext <<_ACEOF
12879 cat confdefs.h
>>conftest.
$ac_ext
12880 cat >>conftest.
$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 $ac_includes_default
12883 typedef uintptr_t ac__type_sizeof_;
12887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12894 rm -f conftest.
$ac_objext
12895 if { (ac_try
="$ac_compile"
12896 case "(($ac_try" in
12897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_compile") 2>conftest.er1
12903 grep -v '^ *+' conftest.er1 >conftest.err
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } && {
12908 test -z "$ac_c_werror_flag" ||
12909 test ! -s conftest.err
12910 } && test -s conftest.$ac_objext; then
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_lo=`expr '(' $ac_mid ')' + 1`
12919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12922 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12923 '') if test "$ac_cv_type_uintptr_t" = yes; then
12924 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12925 See \`config.log
' for more details." >&5
12926 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12927 See \`config.log' for more details.
" >&2;}
12928 { (exit 77); exit 77; }; }
12930 ac_cv_sizeof_uintptr_t=0
12934 cat >conftest.$ac_ext <<_ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 $ac_includes_default
12941 typedef uintptr_t ac__type_sizeof_;
12942 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12943 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12945 #include <stdlib.h>
12950 FILE *f = fopen ("conftest.val
", "w
");
12953 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12955 long int i = longval ();
12956 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12958 fprintf (f, "%ld
\n", i);
12962 unsigned long int i = ulongval ();
12963 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12965 fprintf (f, "%lu
\n", i);
12967 return ferror (f) || fclose (f) != 0;
12973 rm -f conftest$ac_exeext
12974 if { (ac_try="$ac_link"
12975 case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12979 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_link") 2>&5
12982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12984 { (case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_try") 2>&5
12991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12992 (exit $ac_status); }; }; then
12993 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12995 echo "$as_me: program exited with status
$ac_status" >&5
12996 echo "$as_me: failed program was
:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12999 ( exit $ac_status )
13000 if test "$ac_cv_type_uintptr_t" = yes; then
13001 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
13002 See \
`config.log' for more details." >&5
13003 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13004 See \`config.log
' for more details." >&2;}
13005 { (exit 77); exit 77; }; }
13007 ac_cv_sizeof_uintptr_t=0
13010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13014 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13015 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13019 cat >>confdefs.h <<_ACEOF
13020 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13027 { echo "$as_me:$LINENO: checking for off_t" >&5
13028 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13029 if test "${ac_cv_type_off_t+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 cat >conftest.$ac_ext <<_ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13039 #ifdef HAVE_SYS_TYPES_H
13040 #include <sys/types.h>
13044 typedef off_t ac__type_new_;
13048 if ((ac__type_new_ *) 0)
13050 if (sizeof (ac__type_new_))
13056 rm -f conftest.$ac_objext
13057 if { (ac_try="$ac_compile"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_compile") 2>conftest.er1
13065 grep -v '^
*+' conftest.er1 >conftest.err
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && {
13070 test -z "$ac_c_werror_flag" ||
13071 test ! -s conftest.err
13072 } && test -s conftest.$ac_objext; then
13073 ac_cv_type_off_t=yes
13075 echo "$as_me: failed program was:" >&5
13076 sed 's
/^
/|
/' conftest.$ac_ext >&5
13078 ac_cv_type_off_t=no
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13084 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13086 # The cast to long int works around a bug in the HP C Compiler
13087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13089 # This bug is HP SR number 8606223364.
13090 { echo "$as_me:$LINENO: checking size of off_t" >&5
13091 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13092 if test "${ac_cv_sizeof_off_t+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13095 if test "$cross_compiling" = yes; then
13096 # Depending upon the size, compute the lo and hi bounds.
13097 cat >conftest.
$ac_ext <<_ACEOF
13100 cat confdefs.h
>>conftest.
$ac_ext
13101 cat >>conftest.
$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13104 #ifdef HAVE_SYS_TYPES_H
13105 #include <sys/types.h>
13109 typedef off_t ac__type_sizeof_;
13113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13120 rm -f conftest.
$ac_objext
13121 if { (ac_try
="$ac_compile"
13122 case "(($ac_try" in
13123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_compile") 2>conftest.er1
13129 grep -v '^ *+' conftest.er1 >conftest.err
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } && {
13134 test -z "$ac_c_werror_flag" ||
13135 test ! -s conftest.err
13136 } && test -s conftest.$ac_objext; then
13139 cat >conftest.$ac_ext <<_ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13146 #ifdef HAVE_SYS_TYPES_H
13147 #include <sys/types.h>
13151 typedef off_t ac__type_sizeof_;
13155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13166 *) ac_try_echo
=$ac_try;;
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_compile") 2>conftest.er1
13171 grep -v '^ *+' conftest.er1
>conftest.err
13173 cat conftest.err
>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } && {
13176 test -z "$ac_c_werror_flag" ||
13177 test ! -s conftest.err
13178 } && test -s conftest.
$ac_objext; then
13179 ac_hi
=$ac_mid; break
13181 echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.
$ac_ext >&5
13184 ac_lo
=`expr $ac_mid + 1`
13185 if test $ac_lo -le $ac_mid; then
13189 ac_mid
=`expr 2 '*' $ac_mid + 1`
13192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.
$ac_ext >&5
13198 cat >conftest.
$ac_ext <<_ACEOF
13201 cat confdefs.h
>>conftest.
$ac_ext
13202 cat >>conftest.
$ac_ext <<_ACEOF
13203 /* end confdefs.h. */
13205 #ifdef HAVE_SYS_TYPES_H
13206 #include <sys/types.h>
13210 typedef off_t ac__type_sizeof_;
13214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13221 rm -f conftest.
$ac_objext
13222 if { (ac_try
="$ac_compile"
13223 case "(($ac_try" in
13224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_compile") 2>conftest.er1
13230 grep -v '^ *+' conftest.er1 >conftest.err
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest.$ac_objext; then
13240 cat >conftest.$ac_ext <<_ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13247 #ifdef HAVE_SYS_TYPES_H
13248 #include <sys/types.h>
13252 typedef off_t ac__type_sizeof_;
13256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13263 rm -f conftest.$ac_objext
13264 if { (ac_try="$ac_compile"
13265 case "(($ac_try" in
13266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13267 *) ac_try_echo
=$ac_try;;
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_compile") 2>conftest.er1
13272 grep -v '^ *+' conftest.er1
>conftest.err
13274 cat conftest.err
>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); } && {
13277 test -z "$ac_c_werror_flag" ||
13278 test ! -s conftest.err
13279 } && test -s conftest.
$ac_objext; then
13280 ac_lo
=$ac_mid; break
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.
$ac_ext >&5
13285 ac_hi
=`expr '(' $ac_mid ')' - 1`
13286 if test $ac_mid -le $ac_hi; then
13290 ac_mid
=`expr 2 '*' $ac_mid`
13293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.
$ac_ext >&5
13302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13306 # Binary search between lo and hi bounds.
13307 while test "x$ac_lo" != "x$ac_hi"; do
13308 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13309 cat >conftest.
$ac_ext <<_ACEOF
13312 cat confdefs.h
>>conftest.
$ac_ext
13313 cat >>conftest.
$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13316 #ifdef HAVE_SYS_TYPES_H
13317 #include <sys/types.h>
13321 typedef off_t ac__type_sizeof_;
13325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13332 rm -f conftest.
$ac_objext
13333 if { (ac_try
="$ac_compile"
13334 case "(($ac_try" in
13335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_compile") 2>conftest.er1
13341 grep -v '^ *+' conftest.er1 >conftest.err
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest.$ac_objext; then
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13354 ac_lo=`expr '(' $ac_mid ')' + 1`
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13361 '') if test "$ac_cv_type_off_t" = yes; then
13362 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13363 See \`config.log
' for more details." >&5
13364 echo "$as_me: error: cannot compute sizeof (off_t)
13365 See \`config.log' for more details.
" >&2;}
13366 { (exit 77); exit 77; }; }
13368 ac_cv_sizeof_off_t=0
13372 cat >conftest.$ac_ext <<_ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13379 #ifdef HAVE_SYS_TYPES_H
13380 #include <sys/types.h>
13384 typedef off_t ac__type_sizeof_;
13385 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13386 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13388 #include <stdlib.h>
13393 FILE *f = fopen ("conftest.val
", "w
");
13396 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13398 long int i = longval ();
13399 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13401 fprintf (f, "%ld
\n", i);
13405 unsigned long int i = ulongval ();
13406 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13408 fprintf (f, "%lu
\n", i);
13410 return ferror (f) || fclose (f) != 0;
13416 rm -f conftest$ac_exeext
13417 if { (ac_try="$ac_link"
13418 case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_link") 2>&5
13425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13435 (exit $ac_status); }; }; then
13436 ac_cv_sizeof_off_t=`cat conftest.val`
13438 echo "$as_me: program exited with status
$ac_status" >&5
13439 echo "$as_me: failed program was
:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13442 ( exit $ac_status )
13443 if test "$ac_cv_type_off_t" = yes; then
13444 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
13445 See \
`config.log' for more details." >&5
13446 echo "$as_me: error: cannot compute sizeof (off_t)
13447 See \`config.log
' for more details." >&2;}
13448 { (exit 77); exit 77; }; }
13450 ac_cv_sizeof_off_t=0
13453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13457 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13458 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13462 cat >>confdefs.h <<_ACEOF
13463 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13468 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13469 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13470 if test "$have_long_long" = yes -a \
13471 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13472 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13474 cat >>confdefs.h <<\_ACEOF
13475 #define HAVE_LARGEFILE_SUPPORT 1
13478 { echo "$as_me:$LINENO: result: yes" >&5
13479 echo "${ECHO_T}yes" >&6; }
13481 { echo "$as_me:$LINENO: result: no" >&5
13482 echo "${ECHO_T}no" >&6; }
13485 { echo "$as_me:$LINENO: checking for time_t" >&5
13486 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13487 if test "${ac_cv_type_time_t+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 cat >conftest.$ac_ext <<_ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 #ifdef HAVE_SYS_TYPES_H
13498 #include <sys/types.h>
13505 typedef time_t ac__type_new_;
13509 if ((ac__type_new_ *) 0)
13511 if (sizeof (ac__type_new_))
13517 rm -f conftest.$ac_objext
13518 if { (ac_try="$ac_compile"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_compile") 2>conftest.er1
13526 grep -v '^
*+' conftest.er1 >conftest.err
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 } && test -s conftest.$ac_objext; then
13534 ac_cv_type_time_t=yes
13536 echo "$as_me: failed program was:" >&5
13537 sed 's
/^
/|
/' conftest.$ac_ext >&5
13539 ac_cv_type_time_t=no
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13545 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13547 # The cast to long int works around a bug in the HP C Compiler
13548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13550 # This bug is HP SR number 8606223364.
13551 { echo "$as_me:$LINENO: checking size of time_t" >&5
13552 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13553 if test "${ac_cv_sizeof_time_t+set}" = set; then
13554 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 if test "$cross_compiling" = yes; then
13557 # Depending upon the size, compute the lo and hi bounds.
13558 cat >conftest.
$ac_ext <<_ACEOF
13561 cat confdefs.h
>>conftest.
$ac_ext
13562 cat >>conftest.
$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13565 #ifdef HAVE_SYS_TYPES_H
13566 #include <sys/types.h>
13573 typedef time_t ac__type_sizeof_;
13577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13584 rm -f conftest.
$ac_objext
13585 if { (ac_try
="$ac_compile"
13586 case "(($ac_try" in
13587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_compile") 2>conftest.er1
13593 grep -v '^ *+' conftest.er1 >conftest.err
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } && {
13598 test -z "$ac_c_werror_flag" ||
13599 test ! -s conftest.err
13600 } && test -s conftest.$ac_objext; then
13603 cat >conftest.$ac_ext <<_ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13610 #ifdef HAVE_SYS_TYPES_H
13611 #include <sys/types.h>
13618 typedef time_t ac__type_sizeof_;
13622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13629 rm -f conftest.$ac_objext
13630 if { (ac_try="$ac_compile"
13631 case "(($ac_try" in
13632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13633 *) ac_try_echo
=$ac_try;;
13635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13636 (eval "$ac_compile") 2>conftest.er1
13638 grep -v '^ *+' conftest.er1
>conftest.err
13640 cat conftest.err
>&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } && {
13643 test -z "$ac_c_werror_flag" ||
13644 test ! -s conftest.err
13645 } && test -s conftest.
$ac_objext; then
13646 ac_hi
=$ac_mid; break
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.
$ac_ext >&5
13651 ac_lo
=`expr $ac_mid + 1`
13652 if test $ac_lo -le $ac_mid; then
13656 ac_mid
=`expr 2 '*' $ac_mid + 1`
13659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13662 echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.
$ac_ext >&5
13665 cat >conftest.
$ac_ext <<_ACEOF
13668 cat confdefs.h
>>conftest.
$ac_ext
13669 cat >>conftest.
$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13672 #ifdef HAVE_SYS_TYPES_H
13673 #include <sys/types.h>
13680 typedef time_t ac__type_sizeof_;
13684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13691 rm -f conftest.
$ac_objext
13692 if { (ac_try
="$ac_compile"
13693 case "(($ac_try" in
13694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13717 #ifdef HAVE_SYS_TYPES_H
13718 #include <sys/types.h>
13725 typedef time_t ac__type_sizeof_;
13729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13736 rm -f conftest.$ac_objext
13737 if { (ac_try="$ac_compile"
13738 case "(($ac_try" in
13739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13740 *) ac_try_echo
=$ac_try;;
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_compile") 2>conftest.er1
13745 grep -v '^ *+' conftest.er1
>conftest.err
13747 cat conftest.err
>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } && {
13750 test -z "$ac_c_werror_flag" ||
13751 test ! -s conftest.err
13752 } && test -s conftest.
$ac_objext; then
13753 ac_lo
=$ac_mid; break
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.
$ac_ext >&5
13758 ac_hi
=`expr '(' $ac_mid ')' - 1`
13759 if test $ac_mid -le $ac_hi; then
13763 ac_mid
=`expr 2 '*' $ac_mid`
13766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.
$ac_ext >&5
13775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13779 # Binary search between lo and hi bounds.
13780 while test "x$ac_lo" != "x$ac_hi"; do
13781 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13782 cat >conftest.
$ac_ext <<_ACEOF
13785 cat confdefs.h
>>conftest.
$ac_ext
13786 cat >>conftest.
$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13789 #ifdef HAVE_SYS_TYPES_H
13790 #include <sys/types.h>
13797 typedef time_t ac__type_sizeof_;
13801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13808 rm -f conftest.
$ac_objext
13809 if { (ac_try
="$ac_compile"
13810 case "(($ac_try" in
13811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13815 (eval "$ac_compile") 2>conftest.er1
13817 grep -v '^ *+' conftest.er1 >conftest.err
13819 cat conftest.err >&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } && {
13822 test -z "$ac_c_werror_flag" ||
13823 test ! -s conftest.err
13824 } && test -s conftest.$ac_objext; then
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13830 ac_lo=`expr '(' $ac_mid ')' + 1`
13833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13837 '') if test "$ac_cv_type_time_t" = yes; then
13838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13839 See \`config.log
' for more details." >&5
13840 echo "$as_me: error: cannot compute sizeof (time_t)
13841 See \`config.log' for more details.
" >&2;}
13842 { (exit 77); exit 77; }; }
13844 ac_cv_sizeof_time_t=0
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 #ifdef HAVE_SYS_TYPES_H
13856 #include <sys/types.h>
13863 typedef time_t ac__type_sizeof_;
13864 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13865 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13867 #include <stdlib.h>
13872 FILE *f = fopen ("conftest.val
", "w
");
13875 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13877 long int i = longval ();
13878 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13880 fprintf (f, "%ld
\n", i);
13884 unsigned long int i = ulongval ();
13885 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13887 fprintf (f, "%lu
\n", i);
13889 return ferror (f) || fclose (f) != 0;
13895 rm -f conftest$ac_exeext
13896 if { (ac_try="$ac_link"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_link") 2>&5
13904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13906 { (case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_try") 2>&5
13913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_sizeof_time_t=`cat conftest.val`
13917 echo "$as_me: program exited with status
$ac_status" >&5
13918 echo "$as_me: failed program was
:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 ( exit $ac_status )
13922 if test "$ac_cv_type_time_t" = yes; then
13923 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(time_t
)
13924 See \
`config.log' for more details." >&5
13925 echo "$as_me: error: cannot compute sizeof (time_t)
13926 See \`config.log
' for more details." >&2;}
13927 { (exit 77); exit 77; }; }
13929 ac_cv_sizeof_time_t=0
13932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13936 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13937 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13941 cat >>confdefs.h <<_ACEOF
13942 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13947 # if have pthread_t then define SIZEOF_PTHREAD_T
13949 if test "$ac_cv_kpthread" = "yes"
13950 then CC="$CC -Kpthread"
13951 elif test "$ac_cv_kthread" = "yes"
13952 then CC="$CC -Kthread"
13953 elif test "$ac_cv_pthread" = "yes"
13954 then CC="$CC -pthread"
13956 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13957 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13959 cat >conftest.$ac_ext <<_ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 #include <pthread.h>
13969 pthread_t x; x = *(pthread_t*)0;
13974 rm -f conftest.$ac_objext
13975 if { (ac_try="$ac_compile"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_compile") 2>conftest.er1
13983 grep -v '^
*+' conftest.er1 >conftest.err
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } && {
13988 test -z "$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13990 } && test -s conftest.$ac_objext; then
13993 echo "$as_me: failed program was:" >&5
13994 sed 's
/^
/|
/' conftest.$ac_ext >&5
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
14001 echo "${ECHO_T}$have_pthread_t" >&6; }
14002 if test "$have_pthread_t" = yes ; then
14003 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14004 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14005 if test "${ac_cv_type_pthread_t+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14015 #ifdef HAVE_PTHREAD_H
14016 #include <pthread.h>
14020 typedef pthread_t ac__type_new_;
14024 if ((ac__type_new_ *) 0)
14026 if (sizeof (ac__type_new_))
14032 rm -f conftest.$ac_objext
14033 if { (ac_try="$ac_compile"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_compile") 2>conftest.er1
14041 grep -v '^
*+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } && {
14046 test -z "$ac_c_werror_flag" ||
14047 test ! -s conftest.err
14048 } && test -s conftest.$ac_objext; then
14049 ac_cv_type_pthread_t=yes
14051 echo "$as_me: failed program was:" >&5
14052 sed 's
/^
/|
/' conftest.$ac_ext >&5
14054 ac_cv_type_pthread_t=no
14057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14060 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14062 # The cast to long int works around a bug in the HP C Compiler
14063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14065 # This bug is HP SR number 8606223364.
14066 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14067 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14068 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 if test "$cross_compiling" = yes; then
14072 # Depending upon the size, compute the lo and hi bounds.
14073 cat >conftest.
$ac_ext <<_ACEOF
14076 cat confdefs.h
>>conftest.
$ac_ext
14077 cat >>conftest.
$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14080 #ifdef HAVE_PTHREAD_H
14081 #include <pthread.h>
14085 typedef pthread_t ac__type_sizeof_;
14089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14096 rm -f conftest.
$ac_objext
14097 if { (ac_try
="$ac_compile"
14098 case "(($ac_try" in
14099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_compile") 2>conftest.er1
14105 grep -v '^ *+' conftest.er1 >conftest.err
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } && {
14110 test -z "$ac_c_werror_flag" ||
14111 test ! -s conftest.err
14112 } && test -s conftest.$ac_objext; then
14115 cat >conftest.$ac_ext <<_ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14122 #ifdef HAVE_PTHREAD_H
14123 #include <pthread.h>
14127 typedef pthread_t ac__type_sizeof_;
14131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14142 *) ac_try_echo
=$ac_try;;
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_compile") 2>conftest.er1
14147 grep -v '^ *+' conftest.er1
>conftest.err
14149 cat conftest.err
>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest.
$ac_objext; then
14155 ac_hi
=$ac_mid; break
14157 echo "$as_me: failed program was:" >&5
14158 sed 's/^/| /' conftest.
$ac_ext >&5
14160 ac_lo
=`expr $ac_mid + 1`
14161 if test $ac_lo -le $ac_mid; then
14165 ac_mid
=`expr 2 '*' $ac_mid + 1`
14168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14171 echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.
$ac_ext >&5
14174 cat >conftest.
$ac_ext <<_ACEOF
14177 cat confdefs.h
>>conftest.
$ac_ext
14178 cat >>conftest.
$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14181 #ifdef HAVE_PTHREAD_H
14182 #include <pthread.h>
14186 typedef pthread_t ac__type_sizeof_;
14190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14197 rm -f conftest.
$ac_objext
14198 if { (ac_try
="$ac_compile"
14199 case "(($ac_try" in
14200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_compile") 2>conftest.er1
14206 grep -v '^ *+' conftest.er1 >conftest.err
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && {
14211 test -z "$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 } && test -s conftest.$ac_objext; then
14216 cat >conftest.$ac_ext <<_ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14223 #ifdef HAVE_PTHREAD_H
14224 #include <pthread.h>
14228 typedef pthread_t ac__type_sizeof_;
14232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14239 rm -f conftest.$ac_objext
14240 if { (ac_try="$ac_compile"
14241 case "(($ac_try" in
14242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14243 *) ac_try_echo
=$ac_try;;
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_compile") 2>conftest.er1
14248 grep -v '^ *+' conftest.er1
>conftest.err
14250 cat conftest.err
>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest.
$ac_objext; then
14256 ac_lo
=$ac_mid; break
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.
$ac_ext >&5
14261 ac_hi
=`expr '(' $ac_mid ')' - 1`
14262 if test $ac_mid -le $ac_hi; then
14266 ac_mid
=`expr 2 '*' $ac_mid`
14269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.
$ac_ext >&5
14278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14282 # Binary search between lo and hi bounds.
14283 while test "x$ac_lo" != "x$ac_hi"; do
14284 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14285 cat >conftest.
$ac_ext <<_ACEOF
14288 cat confdefs.h
>>conftest.
$ac_ext
14289 cat >>conftest.
$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14292 #ifdef HAVE_PTHREAD_H
14293 #include <pthread.h>
14297 typedef pthread_t ac__type_sizeof_;
14301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14308 rm -f conftest.
$ac_objext
14309 if { (ac_try
="$ac_compile"
14310 case "(($ac_try" in
14311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_compile") 2>conftest.er1
14317 grep -v '^ *+' conftest.er1 >conftest.err
14319 cat conftest.err >&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } && {
14322 test -z "$ac_c_werror_flag" ||
14323 test ! -s conftest.err
14324 } && test -s conftest.$ac_objext; then
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ac_lo=`expr '(' $ac_mid ')' + 1`
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14337 '') if test "$ac_cv_type_pthread_t" = yes; then
14338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14339 See \`config.log
' for more details." >&5
14340 echo "$as_me: error: cannot compute sizeof (pthread_t)
14341 See \`config.log' for more details.
" >&2;}
14342 { (exit 77); exit 77; }; }
14344 ac_cv_sizeof_pthread_t=0
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14355 #ifdef HAVE_PTHREAD_H
14356 #include <pthread.h>
14360 typedef pthread_t ac__type_sizeof_;
14361 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14362 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14364 #include <stdlib.h>
14369 FILE *f = fopen ("conftest.val
", "w
");
14372 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14374 long int i = longval ();
14375 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14377 fprintf (f, "%ld
\n", i);
14381 unsigned long int i = ulongval ();
14382 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14384 fprintf (f, "%lu
\n", i);
14386 return ferror (f) || fclose (f) != 0;
14392 rm -f conftest$ac_exeext
14393 if { (ac_try="$ac_link"
14394 case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_link") 2>&5
14401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14403 { (case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_try") 2>&5
14410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 ac_cv_sizeof_pthread_t=`cat conftest.val`
14414 echo "$as_me: program exited with status
$ac_status" >&5
14415 echo "$as_me: failed program was
:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14418 ( exit $ac_status )
14419 if test "$ac_cv_type_pthread_t" = yes; then
14420 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pthread_t
)
14421 See \
`config.log' for more details." >&5
14422 echo "$as_me: error: cannot compute sizeof (pthread_t)
14423 See \`config.log
' for more details." >&2;}
14424 { (exit 77); exit 77; }; }
14426 ac_cv_sizeof_pthread_t=0
14429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14433 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14434 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14438 cat >>confdefs.h <<_ACEOF
14439 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14446 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14447 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14448 # Check whether --enable-toolbox-glue was given.
14449 if test "${enable_toolbox_glue+set}" = set; then
14450 enableval=$enable_toolbox_glue;
14454 if test -z "$enable_toolbox_glue"
14456 case $ac_sys_system/$ac_sys_release in
14458 enable_toolbox_glue="yes";;
14460 enable_toolbox_glue="no";;
14463 case "$enable_toolbox_glue" in
14465 extra_machdep_objs="Python/mactoolboxglue.o"
14466 extra_undefs="-u _PyMac_Error"
14468 cat >>confdefs.h <<\_ACEOF
14469 #define USE_TOOLBOX_OBJECT_GLUE 1
14474 extra_machdep_objs=""
14478 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14479 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14483 case $ac_sys_system/$ac_sys_release in
14484 Darwin/[01567]\..*)
14485 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14488 OTHER_LIBTOOL_OPT=""
14495 case $ac_sys_system/$ac_sys_release in
14496 Darwin/[01567]\..*)
14497 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14498 if test "${enable_universalsdk}"; then
14501 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14503 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14504 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14506 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14507 if test ${gcc_version} '<' 4.0
14509 LIBTOOL_CRUFT="-lcc_dynamic"
14513 if test "$cross_compiling" = yes; then
14516 cat >conftest.$ac_ext <<_ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14523 #include <unistd.h>
14524 int main(int argc, char*argv[])
14526 if (sizeof(long) == 4) {
14534 rm -f conftest$ac_exeext
14535 if { (ac_try="$ac_link"
14536 case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_link") 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14556 echo "$as_me: program exited with status $ac_status" >&5
14557 echo "$as_me: failed program was:" >&5
14558 sed 's
/^
/|
/' conftest.$ac_ext >&5
14560 ( exit $ac_status )
14563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14568 if test "${ac_osx_32bit}" = "yes"; then
14571 MACOSX_DEFAULT_ARCH="i386"
14574 MACOSX_DEFAULT_ARCH="ppc"
14577 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14578 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14579 { (exit 1); exit 1; }; }
14585 MACOSX_DEFAULT_ARCH="x86_64"
14588 MACOSX_DEFAULT_ARCH="ppc64"
14591 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14592 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14593 { (exit 1); exit 1; }; }
14597 #ARCH_RUN_32BIT="true"
14600 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14601 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14602 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14605 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14606 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14607 if test "$enable_framework"
14609 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14610 # -F. is needed to allow linking to the framework while
14611 # in the build location.
14613 cat >>confdefs.h <<\_ACEOF
14614 #define WITH_NEXT_FRAMEWORK 1
14617 { echo "$as_me:$LINENO: result: yes" >&5
14618 echo "${ECHO_T}yes" >&6; }
14619 if test $enable_shared = "yes"
14621 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14622 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14623 { (exit 1); exit 1; }; }
14626 { echo "$as_me:$LINENO: result: no" >&5
14627 echo "${ECHO_T}no" >&6; }
14630 { echo "$as_me:$LINENO: checking for dyld" >&5
14631 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14632 case $ac_sys_system/$ac_sys_release in
14635 cat >>confdefs.h <<\_ACEOF
14636 #define WITH_DYLD 1
14639 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14640 echo "${ECHO_T}always on for Darwin" >&6; }
14643 { echo "$as_me:$LINENO: result: no" >&5
14644 echo "${ECHO_T}no" >&6; }
14648 # Set info about shared libraries.
14654 # SO is the extension of shared libraries `(including the dot!)
14655 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14656 { echo "$as_me:$LINENO: checking SO" >&5
14657 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14660 case $ac_sys_system in
14671 # this might also be a termcap variable, see #610332
14673 echo '====================================================================='
14675 echo '+ WARNING
: You have
set SO
in your environment.
+'
14676 echo '+ Do you really mean to change the extension
for shared libraries?
+'
14677 echo '+ Continuing
in 10 seconds to
let you to ponder.
+'
14679 echo '====================================================================='
14682 { echo "$as_me:$LINENO: result: $SO" >&5
14683 echo "${ECHO_T}$SO" >&6; }
14686 cat >>confdefs.h <<_ACEOF
14687 #define SHLIB_EXT "$SO"
14690 # LDSHARED is the ld *command* used to create shared library
14691 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14692 # (Shared libraries in this instance are shared modules to be loaded into
14693 # Python, as opposed to building Python itself as a shared library.)
14694 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14695 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14696 if test -z "$LDSHARED"
14698 case $ac_sys_system/$ac_sys_release in
14700 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14701 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14704 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14705 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14707 IRIX/5*) LDSHARED="ld -shared";;
14708 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14710 if test "$GCC" = "yes"
14711 then LDSHARED='$
(CC
) -shared'
14712 else LDSHARED='$
(CC
) -G';
14715 if test "$GCC" = "yes"
14716 then LDSHARED='$
(CC
) -shared'
14717 else LDSHARED='ld
-b';
14719 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14721 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14722 if test "$enable_framework" ; then
14723 # Link against the framework. All externals should be defined.
14724 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14725 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14727 # No framework. Ignore undefined symbols, assuming they come from Python
14728 LDSHARED="$LDSHARED -undefined suppress"
14730 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14731 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14732 if test "$enable_framework" ; then
14733 # Link against the framework. All externals should be defined.
14734 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14735 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14737 # No framework, use the Python app as bundle-loader
14738 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14739 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14742 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14743 # This allows an extension to be used in any Python
14745 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14747 if test "${enable_universalsdk}"; then
14748 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14750 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle -undefined dynamic_lookup
'
14751 BLDSHARED="$LDSHARED"
14753 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14754 if test "$enable_framework" ; then
14755 # Link against the framework. All externals should be defined.
14756 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14757 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14759 # No framework, use the Python app as bundle-loader
14760 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14761 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14765 Linux*|GNU*|QNX*) LDSHARED='$
(CC
) -shared';;
14766 BSD/OS*/4*) LDSHARED="gcc -shared";;
14768 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14770 LDSHARED="$CC -shared ${LDFLAGS}"
14772 LDSHARED="ld -Bshareable ${LDFLAGS}"
14775 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14777 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14780 [01].* | 2.[0-7] | 2.[0-7].*)
14781 LDSHARED="ld -Bshareable ${LDFLAGS}"
14784 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14788 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14789 OpenUNIX*|UnixWare*)
14790 if test "$GCC" = "yes"
14791 then LDSHARED='$
(CC
) -shared'
14792 else LDSHARED='$
(CC
) -G'
14794 SCO_SV*) LDSHARED='$
(CC
) -Wl,-G,-Bexport';;
14795 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14796 atheos*) LDSHARED="gcc -shared";;
14800 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14801 echo "${ECHO_T}$LDSHARED" >&6; }
14802 BLDSHARED=${BLDSHARED-$LDSHARED}
14803 # CCSHARED are the C *flags* used to create objects to go into a shared
14804 # library (module) -- this is only needed for a few systems
14805 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14806 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14807 if test -z "$CCSHARED"
14809 case $ac_sys_system/$ac_sys_release in
14810 SunOS*) if test "$GCC" = yes;
14811 then CCSHARED="-fPIC";
14812 elif test `uname -p` = sparc;
14813 then CCSHARED="-xcode=pic32";
14814 else CCSHARED="-Kpic";
14816 hp*|HP*) if test "$GCC" = yes;
14817 then CCSHARED="-fPIC";
14818 else CCSHARED="+z";
14820 Linux*|GNU*) CCSHARED="-fPIC";;
14821 BSD/OS*/4*) CCSHARED="-fpic";;
14822 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14823 OpenUNIX*|UnixWare*)
14824 if test "$GCC" = "yes"
14825 then CCSHARED="-fPIC"
14826 else CCSHARED="-KPIC"
14829 if test "$GCC" = "yes"
14830 then CCSHARED="-fPIC"
14831 else CCSHARED="-Kpic -belf"
14833 IRIX*/6*) case $CC in
14834 *gcc*) CCSHARED="-shared";;
14837 atheos*) CCSHARED="-fPIC";;
14840 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14841 echo "${ECHO_T}$CCSHARED" >&6; }
14842 # LINKFORSHARED are the flags passed to the $(CC) command that links
14843 # the python executable -- this is only needed for a few systems
14844 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14845 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14846 if test -z "$LINKFORSHARED"
14848 case $ac_sys_system/$ac_sys_release in
14849 AIX*) LINKFORSHARED='-Wl,-bE:Modules
/python.exp
-lld';;
14851 LINKFORSHARED="-Wl,-E -Wl,+s";;
14852 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14853 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14854 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14855 # -u libsys_s pulls in all symbols in libsys
14857 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14859 # not used by the core itself but which needs to be in the core so
14860 # that dynamically loaded extension modules have access to it.
14861 # -prebind is no longer used, because it actually seems to give a
14862 # slowdown in stead of a speedup, maybe due to the large number of
14863 # dynamic loads Python does.
14865 LINKFORSHARED="$extra_undefs"
14866 if test "$enable_framework"
14868 LINKFORSHARED="$LINKFORSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14870 LINKFORSHARED="$LINKFORSHARED";;
14871 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14872 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14873 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14874 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14875 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14877 LINKFORSHARED="-Wl,--export-dynamic"
14879 SunOS/5*) case $CC in
14881 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14883 LINKFORSHARED="-Xlinker --export-dynamic"
14887 if test $enable_shared = "no"
14889 LINKFORSHARED='-Wl,--out-implib=$
(LDLIBRARY
)'
14892 # -Wl,-E causes the symbols to be added to the dynamic
14893 # symbol table so that they can be found when a module
14894 # is loaded. -N 2048K causes the stack size to be set
14895 # to 2048 kilobytes so that the stack doesn't overflow
14896 # when running test_compile.py.
14897 LINKFORSHARED
='-Wl,-E -N 2048K';;
14900 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14901 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14905 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14906 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14907 if test ! "$LIBRARY" = "$LDLIBRARY"
14909 case $ac_sys_system in
14911 # Cygwin needs CCSHARED when building extension DLLs
14912 # but not when building the interpreter DLL.
14913 CFLAGSFORSHARED
='';;
14915 CFLAGSFORSHARED
='$(CCSHARED)'
14918 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14919 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14921 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14922 # library (with --enable-shared).
14923 # For platforms on which shared libraries are not allowed to have unresolved
14924 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14925 # if it is not required, since it creates a dependency of the shared library
14926 # to LIBS. This, in turn, means that applications linking the shared libpython
14927 # don't need to link LIBS explicitly. The default should be only changed
14928 # on systems where this approach causes problems.
14930 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14931 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14932 case "$ac_sys_system" in
14936 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14937 echo "${ECHO_T}$SHLIBS" >&6; }
14940 # checks for libraries
14942 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 ac_check_lib_save_LIBS
=$LIBS
14949 cat >conftest.
$ac_ext <<_ACEOF
14952 cat confdefs.h
>>conftest.
$ac_ext
14953 cat >>conftest.
$ac_ext <<_ACEOF
14954 /* end confdefs.h. */
14956 /* Override any GCC internal prototype to avoid an error.
14957 Use char because int might match the return type of a GCC
14958 builtin and then its argument prototype would still apply. */
14971 rm -f conftest.
$ac_objext conftest
$ac_exeext
14972 if { (ac_try
="$ac_link"
14973 case "(($ac_try" in
14974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_link") 2>conftest.er1
14980 grep -v '^ *+' conftest.er1 >conftest.err
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } && {
14985 test -z "$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 } && test -s conftest$ac_exeext &&
14988 $as_test_x conftest$ac_exeext; then
14989 ac_cv_lib_dl_dlopen=yes
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 ac_cv_lib_dl_dlopen=no
14997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14998 conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15001 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15002 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15003 if test $ac_cv_lib_dl_dlopen = yes; then
15004 cat >>confdefs.h <<_ACEOF
15005 #define HAVE_LIBDL 1
15011 # Dynamic linking for SunOS/Solaris and SYSV
15013 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15014 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15015 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 ac_check_lib_save_LIBS=$LIBS
15020 cat >conftest.$ac_ext <<_ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply. */
15037 return shl_load ();
15042 rm -f conftest.$ac_objext conftest$ac_exeext
15043 if { (ac_try="$ac_link"
15044 case "(($ac_try" in
15045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15046 *) ac_try_echo
=$ac_try;;
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049 (eval "$ac_link") 2>conftest.er1
15051 grep -v '^ *+' conftest.er1
>conftest.err
15053 cat conftest.err
>&5
15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } && {
15056 test -z "$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 } && test -s conftest
$ac_exeext &&
15059 $as_test_x conftest
$ac_exeext; then
15060 ac_cv_lib_dld_shl_load
=yes
15062 echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.
$ac_ext >&5
15065 ac_cv_lib_dld_shl_load
=no
15068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15069 conftest
$ac_exeext conftest.
$ac_ext
15070 LIBS
=$ac_check_lib_save_LIBS
15072 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15073 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15074 if test $ac_cv_lib_dld_shl_load = yes; then
15075 cat >>confdefs.h
<<_ACEOF
15076 #define HAVE_LIBDLD 1
15082 # Dynamic linking for HP-UX
15084 # only check for sem_init if thread support is requested
15085 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15086 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15087 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15088 if test "${ac_cv_search_sem_init+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 ac_func_search_save_LIBS
=$LIBS
15092 cat >conftest.
$ac_ext <<_ACEOF
15095 cat confdefs.h
>>conftest.
$ac_ext
15096 cat >>conftest.
$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15099 /* Override any GCC internal prototype to avoid an error.
15100 Use char because int might match the return type of a GCC
15101 builtin and then its argument prototype would still apply. */
15109 return sem_init ();
15114 for ac_lib
in '' pthread rt posix4
; do
15115 if test -z "$ac_lib"; then
15116 ac_res
="none required"
15119 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15121 rm -f conftest.
$ac_objext conftest
$ac_exeext
15122 if { (ac_try
="$ac_link"
15123 case "(($ac_try" in
15124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_link") 2>conftest.er1
15130 grep -v '^ *+' conftest.er1 >conftest.err
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } && {
15135 test -z "$ac_c_werror_flag" ||
15136 test ! -s conftest.err
15137 } && test -s conftest$ac_exeext &&
15138 $as_test_x conftest$ac_exeext; then
15139 ac_cv_search_sem_init=$ac_res
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15149 if test "${ac_cv_search_sem_init+set}" = set; then
15153 if test "${ac_cv_search_sem_init+set}" = set; then
15156 ac_cv_search_sem_init=no
15158 rm conftest.$ac_ext
15159 LIBS=$ac_func_search_save_LIBS
15161 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15162 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15163 ac_res=$ac_cv_search_sem_init
15164 if test "$ac_res" != no; then
15165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15168 # 'Real Time' functions on Solaris
15169 # posix4 on Solaris 2.6
15170 # pthread (first!) on Linux
15173 # check if we need libintl for locale functions
15174 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15175 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15176 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15177 echo $ECHO_N "(cached) $ECHO_C" >&6
15179 ac_check_lib_save_LIBS=$LIBS
15180 LIBS="-lintl $LIBS"
15181 cat >conftest.$ac_ext <<_ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15188 /* Override any GCC internal prototype to avoid an error.
15189 Use char because int might match the return type of a GCC
15190 builtin and then its argument prototype would still apply. */
15194 char textdomain ();
15198 return textdomain ();
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15207 *) ac_try_echo
=$ac_try;;
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15212 grep -v '^ *+' conftest.er1
>conftest.err
15214 cat conftest.err
>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } && {
15217 test -z "$ac_c_werror_flag" ||
15218 test ! -s conftest.err
15219 } && test -s conftest
$ac_exeext &&
15220 $as_test_x conftest
$ac_exeext; then
15221 ac_cv_lib_intl_textdomain
=yes
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.
$ac_ext >&5
15226 ac_cv_lib_intl_textdomain
=no
15229 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15230 conftest
$ac_exeext conftest.
$ac_ext
15231 LIBS
=$ac_check_lib_save_LIBS
15233 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15234 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15235 if test $ac_cv_lib_intl_textdomain = yes; then
15237 cat >>confdefs.h
<<\_ACEOF
15238 #define WITH_LIBINTL 1
15244 # checks for system dependent C++ extensions support
15245 case "$ac_sys_system" in
15246 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15247 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15248 cat >conftest.
$ac_ext <<_ACEOF
15251 cat confdefs.h
>>conftest.
$ac_ext
15252 cat >>conftest.
$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #include "/usr/lpp/xlC/include/load.h"
15258 loadAndInit("", 0, "")
15263 rm -f conftest.
$ac_objext conftest
$ac_exeext
15264 if { (ac_try
="$ac_link"
15265 case "(($ac_try" in
15266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_link") 2>conftest.er1
15272 grep -v '^ *+' conftest.er1 >conftest.err
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } && {
15277 test -z "$ac_c_werror_flag" ||
15278 test ! -s conftest.err
15279 } && test -s conftest$ac_exeext &&
15280 $as_test_x conftest$ac_exeext; then
15282 cat >>confdefs.h <<\_ACEOF
15283 #define AIX_GENUINE_CPLUSPLUS 1
15286 { echo "$as_me:$LINENO: result: yes" >&5
15287 echo "${ECHO_T}yes" >&6; }
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 { echo "$as_me:$LINENO: result: no" >&5
15293 echo "${ECHO_T}no" >&6; }
15296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15297 conftest$ac_exeext conftest.$ac_ext;;
15301 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15302 # BeOS' sockets are stashed in libnet.
15303 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15304 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15305 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 ac_check_lib_save_LIBS=$LIBS
15310 cat >conftest.$ac_ext <<_ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15317 /* Override any GCC internal prototype to avoid an error.
15318 Use char because int might match the return type of a GCC
15319 builtin and then its argument prototype would still apply. */
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (ac_try="$ac_link"
15334 case "(($ac_try" in
15335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15336 *) ac_try_echo
=$ac_try;;
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_link") 2>conftest.er1
15341 grep -v '^ *+' conftest.er1
>conftest.err
15343 cat conftest.err
>&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest
$ac_exeext &&
15349 $as_test_x conftest
$ac_exeext; then
15350 ac_cv_lib_nsl_t_open
=yes
15352 echo "$as_me: failed program was:" >&5
15353 sed 's/^/| /' conftest.
$ac_ext >&5
15355 ac_cv_lib_nsl_t_open
=no
15358 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15359 conftest
$ac_exeext conftest.
$ac_ext
15360 LIBS
=$ac_check_lib_save_LIBS
15362 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15363 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15364 if test $ac_cv_lib_nsl_t_open = yes; then
15368 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15369 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15370 if test "${ac_cv_lib_socket_socket+set}" = set; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 ac_check_lib_save_LIBS
=$LIBS
15374 LIBS
="-lsocket $LIBS $LIBS"
15375 cat >conftest.
$ac_ext <<_ACEOF
15378 cat confdefs.h
>>conftest.
$ac_ext
15379 cat >>conftest.
$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15382 /* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15397 rm -f conftest.
$ac_objext conftest
$ac_exeext
15398 if { (ac_try
="$ac_link"
15399 case "(($ac_try" in
15400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_link") 2>conftest.er1
15406 grep -v '^ *+' conftest.er1 >conftest.err
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest$ac_exeext &&
15414 $as_test_x conftest$ac_exeext; then
15415 ac_cv_lib_socket_socket=yes
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 ac_cv_lib_socket_socket=no
15423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15424 conftest$ac_exeext conftest.$ac_ext
15425 LIBS=$ac_check_lib_save_LIBS
15427 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15428 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15429 if test $ac_cv_lib_socket_socket = yes; then
15430 LIBS="-lsocket $LIBS"
15434 case "$ac_sys_system" in
15436 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15437 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15438 if test "${ac_cv_lib_net_socket+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 ac_check_lib_save_LIBS=$LIBS
15442 LIBS="-lnet $LIBS $LIBS"
15443 cat >conftest.$ac_ext <<_ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15450 /* Override any GCC internal prototype to avoid an error.
15451 Use char because int might match the return type of a GCC
15452 builtin and then its argument prototype would still apply. */
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15469 *) ac_try_echo
=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_link") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1
>conftest.err
15476 cat conftest.err
>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } && {
15479 test -z "$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15481 } && test -s conftest
$ac_exeext &&
15482 $as_test_x conftest
$ac_exeext; then
15483 ac_cv_lib_net_socket
=yes
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.
$ac_ext >&5
15488 ac_cv_lib_net_socket
=no
15491 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15492 conftest
$ac_exeext conftest.
$ac_ext
15493 LIBS
=$ac_check_lib_save_LIBS
15495 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15496 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15497 if test $ac_cv_lib_net_socket = yes; then
15504 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15505 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15507 # Check whether --with-libs was given.
15508 if test "${with_libs+set}" = set; then
15509 withval
=$with_libs;
15510 { echo "$as_me:$LINENO: result: $withval" >&5
15511 echo "${ECHO_T}$withval" >&6; }
15512 LIBS
="$withval $LIBS"
15515 { echo "$as_me:$LINENO: result: no" >&5
15516 echo "${ECHO_T}no" >&6; }
15520 # Check for use of the system libffi library
15521 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15522 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15524 # Check whether --with-system_ffi was given.
15525 if test "${with_system_ffi+set}" = set; then
15526 withval
=$with_system_ffi;
15530 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15531 echo "${ECHO_T}$with_system_ffi" >&6; }
15533 # Check for --with-dbmliborder
15534 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15535 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15537 # Check whether --with-dbmliborder was given.
15538 if test "${with_dbmliborder+set}" = set; then
15539 withval
=$with_dbmliborder;
15540 if test x
$with_dbmliborder = xyes
15542 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15543 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15544 { (exit 1); exit 1; }; }
15546 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15547 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
15549 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15550 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15551 { (exit 1); exit 1; }; }
15557 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15558 echo "${ECHO_T}$with_dbmliborder" >&6; }
15560 # Determine if signalmodule should be used.
15563 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15564 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15566 # Check whether --with-signal-module was given.
15567 if test "${with_signal_module+set}" = set; then
15568 withval
=$with_signal_module;
15572 if test -z "$with_signal_module"
15573 then with_signal_module
="yes"
15575 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15576 echo "${ECHO_T}$with_signal_module" >&6; }
15578 if test "${with_signal_module}" = "yes"; then
15579 USE_SIGNAL_MODULE
=""
15582 USE_SIGNAL_MODULE
="#"
15583 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
15586 # This is used to generate Setup.config
15588 USE_THREAD_MODULE
=""
15590 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15591 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15594 # Check whether --with-dec-threads was given.
15595 if test "${with_dec_threads+set}" = set; then
15596 withval
=$with_dec_threads;
15597 { echo "$as_me:$LINENO: result: $withval" >&5
15598 echo "${ECHO_T}$withval" >&6; }
15600 if test "${with_thread+set}" != set; then
15601 with_thread
="$withval";
15604 { echo "$as_me:$LINENO: result: no" >&5
15605 echo "${ECHO_T}no" >&6; }
15609 # Templates for things AC_DEFINEd more than once.
15610 # For a single AC_DEFINE, no template is needed.
15618 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15619 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15621 # Check whether --with-threads was given.
15622 if test "${with_threads+set}" = set; then
15623 withval
=$with_threads;
15627 # --with-thread is deprecated, but check for it anyway
15629 # Check whether --with-thread was given.
15630 if test "${with_thread+set}" = set; then
15631 withval
=$with_thread; with_threads
=$with_thread
15635 if test -z "$with_threads"
15636 then with_threads
="yes"
15638 { echo "$as_me:$LINENO: result: $with_threads" >&5
15639 echo "${ECHO_T}$with_threads" >&6; }
15642 if test "$with_threads" = "no"
15644 USE_THREAD_MODULE
="#"
15645 elif test "$ac_cv_pthread_is_default" = yes
15647 cat >>confdefs.h
<<\_ACEOF
15648 #define WITH_THREAD 1
15651 # Defining _REENTRANT on system with POSIX threads should not hurt.
15652 cat >>confdefs.h
<<\_ACEOF
15653 #define _REENTRANT 1
15657 THREADOBJ
="Python/thread.o"
15658 elif test "$ac_cv_kpthread" = "yes"
15661 if test "$ac_cv_cxx_thread" = "yes"; then
15662 CXX
="$CXX -Kpthread"
15664 cat >>confdefs.h
<<\_ACEOF
15665 #define WITH_THREAD 1
15669 THREADOBJ
="Python/thread.o"
15670 elif test "$ac_cv_kthread" = "yes"
15673 if test "$ac_cv_cxx_thread" = "yes"; then
15674 CXX
="$CXX -Kthread"
15676 cat >>confdefs.h
<<\_ACEOF
15677 #define WITH_THREAD 1
15681 THREADOBJ
="Python/thread.o"
15682 elif test "$ac_cv_pthread" = "yes"
15685 if test "$ac_cv_cxx_thread" = "yes"; then
15686 CXX
="$CXX -pthread"
15688 cat >>confdefs.h
<<\_ACEOF
15689 #define WITH_THREAD 1
15693 THREADOBJ
="Python/thread.o"
15695 if test ! -z "$with_threads" -a -d "$with_threads"
15696 then LDFLAGS
="$LDFLAGS -L$with_threads"
15698 if test ! -z "$withval" -a -d "$withval"
15699 then LDFLAGS
="$LDFLAGS -L$withval"
15702 # According to the POSIX spec, a pthreads implementation must
15703 # define _POSIX_THREADS in unistd.h. Some apparently don't
15704 # (e.g. gnu pth with pthread emulation)
15705 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15706 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15707 cat >conftest.
$ac_ext <<_ACEOF
15710 cat confdefs.h
>>conftest.
$ac_ext
15711 cat >>conftest.
$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15714 #include <unistd.h>
15715 #ifdef _POSIX_THREADS
15720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15721 $EGREP "yes" >/dev
/null
2>&1; then
15722 unistd_defines_pthreads
=yes
15724 unistd_defines_pthreads
=no
15728 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15729 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15731 cat >>confdefs.h
<<\_ACEOF
15732 #define _REENTRANT 1
15735 if test "${ac_cv_header_cthreads_h+set}" = set; then
15736 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15737 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15738 if test "${ac_cv_header_cthreads_h+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15742 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15744 # Is the header compilable?
15745 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15746 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15747 cat >conftest.
$ac_ext <<_ACEOF
15750 cat confdefs.h
>>conftest.
$ac_ext
15751 cat >>conftest.
$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 $ac_includes_default
15754 #include <cthreads.h>
15756 rm -f conftest.
$ac_objext
15757 if { (ac_try
="$ac_compile"
15758 case "(($ac_try" in
15759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763 (eval "$ac_compile") 2>conftest.er1
15765 grep -v '^ *+' conftest.er1 >conftest.err
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } && {
15770 test -z "$ac_c_werror_flag" ||
15771 test ! -s conftest.err
15772 } && test -s conftest.$ac_objext; then
15773 ac_header_compiler=yes
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_header_compiler=no
15781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15783 echo "${ECHO_T}$ac_header_compiler" >&6; }
15785 # Is the header present?
15786 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15787 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15794 #include <cthreads.h>
15796 if { (ac_try="$ac_cpp conftest.$ac_ext"
15797 case "(($ac_try" in
15798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15799 *) ac_try_echo
=$ac_try;;
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15804 grep -v '^ *+' conftest.er1
>conftest.err
15806 cat conftest.err
>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } >/dev
/null
&& {
15809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15810 test ! -s conftest.err
15812 ac_header_preproc
=yes
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.
$ac_ext >&5
15817 ac_header_preproc
=no
15820 rm -f conftest.err conftest.
$ac_ext
15821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15822 echo "${ECHO_T}$ac_header_preproc" >&6; }
15824 # So? What about this header?
15825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15827 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15828 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15830 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15831 ac_header_preproc
=yes
15834 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15835 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15837 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15839 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15841 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15843 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15845 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15847 ## -------------------------------------- ##
15848 ## Report this to http://bugs.python.org/ ##
15849 ## -------------------------------------- ##
15851 ) |
sed "s/^/$as_me: WARNING: /" >&2
15854 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15855 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15856 if test "${ac_cv_header_cthreads_h+set}" = set; then
15857 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 ac_cv_header_cthreads_h
=$ac_header_preproc
15861 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15862 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15865 if test $ac_cv_header_cthreads_h = yes; then
15866 cat >>confdefs.h
<<\_ACEOF
15867 #define WITH_THREAD 1
15870 cat >>confdefs.h
<<\_ACEOF
15871 #define C_THREADS 1
15875 cat >>confdefs.h
<<\_ACEOF
15876 #define HURD_C_THREADS 1
15879 LIBS
="$LIBS -lthreads"
15880 THREADOBJ
="Python/thread.o"
15883 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15884 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15885 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15886 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15890 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15892 # Is the header compilable?
15893 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15894 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15895 cat >conftest.
$ac_ext <<_ACEOF
15898 cat confdefs.h
>>conftest.
$ac_ext
15899 cat >>conftest.
$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15901 $ac_includes_default
15902 #include <mach/cthreads.h>
15904 rm -f conftest.
$ac_objext
15905 if { (ac_try
="$ac_compile"
15906 case "(($ac_try" in
15907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_compile") 2>conftest.er1
15913 grep -v '^ *+' conftest.er1 >conftest.err
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } && {
15918 test -z "$ac_c_werror_flag" ||
15919 test ! -s conftest.err
15920 } && test -s conftest.$ac_objext; then
15921 ac_header_compiler=yes
15923 echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15926 ac_header_compiler=no
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15931 echo "${ECHO_T}$ac_header_compiler" >&6; }
15933 # Is the header present?
15934 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15935 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 #include <mach/cthreads.h>
15944 if { (ac_try="$ac_cpp conftest.$ac_ext"
15945 case "(($ac_try" in
15946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15947 *) ac_try_echo
=$ac_try;;
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15952 grep -v '^ *+' conftest.er1
>conftest.err
15954 cat conftest.err
>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } >/dev
/null
&& {
15957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15960 ac_header_preproc
=yes
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.
$ac_ext >&5
15965 ac_header_preproc
=no
15968 rm -f conftest.err conftest.
$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15970 echo "${ECHO_T}$ac_header_preproc" >&6; }
15972 # So? What about this header?
15973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15975 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15976 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15978 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15979 ac_header_preproc
=yes
15982 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15983 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15985 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15987 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15989 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15991 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15993 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15995 ## -------------------------------------- ##
15996 ## Report this to http://bugs.python.org/ ##
15997 ## -------------------------------------- ##
15999 ) |
sed "s/^/$as_me: WARNING: /" >&2
16002 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16003 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16004 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
16009 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16010 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16013 if test $ac_cv_header_mach_cthreads_h = yes; then
16014 cat >>confdefs.h
<<\_ACEOF
16015 #define WITH_THREAD 1
16018 cat >>confdefs.h
<<\_ACEOF
16019 #define C_THREADS 1
16023 cat >>confdefs.h
<<\_ACEOF
16024 #define MACH_C_THREADS 1
16027 THREADOBJ
="Python/thread.o"
16030 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16031 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16033 # Check whether --with-pth was given.
16034 if test "${with_pth+set}" = set; then
16035 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16036 echo "${ECHO_T}$withval" >&6; }
16037 cat >>confdefs.h
<<\_ACEOF
16038 #define WITH_THREAD 1
16042 cat >>confdefs.h
<<\_ACEOF
16047 THREADOBJ
="Python/thread.o"
16049 { echo "$as_me:$LINENO: result: no" >&5
16050 echo "${ECHO_T}no" >&6; }
16052 # Just looking for pthread_create in libpthread is not enough:
16053 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16054 # So we really have to include pthread.h, and then link.
16056 LIBS
="$LIBS -lpthread"
16057 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16058 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16059 cat >conftest.
$ac_ext <<_ACEOF
16062 cat confdefs.h
>>conftest.
$ac_ext
16063 cat >>conftest.
$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <pthread.h>
16067 void * start_routine (void *arg) { exit (0); }
16072 pthread_create (NULL, NULL, start_routine, NULL)
16077 rm -f conftest.
$ac_objext conftest
$ac_exeext
16078 if { (ac_try
="$ac_link"
16079 case "(($ac_try" in
16080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_link") 2>conftest.er1
16086 grep -v '^ *+' conftest.er1 >conftest.err
16088 cat conftest.err >&5
16089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16090 (exit $ac_status); } && {
16091 test -z "$ac_c_werror_flag" ||
16092 test ! -s conftest.err
16093 } && test -s conftest$ac_exeext &&
16094 $as_test_x conftest$ac_exeext; then
16096 { echo "$as_me:$LINENO: result: yes" >&5
16097 echo "${ECHO_T}yes" >&6; }
16098 cat >>confdefs.h <<\_ACEOF
16099 #define WITH_THREAD 1
16103 THREADOBJ="Python/thread.o"
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16110 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16111 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16112 if test "${ac_cv_func_pthread_detach+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 cat >conftest.$ac_ext <<_ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16123 #define pthread_detach innocuous_pthread_detach
16125 /* System header to define __stub macros and hopefully few prototypes,
16126 which can conflict with char pthread_detach (); below.
16127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16128 <limits.h> exists even on freestanding compilers. */
16131 # include <limits.h>
16133 # include <assert.h>
16136 #undef pthread_detach
16138 /* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16144 char pthread_detach ();
16145 /* The GNU C library defines this for functions which it implements
16146 to always fail with ENOSYS. Some functions are actually named
16147 something starting with __ and the normal name is an alias. */
16148 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16155 return pthread_detach ();
16160 rm -f conftest.$ac_objext conftest$ac_exeext
16161 if { (ac_try="$ac_link"
16162 case "(($ac_try" in
16163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16164 *) ac_try_echo
=$ac_try;;
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167 (eval "$ac_link") 2>conftest.er1
16169 grep -v '^ *+' conftest.er1
>conftest.err
16171 cat conftest.err
>&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } && {
16174 test -z "$ac_c_werror_flag" ||
16175 test ! -s conftest.err
16176 } && test -s conftest
$ac_exeext &&
16177 $as_test_x conftest
$ac_exeext; then
16178 ac_cv_func_pthread_detach
=yes
16180 echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.
$ac_ext >&5
16183 ac_cv_func_pthread_detach
=no
16186 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16187 conftest
$ac_exeext conftest.
$ac_ext
16189 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16190 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16191 if test $ac_cv_func_pthread_detach = yes; then
16192 cat >>confdefs.h
<<\_ACEOF
16193 #define WITH_THREAD 1
16197 THREADOBJ
="Python/thread.o"
16200 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16201 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16202 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16203 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16207 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16209 # Is the header compilable?
16210 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16211 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16212 cat >conftest.
$ac_ext <<_ACEOF
16215 cat confdefs.h
>>conftest.
$ac_ext
16216 cat >>conftest.
$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 $ac_includes_default
16219 #include <atheos/threads.h>
16221 rm -f conftest.
$ac_objext
16222 if { (ac_try
="$ac_compile"
16223 case "(($ac_try" in
16224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_compile") 2>conftest.er1
16230 grep -v '^ *+' conftest.er1 >conftest.err
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } && {
16235 test -z "$ac_c_werror_flag" ||
16236 test ! -s conftest.err
16237 } && test -s conftest.$ac_objext; then
16238 ac_header_compiler=yes
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 ac_header_compiler=no
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16248 echo "${ECHO_T}$ac_header_compiler" >&6; }
16250 # Is the header present?
16251 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16252 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <atheos/threads.h>
16261 if { (ac_try="$ac_cpp conftest.$ac_ext"
16262 case "(($ac_try" in
16263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16264 *) ac_try_echo
=$ac_try;;
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1
>conftest.err
16271 cat conftest.err
>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } >/dev
/null
&& {
16274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16275 test ! -s conftest.err
16277 ac_header_preproc
=yes
16279 echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.
$ac_ext >&5
16282 ac_header_preproc
=no
16285 rm -f conftest.err conftest.
$ac_ext
16286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16287 echo "${ECHO_T}$ac_header_preproc" >&6; }
16289 # So? What about this header?
16290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16292 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16293 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16294 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16295 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16296 ac_header_preproc
=yes
16299 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16300 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16302 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16304 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16306 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16307 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16308 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16310 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16312 ## -------------------------------------- ##
16313 ## Report this to http://bugs.python.org/ ##
16314 ## -------------------------------------- ##
16316 ) |
sed "s/^/$as_me: WARNING: /" >&2
16319 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16320 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16321 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 ac_cv_header_atheos_threads_h
=$ac_header_preproc
16326 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16327 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16330 if test $ac_cv_header_atheos_threads_h = yes; then
16331 cat >>confdefs.h
<<\_ACEOF
16332 #define WITH_THREAD 1
16336 cat >>confdefs.h
<<\_ACEOF
16337 #define ATHEOS_THREADS 1
16340 THREADOBJ
="Python/thread.o"
16343 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16344 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16345 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16346 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16350 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16352 # Is the header compilable?
16353 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16354 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16355 cat >conftest.
$ac_ext <<_ACEOF
16358 cat confdefs.h
>>conftest.
$ac_ext
16359 cat >>conftest.
$ac_ext <<_ACEOF
16360 /* end confdefs.h. */
16361 $ac_includes_default
16362 #include <kernel/OS.h>
16364 rm -f conftest.
$ac_objext
16365 if { (ac_try
="$ac_compile"
16366 case "(($ac_try" in
16367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_compile") 2>conftest.er1
16373 grep -v '^ *+' conftest.er1 >conftest.err
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); } && {
16378 test -z "$ac_c_werror_flag" ||
16379 test ! -s conftest.err
16380 } && test -s conftest.$ac_objext; then
16381 ac_header_compiler=yes
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_header_compiler=no
16389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16391 echo "${ECHO_T}$ac_header_compiler" >&6; }
16393 # Is the header present?
16394 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16395 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16396 cat >conftest.$ac_ext <<_ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h. */
16402 #include <kernel/OS.h>
16404 if { (ac_try="$ac_cpp conftest.$ac_ext"
16405 case "(($ac_try" in
16406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16407 *) ac_try_echo
=$ac_try;;
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16412 grep -v '^ *+' conftest.er1
>conftest.err
16414 cat conftest.err
>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } >/dev
/null
&& {
16417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16418 test ! -s conftest.err
16420 ac_header_preproc
=yes
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.
$ac_ext >&5
16425 ac_header_preproc
=no
16428 rm -f conftest.err conftest.
$ac_ext
16429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16430 echo "${ECHO_T}$ac_header_preproc" >&6; }
16432 # So? What about this header?
16433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16435 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16436 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16438 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16439 ac_header_preproc
=yes
16442 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16443 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16445 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16447 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16449 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16450 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16451 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16453 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16455 ## -------------------------------------- ##
16456 ## Report this to http://bugs.python.org/ ##
16457 ## -------------------------------------- ##
16459 ) |
sed "s/^/$as_me: WARNING: /" >&2
16462 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16463 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16464 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 ac_cv_header_kernel_OS_h
=$ac_header_preproc
16469 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16470 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16473 if test $ac_cv_header_kernel_OS_h = yes; then
16474 cat >>confdefs.h
<<\_ACEOF
16475 #define WITH_THREAD 1
16479 cat >>confdefs.h
<<\_ACEOF
16480 #define BEOS_THREADS 1
16483 THREADOBJ
="Python/thread.o"
16486 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16487 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16488 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 ac_check_lib_save_LIBS
=$LIBS
16492 LIBS
="-lpthreads $LIBS"
16493 cat >conftest.
$ac_ext <<_ACEOF
16496 cat confdefs.h
>>conftest.
$ac_ext
16497 cat >>conftest.
$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16500 /* Override any GCC internal prototype to avoid an error.
16501 Use char because int might match the return type of a GCC
16502 builtin and then its argument prototype would still apply. */
16506 char pthread_create ();
16510 return pthread_create ();
16515 rm -f conftest.
$ac_objext conftest
$ac_exeext
16516 if { (ac_try
="$ac_link"
16517 case "(($ac_try" in
16518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_link") 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest$ac_exeext &&
16532 $as_test_x conftest$ac_exeext; then
16533 ac_cv_lib_pthreads_pthread_create=yes
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 ac_cv_lib_pthreads_pthread_create=no
16541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16542 conftest$ac_exeext conftest.$ac_ext
16543 LIBS=$ac_check_lib_save_LIBS
16545 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16546 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16547 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16548 cat >>confdefs.h <<\_ACEOF
16549 #define WITH_THREAD 1
16553 LIBS="$LIBS -lpthreads"
16554 THREADOBJ="Python/thread.o"
16557 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16558 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16559 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16562 ac_check_lib_save_LIBS=$LIBS
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16571 /* Override any GCC internal prototype to avoid an error.
16572 Use char because int might match the return type of a GCC
16573 builtin and then its argument prototype would still apply. */
16577 char pthread_create ();
16581 return pthread_create ();
16586 rm -f conftest.$ac_objext conftest$ac_exeext
16587 if { (ac_try="$ac_link"
16588 case "(($ac_try" in
16589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16590 *) ac_try_echo
=$ac_try;;
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_link") 2>conftest.er1
16595 grep -v '^ *+' conftest.er1
>conftest.err
16597 cat conftest.err
>&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } && {
16600 test -z "$ac_c_werror_flag" ||
16601 test ! -s conftest.err
16602 } && test -s conftest
$ac_exeext &&
16603 $as_test_x conftest
$ac_exeext; then
16604 ac_cv_lib_c_r_pthread_create
=yes
16606 echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.
$ac_ext >&5
16609 ac_cv_lib_c_r_pthread_create
=no
16612 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16613 conftest
$ac_exeext conftest.
$ac_ext
16614 LIBS
=$ac_check_lib_save_LIBS
16616 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16617 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16618 if test $ac_cv_lib_c_r_pthread_create = yes; then
16619 cat >>confdefs.h
<<\_ACEOF
16620 #define WITH_THREAD 1
16625 THREADOBJ
="Python/thread.o"
16628 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16629 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16630 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 ac_check_lib_save_LIBS
=$LIBS
16634 LIBS
="-lpthread $LIBS"
16635 cat >conftest.
$ac_ext <<_ACEOF
16638 cat confdefs.h
>>conftest.
$ac_ext
16639 cat >>conftest.
$ac_ext <<_ACEOF
16640 /* end confdefs.h. */
16642 /* Override any GCC internal prototype to avoid an error.
16643 Use char because int might match the return type of a GCC
16644 builtin and then its argument prototype would still apply. */
16648 char __pthread_create_system ();
16652 return __pthread_create_system ();
16657 rm -f conftest.
$ac_objext conftest
$ac_exeext
16658 if { (ac_try
="$ac_link"
16659 case "(($ac_try" in
16660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_link") 2>conftest.er1
16666 grep -v '^ *+' conftest.er1 >conftest.err
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } && {
16671 test -z "$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 } && test -s conftest$ac_exeext &&
16674 $as_test_x conftest$ac_exeext; then
16675 ac_cv_lib_pthread___pthread_create_system=yes
16677 echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16680 ac_cv_lib_pthread___pthread_create_system=no
16683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16684 conftest$ac_exeext conftest.$ac_ext
16685 LIBS=$ac_check_lib_save_LIBS
16687 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16688 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16689 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16690 cat >>confdefs.h <<\_ACEOF
16691 #define WITH_THREAD 1
16695 LIBS="$LIBS -lpthread"
16696 THREADOBJ="Python/thread.o"
16699 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16700 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16701 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 ac_check_lib_save_LIBS=$LIBS
16706 cat >conftest.$ac_ext <<_ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16713 /* Override any GCC internal prototype to avoid an error.
16714 Use char because int might match the return type of a GCC
16715 builtin and then its argument prototype would still apply. */
16719 char pthread_create ();
16723 return pthread_create ();
16728 rm -f conftest.$ac_objext conftest$ac_exeext
16729 if { (ac_try="$ac_link"
16730 case "(($ac_try" in
16731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16732 *) ac_try_echo
=$ac_try;;
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_link") 2>conftest.er1
16737 grep -v '^ *+' conftest.er1
>conftest.err
16739 cat conftest.err
>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest
$ac_exeext &&
16745 $as_test_x conftest
$ac_exeext; then
16746 ac_cv_lib_cma_pthread_create
=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.
$ac_ext >&5
16751 ac_cv_lib_cma_pthread_create
=no
16754 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16755 conftest
$ac_exeext conftest.
$ac_ext
16756 LIBS
=$ac_check_lib_save_LIBS
16758 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16759 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16760 if test $ac_cv_lib_cma_pthread_create = yes; then
16761 cat >>confdefs.h
<<\_ACEOF
16762 #define WITH_THREAD 1
16767 THREADOBJ
="Python/thread.o"
16770 USE_THREAD_MODULE
="#"
16790 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16791 conftest
$ac_exeext conftest.
$ac_ext
16801 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16802 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16803 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 ac_check_lib_save_LIBS
=$LIBS
16808 cat >conftest.
$ac_ext <<_ACEOF
16811 cat confdefs.h
>>conftest.
$ac_ext
16812 cat >>conftest.
$ac_ext <<_ACEOF
16813 /* end confdefs.h. */
16815 /* Override any GCC internal prototype to avoid an error.
16816 Use char because int might match the return type of a GCC
16817 builtin and then its argument prototype would still apply. */
16825 return usconfig ();
16830 rm -f conftest.
$ac_objext conftest
$ac_exeext
16831 if { (ac_try
="$ac_link"
16832 case "(($ac_try" in
16833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_link") 2>conftest.er1
16839 grep -v '^ *+' conftest.er1 >conftest.err
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } && {
16844 test -z "$ac_c_werror_flag" ||
16845 test ! -s conftest.err
16846 } && test -s conftest$ac_exeext &&
16847 $as_test_x conftest$ac_exeext; then
16848 ac_cv_lib_mpc_usconfig=yes
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_cv_lib_mpc_usconfig=no
16856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16857 conftest$ac_exeext conftest.$ac_ext
16858 LIBS=$ac_check_lib_save_LIBS
16860 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16861 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16862 if test $ac_cv_lib_mpc_usconfig = yes; then
16863 cat >>confdefs.h <<\_ACEOF
16864 #define WITH_THREAD 1
16868 THREADOBJ="Python/thread.o"
16869 USE_THREAD_MODULE=""
16873 if test "$posix_threads" != "yes"; then
16874 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16875 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16876 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
16879 ac_check_lib_save_LIBS=$LIBS
16880 LIBS="-lthread $LIBS"
16881 cat >conftest.$ac_ext <<_ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16888 /* Override any GCC internal prototype to avoid an error.
16889 Use char because int might match the return type of a GCC
16890 builtin and then its argument prototype would still apply. */
16894 char thr_create ();
16898 return thr_create ();
16903 rm -f conftest.$ac_objext conftest$ac_exeext
16904 if { (ac_try="$ac_link"
16905 case "(($ac_try" in
16906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16907 *) ac_try_echo
=$ac_try;;
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_link") 2>conftest.er1
16912 grep -v '^ *+' conftest.er1
>conftest.err
16914 cat conftest.err
>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && {
16917 test -z "$ac_c_werror_flag" ||
16918 test ! -s conftest.err
16919 } && test -s conftest
$ac_exeext &&
16920 $as_test_x conftest
$ac_exeext; then
16921 ac_cv_lib_thread_thr_create
=yes
16923 echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.
$ac_ext >&5
16926 ac_cv_lib_thread_thr_create
=no
16929 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16930 conftest
$ac_exeext conftest.
$ac_ext
16931 LIBS
=$ac_check_lib_save_LIBS
16933 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16934 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16935 if test $ac_cv_lib_thread_thr_create = yes; then
16936 cat >>confdefs.h
<<\_ACEOF
16937 #define WITH_THREAD 1
16940 LIBS
="$LIBS -lthread"
16941 THREADOBJ
="Python/thread.o"
16942 USE_THREAD_MODULE
=""
16947 if test "$USE_THREAD_MODULE" != "#"
16949 # If the above checks didn't disable threads, (at least) OSF1
16950 # needs this '-threads' argument during linking.
16951 case $ac_sys_system in
16952 OSF1
) LDLAST
=-threads;;
16957 if test "$posix_threads" = "yes"; then
16958 if test "$unistd_defines_pthreads" = "no"; then
16960 cat >>confdefs.h
<<\_ACEOF
16961 #define _POSIX_THREADS 1
16966 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16967 case $ac_sys_system/$ac_sys_release in
16969 cat >>confdefs.h
<<\_ACEOF
16970 #define HAVE_PTHREAD_DESTRUCTOR 1
16975 cat >>confdefs.h
<<\_ACEOF
16976 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16981 cat >>confdefs.h
<<\_ACEOF
16982 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16988 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16989 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16990 if test "${ac_cv_pthread_system_supported+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 if test "$cross_compiling" = yes; then
16994 ac_cv_pthread_system_supported
=no
16996 cat >conftest.
$ac_ext <<_ACEOF
16999 cat confdefs.h
>>conftest.
$ac_ext
17000 cat >>conftest.
$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 #include <pthread.h>
17003 void *foo(void *parm) {
17007 pthread_attr_t attr;
17009 if (pthread_attr_init(&attr)) exit(-1);
17010 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17011 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17015 rm -f conftest
$ac_exeext
17016 if { (ac_try
="$ac_link"
17017 case "(($ac_try" in
17018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_link") 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17026 { (case "(($ac_try" in
17027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17028 *) ac_try_echo
=$ac_try;;
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031 (eval "$ac_try") 2>&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_cv_pthread_system_supported
=yes
17037 echo "$as_me: program exited with status $ac_status" >&5
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.
$ac_ext >&5
17041 ( exit $ac_status )
17042 ac_cv_pthread_system_supported
=no
17044 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17051 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17052 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17053 if test "$ac_cv_pthread_system_supported" = "yes"; then
17055 cat >>confdefs.h
<<\_ACEOF
17056 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17061 for ac_func
in pthread_sigmask
17063 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17066 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 cat >conftest.
$ac_ext <<_ACEOF
17072 cat confdefs.h
>>conftest.
$ac_ext
17073 cat >>conftest.
$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17077 #define $ac_func innocuous_$ac_func
17079 /* System header to define __stub macros and hopefully few prototypes,
17080 which can conflict with char $ac_func (); below.
17081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17082 <limits.h> exists even on freestanding compilers. */
17085 # include <limits.h>
17087 # include <assert.h>
17092 /* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
17099 /* The GNU C library defines this for functions which it implements
17100 to always fail with ENOSYS. Some functions are actually named
17101 something starting with __ and the normal name is an alias. */
17102 #if defined __stub_$ac_func || defined __stub___$ac_func
17109 return $ac_func ();
17114 rm -f conftest.
$ac_objext conftest
$ac_exeext
17115 if { (ac_try
="$ac_link"
17116 case "(($ac_try" in
17117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17118 *) ac_try_echo=$ac_try;;
17120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121 (eval "$ac_link") 2>conftest.er1
17123 grep -v '^ *+' conftest.er1 >conftest.err
17125 cat conftest.err >&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } && {
17128 test -z "$ac_c_werror_flag" ||
17129 test ! -s conftest.err
17130 } && test -s conftest$ac_exeext &&
17131 $as_test_x conftest$ac_exeext; then
17132 eval "$as_ac_var=yes"
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 eval "$as_ac_var=no"
17140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17141 conftest$ac_exeext conftest.$ac_ext
17143 ac_res=`eval echo '${'$as_ac_var'}'`
17144 { echo "$as_me:$LINENO: result: $ac_res" >&5
17145 echo "${ECHO_T}$ac_res" >&6; }
17146 if test `eval echo '${'$as_ac_var'}'` = yes; then
17147 cat >>confdefs.h <<_ACEOF
17148 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17150 case $ac_sys_system in
17153 cat >>confdefs.h <<\_ACEOF
17154 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17165 # Check for enable-ipv6
17168 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17169 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17170 # Check whether --enable-ipv6 was given.
17171 if test "${enable_ipv6+set}" = set; then
17172 enableval=$enable_ipv6; case "$enableval" in
17174 { echo "$as_me:$LINENO: result: no" >&5
17175 echo "${ECHO_T}no" >&6; }
17178 *) { echo "$as_me:$LINENO: result: yes" >&5
17179 echo "${ECHO_T}yes" >&6; }
17180 cat >>confdefs.h <<\_ACEOF
17181 #define ENABLE_IPV6 1
17189 if test "$cross_compiling" = yes; then
17190 { echo "$as_me:$LINENO: result: no" >&5
17191 echo "${ECHO_T}no" >&6; }
17195 cat >conftest.$ac_ext <<_ACEOF
17198 cat confdefs.h >>conftest.$ac_ext
17199 cat >>conftest.$ac_ext <<_ACEOF
17200 /* end confdefs.h. */
17201 /* AF_INET6 available check */
17202 #include <sys/types.h>
17203 #include <sys/socket.h>
17206 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17213 rm -f conftest$ac_exeext
17214 if { (ac_try="$ac_link"
17215 case "(($ac_try" in
17216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17217 *) ac_try_echo
=$ac_try;;
17219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_link") 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17224 { (case "(($ac_try" in
17225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_try") 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 { echo "$as_me:$LINENO: result: yes" >&5
17234 echo "${ECHO_T}yes" >&6; }
17237 echo "$as_me: program exited with status $ac_status" >&5
17238 echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ( exit $ac_status )
17242 { echo "$as_me:$LINENO: result: no" >&5
17243 echo "${ECHO_T}no" >&6; }
17246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17251 if test "$ipv6" = "yes"; then
17252 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17253 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17254 cat >conftest.$ac_ext <<_ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17260 #include <sys/types.h>
17261 #include <netinet/in.h>
17265 struct sockaddr_in6 x;
17271 rm -f conftest.$ac_objext
17272 if { (ac_try="$ac_compile"
17273 case "(($ac_try" in
17274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17275 *) ac_try_echo
=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_compile") 2>conftest.er1
17280 grep -v '^ *+' conftest.er1
>conftest.err
17282 cat conftest.err
>&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } && {
17285 test -z "$ac_c_werror_flag" ||
17286 test ! -s conftest.err
17287 } && test -s conftest.
$ac_objext; then
17288 { echo "$as_me:$LINENO: result: yes" >&5
17289 echo "${ECHO_T}yes" >&6; }
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.
$ac_ext >&5
17295 { echo "$as_me:$LINENO: result: no" >&5
17296 echo "${ECHO_T}no" >&6; }
17300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17303 if test "$ipv6" = "yes"; then
17304 cat >>confdefs.h
<<\_ACEOF
17305 #define ENABLE_IPV6 1
17317 if test "$ipv6" = "yes"; then
17318 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17319 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17320 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
17324 cat >conftest.
$ac_ext <<_ACEOF
17327 cat confdefs.h
>>conftest.
$ac_ext
17328 cat >>conftest.
$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17331 #include <netinet/in.h>
17332 #ifdef IPV6_INRIA_VERSION
17336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17337 $EGREP "yes" >/dev
/null
2>&1; then
17344 cat >conftest.
$ac_ext <<_ACEOF
17347 cat confdefs.h
>>conftest.
$ac_ext
17348 cat >>conftest.
$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17351 #include <netinet/in.h>
17356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17357 $EGREP "yes" >/dev
/null
2>&1; then
17360 ipv6libdir
=/usr
/local
/v
6/lib
17367 cat >conftest.
$ac_ext <<_ACEOF
17370 cat confdefs.h
>>conftest.
$ac_ext
17371 cat >>conftest.
$ac_ext <<_ACEOF
17372 /* end confdefs.h. */
17374 #include <features.h>
17375 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17380 $EGREP "yes" >/dev
/null
2>&1; then
17388 if test -d /usr
/inet6
; then
17391 ipv6libdir
=/usr
/inet
6/lib
17392 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
17396 if test -f /etc
/netconfig
; then
17397 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
17404 cat >conftest.
$ac_ext <<_ACEOF
17407 cat confdefs.h
>>conftest.
$ac_ext
17408 cat >>conftest.
$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17411 #include <sys/param.h>
17412 #ifdef _TOSHIBA_INET6
17416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17417 $EGREP "yes" >/dev
/null
2>&1; then
17420 ipv6libdir
=/usr
/local
/v
6/lib
17426 cat >conftest.
$ac_ext <<_ACEOF
17429 cat confdefs.h
>>conftest.
$ac_ext
17430 cat >>conftest.
$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17433 #include </usr/local/v6/include/sys/v6config.h>
17438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17439 $EGREP "yes" >/dev
/null
2>&1; then
17442 ipv6libdir
=/usr
/local
/v
6/lib
;
17443 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
17449 cat >conftest.
$ac_ext <<_ACEOF
17452 cat confdefs.h
>>conftest.
$ac_ext
17453 cat >>conftest.
$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17456 #include <sys/param.h>
17457 #ifdef _ZETA_MINAMI_INET6
17461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17462 $EGREP "yes" >/dev
/null
2>&1; then
17465 ipv6libdir
=/usr
/local
/v
6/lib
17471 if test "$ipv6type" != "unknown"; then
17475 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17476 echo "${ECHO_T}$ipv6type" >&6; }
17479 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17480 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
17481 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
17482 echo "using lib$ipv6lib"
17484 if test $ipv6trylibc = "yes"; then
17487 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17488 echo "You need to fetch lib$ipv6lib.a from appropriate"
17489 echo 'ipv6 kit and compile beforehand.'
17495 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17496 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17497 cat >conftest.
$ac_ext <<_ACEOF
17500 cat confdefs.h
>>conftest.
$ac_ext
17501 cat >>conftest.
$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #include <Carbon/Carbon.h>
17507 FSIORefNum fRef = 0
17512 rm -f conftest.
$ac_objext
17513 if { (ac_try
="$ac_compile"
17514 case "(($ac_try" in
17515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17516 *) ac_try_echo=$ac_try;;
17518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17519 (eval "$ac_compile") 2>conftest.er1
17521 grep -v '^ *+' conftest.er1 >conftest.err
17523 cat conftest.err >&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } && {
17526 test -z "$ac_c_werror_flag" ||
17527 test ! -s conftest.err
17528 } && test -s conftest.$ac_objext; then
17530 cat >>confdefs.h <<\_ACEOF
17531 #define HAVE_OSX105_SDK 1
17534 { echo "$as_me:$LINENO: result: yes" >&5
17535 echo "${ECHO_T}yes" >&6; }
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17540 { echo "$as_me:$LINENO: result: no" >&5
17541 echo "${ECHO_T}no" >&6; }
17545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547 # Check for --with-doc-strings
17548 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17549 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17551 # Check whether --with-doc-strings was given.
17552 if test "${with_doc_strings+set}" = set; then
17553 withval=$with_doc_strings;
17557 if test -z "$with_doc_strings"
17558 then with_doc_strings="yes"
17560 if test "$with_doc_strings" != "no"
17563 cat >>confdefs.h <<\_ACEOF
17564 #define WITH_DOC_STRINGS 1
17568 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17569 echo "${ECHO_T}$with_doc_strings" >&6; }
17571 # Check for Python-specific malloc support
17572 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17573 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17575 # Check whether --with-tsc was given.
17576 if test "${with_tsc+set}" = set; then
17578 if test "$withval" != no
17581 cat >>confdefs.h <<\_ACEOF
17585 { echo "$as_me:$LINENO: result: yes" >&5
17586 echo "${ECHO_T}yes" >&6; }
17587 else { echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6; }
17591 { echo "$as_me:$LINENO: result: no" >&5
17592 echo "${ECHO_T}no" >&6; }
17596 # Check for Python-specific malloc support
17597 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17598 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17600 # Check whether --with-pymalloc was given.
17601 if test "${with_pymalloc+set}" = set; then
17602 withval=$with_pymalloc;
17606 if test -z "$with_pymalloc"
17607 then with_pymalloc="yes"
17609 if test "$with_pymalloc" != "no"
17612 cat >>confdefs.h <<\_ACEOF
17613 #define WITH_PYMALLOC 1
17617 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17618 echo "${ECHO_T}$with_pymalloc" >&6; }
17620 # Check for Valgrind support
17621 { echo "$as_me:$LINENO: checking for --with-valgrind" >&5
17622 echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; }
17624 # Check whether --with-valgrind was given.
17625 if test "${with_valgrind+set}" = set; then
17626 withval=$with_valgrind;
17631 { echo "$as_me:$LINENO: result: $with_valgrind" >&5
17632 echo "${ECHO_T}$with_valgrind" >&6; }
17633 if test "$with_valgrind" != no; then
17634 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17635 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17636 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17637 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17641 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17643 # Is the header compilable?
17644 { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5
17645 echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; }
17646 cat >conftest.$ac_ext <<_ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17652 $ac_includes_default
17653 #include <valgrind/valgrind.h>
17655 rm -f conftest.$ac_objext
17656 if { (ac_try="$ac_compile"
17657 case "(($ac_try" in
17658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17659 *) ac_try_echo
=$ac_try;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_compile") 2>conftest.er1
17664 grep -v '^ *+' conftest.er1
>conftest.err
17666 cat conftest.err
>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest.
$ac_objext; then
17672 ac_header_compiler
=yes
17674 echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.
$ac_ext >&5
17677 ac_header_compiler
=no
17680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17682 echo "${ECHO_T}$ac_header_compiler" >&6; }
17684 # Is the header present?
17685 { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5
17686 echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; }
17687 cat >conftest.
$ac_ext <<_ACEOF
17690 cat confdefs.h
>>conftest.
$ac_ext
17691 cat >>conftest.
$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17693 #include <valgrind/valgrind.h>
17695 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17696 case "(($ac_try" in
17697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17703 grep -v '^ *+' conftest.er1 >conftest.err
17705 cat conftest.err >&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } >/dev/null && {
17708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17709 test ! -s conftest.err
17711 ac_header_preproc=yes
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17716 ac_header_preproc=no
17719 rm -f conftest.err conftest.$ac_ext
17720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17721 echo "${ECHO_T}$ac_header_preproc" >&6; }
17723 # So? What about this header?
17724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17726 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
17727 echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17728 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5
17729 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;}
17730 ac_header_preproc=yes
17733 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5
17734 echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5
17736 echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;}
17737 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5
17738 echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
17740 echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
17741 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5
17742 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;}
17743 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5
17744 echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;}
17746 ## -------------------------------------- ##
17747 ## Report this to http://bugs.python.org/ ##
17748 ## -------------------------------------- ##
17750 ) | sed "s/^/$as_me: WARNING: /" >&2
17753 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17754 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17755 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 ac_cv_header_valgrind_valgrind_h=$ac_header_preproc
17760 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17761 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17764 if test $ac_cv_header_valgrind_valgrind_h = yes; then
17766 cat >>confdefs.h <<\_ACEOF
17767 #define WITH_VALGRIND 1
17771 { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5
17772 echo "$as_me: error: Valgrind support requested but headers not available" >&2;}
17773 { (exit 1); exit 1; }; }
17780 # Check for --with-wctype-functions
17781 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17782 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17784 # Check whether --with-wctype-functions was given.
17785 if test "${with_wctype_functions+set}" = set; then
17786 withval=$with_wctype_functions;
17787 if test "$withval" != no
17790 cat >>confdefs.h <<\_ACEOF
17791 #define WANT_WCTYPE_FUNCTIONS 1
17794 { echo "$as_me:$LINENO: result: yes" >&5
17795 echo "${ECHO_T}yes" >&6; }
17796 else { echo "$as_me:$LINENO: result: no" >&5
17797 echo "${ECHO_T}no" >&6; }
17800 { echo "$as_me:$LINENO: result: no" >&5
17801 echo "${ECHO_T}no" >&6; }
17805 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17809 # the dlopen() function means we might want to use dynload_shlib.o. some
17810 # platforms, such as AIX, have dlopen(), but don't want to use it.
17812 for ac_func in dlopen
17814 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17820 cat >conftest.$ac_ext <<_ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17828 #define $ac_func innocuous_$ac_func
17830 /* System header to define __stub macros and hopefully few prototypes,
17831 which can conflict with char $ac_func (); below.
17832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17833 <limits.h> exists even on freestanding compilers. */
17836 # include <limits.h>
17838 # include <assert.h>
17843 /* Override any GCC internal prototype to avoid an error.
17844 Use char because int might match the return type of a GCC
17845 builtin and then its argument prototype would still apply. */
17850 /* The GNU C library defines this for functions which it implements
17851 to always fail with ENOSYS. Some functions are actually named
17852 something starting with __ and the normal name is an alias. */
17853 #if defined __stub_$ac_func || defined __stub___$ac_func
17860 return $ac_func ();
17865 rm -f conftest.$ac_objext conftest$ac_exeext
17866 if { (ac_try="$ac_link"
17867 case "(($ac_try" in
17868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17869 *) ac_try_echo
=$ac_try;;
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_link") 2>conftest.er1
17874 grep -v '^ *+' conftest.er1
>conftest.err
17876 cat conftest.err
>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } && {
17879 test -z "$ac_c_werror_flag" ||
17880 test ! -s conftest.err
17881 } && test -s conftest
$ac_exeext &&
17882 $as_test_x conftest
$ac_exeext; then
17883 eval "$as_ac_var=yes"
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.
$ac_ext >&5
17888 eval "$as_ac_var=no"
17891 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17892 conftest
$ac_exeext conftest.
$ac_ext
17894 ac_res
=`eval echo '${'$as_ac_var'}'`
17895 { echo "$as_me:$LINENO: result: $ac_res" >&5
17896 echo "${ECHO_T}$ac_res" >&6; }
17897 if test `eval echo '${'$as_ac_var'}'` = yes; then
17898 cat >>confdefs.h
<<_ACEOF
17899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17906 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17907 # loading of modules.
17909 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17910 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17911 if test -z "$DYNLOADFILE"
17913 case $ac_sys_system/$ac_sys_release in
17914 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17915 if test "$ac_cv_func_dlopen" = yes
17916 then DYNLOADFILE
="dynload_shlib.o"
17917 else DYNLOADFILE
="dynload_aix.o"
17920 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
17921 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
17922 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17923 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
17924 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
17926 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17927 # out any dynamic loading
17928 if test "$ac_cv_func_dlopen" = yes
17929 then DYNLOADFILE
="dynload_shlib.o"
17930 else DYNLOADFILE
="dynload_stub.o"
17935 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17936 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17937 if test "$DYNLOADFILE" != "dynload_stub.o"
17940 cat >>confdefs.h
<<\_ACEOF
17941 #define HAVE_DYNAMIC_LOADING 1
17946 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17949 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17950 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17951 if test -z "$MACHDEP_OBJS"
17953 MACHDEP_OBJS
=$extra_machdep_objs
17955 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
17957 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17958 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17960 # checks for library functions
18060 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
18061 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
18062 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
18063 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
18064 initgroups
kill killpg lchmod lchown lstat
mkfifo mknod mktime \
18065 mremap nice pathconf pause plock poll pthread_init \
18066 putenv readlink realpath \
18067 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
18069 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
18070 setlocale setregid setreuid setresuid setresgid \
18071 setsid setpgid setpgrp setuid setvbuf snprintf \
18072 sigaction siginterrupt sigrelse strftime \
18073 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
18074 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
18076 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18079 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18082 cat >conftest.
$ac_ext <<_ACEOF
18085 cat confdefs.h
>>conftest.
$ac_ext
18086 cat >>conftest.
$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18090 #define $ac_func innocuous_$ac_func
18092 /* System header to define __stub macros and hopefully few prototypes,
18093 which can conflict with char $ac_func (); below.
18094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18095 <limits.h> exists even on freestanding compilers. */
18098 # include <limits.h>
18100 # include <assert.h>
18105 /* Override any GCC internal prototype to avoid an error.
18106 Use char because int might match the return type of a GCC
18107 builtin and then its argument prototype would still apply. */
18112 /* The GNU C library defines this for functions which it implements
18113 to always fail with ENOSYS. Some functions are actually named
18114 something starting with __ and the normal name is an alias. */
18115 #if defined __stub_$ac_func || defined __stub___$ac_func
18122 return $ac_func ();
18127 rm -f conftest.
$ac_objext conftest
$ac_exeext
18128 if { (ac_try
="$ac_link"
18129 case "(($ac_try" in
18130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_link") 2>conftest.er1
18136 grep -v '^ *+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } && {
18141 test -z "$ac_c_werror_flag" ||
18142 test ! -s conftest.err
18143 } && test -s conftest$ac_exeext &&
18144 $as_test_x conftest$ac_exeext; then
18145 eval "$as_ac_var=yes"
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18150 eval "$as_ac_var=no"
18153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18154 conftest$ac_exeext conftest.$ac_ext
18156 ac_res=`eval echo '${'$as_ac_var'}'`
18157 { echo "$as_me:$LINENO: result: $ac_res" >&5
18158 echo "${ECHO_T}$ac_res" >&6; }
18159 if test `eval echo '${'$as_ac_var'}'` = yes; then
18160 cat >>confdefs.h <<_ACEOF
18161 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18168 # For some functions, having a definition is not sufficient, since
18169 # we want to take their address.
18170 { echo "$as_me:$LINENO: checking for chroot" >&5
18171 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18172 cat >conftest.$ac_ext <<_ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 #include <unistd.h>
18187 rm -f conftest.$ac_objext
18188 if { (ac_try="$ac_compile"
18189 case "(($ac_try" in
18190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18191 *) ac_try_echo
=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_compile") 2>conftest.er1
18196 grep -v '^ *+' conftest.er1
>conftest.err
18198 cat conftest.err
>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_c_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest.
$ac_objext; then
18205 cat >>confdefs.h
<<\_ACEOF
18206 #define HAVE_CHROOT 1
18209 { echo "$as_me:$LINENO: result: yes" >&5
18210 echo "${ECHO_T}yes" >&6; }
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.
$ac_ext >&5
18215 { echo "$as_me:$LINENO: result: no" >&5
18216 echo "${ECHO_T}no" >&6; }
18220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18221 { echo "$as_me:$LINENO: checking for link" >&5
18222 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18223 cat >conftest.
$ac_ext <<_ACEOF
18226 cat confdefs.h
>>conftest.
$ac_ext
18227 cat >>conftest.
$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 #include <unistd.h>
18238 rm -f conftest.
$ac_objext
18239 if { (ac_try
="$ac_compile"
18240 case "(($ac_try" in
18241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_compile") 2>conftest.er1
18247 grep -v '^ *+' conftest.er1 >conftest.err
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest.$ac_objext; then
18256 cat >>confdefs.h <<\_ACEOF
18257 #define HAVE_LINK 1
18260 { echo "$as_me:$LINENO: result: yes" >&5
18261 echo "${ECHO_T}yes" >&6; }
18263 echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18266 { echo "$as_me:$LINENO: result: no" >&5
18267 echo "${ECHO_T}no" >&6; }
18271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18272 { echo "$as_me:$LINENO: checking for symlink" >&5
18273 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18274 cat >conftest.$ac_ext <<_ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18280 #include <unistd.h>
18289 rm -f conftest.$ac_objext
18290 if { (ac_try="$ac_compile"
18291 case "(($ac_try" in
18292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18293 *) ac_try_echo
=$ac_try;;
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_compile") 2>conftest.er1
18298 grep -v '^ *+' conftest.er1
>conftest.err
18300 cat conftest.err
>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); } && {
18303 test -z "$ac_c_werror_flag" ||
18304 test ! -s conftest.err
18305 } && test -s conftest.
$ac_objext; then
18307 cat >>confdefs.h
<<\_ACEOF
18308 #define HAVE_SYMLINK 1
18311 { echo "$as_me:$LINENO: result: yes" >&5
18312 echo "${ECHO_T}yes" >&6; }
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.
$ac_ext >&5
18317 { echo "$as_me:$LINENO: result: no" >&5
18318 echo "${ECHO_T}no" >&6; }
18322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18323 { echo "$as_me:$LINENO: checking for fchdir" >&5
18324 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18325 cat >conftest.
$ac_ext <<_ACEOF
18328 cat confdefs.h
>>conftest.
$ac_ext
18329 cat >>conftest.
$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 #include <unistd.h>
18340 rm -f conftest.
$ac_objext
18341 if { (ac_try
="$ac_compile"
18342 case "(($ac_try" in
18343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_compile") 2>conftest.er1
18349 grep -v '^ *+' conftest.er1 >conftest.err
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest.$ac_objext; then
18358 cat >>confdefs.h <<\_ACEOF
18359 #define HAVE_FCHDIR 1
18362 { echo "$as_me:$LINENO: result: yes" >&5
18363 echo "${ECHO_T}yes" >&6; }
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 { echo "$as_me:$LINENO: result: no" >&5
18369 echo "${ECHO_T}no" >&6; }
18373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18374 { echo "$as_me:$LINENO: checking for fsync" >&5
18375 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18376 cat >conftest.$ac_ext <<_ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18382 #include <unistd.h>
18391 rm -f conftest.$ac_objext
18392 if { (ac_try="$ac_compile"
18393 case "(($ac_try" in
18394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18395 *) ac_try_echo
=$ac_try;;
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_compile") 2>conftest.er1
18400 grep -v '^ *+' conftest.er1
>conftest.err
18402 cat conftest.err
>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } && {
18405 test -z "$ac_c_werror_flag" ||
18406 test ! -s conftest.err
18407 } && test -s conftest.
$ac_objext; then
18409 cat >>confdefs.h
<<\_ACEOF
18410 #define HAVE_FSYNC 1
18413 { echo "$as_me:$LINENO: result: yes" >&5
18414 echo "${ECHO_T}yes" >&6; }
18416 echo "$as_me: failed program was:" >&5
18417 sed 's/^/| /' conftest.
$ac_ext >&5
18419 { echo "$as_me:$LINENO: result: no" >&5
18420 echo "${ECHO_T}no" >&6; }
18424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18425 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18426 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18427 cat >conftest.
$ac_ext <<_ACEOF
18430 cat confdefs.h
>>conftest.
$ac_ext
18431 cat >>conftest.
$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18433 #include <unistd.h>
18442 rm -f conftest.
$ac_objext
18443 if { (ac_try
="$ac_compile"
18444 case "(($ac_try" in
18445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_compile") 2>conftest.er1
18451 grep -v '^ *+' conftest.er1 >conftest.err
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } && {
18456 test -z "$ac_c_werror_flag" ||
18457 test ! -s conftest.err
18458 } && test -s conftest.$ac_objext; then
18460 cat >>confdefs.h <<\_ACEOF
18461 #define HAVE_FDATASYNC 1
18464 { echo "$as_me:$LINENO: result: yes" >&5
18465 echo "${ECHO_T}yes" >&6; }
18467 echo "$as_me: failed program was:" >&5
18468 sed 's/^/| /' conftest.$ac_ext >&5
18470 { echo "$as_me:$LINENO: result: no" >&5
18471 echo "${ECHO_T}no" >&6; }
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476 { echo "$as_me:$LINENO: checking for epoll" >&5
18477 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18478 cat >conftest.$ac_ext <<_ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18484 #include <sys/epoll.h>
18488 void *x=epoll_create
18493 rm -f conftest.$ac_objext
18494 if { (ac_try="$ac_compile"
18495 case "(($ac_try" in
18496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18497 *) ac_try_echo
=$ac_try;;
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_compile") 2>conftest.er1
18502 grep -v '^ *+' conftest.er1
>conftest.err
18504 cat conftest.err
>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } && {
18507 test -z "$ac_c_werror_flag" ||
18508 test ! -s conftest.err
18509 } && test -s conftest.
$ac_objext; then
18511 cat >>confdefs.h
<<\_ACEOF
18512 #define HAVE_EPOLL 1
18515 { echo "$as_me:$LINENO: result: yes" >&5
18516 echo "${ECHO_T}yes" >&6; }
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.
$ac_ext >&5
18521 { echo "$as_me:$LINENO: result: no" >&5
18522 echo "${ECHO_T}no" >&6; }
18526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18527 { echo "$as_me:$LINENO: checking for kqueue" >&5
18528 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18529 cat >conftest.
$ac_ext <<_ACEOF
18532 cat confdefs.h
>>conftest.
$ac_ext
18533 cat >>conftest.
$ac_ext <<_ACEOF
18534 /* end confdefs.h. */
18536 #include <sys/types.h>
18537 #include <sys/event.h>
18547 rm -f conftest.
$ac_objext
18548 if { (ac_try
="$ac_compile"
18549 case "(($ac_try" in
18550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_compile") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1 >conftest.err
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest.$ac_objext; then
18565 cat >>confdefs.h <<\_ACEOF
18566 #define HAVE_KQUEUE 1
18569 { echo "$as_me:$LINENO: result: yes" >&5
18570 echo "${ECHO_T}yes" >&6; }
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18575 { echo "$as_me:$LINENO: result: no" >&5
18576 echo "${ECHO_T}no" >&6; }
18580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18581 # On some systems (eg. FreeBSD 5), we would find a definition of the
18582 # functions ctermid_r, setgroups in the library, but no prototype
18583 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18584 # address to avoid compiler warnings and potential miscompilations
18585 # because of the missing prototypes.
18587 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18588 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18589 cat >conftest.$ac_ext <<_ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18596 #include "confdefs.h"
18602 void* p = ctermid_r
18607 rm -f conftest.$ac_objext
18608 if { (ac_try="$ac_compile"
18609 case "(($ac_try" in
18610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18611 *) ac_try_echo
=$ac_try;;
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_compile") 2>conftest.er1
18616 grep -v '^ *+' conftest.er1
>conftest.err
18618 cat conftest.err
>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } && {
18621 test -z "$ac_c_werror_flag" ||
18622 test ! -s conftest.err
18623 } && test -s conftest.
$ac_objext; then
18625 cat >>confdefs.h
<<\_ACEOF
18626 #define HAVE_CTERMID_R 1
18629 { echo "$as_me:$LINENO: result: yes" >&5
18630 echo "${ECHO_T}yes" >&6; }
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.
$ac_ext >&5
18635 { echo "$as_me:$LINENO: result: no" >&5
18636 echo "${ECHO_T}no" >&6; }
18640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18642 { echo "$as_me:$LINENO: checking for flock" >&5
18643 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18644 cat >conftest.
$ac_ext <<_ACEOF
18647 cat confdefs.h
>>conftest.
$ac_ext
18648 cat >>conftest.
$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18651 #include "confdefs.h"
18652 #include <sys/file.h>
18662 rm -f conftest.
$ac_objext
18663 if { (ac_try
="$ac_compile"
18664 case "(($ac_try" in
18665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_compile") 2>conftest.er1
18671 grep -v '^ *+' conftest.er1 >conftest.err
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } && {
18676 test -z "$ac_c_werror_flag" ||
18677 test ! -s conftest.err
18678 } && test -s conftest.$ac_objext; then
18680 cat >>confdefs.h <<\_ACEOF
18681 #define HAVE_FLOCK 1
18684 { echo "$as_me:$LINENO: result: yes" >&5
18685 echo "${ECHO_T}yes" >&6; }
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 { echo "$as_me:$LINENO: result: no" >&5
18691 echo "${ECHO_T}no" >&6; }
18695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18698 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18699 cat >conftest.$ac_ext <<_ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18706 #include "confdefs.h"
18707 #include <unistd.h>
18712 void* p = getpagesize
18717 rm -f conftest.$ac_objext
18718 if { (ac_try="$ac_compile"
18719 case "(($ac_try" in
18720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18721 *) ac_try_echo
=$ac_try;;
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_compile") 2>conftest.er1
18726 grep -v '^ *+' conftest.er1
>conftest.err
18728 cat conftest.err
>&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } && {
18731 test -z "$ac_c_werror_flag" ||
18732 test ! -s conftest.err
18733 } && test -s conftest.
$ac_objext; then
18735 cat >>confdefs.h
<<\_ACEOF
18736 #define HAVE_GETPAGESIZE 1
18739 { echo "$as_me:$LINENO: result: yes" >&5
18740 echo "${ECHO_T}yes" >&6; }
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.
$ac_ext >&5
18745 { echo "$as_me:$LINENO: result: no" >&5
18746 echo "${ECHO_T}no" >&6; }
18750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18752 for ac_prog
in true
18754 # Extract the first word of "$ac_prog", so it can be a program name with args.
18755 set dummy
$ac_prog; ac_word
=$2
18756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18758 if test "${ac_cv_prog_TRUE+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 if test -n "$TRUE"; then
18762 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
18764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18765 for as_dir
in $PATH
18768 test -z "$as_dir" && as_dir
=.
18769 for ac_exec_ext
in '' $ac_executable_extensions; do
18770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18771 ac_cv_prog_TRUE
="$ac_prog"
18772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18781 TRUE
=$ac_cv_prog_TRUE
18782 if test -n "$TRUE"; then
18783 { echo "$as_me:$LINENO: result: $TRUE" >&5
18784 echo "${ECHO_T}$TRUE" >&6; }
18786 { echo "$as_me:$LINENO: result: no" >&5
18787 echo "${ECHO_T}no" >&6; }
18791 test -n "$TRUE" && break
18793 test -n "$TRUE" || TRUE
="/bin/true"
18796 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18797 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18798 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18801 ac_check_lib_save_LIBS
=$LIBS
18803 cat >conftest.
$ac_ext <<_ACEOF
18806 cat confdefs.h
>>conftest.
$ac_ext
18807 cat >>conftest.
$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18810 /* Override any GCC internal prototype to avoid an error.
18811 Use char because int might match the return type of a GCC
18812 builtin and then its argument prototype would still apply. */
18820 return inet_aton ();
18825 rm -f conftest.
$ac_objext conftest
$ac_exeext
18826 if { (ac_try
="$ac_link"
18827 case "(($ac_try" in
18828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_link") 2>conftest.er1
18834 grep -v '^ *+' conftest.er1 >conftest.err
18836 cat conftest.err >&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } && {
18839 test -z "$ac_c_werror_flag" ||
18840 test ! -s conftest.err
18841 } && test -s conftest$ac_exeext &&
18842 $as_test_x conftest$ac_exeext; then
18843 ac_cv_lib_c_inet_aton=yes
18845 echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18848 ac_cv_lib_c_inet_aton=no
18851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18852 conftest$ac_exeext conftest.$ac_ext
18853 LIBS=$ac_check_lib_save_LIBS
18855 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18856 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18857 if test $ac_cv_lib_c_inet_aton = yes; then
18861 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18862 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18863 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 ac_check_lib_save_LIBS=$LIBS
18867 LIBS="-lresolv $LIBS"
18868 cat >conftest.$ac_ext <<_ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18875 /* Override any GCC internal prototype to avoid an error.
18876 Use char because int might match the return type of a GCC
18877 builtin and then its argument prototype would still apply. */
18885 return inet_aton ();
18890 rm -f conftest.$ac_objext conftest$ac_exeext
18891 if { (ac_try="$ac_link"
18892 case "(($ac_try" in
18893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18894 *) ac_try_echo
=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_link") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1
>conftest.err
18901 cat conftest.err
>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest
$ac_exeext &&
18907 $as_test_x conftest
$ac_exeext; then
18908 ac_cv_lib_resolv_inet_aton
=yes
18910 echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.
$ac_ext >&5
18913 ac_cv_lib_resolv_inet_aton
=no
18916 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18917 conftest
$ac_exeext conftest.
$ac_ext
18918 LIBS
=$ac_check_lib_save_LIBS
18920 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18921 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18922 if test $ac_cv_lib_resolv_inet_aton = yes; then
18923 cat >>confdefs.h
<<_ACEOF
18924 #define HAVE_LIBRESOLV 1
18927 LIBS
="-lresolv $LIBS"
18935 # On Tru64, chflags seems to be present, but calling it will
18937 { echo "$as_me:$LINENO: checking for chflags" >&5
18938 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18939 if test "${ac_cv_have_chflags+set}" = set; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18942 if test "$cross_compiling" = yes; then
18943 ac_cv_have_chflags
=cross
18945 cat >conftest.
$ac_ext <<_ACEOF
18948 cat confdefs.h
>>conftest.
$ac_ext
18949 cat >>conftest.
$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18952 #include <sys/stat.h>
18953 #include <unistd.h>
18954 int main(int argc, char*argv[])
18956 if(chflags(argv[0], 0) != 0)
18962 rm -f conftest
$ac_exeext
18963 if { (ac_try
="$ac_link"
18964 case "(($ac_try" in
18965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969 (eval "$ac_link") 2>&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18973 { (case "(($ac_try" in
18974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18975 *) ac_try_echo
=$ac_try;;
18977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18978 (eval "$ac_try") 2>&5
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18982 ac_cv_have_chflags
=yes
18984 echo "$as_me: program exited with status $ac_status" >&5
18985 echo "$as_me: failed program was:" >&5
18986 sed 's/^/| /' conftest.
$ac_ext >&5
18988 ( exit $ac_status )
18989 ac_cv_have_chflags
=no
18991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18997 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18998 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18999 if test "$ac_cv_have_chflags" = cross
; then
19000 { echo "$as_me:$LINENO: checking for chflags" >&5
19001 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
19002 if test "${ac_cv_func_chflags+set}" = set; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19005 cat >conftest.
$ac_ext <<_ACEOF
19008 cat confdefs.h
>>conftest.
$ac_ext
19009 cat >>conftest.
$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19011 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
19012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19013 #define chflags innocuous_chflags
19015 /* System header to define __stub macros and hopefully few prototypes,
19016 which can conflict with char chflags (); below.
19017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19018 <limits.h> exists even on freestanding compilers. */
19021 # include <limits.h>
19023 # include <assert.h>
19028 /* Override any GCC internal prototype to avoid an error.
19029 Use char because int might match the return type of a GCC
19030 builtin and then its argument prototype would still apply. */
19035 /* The GNU C library defines this for functions which it implements
19036 to always fail with ENOSYS. Some functions are actually named
19037 something starting with __ and the normal name is an alias. */
19038 #if defined __stub_chflags || defined __stub___chflags
19050 rm -f conftest.
$ac_objext conftest
$ac_exeext
19051 if { (ac_try
="$ac_link"
19052 case "(($ac_try" in
19053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_link") 2>conftest.er1
19059 grep -v '^ *+' conftest.er1 >conftest.err
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } && {
19064 test -z "$ac_c_werror_flag" ||
19065 test ! -s conftest.err
19066 } && test -s conftest$ac_exeext &&
19067 $as_test_x conftest$ac_exeext; then
19068 ac_cv_func_chflags=yes
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19073 ac_cv_func_chflags=no
19076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19077 conftest$ac_exeext conftest.$ac_ext
19079 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
19080 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
19081 if test $ac_cv_func_chflags = yes; then
19082 ac_cv_have_chflags="yes"
19084 ac_cv_have_chflags="no"
19088 if test "$ac_cv_have_chflags" = yes ; then
19090 cat >>confdefs.h <<\_ACEOF
19091 #define HAVE_CHFLAGS 1
19096 { echo "$as_me:$LINENO: checking for lchflags" >&5
19097 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19098 if test "${ac_cv_have_lchflags+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 if test "$cross_compiling" = yes; then
19102 ac_cv_have_lchflags=cross
19104 cat >conftest.$ac_ext <<_ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19111 #include <sys/stat.h>
19112 #include <unistd.h>
19113 int main(int argc, char*argv[])
19115 if(lchflags(argv[0], 0) != 0)
19121 rm -f conftest$ac_exeext
19122 if { (ac_try="$ac_link"
19123 case "(($ac_try" in
19124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19125 *) ac_try_echo
=$ac_try;;
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_link") 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19132 { (case "(($ac_try" in
19133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137 (eval "$ac_try") 2>&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); }; }; then
19141 ac_cv_have_lchflags=yes
19143 echo "$as_me: program exited with status $ac_status" >&5
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ( exit $ac_status )
19148 ac_cv_have_lchflags=no
19150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19156 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
19157 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
19158 if test "$ac_cv_have_lchflags" = cross ; then
19159 { echo "$as_me:$LINENO: checking for lchflags" >&5
19160 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19161 if test "${ac_cv_func_lchflags+set}" = set; then
19162 echo $ECHO_N "(cached) $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. */
19170 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
19171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19172 #define lchflags innocuous_lchflags
19174 /* System header to define __stub macros and hopefully few prototypes,
19175 which can conflict with char lchflags (); below.
19176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19177 <limits.h> exists even on freestanding compilers. */
19180 # include <limits.h>
19182 # include <assert.h>
19187 /* Override any GCC internal prototype to avoid an error.
19188 Use char because int might match the return type of a GCC
19189 builtin and then its argument prototype would still apply. */
19194 /* The GNU C library defines this for functions which it implements
19195 to always fail with ENOSYS. Some functions are actually named
19196 something starting with __ and the normal name is an alias. */
19197 #if defined __stub_lchflags || defined __stub___lchflags
19204 return lchflags ();
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19213 *) ac_try_echo
=$ac_try;;
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_link") 2>conftest.er1
19218 grep -v '^ *+' conftest.er1
>conftest.err
19220 cat conftest.err
>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } && {
19223 test -z "$ac_c_werror_flag" ||
19224 test ! -s conftest.err
19225 } && test -s conftest
$ac_exeext &&
19226 $as_test_x conftest
$ac_exeext; then
19227 ac_cv_func_lchflags
=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.
$ac_ext >&5
19232 ac_cv_func_lchflags
=no
19235 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19236 conftest
$ac_exeext conftest.
$ac_ext
19238 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
19239 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
19240 if test $ac_cv_func_lchflags = yes; then
19241 ac_cv_have_lchflags
="yes"
19243 ac_cv_have_lchflags
="no"
19247 if test "$ac_cv_have_lchflags" = yes ; then
19249 cat >>confdefs.h
<<\_ACEOF
19250 #define HAVE_LCHFLAGS 1
19255 case $ac_sys_system/$ac_sys_release in
19257 _CUR_CFLAGS
="${CFLAGS}"
19258 _CUR_LDFLAGS
="${LDFLAGS}"
19259 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
19260 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
19264 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
19265 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
19266 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 ac_check_lib_save_LIBS
=$LIBS
19271 cat >conftest.
$ac_ext <<_ACEOF
19274 cat confdefs.h
>>conftest.
$ac_ext
19275 cat >>conftest.
$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19278 /* Override any GCC internal prototype to avoid an error.
19279 Use char because int might match the return type of a GCC
19280 builtin and then its argument prototype would still apply. */
19284 char inflateCopy ();
19288 return inflateCopy ();
19293 rm -f conftest.
$ac_objext conftest
$ac_exeext
19294 if { (ac_try
="$ac_link"
19295 case "(($ac_try" in
19296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_link") 2>conftest.er1
19302 grep -v '^ *+' conftest.er1 >conftest.err
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } && {
19307 test -z "$ac_c_werror_flag" ||
19308 test ! -s conftest.err
19309 } && test -s conftest$ac_exeext &&
19310 $as_test_x conftest$ac_exeext; then
19311 ac_cv_lib_z_inflateCopy=yes
19313 echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19316 ac_cv_lib_z_inflateCopy=no
19319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19320 conftest$ac_exeext conftest.$ac_ext
19321 LIBS=$ac_check_lib_save_LIBS
19323 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
19324 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
19325 if test $ac_cv_lib_z_inflateCopy = yes; then
19327 cat >>confdefs.h <<\_ACEOF
19328 #define HAVE_ZLIB_COPY 1
19334 case $ac_sys_system/$ac_sys_release in
19336 CFLAGS="${_CUR_CFLAGS}"
19337 LDFLAGS="${_CUR_LDFLAGS}"
19341 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19342 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19343 cat >conftest.$ac_ext <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19350 #include "confdefs.h"
19356 void* p = hstrerror; hstrerror(0)
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19365 *) ac_try_echo
=$ac_try;;
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_link") 2>conftest.er1
19370 grep -v '^ *+' conftest.er1
>conftest.err
19372 cat conftest.err
>&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } && {
19375 test -z "$ac_c_werror_flag" ||
19376 test ! -s conftest.err
19377 } && test -s conftest
$ac_exeext &&
19378 $as_test_x conftest
$ac_exeext; then
19380 cat >>confdefs.h
<<\_ACEOF
19381 #define HAVE_HSTRERROR 1
19384 { echo "$as_me:$LINENO: result: yes" >&5
19385 echo "${ECHO_T}yes" >&6; }
19387 echo "$as_me: failed program was:" >&5
19388 sed 's/^/| /' conftest.
$ac_ext >&5
19390 { echo "$as_me:$LINENO: result: no" >&5
19391 echo "${ECHO_T}no" >&6; }
19395 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19396 conftest
$ac_exeext conftest.
$ac_ext
19398 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19399 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19400 cat >conftest.
$ac_ext <<_ACEOF
19403 cat confdefs.h
>>conftest.
$ac_ext
19404 cat >>conftest.
$ac_ext <<_ACEOF
19405 /* end confdefs.h. */
19407 #include "confdefs.h"
19408 #include <sys/types.h>
19409 #include <sys/socket.h>
19410 #include <netinet/in.h>
19411 #include <arpa/inet.h>
19416 void* p = inet_aton;inet_aton(0,0)
19421 rm -f conftest.
$ac_objext conftest
$ac_exeext
19422 if { (ac_try
="$ac_link"
19423 case "(($ac_try" in
19424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_link") 2>conftest.er1
19430 grep -v '^ *+' conftest.er1 >conftest.err
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } && {
19435 test -z "$ac_c_werror_flag" ||
19436 test ! -s conftest.err
19437 } && test -s conftest$ac_exeext &&
19438 $as_test_x conftest$ac_exeext; then
19440 cat >>confdefs.h <<\_ACEOF
19441 #define HAVE_INET_ATON 1
19444 { echo "$as_me:$LINENO: result: yes" >&5
19445 echo "${ECHO_T}yes" >&6; }
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19450 { echo "$as_me:$LINENO: result: no" >&5
19451 echo "${ECHO_T}no" >&6; }
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456 conftest$ac_exeext conftest.$ac_ext
19458 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19459 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19460 cat >conftest.$ac_ext <<_ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19467 #include "confdefs.h"
19468 #include <sys/types.h>
19469 #include <sys/socket.h>
19470 #include <netinet/in.h>
19471 #include <arpa/inet.h>
19476 void* p = inet_pton
19481 rm -f conftest.$ac_objext
19482 if { (ac_try="$ac_compile"
19483 case "(($ac_try" in
19484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19485 *) ac_try_echo
=$ac_try;;
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488 (eval "$ac_compile") 2>conftest.er1
19490 grep -v '^ *+' conftest.er1
>conftest.err
19492 cat conftest.err
>&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); } && {
19495 test -z "$ac_c_werror_flag" ||
19496 test ! -s conftest.err
19497 } && test -s conftest.
$ac_objext; then
19499 cat >>confdefs.h
<<\_ACEOF
19500 #define HAVE_INET_PTON 1
19503 { echo "$as_me:$LINENO: result: yes" >&5
19504 echo "${ECHO_T}yes" >&6; }
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.
$ac_ext >&5
19509 { echo "$as_me:$LINENO: result: no" >&5
19510 echo "${ECHO_T}no" >&6; }
19514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19516 # On some systems, setgroups is in unistd.h, on others, in grp.h
19517 { echo "$as_me:$LINENO: checking for setgroups" >&5
19518 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19519 cat >conftest.
$ac_ext <<_ACEOF
19522 cat confdefs.h
>>conftest.
$ac_ext
19523 cat >>conftest.
$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 #include "confdefs.h"
19527 #include <unistd.h>
19535 void* p = setgroups
19540 rm -f conftest.
$ac_objext
19541 if { (ac_try
="$ac_compile"
19542 case "(($ac_try" in
19543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_compile") 2>conftest.er1
19549 grep -v '^ *+' conftest.er1 >conftest.err
19551 cat conftest.err >&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } && {
19554 test -z "$ac_c_werror_flag" ||
19555 test ! -s conftest.err
19556 } && test -s conftest.$ac_objext; then
19558 cat >>confdefs.h <<\_ACEOF
19559 #define HAVE_SETGROUPS 1
19562 { echo "$as_me:$LINENO: result: yes" >&5
19563 echo "${ECHO_T}yes" >&6; }
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.$ac_ext >&5
19568 { echo "$as_me:$LINENO: result: no" >&5
19569 echo "${ECHO_T}no" >&6; }
19573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19575 # check for openpty and forkpty
19578 for ac_func in openpty
19580 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 cat >conftest.$ac_ext <<_ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19594 #define $ac_func innocuous_$ac_func
19596 /* System header to define __stub macros and hopefully few prototypes,
19597 which can conflict with char $ac_func (); below.
19598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19599 <limits.h> exists even on freestanding compilers. */
19602 # include <limits.h>
19604 # include <assert.h>
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19616 /* The GNU C library defines this for functions which it implements
19617 to always fail with ENOSYS. Some functions are actually named
19618 something starting with __ and the normal name is an alias. */
19619 #if defined __stub_$ac_func || defined __stub___$ac_func
19626 return $ac_func ();
19631 rm -f conftest.$ac_objext conftest$ac_exeext
19632 if { (ac_try="$ac_link"
19633 case "(($ac_try" in
19634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19635 *) ac_try_echo
=$ac_try;;
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_link") 2>conftest.er1
19640 grep -v '^ *+' conftest.er1
>conftest.err
19642 cat conftest.err
>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } && {
19645 test -z "$ac_c_werror_flag" ||
19646 test ! -s conftest.err
19647 } && test -s conftest
$ac_exeext &&
19648 $as_test_x conftest
$ac_exeext; then
19649 eval "$as_ac_var=yes"
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.
$ac_ext >&5
19654 eval "$as_ac_var=no"
19657 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19658 conftest
$ac_exeext conftest.
$ac_ext
19660 ac_res
=`eval echo '${'$as_ac_var'}'`
19661 { echo "$as_me:$LINENO: result: $ac_res" >&5
19662 echo "${ECHO_T}$ac_res" >&6; }
19663 if test `eval echo '${'$as_ac_var'}'` = yes; then
19664 cat >>confdefs.h
<<_ACEOF
19665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19669 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19670 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19671 if test "${ac_cv_lib_util_openpty+set}" = set; then
19672 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 ac_check_lib_save_LIBS
=$LIBS
19675 LIBS
="-lutil $LIBS"
19676 cat >conftest.
$ac_ext <<_ACEOF
19679 cat confdefs.h
>>conftest.
$ac_ext
19680 cat >>conftest.
$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19698 rm -f conftest.
$ac_objext conftest
$ac_exeext
19699 if { (ac_try
="$ac_link"
19700 case "(($ac_try" in
19701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_link") 2>conftest.er1
19707 grep -v '^ *+' conftest.er1 >conftest.err
19709 cat conftest.err >&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } && {
19712 test -z "$ac_c_werror_flag" ||
19713 test ! -s conftest.err
19714 } && test -s conftest$ac_exeext &&
19715 $as_test_x conftest$ac_exeext; then
19716 ac_cv_lib_util_openpty=yes
19718 echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 ac_cv_lib_util_openpty=no
19724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS=$ac_check_lib_save_LIBS
19728 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19729 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19730 if test $ac_cv_lib_util_openpty = yes; then
19731 cat >>confdefs.h <<\_ACEOF
19732 #define HAVE_OPENPTY 1
19734 LIBS="$LIBS -lutil"
19736 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19737 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19738 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 ac_check_lib_save_LIBS=$LIBS
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19750 /* Override any GCC internal prototype to avoid an error.
19751 Use char because int might match the return type of a GCC
19752 builtin and then its argument prototype would still apply. */
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (ac_try="$ac_link"
19767 case "(($ac_try" in
19768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19769 *) ac_try_echo
=$ac_try;;
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_link") 2>conftest.er1
19774 grep -v '^ *+' conftest.er1
>conftest.err
19776 cat conftest.err
>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } && {
19779 test -z "$ac_c_werror_flag" ||
19780 test ! -s conftest.err
19781 } && test -s conftest
$ac_exeext &&
19782 $as_test_x conftest
$ac_exeext; then
19783 ac_cv_lib_bsd_openpty
=yes
19785 echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.
$ac_ext >&5
19788 ac_cv_lib_bsd_openpty
=no
19791 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19792 conftest
$ac_exeext conftest.
$ac_ext
19793 LIBS
=$ac_check_lib_save_LIBS
19795 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19796 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19797 if test $ac_cv_lib_bsd_openpty = yes; then
19798 cat >>confdefs.h
<<\_ACEOF
19799 #define HAVE_OPENPTY 1
19812 for ac_func
in forkpty
19814 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19817 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 cat >conftest.
$ac_ext <<_ACEOF
19823 cat confdefs.h
>>conftest.
$ac_ext
19824 cat >>conftest.
$ac_ext <<_ACEOF
19825 /* end confdefs.h. */
19826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19828 #define $ac_func innocuous_$ac_func
19830 /* System header to define __stub macros and hopefully few prototypes,
19831 which can conflict with char $ac_func (); below.
19832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19833 <limits.h> exists even on freestanding compilers. */
19836 # include <limits.h>
19838 # include <assert.h>
19843 /* Override any GCC internal prototype to avoid an error.
19844 Use char because int might match the return type of a GCC
19845 builtin and then its argument prototype would still apply. */
19850 /* The GNU C library defines this for functions which it implements
19851 to always fail with ENOSYS. Some functions are actually named
19852 something starting with __ and the normal name is an alias. */
19853 #if defined __stub_$ac_func || defined __stub___$ac_func
19860 return $ac_func ();
19865 rm -f conftest.
$ac_objext conftest
$ac_exeext
19866 if { (ac_try
="$ac_link"
19867 case "(($ac_try" in
19868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_link") 2>conftest.er1
19874 grep -v '^ *+' conftest.er1 >conftest.err
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } && {
19879 test -z "$ac_c_werror_flag" ||
19880 test ! -s conftest.err
19881 } && test -s conftest$ac_exeext &&
19882 $as_test_x conftest$ac_exeext; then
19883 eval "$as_ac_var=yes"
19885 echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 eval "$as_ac_var=no"
19891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19892 conftest$ac_exeext conftest.$ac_ext
19894 ac_res=`eval echo '${'$as_ac_var'}'`
19895 { echo "$as_me:$LINENO: result: $ac_res" >&5
19896 echo "${ECHO_T}$ac_res" >&6; }
19897 if test `eval echo '${'$as_ac_var'}'` = yes; then
19898 cat >>confdefs.h <<_ACEOF
19899 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19903 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19904 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19905 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19908 ac_check_lib_save_LIBS=$LIBS
19909 LIBS="-lutil $LIBS"
19910 cat >conftest.$ac_ext <<_ACEOF
19913 cat confdefs.h >>conftest.$ac_ext
19914 cat >>conftest.$ac_ext <<_ACEOF
19915 /* end confdefs.h. */
19917 /* Override any GCC internal prototype to avoid an error.
19918 Use char because int might match the return type of a GCC
19919 builtin and then its argument prototype would still apply. */
19932 rm -f conftest.$ac_objext conftest$ac_exeext
19933 if { (ac_try="$ac_link"
19934 case "(($ac_try" in
19935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19936 *) ac_try_echo
=$ac_try;;
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_link") 2>conftest.er1
19941 grep -v '^ *+' conftest.er1
>conftest.err
19943 cat conftest.err
>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } && {
19946 test -z "$ac_c_werror_flag" ||
19947 test ! -s conftest.err
19948 } && test -s conftest
$ac_exeext &&
19949 $as_test_x conftest
$ac_exeext; then
19950 ac_cv_lib_util_forkpty
=yes
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.
$ac_ext >&5
19955 ac_cv_lib_util_forkpty
=no
19958 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19959 conftest
$ac_exeext conftest.
$ac_ext
19960 LIBS
=$ac_check_lib_save_LIBS
19962 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19963 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19964 if test $ac_cv_lib_util_forkpty = yes; then
19965 cat >>confdefs.h
<<\_ACEOF
19966 #define HAVE_FORKPTY 1
19968 LIBS
="$LIBS -lutil"
19970 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19971 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19972 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 ac_check_lib_save_LIBS
=$LIBS
19977 cat >conftest.
$ac_ext <<_ACEOF
19980 cat confdefs.h
>>conftest.
$ac_ext
19981 cat >>conftest.
$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19984 /* Override any GCC internal prototype to avoid an error.
19985 Use char because int might match the return type of a GCC
19986 builtin and then its argument prototype would still apply. */
19999 rm -f conftest.
$ac_objext conftest
$ac_exeext
20000 if { (ac_try
="$ac_link"
20001 case "(($ac_try" in
20002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_link") 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest$ac_exeext &&
20016 $as_test_x conftest$ac_exeext; then
20017 ac_cv_lib_bsd_forkpty=yes
20019 echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ac_cv_lib_bsd_forkpty=no
20025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20026 conftest$ac_exeext conftest.$ac_ext
20027 LIBS=$ac_check_lib_save_LIBS
20029 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
20030 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
20031 if test $ac_cv_lib_bsd_forkpty = yes; then
20032 cat >>confdefs.h <<\_ACEOF
20033 #define HAVE_FORKPTY 1
20048 for ac_func in memmove
20050 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20064 #define $ac_func innocuous_$ac_func
20066 /* System header to define __stub macros and hopefully few prototypes,
20067 which can conflict with char $ac_func (); below.
20068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20069 <limits.h> exists even on freestanding compilers. */
20072 # include <limits.h>
20074 # include <assert.h>
20079 /* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20086 /* The GNU C library defines this for functions which it implements
20087 to always fail with ENOSYS. Some functions are actually named
20088 something starting with __ and the normal name is an alias. */
20089 #if defined __stub_$ac_func || defined __stub___$ac_func
20096 return $ac_func ();
20101 rm -f conftest.$ac_objext conftest$ac_exeext
20102 if { (ac_try="$ac_link"
20103 case "(($ac_try" in
20104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20105 *) ac_try_echo
=$ac_try;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_link") 2>conftest.er1
20110 grep -v '^ *+' conftest.er1
>conftest.err
20112 cat conftest.err
>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest
$ac_exeext &&
20118 $as_test_x conftest
$ac_exeext; then
20119 eval "$as_ac_var=yes"
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.
$ac_ext >&5
20124 eval "$as_ac_var=no"
20127 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20128 conftest
$ac_exeext conftest.
$ac_ext
20130 ac_res
=`eval echo '${'$as_ac_var'}'`
20131 { echo "$as_me:$LINENO: result: $ac_res" >&5
20132 echo "${ECHO_T}$ac_res" >&6; }
20133 if test `eval echo '${'$as_ac_var'}'` = yes; then
20134 cat >>confdefs.h
<<_ACEOF
20135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20142 # check for long file support functions
20149 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
20151 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20154 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20157 cat >conftest.
$ac_ext <<_ACEOF
20160 cat confdefs.h
>>conftest.
$ac_ext
20161 cat >>conftest.
$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20165 #define $ac_func innocuous_$ac_func
20167 /* System header to define __stub macros and hopefully few prototypes,
20168 which can conflict with char $ac_func (); below.
20169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20170 <limits.h> exists even on freestanding compilers. */
20173 # include <limits.h>
20175 # include <assert.h>
20180 /* Override any GCC internal prototype to avoid an error.
20181 Use char because int might match the return type of a GCC
20182 builtin and then its argument prototype would still apply. */
20187 /* The GNU C library defines this for functions which it implements
20188 to always fail with ENOSYS. Some functions are actually named
20189 something starting with __ and the normal name is an alias. */
20190 #if defined __stub_$ac_func || defined __stub___$ac_func
20197 return $ac_func ();
20202 rm -f conftest.
$ac_objext conftest
$ac_exeext
20203 if { (ac_try
="$ac_link"
20204 case "(($ac_try" in
20205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_link") 2>conftest.er1
20211 grep -v '^ *+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } && {
20216 test -z "$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20218 } && test -s conftest$ac_exeext &&
20219 $as_test_x conftest$ac_exeext; then
20220 eval "$as_ac_var=yes"
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 eval "$as_ac_var=no"
20228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20229 conftest$ac_exeext conftest.$ac_ext
20231 ac_res=`eval echo '${'$as_ac_var'}'`
20232 { echo "$as_me:$LINENO: result: $ac_res" >&5
20233 echo "${ECHO_T}$ac_res" >&6; }
20234 if test `eval echo '${'$as_ac_var'}'` = yes; then
20235 cat >>confdefs.h <<_ACEOF
20236 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20246 for ac_func in dup2 getcwd strdup
20248 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20262 #define $ac_func innocuous_$ac_func
20264 /* System header to define __stub macros and hopefully few prototypes,
20265 which can conflict with char $ac_func (); below.
20266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20267 <limits.h> exists even on freestanding compilers. */
20270 # include <limits.h>
20272 # include <assert.h>
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20284 /* The GNU C library defines this for functions which it implements
20285 to always fail with ENOSYS. Some functions are actually named
20286 something starting with __ and the normal name is an alias. */
20287 #if defined __stub_$ac_func || defined __stub___$ac_func
20294 return $ac_func ();
20299 rm -f conftest.$ac_objext conftest$ac_exeext
20300 if { (ac_try="$ac_link"
20301 case "(($ac_try" in
20302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20303 *) ac_try_echo
=$ac_try;;
20305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_link") 2>conftest.er1
20308 grep -v '^ *+' conftest.er1
>conftest.err
20310 cat conftest.err
>&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } && {
20313 test -z "$ac_c_werror_flag" ||
20314 test ! -s conftest.err
20315 } && test -s conftest
$ac_exeext &&
20316 $as_test_x conftest
$ac_exeext; then
20317 eval "$as_ac_var=yes"
20319 echo "$as_me: failed program was:" >&5
20320 sed 's/^/| /' conftest.
$ac_ext >&5
20322 eval "$as_ac_var=no"
20325 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20326 conftest
$ac_exeext conftest.
$ac_ext
20328 ac_res
=`eval echo '${'$as_ac_var'}'`
20329 { echo "$as_me:$LINENO: result: $ac_res" >&5
20330 echo "${ECHO_T}$ac_res" >&6; }
20331 if test `eval echo '${'$as_ac_var'}'` = yes; then
20332 cat >>confdefs.h
<<_ACEOF
20333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20337 case " $LIBOBJS " in
20338 *" $ac_func.$ac_objext "* ) ;;
20339 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20348 for ac_func
in getpgrp
20350 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20353 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20356 cat >conftest.
$ac_ext <<_ACEOF
20359 cat confdefs.h
>>conftest.
$ac_ext
20360 cat >>conftest.
$ac_ext <<_ACEOF
20361 /* end confdefs.h. */
20362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20364 #define $ac_func innocuous_$ac_func
20366 /* System header to define __stub macros and hopefully few prototypes,
20367 which can conflict with char $ac_func (); below.
20368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20369 <limits.h> exists even on freestanding compilers. */
20372 # include <limits.h>
20374 # include <assert.h>
20379 /* Override any GCC internal prototype to avoid an error.
20380 Use char because int might match the return type of a GCC
20381 builtin and then its argument prototype would still apply. */
20386 /* The GNU C library defines this for functions which it implements
20387 to always fail with ENOSYS. Some functions are actually named
20388 something starting with __ and the normal name is an alias. */
20389 #if defined __stub_$ac_func || defined __stub___$ac_func
20396 return $ac_func ();
20401 rm -f conftest.
$ac_objext conftest
$ac_exeext
20402 if { (ac_try
="$ac_link"
20403 case "(($ac_try" in
20404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20405 *) ac_try_echo=$ac_try;;
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408 (eval "$ac_link") 2>conftest.er1
20410 grep -v '^ *+' conftest.er1 >conftest.err
20412 cat conftest.err >&5
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } && {
20415 test -z "$ac_c_werror_flag" ||
20416 test ! -s conftest.err
20417 } && test -s conftest$ac_exeext &&
20418 $as_test_x conftest$ac_exeext; then
20419 eval "$as_ac_var=yes"
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 eval "$as_ac_var=no"
20427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20428 conftest$ac_exeext conftest.$ac_ext
20430 ac_res=`eval echo '${'$as_ac_var'}'`
20431 { echo "$as_me:$LINENO: result: $ac_res" >&5
20432 echo "${ECHO_T}$ac_res" >&6; }
20433 if test `eval echo '${'$as_ac_var'}'` = yes; then
20434 cat >>confdefs.h <<_ACEOF
20435 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 #include <unistd.h>
20452 rm -f conftest.$ac_objext
20453 if { (ac_try="$ac_compile"
20454 case "(($ac_try" in
20455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20456 *) ac_try_echo
=$ac_try;;
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_compile") 2>conftest.er1
20461 grep -v '^ *+' conftest.er1
>conftest.err
20463 cat conftest.err
>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } && {
20466 test -z "$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20468 } && test -s conftest.
$ac_objext; then
20470 cat >>confdefs.h
<<\_ACEOF
20471 #define GETPGRP_HAVE_ARG 1
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.
$ac_ext >&5
20482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20488 for ac_func
in setpgrp
20490 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20491 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20493 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 cat >conftest.
$ac_ext <<_ACEOF
20499 cat confdefs.h
>>conftest.
$ac_ext
20500 cat >>conftest.
$ac_ext <<_ACEOF
20501 /* end confdefs.h. */
20502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20504 #define $ac_func innocuous_$ac_func
20506 /* System header to define __stub macros and hopefully few prototypes,
20507 which can conflict with char $ac_func (); below.
20508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20509 <limits.h> exists even on freestanding compilers. */
20512 # include <limits.h>
20514 # include <assert.h>
20519 /* Override any GCC internal prototype to avoid an error.
20520 Use char because int might match the return type of a GCC
20521 builtin and then its argument prototype would still apply. */
20526 /* The GNU C library defines this for functions which it implements
20527 to always fail with ENOSYS. Some functions are actually named
20528 something starting with __ and the normal name is an alias. */
20529 #if defined __stub_$ac_func || defined __stub___$ac_func
20536 return $ac_func ();
20541 rm -f conftest.
$ac_objext conftest
$ac_exeext
20542 if { (ac_try
="$ac_link"
20543 case "(($ac_try" in
20544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548 (eval "$ac_link") 2>conftest.er1
20550 grep -v '^ *+' conftest.er1 >conftest.err
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } && {
20555 test -z "$ac_c_werror_flag" ||
20556 test ! -s conftest.err
20557 } && test -s conftest$ac_exeext &&
20558 $as_test_x conftest$ac_exeext; then
20559 eval "$as_ac_var=yes"
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 eval "$as_ac_var=no"
20567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20568 conftest$ac_exeext conftest.$ac_ext
20570 ac_res=`eval echo '${'$as_ac_var'}'`
20571 { echo "$as_me:$LINENO: result: $ac_res" >&5
20572 echo "${ECHO_T}$ac_res" >&6; }
20573 if test `eval echo '${'$as_ac_var'}'` = yes; then
20574 cat >>confdefs.h <<_ACEOF
20575 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20577 cat >conftest.$ac_ext <<_ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583 #include <unistd.h>
20592 rm -f conftest.$ac_objext
20593 if { (ac_try="$ac_compile"
20594 case "(($ac_try" in
20595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20596 *) ac_try_echo
=$ac_try;;
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_compile") 2>conftest.er1
20601 grep -v '^ *+' conftest.er1
>conftest.err
20603 cat conftest.err
>&5
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); } && {
20606 test -z "$ac_c_werror_flag" ||
20607 test ! -s conftest.err
20608 } && test -s conftest.
$ac_objext; then
20610 cat >>confdefs.h
<<\_ACEOF
20611 #define SETPGRP_HAVE_ARG 1
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.
$ac_ext >&5
20622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20628 for ac_func
in gettimeofday
20630 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20633 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 cat >conftest.
$ac_ext <<_ACEOF
20639 cat confdefs.h
>>conftest.
$ac_ext
20640 cat >>conftest.
$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20644 #define $ac_func innocuous_$ac_func
20646 /* System header to define __stub macros and hopefully few prototypes,
20647 which can conflict with char $ac_func (); below.
20648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20649 <limits.h> exists even on freestanding compilers. */
20652 # include <limits.h>
20654 # include <assert.h>
20659 /* Override any GCC internal prototype to avoid an error.
20660 Use char because int might match the return type of a GCC
20661 builtin and then its argument prototype would still apply. */
20666 /* The GNU C library defines this for functions which it implements
20667 to always fail with ENOSYS. Some functions are actually named
20668 something starting with __ and the normal name is an alias. */
20669 #if defined __stub_$ac_func || defined __stub___$ac_func
20676 return $ac_func ();
20681 rm -f conftest.
$ac_objext conftest
$ac_exeext
20682 if { (ac_try
="$ac_link"
20683 case "(($ac_try" in
20684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20688 (eval "$ac_link") 2>conftest.er1
20690 grep -v '^ *+' conftest.er1 >conftest.err
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } && {
20695 test -z "$ac_c_werror_flag" ||
20696 test ! -s conftest.err
20697 } && test -s conftest$ac_exeext &&
20698 $as_test_x conftest$ac_exeext; then
20699 eval "$as_ac_var=yes"
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 eval "$as_ac_var=no"
20707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20708 conftest$ac_exeext conftest.$ac_ext
20710 ac_res=`eval echo '${'$as_ac_var'}'`
20711 { echo "$as_me:$LINENO: result: $ac_res" >&5
20712 echo "${ECHO_T}$ac_res" >&6; }
20713 if test `eval echo '${'$as_ac_var'}'` = yes; then
20714 cat >>confdefs.h <<_ACEOF
20715 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20723 #include <sys/time.h>
20727 gettimeofday((struct timeval*)0,(struct timezone*)0);
20732 rm -f conftest.$ac_objext
20733 if { (ac_try="$ac_compile"
20734 case "(($ac_try" in
20735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20736 *) ac_try_echo
=$ac_try;;
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_compile") 2>conftest.er1
20741 grep -v '^ *+' conftest.er1
>conftest.err
20743 cat conftest.err
>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } && {
20746 test -z "$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 } && test -s conftest.
$ac_objext; then
20751 echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.
$ac_ext >&5
20755 cat >>confdefs.h
<<\_ACEOF
20756 #define GETTIMEOFDAY_NO_TZ 1
20762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20768 { echo "$as_me:$LINENO: checking for major" >&5
20769 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20770 cat >conftest.
$ac_ext <<_ACEOF
20773 cat confdefs.h
>>conftest.
$ac_ext
20774 cat >>conftest.
$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20777 #if defined(MAJOR_IN_MKDEV)
20778 #include <sys/mkdev.h>
20779 #elif defined(MAJOR_IN_SYSMACROS)
20780 #include <sys/sysmacros.h>
20782 #include <sys/types.h>
20789 makedev(major(0),minor(0));
20795 rm -f conftest.
$ac_objext conftest
$ac_exeext
20796 if { (ac_try
="$ac_link"
20797 case "(($ac_try" in
20798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_link") 2>conftest.er1
20804 grep -v '^ *+' conftest.er1 >conftest.err
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } && {
20809 test -z "$ac_c_werror_flag" ||
20810 test ! -s conftest.err
20811 } && test -s conftest$ac_exeext &&
20812 $as_test_x conftest$ac_exeext; then
20815 cat >>confdefs.h <<\_ACEOF
20816 #define HAVE_DEVICE_MACROS 1
20819 { echo "$as_me:$LINENO: result: yes" >&5
20820 echo "${ECHO_T}yes" >&6; }
20823 echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20827 { echo "$as_me:$LINENO: result: no" >&5
20828 echo "${ECHO_T}no" >&6; }
20832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20833 conftest$ac_exeext conftest.$ac_ext
20835 # On OSF/1 V5.1, getaddrinfo is available, but a define
20836 # for [no]getaddrinfo in netdb.h.
20837 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20838 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20839 cat >conftest.$ac_ext <<_ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h. */
20846 #include <sys/types.h>
20847 #include <sys/socket.h>
20854 getaddrinfo(NULL, NULL, NULL, NULL);
20859 rm -f conftest.$ac_objext conftest$ac_exeext
20860 if { (ac_try="$ac_link"
20861 case "(($ac_try" in
20862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20863 *) ac_try_echo
=$ac_try;;
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_link") 2>conftest.er1
20868 grep -v '^ *+' conftest.er1
>conftest.err
20870 cat conftest.err
>&5
20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872 (exit $ac_status); } && {
20873 test -z "$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20875 } && test -s conftest
$ac_exeext &&
20876 $as_test_x conftest
$ac_exeext; then
20877 have_getaddrinfo
=yes
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.
$ac_ext >&5
20882 have_getaddrinfo
=no
20885 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20886 conftest
$ac_exeext conftest.
$ac_ext
20887 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20888 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20889 if test $have_getaddrinfo = yes
20891 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20892 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20893 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20896 if test "$cross_compiling" = yes; then
20897 ac_cv_buggy_getaddrinfo
=yes
20899 cat >conftest.
$ac_ext <<_ACEOF
20902 cat confdefs.h
>>conftest.
$ac_ext
20903 cat >>conftest.
$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20906 #include <sys/types.h>
20908 #include <string.h>
20909 #include <sys/socket.h>
20910 #include <netinet/in.h>
20914 int passive, gaierr, inet4 = 0, inet6 = 0;
20915 struct addrinfo hints, *ai, *aitop;
20916 char straddr[INET6_ADDRSTRLEN], strport[16];
20918 for (passive = 0; passive <= 1; passive++) {
20919 memset(&hints, 0, sizeof(hints));
20920 hints.ai_family = AF_UNSPEC;
20921 hints.ai_flags = passive ? AI_PASSIVE : 0;
20922 hints.ai_socktype = SOCK_STREAM;
20923 hints.ai_protocol = IPPROTO_TCP;
20924 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20925 (void)gai_strerror(gaierr);
20928 for (ai = aitop; ai; ai = ai->ai_next) {
20929 if (ai->ai_addr == NULL ||
20930 ai->ai_addrlen == 0 ||
20931 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20932 straddr, sizeof(straddr), strport, sizeof(strport),
20933 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20936 switch (ai->ai_family) {
20938 if (strcmp(strport, "54321") != 0) {
20942 if (strcmp(straddr, "0.0.0.0") != 0) {
20946 if (strcmp(straddr, "127.0.0.1") != 0) {
20953 if (strcmp(strport, "54321") != 0) {
20957 if (strcmp(straddr, "::") != 0) {
20961 if (strcmp(straddr, "::1") != 0) {
20971 /* another family support? */
20977 if (!(inet4 == 0 || inet4 == 2))
20979 if (!(inet6 == 0 || inet6 == 2))
20983 freeaddrinfo(aitop);
20988 freeaddrinfo(aitop);
20993 rm -f conftest
$ac_exeext
20994 if { (ac_try
="$ac_link"
20995 case "(($ac_try" in
20996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_link") 2>&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21004 { (case "(($ac_try" in
21005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21006 *) ac_try_echo
=$ac_try;;
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_try") 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; }; then
21013 ac_cv_buggy_getaddrinfo
=no
21015 echo "$as_me: program exited with status $ac_status" >&5
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.
$ac_ext >&5
21019 ( exit $ac_status )
21020 ac_cv_buggy_getaddrinfo
=yes
21022 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21030 if test $have_getaddrinfo = no
-o $ac_cv_buggy_getaddrinfo = yes
21032 if test $ipv6 = yes
21034 echo 'Fatal: You must get working getaddrinfo() function.'
21035 echo ' or you can specify "--disable-ipv6"'.
21040 cat >>confdefs.h
<<\_ACEOF
21041 #define HAVE_GETADDRINFO 1
21046 for ac_func
in getnameinfo
21048 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21051 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21054 cat >conftest.
$ac_ext <<_ACEOF
21057 cat confdefs.h
>>conftest.
$ac_ext
21058 cat >>conftest.
$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21062 #define $ac_func innocuous_$ac_func
21064 /* System header to define __stub macros and hopefully few prototypes,
21065 which can conflict with char $ac_func (); below.
21066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21067 <limits.h> exists even on freestanding compilers. */
21070 # include <limits.h>
21072 # include <assert.h>
21077 /* Override any GCC internal prototype to avoid an error.
21078 Use char because int might match the return type of a GCC
21079 builtin and then its argument prototype would still apply. */
21084 /* The GNU C library defines this for functions which it implements
21085 to always fail with ENOSYS. Some functions are actually named
21086 something starting with __ and the normal name is an alias. */
21087 #if defined __stub_$ac_func || defined __stub___$ac_func
21094 return $ac_func ();
21099 rm -f conftest.
$ac_objext conftest
$ac_exeext
21100 if { (ac_try
="$ac_link"
21101 case "(($ac_try" in
21102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_link") 2>conftest.er1
21108 grep -v '^ *+' conftest.er1 >conftest.err
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest$ac_exeext &&
21116 $as_test_x conftest$ac_exeext; then
21117 eval "$as_ac_var=yes"
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 eval "$as_ac_var=no"
21125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21126 conftest$ac_exeext conftest.$ac_ext
21128 ac_res=`eval echo '${'$as_ac_var'}'`
21129 { echo "$as_me:$LINENO: result: $ac_res" >&5
21130 echo "${ECHO_T}$ac_res" >&6; }
21131 if test `eval echo '${'$as_ac_var'}'` = yes; then
21132 cat >>confdefs.h <<_ACEOF
21133 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21140 # checks for structures
21141 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21142 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21143 if test "${ac_cv_header_time+set}" = set; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 cat >conftest.$ac_ext <<_ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 #include <sys/types.h>
21153 #include <sys/time.h>
21159 if ((struct tm *) 0)
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21169 *) ac_try_echo
=$ac_try;;
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172 (eval "$ac_compile") 2>conftest.er1
21174 grep -v '^ *+' conftest.er1
>conftest.err
21176 cat conftest.err
>&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } && {
21179 test -z "$ac_c_werror_flag" ||
21180 test ! -s conftest.err
21181 } && test -s conftest.
$ac_objext; then
21182 ac_cv_header_time
=yes
21184 echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.
$ac_ext >&5
21187 ac_cv_header_time
=no
21190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21192 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21193 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21194 if test $ac_cv_header_time = yes; then
21196 cat >>confdefs.h
<<\_ACEOF
21197 #define TIME_WITH_SYS_TIME 1
21202 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21203 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21204 if test "${ac_cv_struct_tm+set}" = set; then
21205 echo $ECHO_N "(cached) $ECHO_C" >&6
21207 cat >conftest.
$ac_ext <<_ACEOF
21210 cat confdefs.h
>>conftest.
$ac_ext
21211 cat >>conftest.
$ac_ext <<_ACEOF
21212 /* end confdefs.h. */
21213 #include <sys/types.h>
21220 int *p = &tm.tm_sec;
21226 rm -f conftest.
$ac_objext
21227 if { (ac_try
="$ac_compile"
21228 case "(($ac_try" in
21229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_compile") 2>conftest.er1
21235 grep -v '^ *+' conftest.er1 >conftest.err
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest.$ac_objext; then
21243 ac_cv_struct_tm=time.h
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 ac_cv_struct_tm=sys/time.h
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21254 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21255 if test $ac_cv_struct_tm = sys/time.h; then
21257 cat >>confdefs.h <<\_ACEOF
21258 #define TM_IN_SYS_TIME 1
21263 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21264 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21265 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 #include <sys/types.h>
21275 #include <$ac_cv_struct_tm>
21281 static struct tm ac_aggr;
21282 if (ac_aggr.tm_zone)
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21292 *) ac_try_echo
=$ac_try;;
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21297 grep -v '^ *+' conftest.er1
>conftest.err
21299 cat conftest.err
>&5
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.
$ac_objext; then
21305 ac_cv_member_struct_tm_tm_zone
=yes
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.
$ac_ext >&5
21310 cat >conftest.
$ac_ext <<_ACEOF
21313 cat confdefs.h
>>conftest.
$ac_ext
21314 cat >>conftest.
$ac_ext <<_ACEOF
21315 /* end confdefs.h. */
21316 #include <sys/types.h>
21317 #include <$ac_cv_struct_tm>
21323 static struct tm ac_aggr;
21324 if (sizeof ac_aggr.tm_zone)
21330 rm -f conftest.
$ac_objext
21331 if { (ac_try
="$ac_compile"
21332 case "(($ac_try" in
21333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_compile") 2>conftest.er1
21339 grep -v '^ *+' conftest.er1 >conftest.err
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } && {
21344 test -z "$ac_c_werror_flag" ||
21345 test ! -s conftest.err
21346 } && test -s conftest.$ac_objext; then
21347 ac_cv_member_struct_tm_tm_zone=yes
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 ac_cv_member_struct_tm_tm_zone=no
21355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21361 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21362 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21364 cat >>confdefs.h <<_ACEOF
21365 #define HAVE_STRUCT_TM_TM_ZONE 1
21371 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21373 cat >>confdefs.h <<\_ACEOF
21374 #define HAVE_TM_ZONE 1
21378 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21379 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21380 if test "${ac_cv_have_decl_tzname+set}" = set; then
21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 cat >conftest.$ac_ext <<_ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h. */
21402 rm -f conftest.$ac_objext
21403 if { (ac_try="$ac_compile"
21404 case "(($ac_try" in
21405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21406 *) ac_try_echo
=$ac_try;;
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_compile") 2>conftest.er1
21411 grep -v '^ *+' conftest.er1
>conftest.err
21413 cat conftest.err
>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } && {
21416 test -z "$ac_c_werror_flag" ||
21417 test ! -s conftest.err
21418 } && test -s conftest.
$ac_objext; then
21419 ac_cv_have_decl_tzname
=yes
21421 echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.
$ac_ext >&5
21424 ac_cv_have_decl_tzname
=no
21427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21429 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21430 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21431 if test $ac_cv_have_decl_tzname = yes; then
21433 cat >>confdefs.h
<<_ACEOF
21434 #define HAVE_DECL_TZNAME 1
21439 cat >>confdefs.h
<<_ACEOF
21440 #define HAVE_DECL_TZNAME 0
21447 { echo "$as_me:$LINENO: checking for tzname" >&5
21448 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21449 if test "${ac_cv_var_tzname+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 cat >conftest.
$ac_ext <<_ACEOF
21455 cat confdefs.h
>>conftest.
$ac_ext
21456 cat >>conftest.
$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21459 #if !HAVE_DECL_TZNAME
21460 extern char *tzname[];
21466 return tzname[0][0];
21471 rm -f conftest.
$ac_objext conftest
$ac_exeext
21472 if { (ac_try
="$ac_link"
21473 case "(($ac_try" in
21474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_link") 2>conftest.er1
21480 grep -v '^ *+' conftest.er1 >conftest.err
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest$ac_exeext &&
21488 $as_test_x conftest$ac_exeext; then
21489 ac_cv_var_tzname=yes
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 ac_cv_var_tzname=no
21497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21498 conftest$ac_exeext conftest.$ac_ext
21500 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21501 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21502 if test $ac_cv_var_tzname = yes; then
21504 cat >>confdefs.h <<\_ACEOF
21505 #define HAVE_TZNAME 1
21511 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21512 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21513 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21514 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 cat >conftest.$ac_ext <<_ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 $ac_includes_default
21526 static struct stat ac_aggr;
21527 if (ac_aggr.st_rdev)
21533 rm -f conftest.$ac_objext
21534 if { (ac_try="$ac_compile"
21535 case "(($ac_try" in
21536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21537 *) ac_try_echo
=$ac_try;;
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_compile") 2>conftest.er1
21542 grep -v '^ *+' conftest.er1
>conftest.err
21544 cat conftest.err
>&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } && {
21547 test -z "$ac_c_werror_flag" ||
21548 test ! -s conftest.err
21549 } && test -s conftest.
$ac_objext; then
21550 ac_cv_member_struct_stat_st_rdev
=yes
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.
$ac_ext >&5
21555 cat >conftest.
$ac_ext <<_ACEOF
21558 cat confdefs.h
>>conftest.
$ac_ext
21559 cat >>conftest.
$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21561 $ac_includes_default
21565 static struct stat ac_aggr;
21566 if (sizeof ac_aggr.st_rdev)
21572 rm -f conftest.
$ac_objext
21573 if { (ac_try
="$ac_compile"
21574 case "(($ac_try" in
21575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_compile") 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && {
21586 test -z "$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 } && test -s conftest.$ac_objext; then
21589 ac_cv_member_struct_stat_st_rdev=yes
21591 echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ac_cv_member_struct_stat_st_rdev=no
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21603 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21604 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21606 cat >>confdefs.h <<_ACEOF
21607 #define HAVE_STRUCT_STAT_ST_RDEV 1
21613 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21614 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21615 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 $ac_includes_default
21628 static struct stat ac_aggr;
21629 if (ac_aggr.st_blksize)
21635 rm -f conftest.$ac_objext
21636 if { (ac_try="$ac_compile"
21637 case "(($ac_try" in
21638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21639 *) ac_try_echo
=$ac_try;;
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_compile") 2>conftest.er1
21644 grep -v '^ *+' conftest.er1
>conftest.err
21646 cat conftest.err
>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); } && {
21649 test -z "$ac_c_werror_flag" ||
21650 test ! -s conftest.err
21651 } && test -s conftest.
$ac_objext; then
21652 ac_cv_member_struct_stat_st_blksize
=yes
21654 echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.
$ac_ext >&5
21657 cat >conftest.
$ac_ext <<_ACEOF
21660 cat confdefs.h
>>conftest.
$ac_ext
21661 cat >>conftest.
$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 $ac_includes_default
21667 static struct stat ac_aggr;
21668 if (sizeof ac_aggr.st_blksize)
21674 rm -f conftest.
$ac_objext
21675 if { (ac_try
="$ac_compile"
21676 case "(($ac_try" in
21677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_compile") 2>conftest.er1
21683 grep -v '^ *+' conftest.er1 >conftest.err
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest.$ac_objext; then
21691 ac_cv_member_struct_stat_st_blksize=yes
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_cv_member_struct_stat_st_blksize=no
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21704 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21705 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21706 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21708 cat >>confdefs.h <<_ACEOF
21709 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21715 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21716 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21717 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21720 cat >conftest.$ac_ext <<_ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 $ac_includes_default
21730 static struct stat ac_aggr;
21731 if (ac_aggr.st_flags)
21737 rm -f conftest.$ac_objext
21738 if { (ac_try="$ac_compile"
21739 case "(($ac_try" in
21740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21741 *) ac_try_echo
=$ac_try;;
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_compile") 2>conftest.er1
21746 grep -v '^ *+' conftest.er1
>conftest.err
21748 cat conftest.err
>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest.
$ac_objext; then
21754 ac_cv_member_struct_stat_st_flags
=yes
21756 echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.
$ac_ext >&5
21759 cat >conftest.
$ac_ext <<_ACEOF
21762 cat confdefs.h
>>conftest.
$ac_ext
21763 cat >>conftest.
$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21765 $ac_includes_default
21769 static struct stat ac_aggr;
21770 if (sizeof ac_aggr.st_flags)
21776 rm -f conftest.
$ac_objext
21777 if { (ac_try
="$ac_compile"
21778 case "(($ac_try" in
21779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_compile") 2>conftest.er1
21785 grep -v '^ *+' conftest.er1 >conftest.err
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && {
21790 test -z "$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21792 } && test -s conftest.$ac_objext; then
21793 ac_cv_member_struct_stat_st_flags=yes
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 ac_cv_member_struct_stat_st_flags=no
21801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21806 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21807 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21808 if test $ac_cv_member_struct_stat_st_flags = yes; then
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21817 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21818 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21819 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 cat >conftest.$ac_ext <<_ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 $ac_includes_default
21832 static struct stat ac_aggr;
21833 if (ac_aggr.st_gen)
21839 rm -f conftest.$ac_objext
21840 if { (ac_try="$ac_compile"
21841 case "(($ac_try" in
21842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21843 *) ac_try_echo
=$ac_try;;
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_compile") 2>conftest.er1
21848 grep -v '^ *+' conftest.er1
>conftest.err
21850 cat conftest.err
>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } && {
21853 test -z "$ac_c_werror_flag" ||
21854 test ! -s conftest.err
21855 } && test -s conftest.
$ac_objext; then
21856 ac_cv_member_struct_stat_st_gen
=yes
21858 echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.
$ac_ext >&5
21861 cat >conftest.
$ac_ext <<_ACEOF
21864 cat confdefs.h
>>conftest.
$ac_ext
21865 cat >>conftest.
$ac_ext <<_ACEOF
21866 /* end confdefs.h. */
21867 $ac_includes_default
21871 static struct stat ac_aggr;
21872 if (sizeof ac_aggr.st_gen)
21878 rm -f conftest.
$ac_objext
21879 if { (ac_try
="$ac_compile"
21880 case "(($ac_try" in
21881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21882 *) ac_try_echo=$ac_try;;
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885 (eval "$ac_compile") 2>conftest.er1
21887 grep -v '^ *+' conftest.er1 >conftest.err
21889 cat conftest.err >&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); } && {
21892 test -z "$ac_c_werror_flag" ||
21893 test ! -s conftest.err
21894 } && test -s conftest.$ac_objext; then
21895 ac_cv_member_struct_stat_st_gen=yes
21897 echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21900 ac_cv_member_struct_stat_st_gen=no
21903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21909 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21910 if test $ac_cv_member_struct_stat_st_gen = yes; then
21912 cat >>confdefs.h <<_ACEOF
21913 #define HAVE_STRUCT_STAT_ST_GEN 1
21919 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21920 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21921 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21924 cat >conftest.$ac_ext <<_ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 $ac_includes_default
21934 static struct stat ac_aggr;
21935 if (ac_aggr.st_birthtime)
21941 rm -f conftest.$ac_objext
21942 if { (ac_try="$ac_compile"
21943 case "(($ac_try" in
21944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21945 *) ac_try_echo
=$ac_try;;
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_compile") 2>conftest.er1
21950 grep -v '^ *+' conftest.er1
>conftest.err
21952 cat conftest.err
>&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } && {
21955 test -z "$ac_c_werror_flag" ||
21956 test ! -s conftest.err
21957 } && test -s conftest.
$ac_objext; then
21958 ac_cv_member_struct_stat_st_birthtime
=yes
21960 echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.
$ac_ext >&5
21963 cat >conftest.
$ac_ext <<_ACEOF
21966 cat confdefs.h
>>conftest.
$ac_ext
21967 cat >>conftest.
$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 $ac_includes_default
21973 static struct stat ac_aggr;
21974 if (sizeof ac_aggr.st_birthtime)
21980 rm -f conftest.
$ac_objext
21981 if { (ac_try
="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_compile") 2>conftest.er1
21989 grep -v '^ *+' conftest.er1 >conftest.err
21991 cat conftest.err >&5
21992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993 (exit $ac_status); } && {
21994 test -z "$ac_c_werror_flag" ||
21995 test ! -s conftest.err
21996 } && test -s conftest.$ac_objext; then
21997 ac_cv_member_struct_stat_st_birthtime=yes
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ac_cv_member_struct_stat_st_birthtime=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
22011 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
22012 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
22014 cat >>confdefs.h <<_ACEOF
22015 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
22021 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22022 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22023 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22026 cat >conftest.$ac_ext <<_ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 $ac_includes_default
22036 static struct stat ac_aggr;
22037 if (ac_aggr.st_blocks)
22043 rm -f conftest.$ac_objext
22044 if { (ac_try="$ac_compile"
22045 case "(($ac_try" in
22046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22047 *) ac_try_echo
=$ac_try;;
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_compile") 2>conftest.er1
22052 grep -v '^ *+' conftest.er1
>conftest.err
22054 cat conftest.err
>&5
22055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056 (exit $ac_status); } && {
22057 test -z "$ac_c_werror_flag" ||
22058 test ! -s conftest.err
22059 } && test -s conftest.
$ac_objext; then
22060 ac_cv_member_struct_stat_st_blocks
=yes
22062 echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.
$ac_ext >&5
22065 cat >conftest.
$ac_ext <<_ACEOF
22068 cat confdefs.h
>>conftest.
$ac_ext
22069 cat >>conftest.
$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22071 $ac_includes_default
22075 static struct stat ac_aggr;
22076 if (sizeof ac_aggr.st_blocks)
22082 rm -f conftest.
$ac_objext
22083 if { (ac_try
="$ac_compile"
22084 case "(($ac_try" in
22085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22086 *) ac_try_echo=$ac_try;;
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089 (eval "$ac_compile") 2>conftest.er1
22091 grep -v '^ *+' conftest.er1 >conftest.err
22093 cat conftest.err >&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); } && {
22096 test -z "$ac_c_werror_flag" ||
22097 test ! -s conftest.err
22098 } && test -s conftest.$ac_objext; then
22099 ac_cv_member_struct_stat_st_blocks=yes
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 ac_cv_member_struct_stat_st_blocks=no
22107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22112 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22113 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22114 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22116 cat >>confdefs.h <<_ACEOF
22117 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22121 cat >>confdefs.h <<\_ACEOF
22122 #define HAVE_ST_BLOCKS 1
22126 case " $LIBOBJS " in
22127 *" fileblocks.$ac_objext "* ) ;;
22128 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22136 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22137 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
22138 if test "${ac_cv_header_time_altzone+set}" = set; then
22139 echo $ECHO_N "(cached) $ECHO_C" >&6
22141 cat >conftest.$ac_ext <<_ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h. */
22156 rm -f conftest.$ac_objext
22157 if { (ac_try="$ac_compile"
22158 case "(($ac_try" in
22159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22160 *) ac_try_echo
=$ac_try;;
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_compile") 2>conftest.er1
22165 grep -v '^ *+' conftest.er1
>conftest.err
22167 cat conftest.err
>&5
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && {
22170 test -z "$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22172 } && test -s conftest.
$ac_objext; then
22173 ac_cv_header_time_altzone
=yes
22175 echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.
$ac_ext >&5
22178 ac_cv_header_time_altzone
=no
22181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22184 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22185 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22186 if test $ac_cv_header_time_altzone = yes; then
22188 cat >>confdefs.h
<<\_ACEOF
22189 #define HAVE_ALTZONE 1
22195 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22196 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22197 cat >conftest.
$ac_ext <<_ACEOF
22200 cat confdefs.h
>>conftest.
$ac_ext
22201 cat >>conftest.
$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22204 #include <sys/types.h>
22205 #include <sys/select.h>
22206 #include <sys/time.h>
22216 rm -f conftest.
$ac_objext
22217 if { (ac_try
="$ac_compile"
22218 case "(($ac_try" in
22219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_compile") 2>conftest.er1
22225 grep -v '^ *+' conftest.er1 >conftest.err
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } && {
22230 test -z "$ac_c_werror_flag" ||
22231 test ! -s conftest.err
22232 } && test -s conftest.$ac_objext; then
22235 cat >>confdefs.h <<\_ACEOF
22236 #define SYS_SELECT_WITH_SYS_TIME 1
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
22250 echo "${ECHO_T}$was_it_defined" >&6; }
22252 { echo "$as_me:$LINENO: checking for addrinfo" >&5
22253 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22254 if test "${ac_cv_struct_addrinfo+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22257 cat >conftest.$ac_ext <<_ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22264 # include <netdb.h>
22273 rm -f conftest.$ac_objext
22274 if { (ac_try="$ac_compile"
22275 case "(($ac_try" in
22276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22277 *) ac_try_echo
=$ac_try;;
22279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_compile") 2>conftest.er1
22282 grep -v '^ *+' conftest.er1
>conftest.err
22284 cat conftest.err
>&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } && {
22287 test -z "$ac_c_werror_flag" ||
22288 test ! -s conftest.err
22289 } && test -s conftest.
$ac_objext; then
22290 ac_cv_struct_addrinfo
=yes
22292 echo "$as_me: failed program was:" >&5
22293 sed 's/^/| /' conftest.
$ac_ext >&5
22295 ac_cv_struct_addrinfo
=no
22298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22301 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22302 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22303 if test $ac_cv_struct_addrinfo = yes; then
22305 cat >>confdefs.h
<<\_ACEOF
22306 #define HAVE_ADDRINFO 1
22311 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22312 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22313 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22314 echo $ECHO_N "(cached) $ECHO_C" >&6
22316 cat >conftest.
$ac_ext <<_ACEOF
22319 cat confdefs.h
>>conftest.
$ac_ext
22320 cat >>conftest.
$ac_ext <<_ACEOF
22321 /* end confdefs.h. */
22323 # include <sys/types.h>
22324 # include <sys/socket.h>
22328 struct sockaddr_storage s
22333 rm -f conftest.
$ac_objext
22334 if { (ac_try
="$ac_compile"
22335 case "(($ac_try" in
22336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22337 *) ac_try_echo=$ac_try;;
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340 (eval "$ac_compile") 2>conftest.er1
22342 grep -v '^ *+' conftest.er1 >conftest.err
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && {
22347 test -z "$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22349 } && test -s conftest.$ac_objext; then
22350 ac_cv_struct_sockaddr_storage=yes
22352 echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22355 ac_cv_struct_sockaddr_storage=no
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22362 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22363 if test $ac_cv_struct_sockaddr_storage = yes; then
22365 cat >>confdefs.h <<\_ACEOF
22366 #define HAVE_SOCKADDR_STORAGE 1
22371 # checks for compiler characteristics
22374 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22375 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22376 if test "${ac_cv_c_char_unsigned+set}" = set; then
22377 echo $ECHO_N "(cached) $ECHO_C" >&6
22379 cat >conftest.$ac_ext <<_ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22385 $ac_includes_default
22389 static int test_array [1 - 2 * !(((char) -1) < 0)];
22396 rm -f conftest.$ac_objext
22397 if { (ac_try="$ac_compile"
22398 case "(($ac_try" in
22399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22400 *) ac_try_echo
=$ac_try;;
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_compile") 2>conftest.er1
22405 grep -v '^ *+' conftest.er1
>conftest.err
22407 cat conftest.err
>&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest.
$ac_objext; then
22413 ac_cv_c_char_unsigned
=no
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.
$ac_ext >&5
22418 ac_cv_c_char_unsigned
=yes
22421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22423 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22424 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22425 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22426 cat >>confdefs.h
<<\_ACEOF
22427 #define __CHAR_UNSIGNED__ 1
22432 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22433 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22434 if test "${ac_cv_c_const+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22437 cat >conftest.
$ac_ext <<_ACEOF
22440 cat confdefs.h
>>conftest.
$ac_ext
22441 cat >>conftest.
$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22447 /* FIXME: Include the comments suggested by Paul. */
22448 #ifndef __cplusplus
22449 /* Ultrix mips cc rejects this. */
22450 typedef int charset[2];
22452 /* SunOS 4.1.1 cc rejects this. */
22453 char const *const *pcpcc;
22455 /* NEC SVR4.0.2 mips cc rejects this. */
22456 struct point {int x, y;};
22457 static struct point const zero = {0,0};
22458 /* AIX XL C 1.02.0.0 rejects this.
22459 It does not let you subtract one const X* pointer from another in
22460 an arm of an if-expression whose if-part is not a constant
22462 const char *g = "string";
22463 pcpcc = &g + (g ? g-g : 0);
22464 /* HPUX 7.0 cc rejects these. */
22466 ppc = (char**) pcpcc;
22467 pcpcc = (char const *const *) ppc;
22468 { /* SCO 3.2v4 cc rejects this. */
22470 char const *s = 0 ? (char *) 0 : (char const *) 0;
22475 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22476 int x[] = {25, 17};
22477 const int *foo = &x[0];
22480 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22481 typedef const int *iptr;
22485 { /* AIX XL C 1.02.0.0 rejects this saying
22486 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22487 struct s { int j; const int *ap[3]; };
22488 struct s *b; b->j = 5;
22490 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22491 const int foo = 10;
22492 if (!foo) return 0;
22494 return !cs[0] && !zero.x;
22501 rm -f conftest.
$ac_objext
22502 if { (ac_try
="$ac_compile"
22503 case "(($ac_try" in
22504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_compile") 2>conftest.er1
22510 grep -v '^ *+' conftest.er1 >conftest.err
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } && {
22515 test -z "$ac_c_werror_flag" ||
22516 test ! -s conftest.err
22517 } && test -s conftest.$ac_objext; then
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22528 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22529 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22530 if test $ac_cv_c_const = no; then
22532 cat >>confdefs.h <<\_ACEOF
22540 { echo "$as_me:$LINENO: checking for working volatile" >&5
22541 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22552 volatile int x; x = 0;
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22561 *) ac_try_echo
=$ac_try;;
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564 (eval "$ac_compile") 2>conftest.er1
22566 grep -v '^ *+' conftest.er1
>conftest.err
22568 cat conftest.err
>&5
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } && {
22571 test -z "$ac_c_werror_flag" ||
22572 test ! -s conftest.err
22573 } && test -s conftest.
$ac_objext; then
22576 echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.
$ac_ext >&5
22580 cat >>confdefs.h
<<\_ACEOF
22587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22588 { echo "$as_me:$LINENO: result: $works" >&5
22589 echo "${ECHO_T}$works" >&6; }
22592 { echo "$as_me:$LINENO: checking for working signed char" >&5
22593 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22594 cat >conftest.
$ac_ext <<_ACEOF
22597 cat confdefs.h
>>conftest.
$ac_ext
22598 cat >>conftest.
$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22609 rm -f conftest.
$ac_objext
22610 if { (ac_try
="$ac_compile"
22611 case "(($ac_try" in
22612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22613 *) ac_try_echo=$ac_try;;
22615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22616 (eval "$ac_compile") 2>conftest.er1
22618 grep -v '^ *+' conftest.er1 >conftest.err
22620 cat conftest.err >&5
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); } && {
22623 test -z "$ac_c_werror_flag" ||
22624 test ! -s conftest.err
22625 } && test -s conftest.$ac_objext; then
22628 echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22632 cat >>confdefs.h <<\_ACEOF
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 { echo "$as_me:$LINENO: result: $works" >&5
22641 echo "${ECHO_T}$works" >&6; }
22644 { echo "$as_me:$LINENO: checking for prototypes" >&5
22645 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22646 cat >conftest.$ac_ext <<_ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h. */
22652 int foo(int x) { return 0; }
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22665 *) ac_try_echo
=$ac_try;;
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668 (eval "$ac_compile") 2>conftest.er1
22670 grep -v '^ *+' conftest.er1
>conftest.err
22672 cat conftest.err
>&5
22673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674 (exit $ac_status); } && {
22675 test -z "$ac_c_werror_flag" ||
22676 test ! -s conftest.err
22677 } && test -s conftest.
$ac_objext; then
22680 cat >>confdefs.h
<<\_ACEOF
22681 #define HAVE_PROTOTYPES 1
22684 have_prototypes
=yes
22687 echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.
$ac_ext >&5
22693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22694 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22695 echo "${ECHO_T}$have_prototypes" >&6; }
22698 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22699 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22700 cat >conftest.
$ac_ext <<_ACEOF
22703 cat confdefs.h
>>conftest.
$ac_ext
22704 cat >>conftest.
$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22707 #include <stdarg.h>
22708 int foo(int x, ...) {
22712 va_arg(va, char *);
22713 va_arg(va, double);
22720 return foo(10, "", 3.14);
22725 rm -f conftest.
$ac_objext
22726 if { (ac_try
="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22734 grep -v '^ *+' conftest.er1 >conftest.err
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22744 cat >>confdefs.h <<\_ACEOF
22745 #define HAVE_STDARG_PROTOTYPES 1
22751 echo "$as_me: failed program was:" >&5
22752 sed 's/^/| /' conftest.$ac_ext >&5
22757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22758 { echo "$as_me:$LINENO: result: $works" >&5
22759 echo "${ECHO_T}$works" >&6; }
22761 # check for socketpair
22762 { echo "$as_me:$LINENO: checking for socketpair" >&5
22763 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22764 cat >conftest.$ac_ext <<_ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22771 #include <sys/types.h>
22772 #include <sys/socket.h>
22782 rm -f conftest.$ac_objext
22783 if { (ac_try="$ac_compile"
22784 case "(($ac_try" in
22785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22786 *) ac_try_echo
=$ac_try;;
22788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_compile") 2>conftest.er1
22791 grep -v '^ *+' conftest.er1
>conftest.err
22793 cat conftest.err
>&5
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } && {
22796 test -z "$ac_c_werror_flag" ||
22797 test ! -s conftest.err
22798 } && test -s conftest.
$ac_objext; then
22800 cat >>confdefs.h
<<\_ACEOF
22801 #define HAVE_SOCKETPAIR 1
22804 { echo "$as_me:$LINENO: result: yes" >&5
22805 echo "${ECHO_T}yes" >&6; }
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.
$ac_ext >&5
22810 { echo "$as_me:$LINENO: result: no" >&5
22811 echo "${ECHO_T}no" >&6; }
22815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22817 # check if sockaddr has sa_len member
22818 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22819 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22820 cat >conftest.
$ac_ext <<_ACEOF
22823 cat confdefs.h
>>conftest.
$ac_ext
22824 cat >>conftest.
$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22826 #include <sys/types.h>
22827 #include <sys/socket.h>
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 { echo "$as_me:$LINENO: result: yes" >&5
22855 echo "${ECHO_T}yes" >&6; }
22857 cat >>confdefs.h <<\_ACEOF
22858 #define HAVE_SOCKADDR_SA_LEN 1
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 { echo "$as_me:$LINENO: result: no" >&5
22866 echo "${ECHO_T}no" >&6; }
22869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871 va_list_is_array=no
22872 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22873 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22874 cat >conftest.$ac_ext <<_ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22881 #ifdef HAVE_STDARG_PROTOTYPES
22882 #include <stdarg.h>
22884 #include <varargs.h>
22890 va_list list1, list2; list1 = list2;
22895 rm -f conftest.$ac_objext
22896 if { (ac_try="$ac_compile"
22897 case "(($ac_try" in
22898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22899 *) ac_try_echo
=$ac_try;;
22901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_compile") 2>conftest.er1
22904 grep -v '^ *+' conftest.er1
>conftest.err
22906 cat conftest.err
>&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); } && {
22909 test -z "$ac_c_werror_flag" ||
22910 test ! -s conftest.err
22911 } && test -s conftest.
$ac_objext; then
22914 echo "$as_me: failed program was:" >&5
22915 sed 's/^/| /' conftest.
$ac_ext >&5
22919 cat >>confdefs.h
<<\_ACEOF
22920 #define VA_LIST_IS_ARRAY 1
22923 va_list_is_array
=yes
22927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22928 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22929 echo "${ECHO_T}$va_list_is_array" >&6; }
22931 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22935 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22936 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22937 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22940 cat >conftest.
$ac_ext <<_ACEOF
22943 cat confdefs.h
>>conftest.
$ac_ext
22944 cat >>conftest.
$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22948 #define gethostbyname_r innocuous_gethostbyname_r
22950 /* System header to define __stub macros and hopefully few prototypes,
22951 which can conflict with char gethostbyname_r (); below.
22952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22953 <limits.h> exists even on freestanding compilers. */
22956 # include <limits.h>
22958 # include <assert.h>
22961 #undef gethostbyname_r
22963 /* Override any GCC internal prototype to avoid an error.
22964 Use char because int might match the return type of a GCC
22965 builtin and then its argument prototype would still apply. */
22969 char gethostbyname_r ();
22970 /* The GNU C library defines this for functions which it implements
22971 to always fail with ENOSYS. Some functions are actually named
22972 something starting with __ and the normal name is an alias. */
22973 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22980 return gethostbyname_r ();
22985 rm -f conftest.
$ac_objext conftest
$ac_exeext
22986 if { (ac_try
="$ac_link"
22987 case "(($ac_try" in
22988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22989 *) ac_try_echo=$ac_try;;
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_link") 2>conftest.er1
22994 grep -v '^ *+' conftest.er1 >conftest.err
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } && {
22999 test -z "$ac_c_werror_flag" ||
23000 test ! -s conftest.err
23001 } && test -s conftest$ac_exeext &&
23002 $as_test_x conftest$ac_exeext; then
23003 ac_cv_func_gethostbyname_r=yes
23005 echo "$as_me: failed program was:" >&5
23006 sed 's/^/| /' conftest.$ac_ext >&5
23008 ac_cv_func_gethostbyname_r=no
23011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23012 conftest$ac_exeext conftest.$ac_ext
23014 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
23015 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
23016 if test $ac_cv_func_gethostbyname_r = yes; then
23018 cat >>confdefs.h <<\_ACEOF
23019 #define HAVE_GETHOSTBYNAME_R 1
23022 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
23023 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
23025 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23026 cat >conftest.$ac_ext <<_ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h. */
23033 # include <netdb.h>
23040 struct hostent *he, *res;
23045 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23051 rm -f conftest.$ac_objext
23052 if { (ac_try="$ac_compile"
23053 case "(($ac_try" in
23054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23055 *) ac_try_echo
=$ac_try;;
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_compile") 2>conftest.er1
23060 grep -v '^ *+' conftest.er1
>conftest.err
23062 cat conftest.err
>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } && {
23065 test -z "$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23067 } && test -s conftest.
$ac_objext; then
23069 cat >>confdefs.h
<<\_ACEOF
23070 #define HAVE_GETHOSTBYNAME_R 1
23074 cat >>confdefs.h
<<\_ACEOF
23075 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
23078 { echo "$as_me:$LINENO: result: yes" >&5
23079 echo "${ECHO_T}yes" >&6; }
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.
$ac_ext >&5
23086 { echo "$as_me:$LINENO: result: no" >&5
23087 echo "${ECHO_T}no" >&6; }
23088 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
23089 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
23090 cat >conftest.
$ac_ext <<_ACEOF
23093 cat confdefs.h
>>conftest.
$ac_ext
23094 cat >>conftest.
$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23097 # include <netdb.h>
23104 struct hostent *he;
23109 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23115 rm -f conftest.
$ac_objext
23116 if { (ac_try
="$ac_compile"
23117 case "(($ac_try" in
23118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122 (eval "$ac_compile") 2>conftest.er1
23124 grep -v '^ *+' conftest.er1 >conftest.err
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } && {
23129 test -z "$ac_c_werror_flag" ||
23130 test ! -s conftest.err
23131 } && test -s conftest.$ac_objext; then
23133 cat >>confdefs.h <<\_ACEOF
23134 #define HAVE_GETHOSTBYNAME_R 1
23138 cat >>confdefs.h <<\_ACEOF
23139 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
23142 { echo "$as_me:$LINENO: result: yes" >&5
23143 echo "${ECHO_T}yes" >&6; }
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23150 { echo "$as_me:$LINENO: result: no" >&5
23151 echo "${ECHO_T}no" >&6; }
23152 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23153 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
23154 cat >conftest.$ac_ext <<_ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23161 # include <netdb.h>
23168 struct hostent *he;
23169 struct hostent_data data;
23171 (void) gethostbyname_r(name, he, &data);
23177 rm -f conftest.$ac_objext
23178 if { (ac_try="$ac_compile"
23179 case "(($ac_try" in
23180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23181 *) ac_try_echo
=$ac_try;;
23183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23184 (eval "$ac_compile") 2>conftest.er1
23186 grep -v '^ *+' conftest.er1
>conftest.err
23188 cat conftest.err
>&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } && {
23191 test -z "$ac_c_werror_flag" ||
23192 test ! -s conftest.err
23193 } && test -s conftest.
$ac_objext; then
23195 cat >>confdefs.h
<<\_ACEOF
23196 #define HAVE_GETHOSTBYNAME_R 1
23200 cat >>confdefs.h
<<\_ACEOF
23201 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
23204 { echo "$as_me:$LINENO: result: yes" >&5
23205 echo "${ECHO_T}yes" >&6; }
23208 echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.
$ac_ext >&5
23212 { echo "$as_me:$LINENO: result: no" >&5
23213 echo "${ECHO_T}no" >&6; }
23217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23231 for ac_func
in gethostbyname
23233 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23236 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23239 cat >conftest.
$ac_ext <<_ACEOF
23242 cat confdefs.h
>>conftest.
$ac_ext
23243 cat >>conftest.
$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23247 #define $ac_func innocuous_$ac_func
23249 /* System header to define __stub macros and hopefully few prototypes,
23250 which can conflict with char $ac_func (); below.
23251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23252 <limits.h> exists even on freestanding compilers. */
23255 # include <limits.h>
23257 # include <assert.h>
23262 /* Override any GCC internal prototype to avoid an error.
23263 Use char because int might match the return type of a GCC
23264 builtin and then its argument prototype would still apply. */
23269 /* The GNU C library defines this for functions which it implements
23270 to always fail with ENOSYS. Some functions are actually named
23271 something starting with __ and the normal name is an alias. */
23272 #if defined __stub_$ac_func || defined __stub___$ac_func
23279 return $ac_func ();
23284 rm -f conftest.
$ac_objext conftest
$ac_exeext
23285 if { (ac_try
="$ac_link"
23286 case "(($ac_try" in
23287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291 (eval "$ac_link") 2>conftest.er1
23293 grep -v '^ *+' conftest.er1 >conftest.err
23295 cat conftest.err >&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); } && {
23298 test -z "$ac_c_werror_flag" ||
23299 test ! -s conftest.err
23300 } && test -s conftest$ac_exeext &&
23301 $as_test_x conftest$ac_exeext; then
23302 eval "$as_ac_var=yes"
23304 echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23307 eval "$as_ac_var=no"
23310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23311 conftest$ac_exeext conftest.$ac_ext
23313 ac_res=`eval echo '${'$as_ac_var'}'`
23314 { echo "$as_me:$LINENO: result: $ac_res" >&5
23315 echo "${ECHO_T}$ac_res" >&6; }
23316 if test `eval echo '${'$as_ac_var'}'` = yes; then
23317 cat >>confdefs.h <<_ACEOF
23318 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23333 # checks for system services
23336 # Linux requires this for correct f.p. operations
23337 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
23338 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
23339 if test "${ac_cv_func___fpu_control+set}" = set; then
23340 echo $ECHO_N "(cached) $ECHO_C" >&6
23342 cat >conftest.$ac_ext <<_ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h. */
23348 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23350 #define __fpu_control innocuous___fpu_control
23352 /* System header to define __stub macros and hopefully few prototypes,
23353 which can conflict with char __fpu_control (); below.
23354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23355 <limits.h> exists even on freestanding compilers. */
23358 # include <limits.h>
23360 # include <assert.h>
23363 #undef __fpu_control
23365 /* Override any GCC internal prototype to avoid an error.
23366 Use char because int might match the return type of a GCC
23367 builtin and then its argument prototype would still apply. */
23371 char __fpu_control ();
23372 /* The GNU C library defines this for functions which it implements
23373 to always fail with ENOSYS. Some functions are actually named
23374 something starting with __ and the normal name is an alias. */
23375 #if defined __stub___fpu_control || defined __stub_____fpu_control
23382 return __fpu_control ();
23387 rm -f conftest.$ac_objext conftest$ac_exeext
23388 if { (ac_try="$ac_link"
23389 case "(($ac_try" in
23390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23391 *) ac_try_echo
=$ac_try;;
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394 (eval "$ac_link") 2>conftest.er1
23396 grep -v '^ *+' conftest.er1
>conftest.err
23398 cat conftest.err
>&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } && {
23401 test -z "$ac_c_werror_flag" ||
23402 test ! -s conftest.err
23403 } && test -s conftest
$ac_exeext &&
23404 $as_test_x conftest
$ac_exeext; then
23405 ac_cv_func___fpu_control
=yes
23407 echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.
$ac_ext >&5
23410 ac_cv_func___fpu_control
=no
23413 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23414 conftest
$ac_exeext conftest.
$ac_ext
23416 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23417 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23418 if test $ac_cv_func___fpu_control = yes; then
23422 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23423 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23424 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23425 echo $ECHO_N "(cached) $ECHO_C" >&6
23427 ac_check_lib_save_LIBS
=$LIBS
23428 LIBS
="-lieee $LIBS"
23429 cat >conftest.
$ac_ext <<_ACEOF
23432 cat confdefs.h
>>conftest.
$ac_ext
23433 cat >>conftest.
$ac_ext <<_ACEOF
23434 /* end confdefs.h. */
23436 /* Override any GCC internal prototype to avoid an error.
23437 Use char because int might match the return type of a GCC
23438 builtin and then its argument prototype would still apply. */
23442 char __fpu_control ();
23446 return __fpu_control ();
23451 rm -f conftest.
$ac_objext conftest
$ac_exeext
23452 if { (ac_try
="$ac_link"
23453 case "(($ac_try" in
23454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_link") 2>conftest.er1
23460 grep -v '^ *+' conftest.er1 >conftest.err
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } && {
23465 test -z "$ac_c_werror_flag" ||
23466 test ! -s conftest.err
23467 } && test -s conftest$ac_exeext &&
23468 $as_test_x conftest$ac_exeext; then
23469 ac_cv_lib_ieee___fpu_control=yes
23471 echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23474 ac_cv_lib_ieee___fpu_control=no
23477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23478 conftest$ac_exeext conftest.$ac_ext
23479 LIBS=$ac_check_lib_save_LIBS
23481 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23482 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23483 if test $ac_cv_lib_ieee___fpu_control = yes; then
23484 cat >>confdefs.h <<_ACEOF
23485 #define HAVE_LIBIEEE 1
23488 LIBS="-lieee $LIBS"
23496 # Check for --with-fpectl
23497 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23498 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23500 # Check whether --with-fpectl was given.
23501 if test "${with_fpectl+set}" = set; then
23502 withval=$with_fpectl;
23503 if test "$withval" != no
23506 cat >>confdefs.h <<\_ACEOF
23507 #define WANT_SIGFPE_HANDLER 1
23510 { echo "$as_me:$LINENO: result: yes" >&5
23511 echo "${ECHO_T}yes" >&6; }
23512 else { echo "$as_me:$LINENO: result: no" >&5
23513 echo "${ECHO_T}no" >&6; }
23516 { echo "$as_me:$LINENO: result: no" >&5
23517 echo "${ECHO_T}no" >&6; }
23521 # check for --with-libm=...
23523 case $ac_sys_system in
23528 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23529 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23531 # Check whether --with-libm was given.
23532 if test "${with_libm+set}" = set; then
23533 withval=$with_libm;
23534 if test "$withval" = no
23536 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23537 echo "${ECHO_T}force LIBM empty" >&6; }
23538 elif test "$withval" != yes
23540 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23541 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23542 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23543 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23544 { (exit 1); exit 1; }; }
23547 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23548 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23552 # check for --with-libc=...
23554 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23555 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23557 # Check whether --with-libc was given.
23558 if test "${with_libc+set}" = set; then
23559 withval=$with_libc;
23560 if test "$withval" = no
23562 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23563 echo "${ECHO_T}force LIBC empty" >&6; }
23564 elif test "$withval" != yes
23566 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23567 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23568 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23569 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23570 { (exit 1); exit 1; }; }
23573 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23574 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23578 # **************************************************
23579 # * Check for various properties of floating point *
23580 # **************************************************
23582 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
23583 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
23584 if test "${ac_cv_little_endian_double+set}" = set; then
23585 echo $ECHO_N "(cached) $ECHO_C" >&6
23588 if test "$cross_compiling" = yes; then
23589 ac_cv_little_endian_double=no
23591 cat >conftest.$ac_ext <<_ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23598 #include <string.h>
23600 double x = 9006104071832581.0;
23601 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
23608 rm -f conftest$ac_exeext
23609 if { (ac_try="$ac_link"
23610 case "(($ac_try" in
23611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23612 *) ac_try_echo
=$ac_try;;
23614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23615 (eval "$ac_link") 2>&5
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23619 { (case "(($ac_try" in
23620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23624 (eval "$ac_try") 2>&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; }; then
23628 ac_cv_little_endian_double=yes
23630 echo "$as_me: program exited with status $ac_status" >&5
23631 echo "$as_me: failed program was:" >&5
23632 sed 's/^/| /' conftest.$ac_ext >&5
23634 ( exit $ac_status )
23635 ac_cv_little_endian_double=no
23637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23643 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
23644 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
23645 if test "$ac_cv_little_endian_double" = yes
23648 cat >>confdefs.h <<\_ACEOF
23649 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
23654 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
23655 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
23656 if test "${ac_cv_big_endian_double+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23660 if test "$cross_compiling" = yes; then
23661 ac_cv_big_endian_double=no
23663 cat >conftest.$ac_ext <<_ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h. */
23670 #include <string.h>
23672 double x = 9006104071832581.0;
23673 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
23680 rm -f conftest$ac_exeext
23681 if { (ac_try="$ac_link"
23682 case "(($ac_try" in
23683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23684 *) ac_try_echo
=$ac_try;;
23686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687 (eval "$ac_link") 2>&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23691 { (case "(($ac_try" in
23692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23693 *) ac_try_echo=$ac_try;;
23695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23696 (eval "$ac_try") 2>&5
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); }; }; then
23700 ac_cv_big_endian_double=yes
23702 echo "$as_me: program exited with status $ac_status" >&5
23703 echo "$as_me: failed program was:" >&5
23704 sed 's/^/| /' conftest.$ac_ext >&5
23706 ( exit $ac_status )
23707 ac_cv_big_endian_double=no
23709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23715 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
23716 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
23717 if test "$ac_cv_big_endian_double" = yes
23720 cat >>confdefs.h <<\_ACEOF
23721 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
23726 # Some ARM platforms use a mixed-endian representation for doubles.
23727 # While Python doesn't currently have full support for these platforms
23728 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23729 # conversions work.
23730 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
23731 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
23732 if test "${ac_cv_mixed_endian_double+set}" = set; then
23733 echo $ECHO_N "(cached) $ECHO_C" >&6
23736 if test "$cross_compiling" = yes; then
23737 ac_cv_mixed_endian_double=no
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23746 #include <string.h>
23748 double x = 9006104071832581.0;
23749 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
23756 rm -f conftest$ac_exeext
23757 if { (ac_try="$ac_link"
23758 case "(($ac_try" in
23759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23760 *) ac_try_echo
=$ac_try;;
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_link") 2>&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23767 { (case "(($ac_try" in
23768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23769 *) ac_try_echo=$ac_try;;
23771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23772 (eval "$ac_try") 2>&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); }; }; then
23776 ac_cv_mixed_endian_double=yes
23778 echo "$as_me: program exited with status $ac_status" >&5
23779 echo "$as_me: failed program was:" >&5
23780 sed 's/^/| /' conftest.$ac_ext >&5
23782 ( exit $ac_status )
23783 ac_cv_mixed_endian_double=no
23785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23791 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
23792 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
23793 if test "$ac_cv_mixed_endian_double" = yes
23796 cat >>confdefs.h <<\_ACEOF
23797 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
23802 # The short float repr introduced in Python 3.1 requires the
23803 # correctly-rounded string <-> double conversion functions from
23804 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23805 # rounding; this is a problem on x86, where the x87 FPU has a default
23806 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23807 # using inline assembler to get and set the x87 FPU control word.
23809 # This inline assembler syntax may also work for suncc and icc,
23810 # so we try it on all platforms.
23812 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23813 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23814 cat >conftest.$ac_ext <<_ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23826 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23827 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23833 rm -f conftest.$ac_objext
23834 if { (ac_try="$ac_compile"
23835 case "(($ac_try" in
23836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23837 *) ac_try_echo
=$ac_try;;
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_compile") 2>conftest.er1
23842 grep -v '^ *+' conftest.er1
>conftest.err
23844 cat conftest.err
>&5
23845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } && {
23847 test -z "$ac_c_werror_flag" ||
23848 test ! -s conftest.err
23849 } && test -s conftest.
$ac_objext; then
23850 have_gcc_asm_for_x87
=yes
23852 echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.
$ac_ext >&5
23855 have_gcc_asm_for_x87
=no
23858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23859 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23860 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23861 if test "$have_gcc_asm_for_x87" = yes
23864 cat >>confdefs.h
<<\_ACEOF
23865 #define HAVE_GCC_ASM_FOR_X87 1
23870 # Detect whether system arithmetic is subject to x87-style double
23871 # rounding issues. The result of this test has little meaning on non
23872 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23873 # mode is round-to-nearest and double rounding issues are present, and
23874 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23875 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23876 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23877 # $BASECFLAGS may affect the result
23879 CC
="$CC $BASECFLAGS"
23880 if test "$cross_compiling" = yes; then
23881 ac_cv_x87_double_rounding
=no
23883 cat >conftest.
$ac_ext <<_ACEOF
23886 cat confdefs.h
>>conftest.
$ac_ext
23887 cat >>conftest.
$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23890 #include <stdlib.h>
23893 volatile double x, y, z;
23894 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23895 x = 0.99999999999999989; /* 1-2**-53 */
23899 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23905 /* both tests show evidence of double rounding */
23910 rm -f conftest
$ac_exeext
23911 if { (ac_try
="$ac_link"
23912 case "(($ac_try" in
23913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23914 *) ac_try_echo=$ac_try;;
23916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23917 (eval "$ac_link") 2>&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23921 { (case "(($ac_try" in
23922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23923 *) ac_try_echo
=$ac_try;;
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926 (eval "$ac_try") 2>&5
23928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); }; }; then
23930 ac_cv_x87_double_rounding
=no
23932 echo "$as_me: program exited with status $ac_status" >&5
23933 echo "$as_me: failed program was:" >&5
23934 sed 's/^/| /' conftest.
$ac_ext >&5
23936 ( exit $ac_status )
23937 ac_cv_x87_double_rounding
=yes
23939 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23944 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23945 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23946 if test "$ac_cv_x87_double_rounding" = yes
23949 cat >>confdefs.h
<<\_ACEOF
23950 #define X87_DOUBLE_ROUNDING 1
23955 # ************************************
23956 # * Check for mathematical functions *
23957 # ************************************
23962 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23963 # -0. on some architectures.
23964 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23965 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23966 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23970 if test "$cross_compiling" = yes; then
23971 ac_cv_tanh_preserves_zero_sign
=no
23973 cat >conftest.
$ac_ext <<_ACEOF
23976 cat confdefs.h
>>conftest.
$ac_ext
23977 cat >>conftest.
$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23981 #include <stdlib.h>
23983 /* return 0 if either negative zeros don't exist
23984 on this platform or if negative zeros exist
23985 and tanh(-0.) == -0. */
23986 if (atan2(0., -1.) == atan2(-0., -1.) ||
23987 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23992 rm -f conftest
$ac_exeext
23993 if { (ac_try
="$ac_link"
23994 case "(($ac_try" in
23995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_link") 2>&5
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24003 { (case "(($ac_try" in
24004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24005 *) ac_try_echo
=$ac_try;;
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_try") 2>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 ac_cv_tanh_preserves_zero_sign
=yes
24014 echo "$as_me: program exited with status $ac_status" >&5
24015 echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.
$ac_ext >&5
24018 ( exit $ac_status )
24019 ac_cv_tanh_preserves_zero_sign
=no
24021 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24027 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
24028 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
24029 if test "$ac_cv_tanh_preserves_zero_sign" = yes
24032 cat >>confdefs.h
<<\_ACEOF
24033 #define TANH_PRESERVES_ZERO_SIGN 1
24047 for ac_func
in acosh asinh atanh copysign erf erfc expm1 finite gamma
24049 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24050 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24052 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24055 cat >conftest.
$ac_ext <<_ACEOF
24058 cat confdefs.h
>>conftest.
$ac_ext
24059 cat >>conftest.
$ac_ext <<_ACEOF
24060 /* end confdefs.h. */
24061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24063 #define $ac_func innocuous_$ac_func
24065 /* System header to define __stub macros and hopefully few prototypes,
24066 which can conflict with char $ac_func (); below.
24067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24068 <limits.h> exists even on freestanding compilers. */
24071 # include <limits.h>
24073 # include <assert.h>
24078 /* Override any GCC internal prototype to avoid an error.
24079 Use char because int might match the return type of a GCC
24080 builtin and then its argument prototype would still apply. */
24085 /* The GNU C library defines this for functions which it implements
24086 to always fail with ENOSYS. Some functions are actually named
24087 something starting with __ and the normal name is an alias. */
24088 #if defined __stub_$ac_func || defined __stub___$ac_func
24095 return $ac_func ();
24100 rm -f conftest.
$ac_objext conftest
$ac_exeext
24101 if { (ac_try
="$ac_link"
24102 case "(($ac_try" in
24103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107 (eval "$ac_link") 2>conftest.er1
24109 grep -v '^ *+' conftest.er1 >conftest.err
24111 cat conftest.err >&5
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } && {
24114 test -z "$ac_c_werror_flag" ||
24115 test ! -s conftest.err
24116 } && test -s conftest$ac_exeext &&
24117 $as_test_x conftest$ac_exeext; then
24118 eval "$as_ac_var=yes"
24120 echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24123 eval "$as_ac_var=no"
24126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24127 conftest$ac_exeext conftest.$ac_ext
24129 ac_res=`eval echo '${'$as_ac_var'}'`
24130 { echo "$as_me:$LINENO: result: $ac_res" >&5
24131 echo "${ECHO_T}$ac_res" >&6; }
24132 if test `eval echo '${'$as_ac_var'}'` = yes; then
24133 cat >>confdefs.h <<_ACEOF
24134 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24145 for ac_func in hypot lgamma log1p round tgamma
24147 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
24148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24151 echo $ECHO_N "(cached) $ECHO_C" >&6
24153 cat >conftest.$ac_ext <<_ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24161 #define $ac_func innocuous_$ac_func
24163 /* System header to define __stub macros and hopefully few prototypes,
24164 which can conflict with char $ac_func (); below.
24165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24166 <limits.h> exists even on freestanding compilers. */
24169 # include <limits.h>
24171 # include <assert.h>
24176 /* Override any GCC internal prototype to avoid an error.
24177 Use char because int might match the return type of a GCC
24178 builtin and then its argument prototype would still apply. */
24183 /* The GNU C library defines this for functions which it implements
24184 to always fail with ENOSYS. Some functions are actually named
24185 something starting with __ and the normal name is an alias. */
24186 #if defined __stub_$ac_func || defined __stub___$ac_func
24193 return $ac_func ();
24198 rm -f conftest.$ac_objext conftest$ac_exeext
24199 if { (ac_try="$ac_link"
24200 case "(($ac_try" in
24201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24202 *) ac_try_echo
=$ac_try;;
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_link") 2>conftest.er1
24207 grep -v '^ *+' conftest.er1
>conftest.err
24209 cat conftest.err
>&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && {
24212 test -z "$ac_c_werror_flag" ||
24213 test ! -s conftest.err
24214 } && test -s conftest
$ac_exeext &&
24215 $as_test_x conftest
$ac_exeext; then
24216 eval "$as_ac_var=yes"
24218 echo "$as_me: failed program was:" >&5
24219 sed 's/^/| /' conftest.
$ac_ext >&5
24221 eval "$as_ac_var=no"
24224 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24225 conftest
$ac_exeext conftest.
$ac_ext
24227 ac_res
=`eval echo '${'$as_ac_var'}'`
24228 { echo "$as_me:$LINENO: result: $ac_res" >&5
24229 echo "${ECHO_T}$ac_res" >&6; }
24230 if test `eval echo '${'$as_ac_var'}'` = yes; then
24231 cat >>confdefs.h
<<_ACEOF
24232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24238 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
24239 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
24240 if test "${ac_cv_have_decl_isinf+set}" = set; then
24241 echo $ECHO_N "(cached) $ECHO_C" >&6
24243 cat >conftest.
$ac_ext <<_ACEOF
24246 cat confdefs.h
>>conftest.
$ac_ext
24247 cat >>conftest.
$ac_ext <<_ACEOF
24248 /* end confdefs.h. */
24262 rm -f conftest.
$ac_objext
24263 if { (ac_try
="$ac_compile"
24264 case "(($ac_try" in
24265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24266 *) ac_try_echo=$ac_try;;
24268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24269 (eval "$ac_compile") 2>conftest.er1
24271 grep -v '^ *+' conftest.er1 >conftest.err
24273 cat conftest.err >&5
24274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); } && {
24276 test -z "$ac_c_werror_flag" ||
24277 test ! -s conftest.err
24278 } && test -s conftest.$ac_objext; then
24279 ac_cv_have_decl_isinf=yes
24281 echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 ac_cv_have_decl_isinf=no
24287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24289 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
24290 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
24291 if test $ac_cv_have_decl_isinf = yes; then
24293 cat >>confdefs.h <<_ACEOF
24294 #define HAVE_DECL_ISINF 1
24299 cat >>confdefs.h <<_ACEOF
24300 #define HAVE_DECL_ISINF 0
24305 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24306 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
24307 if test "${ac_cv_have_decl_isnan+set}" = set; then
24308 echo $ECHO_N "(cached) $ECHO_C" >&6
24310 cat >conftest.$ac_ext <<_ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h. */
24329 rm -f conftest.$ac_objext
24330 if { (ac_try="$ac_compile"
24331 case "(($ac_try" in
24332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24333 *) ac_try_echo
=$ac_try;;
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336 (eval "$ac_compile") 2>conftest.er1
24338 grep -v '^ *+' conftest.er1
>conftest.err
24340 cat conftest.err
>&5
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); } && {
24343 test -z "$ac_c_werror_flag" ||
24344 test ! -s conftest.err
24345 } && test -s conftest.
$ac_objext; then
24346 ac_cv_have_decl_isnan
=yes
24348 echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.
$ac_ext >&5
24351 ac_cv_have_decl_isnan
=no
24354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24356 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24357 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
24358 if test $ac_cv_have_decl_isnan = yes; then
24360 cat >>confdefs.h
<<_ACEOF
24361 #define HAVE_DECL_ISNAN 1
24366 cat >>confdefs.h
<<_ACEOF
24367 #define HAVE_DECL_ISNAN 0
24372 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24373 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
24374 if test "${ac_cv_have_decl_isfinite+set}" = set; then
24375 echo $ECHO_N "(cached) $ECHO_C" >&6
24377 cat >conftest.
$ac_ext <<_ACEOF
24380 cat confdefs.h
>>conftest.
$ac_ext
24381 cat >>conftest.
$ac_ext <<_ACEOF
24382 /* end confdefs.h. */
24396 rm -f conftest.
$ac_objext
24397 if { (ac_try
="$ac_compile"
24398 case "(($ac_try" in
24399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_compile") 2>conftest.er1
24405 grep -v '^ *+' conftest.er1 >conftest.err
24407 cat conftest.err >&5
24408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } && {
24410 test -z "$ac_c_werror_flag" ||
24411 test ! -s conftest.err
24412 } && test -s conftest.$ac_objext; then
24413 ac_cv_have_decl_isfinite=yes
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24418 ac_cv_have_decl_isfinite=no
24421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24423 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24424 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
24425 if test $ac_cv_have_decl_isfinite = yes; then
24427 cat >>confdefs.h <<_ACEOF
24428 #define HAVE_DECL_ISFINITE 1
24433 cat >>confdefs.h <<_ACEOF
24434 #define HAVE_DECL_ISFINITE 0
24444 # For multiprocessing module, check that sem_open
24445 # actually works. For FreeBSD versions <= 7.2,
24446 # the kernel module that provides POSIX semaphores
24447 # isn't loaded by default, so an attempt to call
24448 # sem_open results in a 'Signal 12' error.
24449 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
24450 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
24451 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
24452 echo $ECHO_N "(cached) $ECHO_C" >&6
24454 if test "$cross_compiling" = yes; then
24455 ac_cv_posix_semaphores_enabled=yes
24457 cat >conftest.$ac_ext <<_ACEOF
24460 cat confdefs.h >>conftest.$ac_ext
24461 cat >>conftest.$ac_ext <<_ACEOF
24462 /* end confdefs.h. */
24464 #include <unistd.h>
24467 #include <semaphore.h>
24468 #include <sys/stat.h>
24471 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24472 if (a == SEM_FAILED) {
24473 perror("sem_open");
24481 rm -f conftest$ac_exeext
24482 if { (ac_try="$ac_link"
24483 case "(($ac_try" in
24484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24485 *) ac_try_echo
=$ac_try;;
24487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24488 (eval "$ac_link") 2>&5
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24492 { (case "(($ac_try" in
24493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24494 *) ac_try_echo=$ac_try;;
24496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497 (eval "$ac_try") 2>&5
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; }; then
24501 ac_cv_posix_semaphores_enabled=yes
24503 echo "$as_me: program exited with status $ac_status" >&5
24504 echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24507 ( exit $ac_status )
24508 ac_cv_posix_semaphores_enabled=no
24510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24517 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
24518 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
24519 if test $ac_cv_posix_semaphores_enabled = no
24522 cat >>confdefs.h <<\_ACEOF
24523 #define POSIX_SEMAPHORES_NOT_ENABLED 1
24528 # Multiprocessing check for broken sem_getvalue
24529 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
24530 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
24531 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
24532 echo $ECHO_N "(cached) $ECHO_C" >&6
24534 if test "$cross_compiling" = yes; then
24535 ac_cv_broken_sem_getvalue=yes
24537 cat >conftest.$ac_ext <<_ACEOF
24540 cat confdefs.h >>conftest.$ac_ext
24541 cat >>conftest.$ac_ext <<_ACEOF
24542 /* end confdefs.h. */
24544 #include <unistd.h>
24547 #include <semaphore.h>
24548 #include <sys/stat.h>
24551 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24555 perror("sem_open");
24559 res = sem_getvalue(a, &count);
24561 return res==-1 ? 1 : 0;
24565 rm -f conftest$ac_exeext
24566 if { (ac_try="$ac_link"
24567 case "(($ac_try" in
24568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24569 *) ac_try_echo
=$ac_try;;
24571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24572 (eval "$ac_link") 2>&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24576 { (case "(($ac_try" in
24577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24578 *) ac_try_echo=$ac_try;;
24580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24581 (eval "$ac_try") 2>&5
24583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584 (exit $ac_status); }; }; then
24585 ac_cv_broken_sem_getvalue=no
24587 echo "$as_me: program exited with status $ac_status" >&5
24588 echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24591 ( exit $ac_status )
24592 ac_cv_broken_sem_getvalue=yes
24594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24601 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
24602 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
24603 if test $ac_cv_broken_sem_getvalue = yes
24606 cat >>confdefs.h <<\_ACEOF
24607 #define HAVE_BROKEN_SEM_GETVALUE 1
24612 # determine what size digit to use for Python's longs
24613 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24614 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
24615 # Check whether --enable-big-digits was given.
24616 if test "${enable_big_digits+set}" = set; then
24617 enableval=$enable_big_digits; case $enable_big_digits in
24619 enable_big_digits=30 ;;
24621 enable_big_digits=15 ;;
24625 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24626 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
24627 { (exit 1); exit 1; }; } ;;
24629 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24630 echo "${ECHO_T}$enable_big_digits" >&6; }
24632 cat >>confdefs.h <<_ACEOF
24633 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
24638 { echo "$as_me:$LINENO: result: no value specified" >&5
24639 echo "${ECHO_T}no value specified" >&6; }
24643 # check for wchar.h
24644 if test "${ac_cv_header_wchar_h+set}" = set; then
24645 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24646 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24647 if test "${ac_cv_header_wchar_h+set}" = set; then
24648 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24651 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24653 # Is the header compilable?
24654 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
24655 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24656 cat >conftest.$ac_ext <<_ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h. */
24662 $ac_includes_default
24665 rm -f conftest.$ac_objext
24666 if { (ac_try="$ac_compile"
24667 case "(($ac_try" in
24668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24669 *) ac_try_echo
=$ac_try;;
24671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_compile") 2>conftest.er1
24674 grep -v '^ *+' conftest.er1
>conftest.err
24676 cat conftest.err
>&5
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); } && {
24679 test -z "$ac_c_werror_flag" ||
24680 test ! -s conftest.err
24681 } && test -s conftest.
$ac_objext; then
24682 ac_header_compiler
=yes
24684 echo "$as_me: failed program was:" >&5
24685 sed 's/^/| /' conftest.
$ac_ext >&5
24687 ac_header_compiler
=no
24690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24692 echo "${ECHO_T}$ac_header_compiler" >&6; }
24694 # Is the header present?
24695 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
24696 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24697 cat >conftest.
$ac_ext <<_ACEOF
24700 cat confdefs.h
>>conftest.
$ac_ext
24701 cat >>conftest.
$ac_ext <<_ACEOF
24702 /* end confdefs.h. */
24705 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24706 case "(($ac_try" in
24707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24708 *) ac_try_echo=$ac_try;;
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24713 grep -v '^ *+' conftest.er1 >conftest.err
24715 cat conftest.err >&5
24716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24717 (exit $ac_status); } >/dev/null && {
24718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24719 test ! -s conftest.err
24721 ac_header_preproc=yes
24723 echo "$as_me: failed program was:" >&5
24724 sed 's/^/| /' conftest.$ac_ext >&5
24726 ac_header_preproc=no
24729 rm -f conftest.err conftest.$ac_ext
24730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24731 echo "${ECHO_T}$ac_header_preproc" >&6; }
24733 # So? What about this header?
24734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24736 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24737 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24738 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24739 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24740 ac_header_preproc=yes
24743 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24744 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24745 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24746 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24747 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24748 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24749 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24750 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24752 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24753 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24754 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24756 ## -------------------------------------- ##
24757 ## Report this to http://bugs.python.org/ ##
24758 ## -------------------------------------- ##
24760 ) | sed "s/^/$as_me: WARNING: /" >&2
24763 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24764 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24765 if test "${ac_cv_header_wchar_h+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 ac_cv_header_wchar_h=$ac_header_preproc
24770 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24771 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24774 if test $ac_cv_header_wchar_h = yes; then
24777 cat >>confdefs.h <<\_ACEOF
24778 #define HAVE_WCHAR_H 1
24790 # determine wchar_t size
24791 if test "$wchar_h" = yes
24793 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24794 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24795 if test "${ac_cv_type_wchar_t+set}" = set; then
24796 echo $ECHO_N "(cached) $ECHO_C" >&6
24798 cat >conftest.$ac_ext <<_ACEOF
24801 cat confdefs.h >>conftest.$ac_ext
24802 cat >>conftest.$ac_ext <<_ACEOF
24803 /* end confdefs.h. */
24806 typedef wchar_t ac__type_new_;
24810 if ((ac__type_new_ *) 0)
24812 if (sizeof (ac__type_new_))
24818 rm -f conftest.$ac_objext
24819 if { (ac_try="$ac_compile"
24820 case "(($ac_try" in
24821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24822 *) ac_try_echo
=$ac_try;;
24824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24825 (eval "$ac_compile") 2>conftest.er1
24827 grep -v '^ *+' conftest.er1
>conftest.err
24829 cat conftest.err
>&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && {
24832 test -z "$ac_c_werror_flag" ||
24833 test ! -s conftest.err
24834 } && test -s conftest.
$ac_objext; then
24835 ac_cv_type_wchar_t
=yes
24837 echo "$as_me: failed program was:" >&5
24838 sed 's/^/| /' conftest.
$ac_ext >&5
24840 ac_cv_type_wchar_t
=no
24843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24845 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24846 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24848 # The cast to long int works around a bug in the HP C Compiler
24849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24851 # This bug is HP SR number 8606223364.
24852 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24853 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24854 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24855 echo $ECHO_N "(cached) $ECHO_C" >&6
24857 if test "$cross_compiling" = yes; then
24858 # Depending upon the size, compute the lo and hi bounds.
24859 cat >conftest.
$ac_ext <<_ACEOF
24862 cat confdefs.h
>>conftest.
$ac_ext
24863 cat >>conftest.
$ac_ext <<_ACEOF
24864 /* end confdefs.h. */
24867 typedef wchar_t ac__type_sizeof_;
24871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24878 rm -f conftest.
$ac_objext
24879 if { (ac_try
="$ac_compile"
24880 case "(($ac_try" in
24881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24882 *) ac_try_echo=$ac_try;;
24884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24885 (eval "$ac_compile") 2>conftest.er1
24887 grep -v '^ *+' conftest.er1 >conftest.err
24889 cat conftest.err >&5
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); } && {
24892 test -z "$ac_c_werror_flag" ||
24893 test ! -s conftest.err
24894 } && test -s conftest.$ac_objext; then
24897 cat >conftest.$ac_ext <<_ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24905 typedef wchar_t ac__type_sizeof_;
24909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24916 rm -f conftest.$ac_objext
24917 if { (ac_try="$ac_compile"
24918 case "(($ac_try" in
24919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24920 *) ac_try_echo
=$ac_try;;
24922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_compile") 2>conftest.er1
24925 grep -v '^ *+' conftest.er1
>conftest.err
24927 cat conftest.err
>&5
24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929 (exit $ac_status); } && {
24930 test -z "$ac_c_werror_flag" ||
24931 test ! -s conftest.err
24932 } && test -s conftest.
$ac_objext; then
24933 ac_hi
=$ac_mid; break
24935 echo "$as_me: failed program was:" >&5
24936 sed 's/^/| /' conftest.
$ac_ext >&5
24938 ac_lo
=`expr $ac_mid + 1`
24939 if test $ac_lo -le $ac_mid; then
24943 ac_mid
=`expr 2 '*' $ac_mid + 1`
24946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.
$ac_ext >&5
24952 cat >conftest.
$ac_ext <<_ACEOF
24955 cat confdefs.h
>>conftest.
$ac_ext
24956 cat >>conftest.
$ac_ext <<_ACEOF
24957 /* end confdefs.h. */
24960 typedef wchar_t ac__type_sizeof_;
24964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24971 rm -f conftest.
$ac_objext
24972 if { (ac_try
="$ac_compile"
24973 case "(($ac_try" in
24974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24975 *) ac_try_echo=$ac_try;;
24977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24978 (eval "$ac_compile") 2>conftest.er1
24980 grep -v '^ *+' conftest.er1 >conftest.err
24982 cat conftest.err >&5
24983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest.$ac_objext; then
24990 cat >conftest.$ac_ext <<_ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h. */
24998 typedef wchar_t ac__type_sizeof_;
25002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25009 rm -f conftest.$ac_objext
25010 if { (ac_try="$ac_compile"
25011 case "(($ac_try" in
25012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25013 *) ac_try_echo
=$ac_try;;
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016 (eval "$ac_compile") 2>conftest.er1
25018 grep -v '^ *+' conftest.er1
>conftest.err
25020 cat conftest.err
>&5
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } && {
25023 test -z "$ac_c_werror_flag" ||
25024 test ! -s conftest.err
25025 } && test -s conftest.
$ac_objext; then
25026 ac_lo
=$ac_mid; break
25028 echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.
$ac_ext >&5
25031 ac_hi
=`expr '(' $ac_mid ')' - 1`
25032 if test $ac_mid -le $ac_hi; then
25036 ac_mid
=`expr 2 '*' $ac_mid`
25039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25042 echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.
$ac_ext >&5
25048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25052 # Binary search between lo and hi bounds.
25053 while test "x$ac_lo" != "x$ac_hi"; do
25054 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25055 cat >conftest.
$ac_ext <<_ACEOF
25058 cat confdefs.h
>>conftest.
$ac_ext
25059 cat >>conftest.
$ac_ext <<_ACEOF
25060 /* end confdefs.h. */
25063 typedef wchar_t ac__type_sizeof_;
25067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25074 rm -f conftest.
$ac_objext
25075 if { (ac_try
="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081 (eval "$ac_compile") 2>conftest.er1
25083 grep -v '^ *+' conftest.er1 >conftest.err
25085 cat conftest.err >&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && {
25088 test -z "$ac_c_werror_flag" ||
25089 test ! -s conftest.err
25090 } && test -s conftest.$ac_objext; then
25093 echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25096 ac_lo=`expr '(' $ac_mid ')' + 1`
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25102 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25103 '') if test "$ac_cv_type_wchar_t" = yes; then
25104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25105 See \`config.log
' for more details." >&5
25106 echo "$as_me: error: cannot compute sizeof (wchar_t)
25107 See \`config.log' for more details.
" >&2;}
25108 { (exit 77); exit 77; }; }
25110 ac_cv_sizeof_wchar_t=0
25114 cat >conftest.$ac_ext <<_ACEOF
25117 cat confdefs.h >>conftest.$ac_ext
25118 cat >>conftest.$ac_ext <<_ACEOF
25119 /* end confdefs.h. */
25122 typedef wchar_t ac__type_sizeof_;
25123 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25124 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25126 #include <stdlib.h>
25131 FILE *f = fopen ("conftest.val
", "w
");
25134 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25136 long int i = longval ();
25137 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25139 fprintf (f, "%ld
\n", i);
25143 unsigned long int i = ulongval ();
25144 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25146 fprintf (f, "%lu
\n", i);
25148 return ferror (f) || fclose (f) != 0;
25154 rm -f conftest$ac_exeext
25155 if { (ac_try="$ac_link"
25156 case "(($ac_try" in
25157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158 *) ac_try_echo=$ac_try;;
25160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25161 (eval "$ac_link") 2>&5
25163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25165 { (case "(($ac_try" in
25166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25167 *) ac_try_echo=$ac_try;;
25169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25170 (eval "$ac_try") 2>&5
25172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25173 (exit $ac_status); }; }; then
25174 ac_cv_sizeof_wchar_t=`cat conftest.val`
25176 echo "$as_me: program exited with status
$ac_status" >&5
25177 echo "$as_me: failed program was
:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25180 ( exit $ac_status )
25181 if test "$ac_cv_type_wchar_t" = yes; then
25182 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
25183 See \
`config.log' for more details." >&5
25184 echo "$as_me: error: cannot compute sizeof (wchar_t)
25185 See \`config.log
' for more details." >&2;}
25186 { (exit 77); exit 77; }; }
25188 ac_cv_sizeof_wchar_t=0
25191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25195 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25196 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25200 cat >>confdefs.h <<_ACEOF
25201 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25207 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25208 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25210 cat >conftest.$ac_ext <<_ACEOF
25213 cat confdefs.h >>conftest.$ac_ext
25214 cat >>conftest.$ac_ext <<_ACEOF
25215 /* end confdefs.h. */
25218 #if TCL_UTF_MAX != 6
25219 # error "NOT UCS4_TCL"
25229 rm -f conftest.$ac_objext
25230 if { (ac_try="$ac_compile"
25231 case "(($ac_try" in
25232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233 *) ac_try_echo=$ac_try;;
25235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236 (eval "$ac_compile") 2>conftest.er1
25238 grep -v '^
*+' conftest.er1 >conftest.err
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } && {
25243 test -z "$ac_c_werror_flag" ||
25244 test ! -s conftest.err
25245 } && test -s conftest.$ac_objext; then
25248 cat >>confdefs.h <<\_ACEOF
25249 #define HAVE_UCS4_TCL 1
25255 echo "$as_me: failed program was:" >&5
25256 sed 's
/^
/|
/' conftest.$ac_ext >&5
25261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25262 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25263 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25265 # check whether wchar_t is signed or not
25266 if test "$wchar_h" = yes
25268 # check whether wchar_t is signed or not
25269 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25270 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25271 if test "${ac_cv_wchar_t_signed+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 if test "$cross_compiling" = yes; then
25276 ac_cv_wchar_t_signed=yes
25278 cat >conftest.$ac_ext <<_ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h. */
25288 /* Success: exit code 0 */
25289 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
25293 rm -f conftest$ac_exeext
25294 if { (ac_try="$ac_link"
25295 case "(($ac_try" in
25296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297 *) ac_try_echo=$ac_try;;
25299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25300 (eval "$ac_link") 2>&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25304 { (case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309 (eval "$ac_try") 2>&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; }; then
25313 ac_cv_wchar_t_signed=yes
25315 echo "$as_me: program exited with status $ac_status" >&5
25316 echo "$as_me: failed program was:" >&5
25317 sed 's
/^
/|
/' conftest.$ac_ext >&5
25319 ( exit $ac_status )
25320 ac_cv_wchar_t_signed=no
25322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25328 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25329 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25332 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25333 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25334 # Check whether --enable-unicode was given.
25335 if test "${enable_unicode+set}" = set; then
25336 enableval=$enable_unicode;
25342 if test $enable_unicode = yes
25344 # Without any arguments, Py_UNICODE defaults to two-byte mode
25345 case "$have_ucs4_tcl" in
25346 yes) enable_unicode="ucs4"
25348 *) enable_unicode="ucs2"
25355 case "$enable_unicode" in
25356 ucs2) unicode_size="2"
25357 cat >>confdefs.h <<\_ACEOF
25358 #define Py_UNICODE_SIZE 2
25362 ucs4) unicode_size="4"
25363 cat >>confdefs.h <<\_ACEOF
25364 #define Py_UNICODE_SIZE 4
25374 if test "$enable_unicode" = "no"
25377 { echo "$as_me:$LINENO: result: not used" >&5
25378 echo "${ECHO_T}not used" >&6; }
25380 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25382 cat >>confdefs.h <<\_ACEOF
25383 #define Py_USING_UNICODE 1
25387 # wchar_t is only usable if it maps to an unsigned type
25388 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
25389 -a "$ac_cv_wchar_t_signed" = "no"
25391 PY_UNICODE_TYPE="wchar_t"
25393 cat >>confdefs.h <<\_ACEOF
25394 #define HAVE_USABLE_WCHAR_T 1
25397 cat >>confdefs.h <<\_ACEOF
25398 #define PY_UNICODE_TYPE wchar_t
25401 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25403 PY_UNICODE_TYPE="unsigned short"
25404 cat >>confdefs.h <<\_ACEOF
25405 #define PY_UNICODE_TYPE unsigned short
25408 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25410 PY_UNICODE_TYPE="unsigned long"
25411 cat >>confdefs.h <<\_ACEOF
25412 #define PY_UNICODE_TYPE unsigned long
25416 PY_UNICODE_TYPE="no type found"
25418 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25419 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25422 # check for endianness
25423 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25424 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25425 if test "${ac_cv_c_bigendian+set}" = set; then
25426 echo $ECHO_N "(cached) $ECHO_C" >&6
25428 # See if sys/param.h defines the BYTE_ORDER macro.
25429 cat >conftest.$ac_ext <<_ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h. */
25435 #include <sys/types.h>
25436 #include <sys/param.h>
25441 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25442 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25443 bogus endian macros
25450 rm -f conftest.$ac_objext
25451 if { (ac_try="$ac_compile"
25452 case "(($ac_try" in
25453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25454 *) ac_try_echo=$ac_try;;
25456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25457 (eval "$ac_compile") 2>conftest.er1
25459 grep -v '^
*+' conftest.er1 >conftest.err
25461 cat conftest.err >&5
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); } && {
25464 test -z "$ac_c_werror_flag" ||
25465 test ! -s conftest.err
25466 } && test -s conftest.$ac_objext; then
25467 # It does; now see whether it defined to BIG_ENDIAN or not.
25468 cat >conftest.$ac_ext <<_ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h. */
25474 #include <sys/types.h>
25475 #include <sys/param.h>
25480 #if BYTE_ORDER != BIG_ENDIAN
25488 rm -f conftest.$ac_objext
25489 if { (ac_try="$ac_compile"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495 (eval "$ac_compile") 2>conftest.er1
25497 grep -v '^
*+' conftest.er1 >conftest.err
25499 cat conftest.err >&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } && {
25502 test -z "$ac_c_werror_flag" ||
25503 test ! -s conftest.err
25504 } && test -s conftest.$ac_objext; then
25505 ac_cv_c_bigendian=yes
25507 echo "$as_me: failed program was:" >&5
25508 sed 's
/^
/|
/' conftest.$ac_ext >&5
25510 ac_cv_c_bigendian=no
25513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25515 echo "$as_me: failed program was:" >&5
25516 sed 's
/^
/|
/' conftest.$ac_ext >&5
25518 # It does not; compile a test program.
25519 if test "$cross_compiling" = yes; then
25520 # try to guess the endianness by grepping values into an object file
25521 ac_cv_c_bigendian=unknown
25522 cat >conftest.$ac_ext <<_ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h. */
25528 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25529 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25530 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25531 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25532 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25533 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25537 _ascii (); _ebcdic ();
25542 rm -f conftest.$ac_objext
25543 if { (ac_try="$ac_compile"
25544 case "(($ac_try" in
25545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25546 *) ac_try_echo=$ac_try;;
25548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25549 (eval "$ac_compile") 2>conftest.er1
25551 grep -v '^
*+' conftest.er1 >conftest.err
25553 cat conftest.err >&5
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); } && {
25556 test -z "$ac_c_werror_flag" ||
25557 test ! -s conftest.err
25558 } && test -s conftest.$ac_objext; then
25559 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25560 ac_cv_c_bigendian=yes
25562 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25563 if test "$ac_cv_c_bigendian" = unknown; then
25564 ac_cv_c_bigendian=no
25566 # finding both strings is unlikely to happen, but who knows?
25567 ac_cv_c_bigendian=unknown
25571 echo "$as_me: failed program was:" >&5
25572 sed 's
/^
/|
/' conftest.$ac_ext >&5
25577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25579 cat >conftest.$ac_ext <<_ACEOF
25582 cat confdefs.h >>conftest.$ac_ext
25583 cat >>conftest.$ac_ext <<_ACEOF
25584 /* end confdefs.h. */
25585 $ac_includes_default
25590 /* Are we little or big endian? From Harbison&Steele. */
25594 char c[sizeof (long int)];
25597 return u.c[sizeof (long int) - 1] == 1;
25603 rm -f conftest$ac_exeext
25604 if { (ac_try="$ac_link"
25605 case "(($ac_try" in
25606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25610 (eval "$ac_link") 2>&5
25612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25614 { (case "(($ac_try" in
25615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616 *) ac_try_echo=$ac_try;;
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619 (eval "$ac_try") 2>&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); }; }; then
25623 ac_cv_c_bigendian=no
25625 echo "$as_me: program exited with status $ac_status" >&5
25626 echo "$as_me: failed program was:" >&5
25627 sed 's
/^
/|
/' conftest.$ac_ext >&5
25629 ( exit $ac_status )
25630 ac_cv_c_bigendian=yes
25632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25640 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25641 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25642 case $ac_cv_c_bigendian in
25645 cat >>confdefs.h <<\_ACEOF
25646 #define WORDS_BIGENDIAN 1
25652 { { echo "$as_me:$LINENO: error: unknown endianness
25653 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25654 echo "$as_me: error: unknown endianness
25655 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25656 { (exit 1); exit 1; }; } ;;
25660 # Check whether right shifting a negative integer extends the sign bit
25661 # or fills with zeros (like the Cray J90, according to Tim Peters).
25662 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25663 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25664 if test "${ac_cv_rshift_extends_sign+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25668 if test "$cross_compiling" = yes; then
25669 ac_cv_rshift_extends_sign=yes
25671 cat >conftest.$ac_ext <<_ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25680 exit(((-1)>>3 == -1) ? 0 : 1);
25684 rm -f conftest$ac_exeext
25685 if { (ac_try="$ac_link"
25686 case "(($ac_try" in
25687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688 *) ac_try_echo=$ac_try;;
25690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25691 (eval "$ac_link") 2>&5
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25695 { (case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25700 (eval "$ac_try") 2>&5
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); }; }; then
25704 ac_cv_rshift_extends_sign=yes
25706 echo "$as_me: program exited with status $ac_status" >&5
25707 echo "$as_me: failed program was:" >&5
25708 sed 's
/^
/|
/' conftest.$ac_ext >&5
25710 ( exit $ac_status )
25711 ac_cv_rshift_extends_sign=no
25713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25719 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25720 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25721 if test "$ac_cv_rshift_extends_sign" = no
25724 cat >>confdefs.h <<\_ACEOF
25725 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25730 # check for getc_unlocked and related locking functions
25731 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25732 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25733 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25734 echo $ECHO_N "(cached) $ECHO_C" >&6
25737 cat >conftest.$ac_ext <<_ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h. */
25748 FILE *f = fopen("/dev/null", "r");
25757 rm -f conftest.$ac_objext conftest$ac_exeext
25758 if { (ac_try="$ac_link"
25759 case "(($ac_try" in
25760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761 *) ac_try_echo=$ac_try;;
25763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764 (eval "$ac_link") 2>conftest.er1
25766 grep -v '^
*+' conftest.er1 >conftest.err
25768 cat conftest.err >&5
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); } && {
25771 test -z "$ac_c_werror_flag" ||
25772 test ! -s conftest.err
25773 } && test -s conftest$ac_exeext &&
25774 $as_test_x conftest$ac_exeext; then
25775 ac_cv_have_getc_unlocked=yes
25777 echo "$as_me: failed program was:" >&5
25778 sed 's
/^
/|
/' conftest.$ac_ext >&5
25780 ac_cv_have_getc_unlocked=no
25783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25784 conftest$ac_exeext conftest.$ac_ext
25787 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25788 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25789 if test "$ac_cv_have_getc_unlocked" = yes
25792 cat >>confdefs.h <<\_ACEOF
25793 #define HAVE_GETC_UNLOCKED 1
25798 # check where readline lives
25799 # save the value of LIBS so we don't actually link Python with readline
25800 LIBS_no_readline
=$LIBS
25802 # On some systems we need to link readline to a termcap compatible
25803 # library. NOTE: Keep the precedence of listed libraries synchronised
25805 py_cv_lib_readline
=no
25806 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25807 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25808 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
25809 if test -z "$py_libtermcap"; then
25810 READLINE_LIBS
="-lreadline"
25812 READLINE_LIBS
="-lreadline -l$py_libtermcap"
25814 LIBS
="$READLINE_LIBS $LIBS_no_readline"
25815 cat >conftest.
$ac_ext <<_ACEOF
25818 cat confdefs.h
>>conftest.
$ac_ext
25819 cat >>conftest.
$ac_ext <<_ACEOF
25820 /* end confdefs.h. */
25822 /* Override any GCC internal prototype to avoid an error.
25823 Use char because int might match the return type of a GCC
25824 builtin and then its argument prototype would still apply. */
25832 return readline ();
25837 rm -f conftest.
$ac_objext conftest
$ac_exeext
25838 if { (ac_try
="$ac_link"
25839 case "(($ac_try" in
25840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25841 *) ac_try_echo=$ac_try;;
25843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25844 (eval "$ac_link") 2>conftest.er1
25846 grep -v '^ *+' conftest.er1 >conftest.err
25848 cat conftest.err >&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } && {
25851 test -z "$ac_c_werror_flag" ||
25852 test ! -s conftest.err
25853 } && test -s conftest$ac_exeext &&
25854 $as_test_x conftest$ac_exeext; then
25855 py_cv_lib_readline=yes
25857 echo "$as_me: failed program was:" >&5
25858 sed 's/^/| /' conftest.$ac_ext >&5
25863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25864 conftest$ac_exeext conftest.$ac_ext
25865 if test $py_cv_lib_readline = yes; then
25869 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25870 #AC_SUBST([READLINE_LIBS])
25871 if test $py_cv_lib_readline = no; then
25872 { echo "$as_me:$LINENO: result: none" >&5
25873 echo "${ECHO_T}none" >&6; }
25875 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25876 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25878 cat >>confdefs.h <<\_ACEOF
25879 #define HAVE_LIBREADLINE 1
25884 # check for readline 2.1
25885 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25886 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
25887 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25888 echo $ECHO_N "(cached) $ECHO_C" >&6
25890 ac_check_lib_save_LIBS=$LIBS
25891 LIBS="-lreadline $READLINE_LIBS $LIBS"
25892 cat >conftest.$ac_ext <<_ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h. */
25899 /* Override any GCC internal prototype to avoid an error.
25900 Use char because int might match the return type of a GCC
25901 builtin and then its argument prototype would still apply. */
25905 char rl_callback_handler_install ();
25909 return rl_callback_handler_install ();
25914 rm -f conftest.$ac_objext conftest$ac_exeext
25915 if { (ac_try="$ac_link"
25916 case "(($ac_try" in
25917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25918 *) ac_try_echo
=$ac_try;;
25920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25921 (eval "$ac_link") 2>conftest.er1
25923 grep -v '^ *+' conftest.er1
>conftest.err
25925 cat conftest.err
>&5
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); } && {
25928 test -z "$ac_c_werror_flag" ||
25929 test ! -s conftest.err
25930 } && test -s conftest
$ac_exeext &&
25931 $as_test_x conftest
$ac_exeext; then
25932 ac_cv_lib_readline_rl_callback_handler_install
=yes
25934 echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.
$ac_ext >&5
25937 ac_cv_lib_readline_rl_callback_handler_install
=no
25940 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25941 conftest
$ac_exeext conftest.
$ac_ext
25942 LIBS
=$ac_check_lib_save_LIBS
25944 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25945 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25946 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25948 cat >>confdefs.h
<<\_ACEOF
25949 #define HAVE_RL_CALLBACK 1
25955 # check for readline 2.2
25956 cat >conftest.
$ac_ext <<_ACEOF
25959 cat confdefs.h
>>conftest.
$ac_ext
25960 cat >>conftest.
$ac_ext <<_ACEOF
25961 /* end confdefs.h. */
25962 #include <readline/readline.h>
25964 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25965 case "(($ac_try" in
25966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25967 *) ac_try_echo=$ac_try;;
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25972 grep -v '^ *+' conftest.er1 >conftest.err
25974 cat conftest.err >&5
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); } >/dev/null && {
25977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25978 test ! -s conftest.err
25982 echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25988 rm -f conftest.err conftest.$ac_ext
25989 if test $have_readline = yes
25991 cat >conftest.$ac_ext <<_ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25997 #include <readline/readline.h>
26000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26001 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
26003 cat >>confdefs.h <<\_ACEOF
26004 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
26010 cat >conftest.$ac_ext <<_ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h. */
26016 #include <readline/readline.h>
26019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26020 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
26022 cat >>confdefs.h <<\_ACEOF
26023 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
26031 # check for readline 4.0
26032 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
26033 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
26034 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
26035 echo $ECHO_N "(cached) $ECHO_C" >&6
26037 ac_check_lib_save_LIBS=$LIBS
26038 LIBS="-lreadline $READLINE_LIBS $LIBS"
26039 cat >conftest.$ac_ext <<_ACEOF
26042 cat confdefs.h >>conftest.$ac_ext
26043 cat >>conftest.$ac_ext <<_ACEOF
26044 /* end confdefs.h. */
26046 /* Override any GCC internal prototype to avoid an error.
26047 Use char because int might match the return type of a GCC
26048 builtin and then its argument prototype would still apply. */
26052 char rl_pre_input_hook ();
26056 return rl_pre_input_hook ();
26061 rm -f conftest.$ac_objext conftest$ac_exeext
26062 if { (ac_try="$ac_link"
26063 case "(($ac_try" in
26064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26065 *) ac_try_echo
=$ac_try;;
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068 (eval "$ac_link") 2>conftest.er1
26070 grep -v '^ *+' conftest.er1
>conftest.err
26072 cat conftest.err
>&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } && {
26075 test -z "$ac_c_werror_flag" ||
26076 test ! -s conftest.err
26077 } && test -s conftest
$ac_exeext &&
26078 $as_test_x conftest
$ac_exeext; then
26079 ac_cv_lib_readline_rl_pre_input_hook
=yes
26081 echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.
$ac_ext >&5
26084 ac_cv_lib_readline_rl_pre_input_hook
=no
26087 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26088 conftest
$ac_exeext conftest.
$ac_ext
26089 LIBS
=$ac_check_lib_save_LIBS
26091 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26092 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26093 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
26095 cat >>confdefs.h
<<\_ACEOF
26096 #define HAVE_RL_PRE_INPUT_HOOK 1
26103 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
26104 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
26105 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26108 ac_check_lib_save_LIBS
=$LIBS
26109 LIBS
="-lreadline $READLINE_LIBS $LIBS"
26110 cat >conftest.
$ac_ext <<_ACEOF
26113 cat confdefs.h
>>conftest.
$ac_ext
26114 cat >>conftest.
$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26117 /* Override any GCC internal prototype to avoid an error.
26118 Use char because int might match the return type of a GCC
26119 builtin and then its argument prototype would still apply. */
26123 char rl_completion_display_matches_hook ();
26127 return rl_completion_display_matches_hook ();
26132 rm -f conftest.
$ac_objext conftest
$ac_exeext
26133 if { (ac_try
="$ac_link"
26134 case "(($ac_try" in
26135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26136 *) ac_try_echo=$ac_try;;
26138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26139 (eval "$ac_link") 2>conftest.er1
26141 grep -v '^ *+' conftest.er1 >conftest.err
26143 cat conftest.err >&5
26144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145 (exit $ac_status); } && {
26146 test -z "$ac_c_werror_flag" ||
26147 test ! -s conftest.err
26148 } && test -s conftest$ac_exeext &&
26149 $as_test_x conftest$ac_exeext; then
26150 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
26152 echo "$as_me: failed program was:" >&5
26153 sed 's/^/| /' conftest.$ac_ext >&5
26155 ac_cv_lib_readline_rl_completion_display_matches_hook=no
26158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26159 conftest$ac_exeext conftest.$ac_ext
26160 LIBS=$ac_check_lib_save_LIBS
26162 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
26163 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
26164 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
26166 cat >>confdefs.h <<\_ACEOF
26167 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
26173 # check for readline 4.2
26174 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26175 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26176 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26177 echo $ECHO_N "(cached) $ECHO_C" >&6
26179 ac_check_lib_save_LIBS=$LIBS
26180 LIBS="-lreadline $READLINE_LIBS $LIBS"
26181 cat >conftest.$ac_ext <<_ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26188 /* Override any GCC internal prototype to avoid an error.
26189 Use char because int might match the return type of a GCC
26190 builtin and then its argument prototype would still apply. */
26194 char rl_completion_matches ();
26198 return rl_completion_matches ();
26203 rm -f conftest.$ac_objext conftest$ac_exeext
26204 if { (ac_try="$ac_link"
26205 case "(($ac_try" in
26206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26207 *) ac_try_echo
=$ac_try;;
26209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26210 (eval "$ac_link") 2>conftest.er1
26212 grep -v '^ *+' conftest.er1
>conftest.err
26214 cat conftest.err
>&5
26215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216 (exit $ac_status); } && {
26217 test -z "$ac_c_werror_flag" ||
26218 test ! -s conftest.err
26219 } && test -s conftest
$ac_exeext &&
26220 $as_test_x conftest
$ac_exeext; then
26221 ac_cv_lib_readline_rl_completion_matches
=yes
26223 echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.
$ac_ext >&5
26226 ac_cv_lib_readline_rl_completion_matches
=no
26229 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26230 conftest
$ac_exeext conftest.
$ac_ext
26231 LIBS
=$ac_check_lib_save_LIBS
26233 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26234 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26235 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26237 cat >>confdefs.h
<<\_ACEOF
26238 #define HAVE_RL_COMPLETION_MATCHES 1
26244 # also in readline 4.2
26245 cat >conftest.
$ac_ext <<_ACEOF
26248 cat confdefs.h
>>conftest.
$ac_ext
26249 cat >>conftest.
$ac_ext <<_ACEOF
26250 /* end confdefs.h. */
26251 #include <readline/readline.h>
26253 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26254 case "(($ac_try" in
26255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26256 *) ac_try_echo=$ac_try;;
26258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26261 grep -v '^ *+' conftest.er1 >conftest.err
26263 cat conftest.err >&5
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); } >/dev/null && {
26266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26267 test ! -s conftest.err
26271 echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26277 rm -f conftest.err conftest.$ac_ext
26278 if test $have_readline = yes
26280 cat >conftest.$ac_ext <<_ACEOF
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h. */
26286 #include <readline/readline.h>
26289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26290 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26292 cat >>confdefs.h <<\_ACEOF
26293 #define HAVE_RL_CATCH_SIGNAL 1
26301 # End of readline checks: restore LIBS
26302 LIBS=$LIBS_no_readline
26304 { echo "$as_me:$LINENO: checking for broken nice()" >&5
26305 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26306 if test "${ac_cv_broken_nice+set}" = set; then
26307 echo $ECHO_N "(cached) $ECHO_C" >&6
26310 if test "$cross_compiling" = yes; then
26311 ac_cv_broken_nice=no
26313 cat >conftest.$ac_ext <<_ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h. */
26322 int val1 = nice(1);
26323 if (val1 != -1 && val1 == nice(2))
26329 rm -f conftest$ac_exeext
26330 if { (ac_try="$ac_link"
26331 case "(($ac_try" in
26332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26333 *) ac_try_echo
=$ac_try;;
26335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26336 (eval "$ac_link") 2>&5
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26340 { (case "(($ac_try" in
26341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26342 *) ac_try_echo=$ac_try;;
26344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26345 (eval "$ac_try") 2>&5
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; }; then
26349 ac_cv_broken_nice=yes
26351 echo "$as_me: program exited with status $ac_status" >&5
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26355 ( exit $ac_status )
26356 ac_cv_broken_nice=no
26358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26364 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26365 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26366 if test "$ac_cv_broken_nice" = yes
26369 cat >>confdefs.h <<\_ACEOF
26370 #define HAVE_BROKEN_NICE 1
26375 { echo "$as_me:$LINENO: checking for broken poll()" >&5
26376 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26377 if test "${ac_cv_broken_poll+set}" = set; then
26378 echo $ECHO_N "(cached) $ECHO_C" >&6
26380 if test "$cross_compiling" = yes; then
26381 ac_cv_broken_poll=no
26383 cat >conftest.$ac_ext <<_ACEOF
26386 cat confdefs.h >>conftest.$ac_ext
26387 cat >>conftest.$ac_ext <<_ACEOF
26388 /* end confdefs.h. */
26394 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
26399 poll_test = poll(&poll_struct, 1, 0);
26402 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26409 rm -f conftest$ac_exeext
26410 if { (ac_try="$ac_link"
26411 case "(($ac_try" in
26412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26413 *) ac_try_echo
=$ac_try;;
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416 (eval "$ac_link") 2>&5
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26420 { (case "(($ac_try" in
26421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26422 *) ac_try_echo=$ac_try;;
26424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26425 (eval "$ac_try") 2>&5
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; }; then
26429 ac_cv_broken_poll=yes
26431 echo "$as_me: program exited with status $ac_status" >&5
26432 echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26435 ( exit $ac_status )
26436 ac_cv_broken_poll=no
26438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26444 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26445 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26446 if test "$ac_cv_broken_poll" = yes
26449 cat >>confdefs.h <<\_ACEOF
26450 #define HAVE_BROKEN_POLL 1
26455 # Before we can test tzset, we need to check if struct tm has a tm_zone
26456 # (which is not required by ISO C or UNIX spec) and/or if we support
26458 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26459 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26460 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26461 echo $ECHO_N "(cached) $ECHO_C" >&6
26463 cat >conftest.$ac_ext <<_ACEOF
26466 cat confdefs.h >>conftest.$ac_ext
26467 cat >>conftest.$ac_ext <<_ACEOF
26468 /* end confdefs.h. */
26469 #include <sys/types.h>
26470 #include <$ac_cv_struct_tm>
26476 static struct tm ac_aggr;
26477 if (ac_aggr.tm_zone)
26483 rm -f conftest.$ac_objext
26484 if { (ac_try="$ac_compile"
26485 case "(($ac_try" in
26486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26487 *) ac_try_echo
=$ac_try;;
26489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26490 (eval "$ac_compile") 2>conftest.er1
26492 grep -v '^ *+' conftest.er1
>conftest.err
26494 cat conftest.err
>&5
26495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } && {
26497 test -z "$ac_c_werror_flag" ||
26498 test ! -s conftest.err
26499 } && test -s conftest.
$ac_objext; then
26500 ac_cv_member_struct_tm_tm_zone
=yes
26502 echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.
$ac_ext >&5
26505 cat >conftest.
$ac_ext <<_ACEOF
26508 cat confdefs.h
>>conftest.
$ac_ext
26509 cat >>conftest.
$ac_ext <<_ACEOF
26510 /* end confdefs.h. */
26511 #include <sys/types.h>
26512 #include <$ac_cv_struct_tm>
26518 static struct tm ac_aggr;
26519 if (sizeof ac_aggr.tm_zone)
26525 rm -f conftest.
$ac_objext
26526 if { (ac_try
="$ac_compile"
26527 case "(($ac_try" in
26528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26529 *) ac_try_echo=$ac_try;;
26531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26532 (eval "$ac_compile") 2>conftest.er1
26534 grep -v '^ *+' conftest.er1 >conftest.err
26536 cat conftest.err >&5
26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); } && {
26539 test -z "$ac_c_werror_flag" ||
26540 test ! -s conftest.err
26541 } && test -s conftest.$ac_objext; then
26542 ac_cv_member_struct_tm_tm_zone=yes
26544 echo "$as_me: failed program was:" >&5
26545 sed 's/^/| /' conftest.$ac_ext >&5
26547 ac_cv_member_struct_tm_tm_zone=no
26550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26555 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26556 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26557 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26559 cat >>confdefs.h <<_ACEOF
26560 #define HAVE_STRUCT_TM_TM_ZONE 1
26566 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26568 cat >>confdefs.h <<\_ACEOF
26569 #define HAVE_TM_ZONE 1
26573 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26574 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26575 if test "${ac_cv_have_decl_tzname+set}" = set; then
26576 echo $ECHO_N "(cached) $ECHO_C" >&6
26578 cat >conftest.$ac_ext <<_ACEOF
26581 cat confdefs.h >>conftest.$ac_ext
26582 cat >>conftest.$ac_ext <<_ACEOF
26583 /* end confdefs.h. */
26597 rm -f conftest.$ac_objext
26598 if { (ac_try="$ac_compile"
26599 case "(($ac_try" in
26600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26601 *) ac_try_echo
=$ac_try;;
26603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26604 (eval "$ac_compile") 2>conftest.er1
26606 grep -v '^ *+' conftest.er1
>conftest.err
26608 cat conftest.err
>&5
26609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610 (exit $ac_status); } && {
26611 test -z "$ac_c_werror_flag" ||
26612 test ! -s conftest.err
26613 } && test -s conftest.
$ac_objext; then
26614 ac_cv_have_decl_tzname
=yes
26616 echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.
$ac_ext >&5
26619 ac_cv_have_decl_tzname
=no
26622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26624 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26625 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26626 if test $ac_cv_have_decl_tzname = yes; then
26628 cat >>confdefs.h
<<_ACEOF
26629 #define HAVE_DECL_TZNAME 1
26634 cat >>confdefs.h
<<_ACEOF
26635 #define HAVE_DECL_TZNAME 0
26642 { echo "$as_me:$LINENO: checking for tzname" >&5
26643 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26644 if test "${ac_cv_var_tzname+set}" = set; then
26645 echo $ECHO_N "(cached) $ECHO_C" >&6
26647 cat >conftest.
$ac_ext <<_ACEOF
26650 cat confdefs.h
>>conftest.
$ac_ext
26651 cat >>conftest.
$ac_ext <<_ACEOF
26652 /* end confdefs.h. */
26654 #if !HAVE_DECL_TZNAME
26655 extern char *tzname[];
26661 return tzname[0][0];
26666 rm -f conftest.
$ac_objext conftest
$ac_exeext
26667 if { (ac_try
="$ac_link"
26668 case "(($ac_try" in
26669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26670 *) ac_try_echo=$ac_try;;
26672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26673 (eval "$ac_link") 2>conftest.er1
26675 grep -v '^ *+' conftest.er1 >conftest.err
26677 cat conftest.err >&5
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } && {
26680 test -z "$ac_c_werror_flag" ||
26681 test ! -s conftest.err
26682 } && test -s conftest$ac_exeext &&
26683 $as_test_x conftest$ac_exeext; then
26684 ac_cv_var_tzname=yes
26686 echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26689 ac_cv_var_tzname=no
26692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26693 conftest$ac_exeext conftest.$ac_ext
26695 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26696 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26697 if test $ac_cv_var_tzname = yes; then
26699 cat >>confdefs.h <<\_ACEOF
26700 #define HAVE_TZNAME 1
26707 # check tzset(3) exists and works like we expect it to
26708 { echo "$as_me:$LINENO: checking for working tzset()" >&5
26709 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26710 if test "${ac_cv_working_tzset+set}" = set; then
26711 echo $ECHO_N "(cached) $ECHO_C" >&6
26714 if test "$cross_compiling" = yes; then
26715 ac_cv_working_tzset=no
26717 cat >conftest.$ac_ext <<_ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h. */
26724 #include <stdlib.h>
26726 #include <string.h>
26729 extern char *tzname[];
26734 /* Note that we need to ensure that not only does tzset(3)
26735 do 'something' with localtime, but it works as documented
26736 in the library reference and as expected by the test suite.
26737 This includes making sure that tzname is set properly if
26738 tm->tm_zone does not exist since it is the alternative way
26739 of getting timezone info.
26741 Red Hat 6.2 doesn't understand the southern hemisphere
26742 after New Year's Day.
26745 time_t groundhogday = 1044144000; /* GMT-based */
26746 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26748 putenv("TZ=UTC+0");
26750 if (localtime(&groundhogday)->tm_hour != 0)
26753 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26754 if (strcmp(tzname[0], "UTC") ||
26755 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26759 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26761 if (localtime(&groundhogday)->tm_hour != 19)
26764 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26768 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26770 if (localtime(&groundhogday)->tm_hour != 11)
26773 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26777 #if HAVE_STRUCT_TM_TM_ZONE
26778 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26780 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26788 rm -f conftest$ac_exeext
26789 if { (ac_try="$ac_link"
26790 case "(($ac_try" in
26791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26792 *) ac_try_echo
=$ac_try;;
26794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26795 (eval "$ac_link") 2>&5
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26799 { (case "(($ac_try" in
26800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26801 *) ac_try_echo=$ac_try;;
26803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804 (eval "$ac_try") 2>&5
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); }; }; then
26808 ac_cv_working_tzset=yes
26810 echo "$as_me: program exited with status $ac_status" >&5
26811 echo "$as_me: failed program was:" >&5
26812 sed 's/^/| /' conftest.$ac_ext >&5
26814 ( exit $ac_status )
26815 ac_cv_working_tzset=no
26817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26823 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26824 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26825 if test "$ac_cv_working_tzset" = yes
26828 cat >>confdefs.h <<\_ACEOF
26829 #define HAVE_WORKING_TZSET 1
26834 # Look for subsecond timestamps in struct stat
26835 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26836 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26837 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26838 echo $ECHO_N "(cached) $ECHO_C" >&6
26840 cat >conftest.$ac_ext <<_ACEOF
26843 cat confdefs.h >>conftest.$ac_ext
26844 cat >>conftest.$ac_ext <<_ACEOF
26845 /* end confdefs.h. */
26846 #include <sys/stat.h>
26852 st.st_mtim.tv_nsec = 1;
26858 rm -f conftest.$ac_objext
26859 if { (ac_try="$ac_compile"
26860 case "(($ac_try" in
26861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26862 *) ac_try_echo
=$ac_try;;
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865 (eval "$ac_compile") 2>conftest.er1
26867 grep -v '^ *+' conftest.er1
>conftest.err
26869 cat conftest.err
>&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } && {
26872 test -z "$ac_c_werror_flag" ||
26873 test ! -s conftest.err
26874 } && test -s conftest.
$ac_objext; then
26875 ac_cv_stat_tv_nsec
=yes
26877 echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.
$ac_ext >&5
26880 ac_cv_stat_tv_nsec
=no
26883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26886 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26887 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26888 if test "$ac_cv_stat_tv_nsec" = yes
26891 cat >>confdefs.h
<<\_ACEOF
26892 #define HAVE_STAT_TV_NSEC 1
26897 # Look for BSD style subsecond timestamps in struct stat
26898 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26899 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
26900 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26901 echo $ECHO_N "(cached) $ECHO_C" >&6
26903 cat >conftest.
$ac_ext <<_ACEOF
26906 cat confdefs.h
>>conftest.
$ac_ext
26907 cat >>conftest.
$ac_ext <<_ACEOF
26908 /* end confdefs.h. */
26909 #include <sys/stat.h>
26915 st.st_mtimespec.tv_nsec = 1;
26921 rm -f conftest.
$ac_objext
26922 if { (ac_try
="$ac_compile"
26923 case "(($ac_try" in
26924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_compile") 2>conftest.er1
26930 grep -v '^ *+' conftest.er1 >conftest.err
26932 cat conftest.err >&5
26933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } && {
26935 test -z "$ac_c_werror_flag" ||
26936 test ! -s conftest.err
26937 } && test -s conftest.$ac_objext; then
26938 ac_cv_stat_tv_nsec2=yes
26940 echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26943 ac_cv_stat_tv_nsec2=no
26946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26949 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26950 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26951 if test "$ac_cv_stat_tv_nsec2" = yes
26954 cat >>confdefs.h <<\_ACEOF
26955 #define HAVE_STAT_TV_NSEC2 1
26960 # On HP/UX 11.0, mvwdelch is a block with a return statement
26961 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26962 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26963 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26964 echo $ECHO_N "(cached) $ECHO_C" >&6
26966 cat >conftest.$ac_ext <<_ACEOF
26969 cat confdefs.h >>conftest.$ac_ext
26970 cat >>conftest.$ac_ext <<_ACEOF
26971 /* end confdefs.h. */
26972 #include <curses.h>
26978 rtn = mvwdelch(0,0,0);
26984 rm -f conftest.$ac_objext
26985 if { (ac_try="$ac_compile"
26986 case "(($ac_try" in
26987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26988 *) ac_try_echo
=$ac_try;;
26990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26991 (eval "$ac_compile") 2>conftest.er1
26993 grep -v '^ *+' conftest.er1
>conftest.err
26995 cat conftest.err
>&5
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); } && {
26998 test -z "$ac_c_werror_flag" ||
26999 test ! -s conftest.err
27000 } && test -s conftest.
$ac_objext; then
27001 ac_cv_mvwdelch_is_expression
=yes
27003 echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.
$ac_ext >&5
27006 ac_cv_mvwdelch_is_expression
=no
27009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27012 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
27013 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
27015 if test "$ac_cv_mvwdelch_is_expression" = yes
27018 cat >>confdefs.h
<<\_ACEOF
27019 #define MVWDELCH_IS_EXPRESSION 1
27024 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
27025 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
27026 if test "${ac_cv_window_has_flags+set}" = set; then
27027 echo $ECHO_N "(cached) $ECHO_C" >&6
27029 cat >conftest.
$ac_ext <<_ACEOF
27032 cat confdefs.h
>>conftest.
$ac_ext
27033 cat >>conftest.
$ac_ext <<_ACEOF
27034 /* end confdefs.h. */
27035 #include <curses.h>
27047 rm -f conftest.
$ac_objext
27048 if { (ac_try
="$ac_compile"
27049 case "(($ac_try" in
27050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27051 *) ac_try_echo=$ac_try;;
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054 (eval "$ac_compile") 2>conftest.er1
27056 grep -v '^ *+' conftest.er1 >conftest.err
27058 cat conftest.err >&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } && {
27061 test -z "$ac_c_werror_flag" ||
27062 test ! -s conftest.err
27063 } && test -s conftest.$ac_objext; then
27064 ac_cv_window_has_flags=yes
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27069 ac_cv_window_has_flags=no
27072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27075 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
27076 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
27079 if test "$ac_cv_window_has_flags" = yes
27082 cat >>confdefs.h <<\_ACEOF
27083 #define WINDOW_HAS_FLAGS 1
27088 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
27089 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
27090 cat >conftest.$ac_ext <<_ACEOF
27093 cat confdefs.h >>conftest.$ac_ext
27094 cat >>conftest.$ac_ext <<_ACEOF
27095 /* end confdefs.h. */
27096 #include <curses.h>
27100 void *x=is_term_resized
27105 rm -f conftest.$ac_objext
27106 if { (ac_try="$ac_compile"
27107 case "(($ac_try" in
27108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27109 *) ac_try_echo
=$ac_try;;
27111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27112 (eval "$ac_compile") 2>conftest.er1
27114 grep -v '^ *+' conftest.er1
>conftest.err
27116 cat conftest.err
>&5
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); } && {
27119 test -z "$ac_c_werror_flag" ||
27120 test ! -s conftest.err
27121 } && test -s conftest.
$ac_objext; then
27123 cat >>confdefs.h
<<\_ACEOF
27124 #define HAVE_CURSES_IS_TERM_RESIZED 1
27127 { echo "$as_me:$LINENO: result: yes" >&5
27128 echo "${ECHO_T}yes" >&6; }
27130 echo "$as_me: failed program was:" >&5
27131 sed 's/^/| /' conftest.
$ac_ext >&5
27133 { echo "$as_me:$LINENO: result: no" >&5
27134 echo "${ECHO_T}no" >&6; }
27138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27140 { echo "$as_me:$LINENO: checking for resize_term" >&5
27141 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
27142 cat >conftest.
$ac_ext <<_ACEOF
27145 cat confdefs.h
>>conftest.
$ac_ext
27146 cat >>conftest.
$ac_ext <<_ACEOF
27147 /* end confdefs.h. */
27148 #include <curses.h>
27152 void *x=resize_term
27157 rm -f conftest.
$ac_objext
27158 if { (ac_try
="$ac_compile"
27159 case "(($ac_try" in
27160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27161 *) ac_try_echo=$ac_try;;
27163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27164 (eval "$ac_compile") 2>conftest.er1
27166 grep -v '^ *+' conftest.er1 >conftest.err
27168 cat conftest.err >&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } && {
27171 test -z "$ac_c_werror_flag" ||
27172 test ! -s conftest.err
27173 } && test -s conftest.$ac_objext; then
27175 cat >>confdefs.h <<\_ACEOF
27176 #define HAVE_CURSES_RESIZE_TERM 1
27179 { echo "$as_me:$LINENO: result: yes" >&5
27180 echo "${ECHO_T}yes" >&6; }
27182 echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27185 { echo "$as_me:$LINENO: result: no" >&5
27186 echo "${ECHO_T}no" >&6; }
27190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27192 { echo "$as_me:$LINENO: checking for resizeterm" >&5
27193 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27194 cat >conftest.$ac_ext <<_ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27200 #include <curses.h>
27209 rm -f conftest.$ac_objext
27210 if { (ac_try="$ac_compile"
27211 case "(($ac_try" in
27212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27213 *) ac_try_echo
=$ac_try;;
27215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27216 (eval "$ac_compile") 2>conftest.er1
27218 grep -v '^ *+' conftest.er1
>conftest.err
27220 cat conftest.err
>&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } && {
27223 test -z "$ac_c_werror_flag" ||
27224 test ! -s conftest.err
27225 } && test -s conftest.
$ac_objext; then
27227 cat >>confdefs.h
<<\_ACEOF
27228 #define HAVE_CURSES_RESIZETERM 1
27231 { echo "$as_me:$LINENO: result: yes" >&5
27232 echo "${ECHO_T}yes" >&6; }
27234 echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.
$ac_ext >&5
27237 { echo "$as_me:$LINENO: result: no" >&5
27238 echo "${ECHO_T}no" >&6; }
27242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27244 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27245 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27247 if test -r /dev
/ptmx
27249 { echo "$as_me:$LINENO: result: yes" >&5
27250 echo "${ECHO_T}yes" >&6; }
27252 cat >>confdefs.h
<<\_ACEOF
27253 #define HAVE_DEV_PTMX 1
27257 { echo "$as_me:$LINENO: result: no" >&5
27258 echo "${ECHO_T}no" >&6; }
27261 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27262 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27264 if test -r /dev
/ptc
27266 { echo "$as_me:$LINENO: result: yes" >&5
27267 echo "${ECHO_T}yes" >&6; }
27269 cat >>confdefs.h
<<\_ACEOF
27270 #define HAVE_DEV_PTC 1
27274 { echo "$as_me:$LINENO: result: no" >&5
27275 echo "${ECHO_T}no" >&6; }
27278 if test "$have_long_long" = yes
27280 { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5
27281 echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; }
27282 if test "${ac_cv_have_long_long_format+set}" = set; then
27283 echo $ECHO_N "(cached) $ECHO_C" >&6
27285 if test "$cross_compiling" = yes; then
27286 ac_cv_have_long_long_format
=no
27288 cat >conftest.
$ac_ext <<_ACEOF
27291 cat confdefs.h
>>conftest.
$ac_ext
27292 cat >>conftest.
$ac_ext <<_ACEOF
27293 /* end confdefs.h. */
27296 #include <stddef.h>
27297 #include <string.h>
27299 #ifdef HAVE_SYS_TYPES_H
27300 #include <sys/types.h>
27307 if (sprintf(buffer, "%lld", (long long)123) < 0)
27309 if (strcmp(buffer, "123"))
27312 if (sprintf(buffer, "%lld", (long long)-123) < 0)
27314 if (strcmp(buffer, "-123"))
27317 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
27319 if (strcmp(buffer, "123"))
27326 rm -f conftest
$ac_exeext
27327 if { (ac_try
="$ac_link"
27328 case "(($ac_try" in
27329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27330 *) ac_try_echo=$ac_try;;
27332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27333 (eval "$ac_link") 2>&5
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27337 { (case "(($ac_try" in
27338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27339 *) ac_try_echo
=$ac_try;;
27341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27342 (eval "$ac_try") 2>&5
27344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345 (exit $ac_status); }; }; then
27346 ac_cv_have_long_long_format
=yes
27348 echo "$as_me: program exited with status $ac_status" >&5
27349 echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.
$ac_ext >&5
27352 ( exit $ac_status )
27353 ac_cv_have_long_long_format
=no
27355 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27362 { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5
27363 echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; }
27366 if test $ac_cv_have_long_long_format = yes
27369 cat >>confdefs.h
<<\_ACEOF
27370 #define PY_FORMAT_LONG_LONG "ll"
27375 if test $ac_sys_system = Darwin
27377 LIBS
="$LIBS -framework CoreFoundation"
27381 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27382 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27383 if test "${ac_cv_have_size_t_format+set}" = set; then
27384 echo $ECHO_N "(cached) $ECHO_C" >&6
27386 if test "$cross_compiling" = yes; then
27387 ac_cv_have_size_t_format
="cross -- assuming yes"
27390 cat >conftest.
$ac_ext <<_ACEOF
27393 cat confdefs.h
>>conftest.
$ac_ext
27394 cat >>conftest.
$ac_ext <<_ACEOF
27395 /* end confdefs.h. */
27398 #include <stddef.h>
27399 #include <string.h>
27401 #ifdef HAVE_SYS_TYPES_H
27402 #include <sys/types.h>
27405 #ifdef HAVE_SSIZE_T
27406 typedef ssize_t Py_ssize_t;
27407 #elif SIZEOF_VOID_P == SIZEOF_LONG
27408 typedef long Py_ssize_t;
27410 typedef int Py_ssize_t;
27417 if(sprintf(buffer, "%zd", (size_t)123) < 0)
27420 if (strcmp(buffer, "123"))
27423 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
27426 if (strcmp(buffer, "-123"))
27433 rm -f conftest
$ac_exeext
27434 if { (ac_try
="$ac_link"
27435 case "(($ac_try" in
27436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_link") 2>&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27444 { (case "(($ac_try" in
27445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27446 *) ac_try_echo
=$ac_try;;
27448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27449 (eval "$ac_try") 2>&5
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; }; then
27453 ac_cv_have_size_t_format
=yes
27455 echo "$as_me: program exited with status $ac_status" >&5
27456 echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.
$ac_ext >&5
27459 ( exit $ac_status )
27460 ac_cv_have_size_t_format
=no
27462 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27467 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
27468 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
27469 if test "$ac_cv_have_size_t_format" != no
; then
27471 cat >>confdefs.h
<<\_ACEOF
27472 #define PY_FORMAT_SIZE_T "z"
27477 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27478 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27479 if test "${ac_cv_type_socklen_t+set}" = set; then
27480 echo $ECHO_N "(cached) $ECHO_C" >&6
27482 cat >conftest.
$ac_ext <<_ACEOF
27485 cat confdefs.h
>>conftest.
$ac_ext
27486 cat >>conftest.
$ac_ext <<_ACEOF
27487 /* end confdefs.h. */
27489 #ifdef HAVE_SYS_TYPES_H
27490 #include <sys/types.h>
27492 #ifdef HAVE_SYS_SOCKET_H
27493 #include <sys/socket.h>
27497 typedef socklen_t ac__type_new_;
27501 if ((ac__type_new_ *) 0)
27503 if (sizeof (ac__type_new_))
27509 rm -f conftest.
$ac_objext
27510 if { (ac_try
="$ac_compile"
27511 case "(($ac_try" in
27512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27513 *) ac_try_echo=$ac_try;;
27515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27516 (eval "$ac_compile") 2>conftest.er1
27518 grep -v '^ *+' conftest.er1 >conftest.err
27520 cat conftest.err >&5
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); } && {
27523 test -z "$ac_c_werror_flag" ||
27524 test ! -s conftest.err
27525 } && test -s conftest.$ac_objext; then
27526 ac_cv_type_socklen_t=yes
27528 echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27531 ac_cv_type_socklen_t=no
27534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27536 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27537 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27538 if test $ac_cv_type_socklen_t = yes; then
27542 cat >>confdefs.h <<\_ACEOF
27543 #define socklen_t int
27551 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
27553 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27557 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27558 { echo "$as_me:$LINENO: checking for build directories" >&5
27559 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27560 for dir in $SRCDIRS; do
27561 if test ! -d $dir; then
27565 { echo "$as_me:$LINENO: result: done" >&5
27566 echo "${ECHO_T}done" >&6; }
27568 # generate output files
27569 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
27571 cat >confcache <<\_ACEOF
27572 # This file is a shell script that caches the results of configure
27573 # tests run on this system so they can be shared between configure
27574 # scripts and configure runs, see configure's option --config-cache.
27575 # It is not useful on other systems. If it contains results you don't
27576 # want to keep, you may remove or edit it.
27578 # config.status only pays attention to the cache file if you give it
27579 # the --recheck option to rerun configure.
27581 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
27582 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27583 # following values.
27587 # The following way of writing the cache mishandles newlines in values,
27588 # but we know of no workaround that is simple, portable, and efficient.
27589 # So, we kill variables containing newlines.
27590 # Ultrix sh set writes to stderr and can't be redirected directly,
27591 # and sets the high bit in the cache file unless we assign to the vars.
27593 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27594 eval ac_val
=\$
$ac_var
27598 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27599 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27602 _ | IFS | as_nl
) ;; #(
27603 *) $as_unset $ac_var ;;
27609 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27610 *${as_nl}ac_space
=\
*)
27611 # `set' does not quote correctly, so add quotes (double-quote
27612 # substitution turns \\\\ into \\, and sed turns \\ into \).
27615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27618 # `set' quotes correctly as required by POSIX, so do not add quotes.
27619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27630 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27632 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27633 if test -w "$cache_file"; then
27634 test "x$cache_file" != "x/dev/null" &&
27635 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27636 echo "$as_me: updating cache $cache_file" >&6;}
27637 cat confcache
>$cache_file
27639 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27640 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27645 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27646 # Let make expand exec_prefix.
27647 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27649 DEFS
=-DHAVE_CONFIG_H
27653 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27654 # 1. Remove the extension, and $U if already installed.
27655 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27656 ac_i
=`echo "$ac_i" | sed "$ac_script"`
27657 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27658 # will be set to the directory where LIBOBJS objects are built.
27659 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27660 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27662 LIBOBJS
=$ac_libobjs
27664 LTLIBOBJS
=$ac_ltlibobjs
27668 : ${CONFIG_STATUS=./config.status}
27669 ac_clean_files_save
=$ac_clean_files
27670 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27671 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27672 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27673 cat >$CONFIG_STATUS <<_ACEOF
27675 # Generated by $as_me.
27676 # Run this file to recreate the current configuration.
27677 # Compiler output produced by configure, useful for debugging
27678 # configure, is in config.log if it exists.
27681 ac_cs_recheck=false
27683 SHELL=\${CONFIG_SHELL-$SHELL}
27686 cat >>$CONFIG_STATUS <<\_ACEOF
27687 ## --------------------- ##
27688 ## M4sh Initialization. ##
27689 ## --------------------- ##
27691 # Be more Bourne compatible
27692 DUALCASE
=1; export DUALCASE
# for MKS sh
27693 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27696 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27697 # is contrary to our usage. Disable this feature.
27698 alias -g '${1+"$@"}'='"$@"'
27699 setopt NO_GLOB_SUBST
27701 case `(set -o) 2>/dev/null` in
27702 *posix
*) set -o posix
;;
27711 # Avoid depending upon Character Ranges.
27712 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27713 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27714 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27715 as_cr_digits
='0123456789'
27716 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27718 # The user is always right.
27719 if test "${PATH_SEPARATOR+set}" != set; then
27720 echo "#! /bin/sh" >conf$$.sh
27721 echo "exit 0" >>conf$$.sh
27723 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
27731 # Support unset when possible.
27732 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
27740 # We need space, tab and new line, in precisely that order. Quoting is
27741 # there to prevent editors from complaining about space-tab.
27742 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27743 # splitting by setting IFS to empty value.)
27748 # Find who we are. Look in the path if we contain no directory separator.
27750 *[\\/]* ) as_myself
=$0 ;;
27751 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27752 for as_dir
in $PATH
27755 test -z "$as_dir" && as_dir
=.
27756 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
27762 # We did not find ourselves, most probably we were run as `sh COMMAND'
27763 # in which case we are not to be found in the path.
27764 if test "x$as_myself" = x
; then
27767 if test ! -f "$as_myself"; then
27768 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27769 { (exit 1); exit 1; }
27772 # Work around bugs in pre-3.0 UWIN ksh.
27773 for as_var
in ENV MAIL MAILPATH
27774 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27782 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27783 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27784 LC_TELEPHONE LC_TIME
27786 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27787 eval $as_var=C
; export $as_var
27789 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27793 # Required to use basename.
27794 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27795 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27801 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27802 as_basename
=basename
27808 # Name of the executable.
27809 as_me
=`$as_basename -- "$0" ||
27810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27811 X"$0" : 'X\(//\)$' \| \
27812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27814 sed '/^.*\/\([^/][^/]*\)\/*$/{
27833 as_lineno_1
=$LINENO
27834 as_lineno_2
=$LINENO
27835 test "x$as_lineno_1" != "x$as_lineno_2" &&
27836 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27838 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27839 # uniformly replaced by the line number. The first 'sed' inserts a
27840 # line-number line after each line using $LINENO; the second 'sed'
27841 # does the real work. The second script uses 'N' to pair each
27842 # line-number line with the line containing $LINENO, and appends
27843 # trailing '-' during substitution so that $LINENO is not a special
27844 # case at line end.
27845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27846 # scripts with optimization help from Paolo Bonzini. Blame Lee
27847 # E. McMahon (1931-1989) for sed's syntax. :-)
27859 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27862 ' >$as_me.lineno
&&
27863 chmod +x
"$as_me.lineno" ||
27864 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27865 { (exit 1); exit 1; }; }
27867 # Don't try to exec as it changes $[0], causing all sort of problems
27868 # (the dirname of $[0] is not the place where we might find the
27869 # original and so on. Autoconf is especially sensitive to this).
27870 .
"./$as_me.lineno"
27871 # Exit status is that of the last command.
27876 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27882 ECHO_C
= ECHO_N
= ECHO_T
=
27883 case `echo -n x` in
27885 case `echo 'x\c'` in
27886 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27893 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27894 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27900 rm -f conf$$ conf$$.exe conf$$.
file
27901 if test -d conf$$.dir
; then
27902 rm -f conf$$.dir
/conf$$.
file
27908 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27910 # ... but there are two gotchas:
27911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27913 # In both cases, we have to default to `cp -p'.
27914 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27916 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27921 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27922 rmdir conf$$.dir
2>/dev
/null
27924 if mkdir
-p .
2>/dev
/null
; then
27927 test -d .
/-p && rmdir .
/-p
27931 if test -x / >/dev
/null
2>&1; then
27932 as_test_x
='test -x'
27934 if ls -dL / >/dev
/null
2>&1; then
27941 if test -d "$1"; then
27947 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27948 ???[sx]*):;;*)false;;esac;fi
27952 as_executable_p
=$as_test_x
27954 # Sed expression to map a string onto a valid CPP name.
27955 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27957 # Sed expression to map a string onto a valid variable name.
27958 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27963 # Save the log message, to keep $[0] and so on meaningful, and to
27964 # report actual input values of CONFIG_FILES etc. instead of their
27965 # values after options handling.
27967 This file was extended by python $as_me 2.7, which was
27968 generated by GNU Autoconf 2.61. Invocation command line was
27970 CONFIG_FILES = $CONFIG_FILES
27971 CONFIG_HEADERS = $CONFIG_HEADERS
27972 CONFIG_LINKS = $CONFIG_LINKS
27973 CONFIG_COMMANDS = $CONFIG_COMMANDS
27976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27981 cat >>$CONFIG_STATUS <<_ACEOF
27982 # Files that config.status was made for.
27983 config_files="$ac_config_files"
27984 config_headers="$ac_config_headers"
27988 cat >>$CONFIG_STATUS <<\_ACEOF
27990 \`$as_me' instantiates files from templates according to the
27991 current configuration.
27993 Usage: $0 [OPTIONS] [FILE]...
27995 -h, --help print this help, then exit
27996 -V, --version print version number and configuration settings, then exit
27997 -q, --quiet do not print progress messages
27998 -d, --debug don't remove temporary files
27999 --recheck update $as_me by reconfiguring in the same conditions
28000 --file=FILE[:TEMPLATE]
28001 instantiate the configuration file FILE
28002 --header=FILE[:TEMPLATE]
28003 instantiate the configuration header FILE
28005 Configuration files:
28008 Configuration headers:
28011 Report bugs to <bug-autoconf@gnu.org>."
28014 cat >>$CONFIG_STATUS <<_ACEOF
28016 python config.status 2.7
28017 configured by $0, generated by GNU Autoconf 2.61,
28018 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28020 Copyright (C) 2006 Free Software Foundation, Inc.
28021 This config.status script is free software; the Free Software Foundation
28022 gives unlimited permission to copy, distribute and modify it."
28029 cat >>$CONFIG_STATUS <<\_ACEOF
28030 # If no file are specified by the user, then we need to provide default
28031 # value. By we need to know if files were specified by the user.
28037 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28038 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28049 # Handling of the options.
28050 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28052 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28053 echo "$ac_cs_version"; exit ;;
28054 --debug |
--debu |
--deb |
--de |
--d |
-d )
28056 --file |
--fil |
--fi |
--f )
28058 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
28059 ac_need_defaults
=false
;;
28060 --header |
--heade |
--head |
--hea )
28062 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
28063 ac_need_defaults
=false
;;
28065 # Conflict between --help and --header
28066 { echo "$as_me: error: ambiguous option: $1
28067 Try \`$0 --help' for more information." >&2
28068 { (exit 1); exit 1; }; };;
28069 --help |
--hel |
-h )
28070 echo "$ac_cs_usage"; exit ;;
28071 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28072 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28075 # This is an error.
28076 -*) { echo "$as_me: error: unrecognized option: $1
28077 Try \`$0 --help' for more information." >&2
28078 { (exit 1); exit 1; }; } ;;
28080 *) ac_config_targets
="$ac_config_targets $1"
28081 ac_need_defaults
=false
;;
28087 ac_configure_extra_args
=
28089 if $ac_cs_silent; then
28091 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28095 cat >>$CONFIG_STATUS <<_ACEOF
28096 if \$ac_cs_recheck; then
28097 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28098 CONFIG_SHELL=$SHELL
28099 export CONFIG_SHELL
28100 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28104 cat >>$CONFIG_STATUS <<\_ACEOF
28108 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28109 ## Running $as_me. ##
28115 cat >>$CONFIG_STATUS <<_ACEOF
28118 cat >>$CONFIG_STATUS <<\_ACEOF
28120 # Handling of arguments.
28121 for ac_config_target
in $ac_config_targets
28123 case $ac_config_target in
28124 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
28125 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
28126 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
28127 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
28128 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
28129 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
28130 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
28131 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
28132 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
28134 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28135 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28136 { (exit 1); exit 1; }; };;
28141 # If the user did not use the arguments to specify the items to instantiate,
28142 # then the envvar interface is used. Set only those that are not.
28143 # We use the long form for the default assignment because of an extremely
28144 # bizarre bug on SunOS 4.1.3.
28145 if $ac_need_defaults; then
28146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28150 # Have a temporary directory for convenience. Make it in the build tree
28151 # simply because there is no reason against having it here, and in addition,
28152 # creating and moving files from /tmp can sometimes cause problems.
28153 # Hook for its removal unless debugging.
28154 # Note that there is a small window in which the directory will not be cleaned:
28155 # after its creation but before its name has been assigned to `$tmp'.
28159 trap 'exit_status=$?
28160 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28162 trap '{ (exit 1); exit 1; }' 1 2 13 15
28164 # Create a (secure) tmp directory for tmp files.
28167 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28168 test -n "$tmp" && test -d "$tmp"
28171 tmp
=.
/conf$$
-$RANDOM
28172 (umask 077 && mkdir
"$tmp")
28175 echo "$me: cannot create a temporary directory in ." >&2
28176 { (exit 1); exit 1; }
28180 # Set up the sed scripts for CONFIG_FILES section.
28183 # No need to generate the scripts if there are no CONFIG_FILES.
28184 # This happens for instance when ./config.status config.h
28185 if test -n "$CONFIG_FILES"; then
28192 for ac_last_try
in false false false false false
:; do
28193 cat >conf$
$subs.
sed <<_ACEOF
28194 SHELL!$SHELL$ac_delim
28195 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28196 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28197 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28198 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28199 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28200 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28201 exec_prefix!$exec_prefix$ac_delim
28202 prefix!$prefix$ac_delim
28203 program_transform_name!$program_transform_name$ac_delim
28204 bindir!$bindir$ac_delim
28205 sbindir!$sbindir$ac_delim
28206 libexecdir!$libexecdir$ac_delim
28207 datarootdir!$datarootdir$ac_delim
28208 datadir!$datadir$ac_delim
28209 sysconfdir!$sysconfdir$ac_delim
28210 sharedstatedir!$sharedstatedir$ac_delim
28211 localstatedir!$localstatedir$ac_delim
28212 includedir!$includedir$ac_delim
28213 oldincludedir!$oldincludedir$ac_delim
28214 docdir!$docdir$ac_delim
28215 infodir!$infodir$ac_delim
28216 htmldir!$htmldir$ac_delim
28217 dvidir!$dvidir$ac_delim
28218 pdfdir!$pdfdir$ac_delim
28219 psdir!$psdir$ac_delim
28220 libdir!$libdir$ac_delim
28221 localedir!$localedir$ac_delim
28222 mandir!$mandir$ac_delim
28223 DEFS!$DEFS$ac_delim
28224 ECHO_C!$ECHO_C$ac_delim
28225 ECHO_N!$ECHO_N$ac_delim
28226 ECHO_T!$ECHO_T$ac_delim
28227 LIBS!$LIBS$ac_delim
28228 build_alias!$build_alias$ac_delim
28229 host_alias!$host_alias$ac_delim
28230 target_alias!$target_alias$ac_delim
28231 VERSION!$VERSION$ac_delim
28232 SOVERSION!$SOVERSION$ac_delim
28233 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28234 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28235 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
28236 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28237 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
28238 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28239 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28240 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28241 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28242 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28243 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28244 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28245 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28246 MACHDEP!$MACHDEP$ac_delim
28247 SGI_ABI!$SGI_ABI$ac_delim
28248 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28249 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28250 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28251 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28253 CFLAGS!$CFLAGS$ac_delim
28254 LDFLAGS!$LDFLAGS$ac_delim
28255 CPPFLAGS!$CPPFLAGS$ac_delim
28256 ac_ct_CC!$ac_ct_CC$ac_delim
28257 EXEEXT!$EXEEXT$ac_delim
28258 OBJEXT!$OBJEXT$ac_delim
28260 MAINCC!$MAINCC$ac_delim
28262 GREP!$GREP$ac_delim
28263 EGREP!$EGREP$ac_delim
28264 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28265 LIBRARY!$LIBRARY$ac_delim
28266 LDLIBRARY!$LDLIBRARY$ac_delim
28267 DLLLIBRARY!$DLLLIBRARY$ac_delim
28268 BLDLIBRARY!$BLDLIBRARY$ac_delim
28269 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28270 INSTSONAME!$INSTSONAME$ac_delim
28271 RUNSHARED!$RUNSHARED$ac_delim
28272 LINKCC!$LINKCC$ac_delim
28273 GNULD!$GNULD$ac_delim
28274 RANLIB!$RANLIB$ac_delim
28276 ARFLAGS!$ARFLAGS$ac_delim
28277 SVNVERSION!$SVNVERSION$ac_delim
28278 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28279 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28280 INSTALL_DATA!$INSTALL_DATA$ac_delim
28283 BASECFLAGS!$BASECFLAGS$ac_delim
28284 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
28285 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28286 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28288 LDSHARED!$LDSHARED$ac_delim
28289 BLDSHARED!$BLDSHARED$ac_delim
28290 CCSHARED!$CCSHARED$ac_delim
28293 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28295 elif $ac_last_try; then
28296 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28297 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28298 { (exit 1); exit 1; }; }
28300 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28304 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28305 if test -n "$ac_eof"; then
28306 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28307 ac_eof
=`expr $ac_eof + 1`
28310 cat >>$CONFIG_STATUS <<_ACEOF
28311 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28315 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28316 s/^/s,@/; s/!/@,|#_!!_#|/
28319 s/'"$ac_delim"'$/,g/; t
28321 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28322 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28323 rm -f conf$
$subs.
sed
28324 cat >>$CONFIG_STATUS <<_ACEOF
28330 for ac_last_try
in false false false false false
:; do
28331 cat >conf$
$subs.
sed <<_ACEOF
28332 LINKFORSHARED!$LINKFORSHARED$ac_delim
28333 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28334 SHLIBS!$SHLIBS$ac_delim
28335 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28336 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28337 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28338 LDLAST!$LDLAST$ac_delim
28339 THREADOBJ!$THREADOBJ$ac_delim
28340 DLINCLDIR!$DLINCLDIR$ac_delim
28341 DYNLOADFILE!$DYNLOADFILE$ac_delim
28342 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28343 TRUE!$TRUE$ac_delim
28344 LIBOBJS!$LIBOBJS$ac_delim
28345 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28346 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28347 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28348 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28349 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28350 LIBM!$LIBM$ac_delim
28351 LIBC!$LIBC$ac_delim
28352 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28353 THREADHEADERS!$THREADHEADERS$ac_delim
28354 SRCDIRS!$SRCDIRS$ac_delim
28355 LTLIBOBJS!$LTLIBOBJS$ac_delim
28358 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
28360 elif $ac_last_try; then
28361 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28362 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28363 { (exit 1); exit 1; }; }
28365 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28369 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28370 if test -n "$ac_eof"; then
28371 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28372 ac_eof
=`expr $ac_eof + 1`
28375 cat >>$CONFIG_STATUS <<_ACEOF
28376 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28380 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28381 s/^/s,@/; s/!/@,|#_!!_#|/
28384 s/'"$ac_delim"'$/,g/; t
28386 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28387 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28388 rm -f conf$
$subs.
sed
28389 cat >>$CONFIG_STATUS <<_ACEOF
28396 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28397 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28398 # trailing colons and then remove the whole line if VPATH becomes empty
28399 # (actually we leave an empty line to preserve line numbers).
28400 if test "x$srcdir" = x.
; then
28401 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
28402 s/:*\$(srcdir):*/:/
28403 s/:*\${srcdir}:*/:/
28405 s/^\([^=]*=[ ]*\):*/\1/
28411 cat >>$CONFIG_STATUS <<\_ACEOF
28412 fi # test -n "$CONFIG_FILES"
28415 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
28418 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28420 case $ac_mode$ac_tag in
28422 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28423 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28424 { (exit 1); exit 1; }; };;
28425 :[FH
]-) ac_tag
=-:-;;
28426 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28443 -) ac_f
="$tmp/stdin";;
28444 *) # Look for the file first in the build tree, then in the source tree
28445 # (if the path is not absolute). The absolute path cannot be DOS-style,
28446 # because $ac_f cannot contain `:'.
28450 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28452 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28453 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28454 { (exit 1); exit 1; }; };;
28456 ac_file_inputs
="$ac_file_inputs $ac_f"
28459 # Let's still pretend it is `configure' which instantiates (i.e., don't
28460 # use $as_me), people would be surprised to read:
28461 # /* config.h. Generated by config.status. */
28462 configure_input
="Generated from "`IFS=:
28463 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28464 if test x
"$ac_file" != x-
; then
28465 configure_input
="$ac_file. $configure_input"
28466 { echo "$as_me:$LINENO: creating $ac_file" >&5
28467 echo "$as_me: creating $ac_file" >&6;}
28471 *:-:* |
*:-) cat >"$tmp/stdin";;
28476 ac_dir
=`$as_dirname -- "$ac_file" ||
28477 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28478 X"$ac_file" : 'X\(//\)[^/]' \| \
28479 X"$ac_file" : 'X\(//\)$' \| \
28480 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28486 /^X\(\/\/\)[^/].*/{
28501 -*) as_dir
=.
/$as_dir;;
28503 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
28507 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28508 *) as_qdir
=$as_dir;;
28510 as_dirs
="'$as_qdir' $as_dirs"
28511 as_dir
=`$as_dirname -- "$as_dir" ||
28512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28513 X"$as_dir" : 'X\(//\)[^/]' \| \
28514 X"$as_dir" : 'X\(//\)$' \| \
28515 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28521 /^X\(\/\/\)[^/].*/{
28534 test -d "$as_dir" && break
28536 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28537 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28538 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28539 { (exit 1); exit 1; }; }; }
28543 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28545 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28546 # A ".." for each directory in $ac_dir_suffix.
28547 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28548 case $ac_top_builddir_sub in
28549 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28550 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28553 ac_abs_top_builddir
=$ac_pwd
28554 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28555 # for backward compatibility:
28556 ac_top_builddir
=$ac_top_build_prefix
28559 .
) # We are building in place.
28561 ac_top_srcdir
=$ac_top_builddir_sub
28562 ac_abs_top_srcdir
=$ac_pwd ;;
28563 [\\/]* | ?
:[\\/]* ) # Absolute name.
28564 ac_srcdir
=$srcdir$ac_dir_suffix;
28565 ac_top_srcdir
=$srcdir
28566 ac_abs_top_srcdir
=$srcdir ;;
28567 *) # Relative name.
28568 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28569 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28570 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28572 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28582 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28583 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28587 cat >>$CONFIG_STATUS <<\_ACEOF
28588 # If the template does not know about datarootdir, expand it.
28589 # FIXME: This hack should be removed a few years after 2.60.
28590 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28592 case `sed -n '/datarootdir/ {
28601 ' $ac_file_inputs` in
28602 *datarootdir
*) ac_datarootdir_seen
=yes;;
28603 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28604 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28605 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28607 cat >>$CONFIG_STATUS <<_ACEOF
28608 ac_datarootdir_hack='
28609 s&@datadir@&$datadir&g
28610 s&@docdir@&$docdir&g
28611 s&@infodir@&$infodir&g
28612 s&@localedir@&$localedir&g
28613 s&@mandir@&$mandir&g
28614 s&\\\${datarootdir}&$datarootdir&g' ;;
28618 # Neutralize VPATH when `$srcdir' = `.'.
28619 # Shell code in configure.ac might set extrasub.
28620 # FIXME: do we really want to maintain this feature?
28621 cat >>$CONFIG_STATUS <<_ACEOF
28625 cat >>$CONFIG_STATUS <<\_ACEOF
28627 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28628 s
&@configure_input@
&$configure_input&;t t
28629 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28630 s
&@srcdir@
&$ac_srcdir&;t t
28631 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28632 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28633 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28634 s
&@builddir@
&$ac_builddir&;t t
28635 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28636 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28637 s
&@INSTALL@
&$ac_INSTALL&;t t
28638 $ac_datarootdir_hack
28639 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
28641 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28642 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28644 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28645 which seems to be undefined. Please make sure it is defined." >&5
28646 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28647 which seems to be undefined. Please make sure it is defined." >&2;}
28651 -) cat "$tmp/out"; rm -f "$tmp/out";;
28652 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28661 # Transform confdefs.h into a sed script `conftest.defines', that
28662 # substitutes the proper values into config.h.in to produce config.h.
28663 rm -f conftest.defines conftest.
tail
28664 # First, append a space to every undef/define line, to ease matching.
28665 echo 's/$/ /' >conftest.defines
28666 # Then, protect against being on the right side of a sed subst, or in
28667 # an unquoted here document, in config.status. If some macros were
28668 # called several times there might be several #defines for the same
28669 # symbol, which is useless. But do not sort them, since the last
28670 # AC_DEFINE must be honored.
28671 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
28672 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28673 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28674 # PARAMS is the parameter list in the macro definition--in most cases, it's
28675 # just an empty string.
28676 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28677 ac_dB
='\\)[ (].*,\\1define\\2'
28685 s/^[ ]*#[ ]*define[ ][ ]*//
28690 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28691 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28692 ' >>conftest.defines
28694 # Remove the space that was appended to ease matching.
28695 # Then replace #undef with comments. This is necessary, for
28696 # example, in the case of _POSIX_SOURCE, which is predefined and required
28697 # on some systems where configure will not decide to define it.
28698 # (The regexp can be short, since the line contains either #define or #undef.)
28700 s,^[ #]*u.*,/* & */,' >>conftest.defines
28702 # Break up conftest.defines:
28703 ac_max_sed_lines
=50
28705 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28706 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28707 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28709 ac_in
='$ac_file_inputs'
28710 ac_out
='"$tmp/out1"'
28711 ac_nxt
='"$tmp/out2"'
28715 # Write a here document:
28716 cat >>$CONFIG_STATUS <<_ACEOF
28717 # First, check the format of the line:
28718 cat >"\$tmp/defines.sed" <<\\CEOF
28719 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28720 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28724 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
28726 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28727 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
28728 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
28729 grep . conftest.
tail >/dev
/null ||
break
28730 rm -f conftest.defines
28731 mv conftest.
tail conftest.defines
28733 rm -f conftest.defines conftest.
tail
28735 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28736 cat >>$CONFIG_STATUS <<\_ACEOF
28737 if test x
"$ac_file" != x-
; then
28738 echo "/* $configure_input */" >"$tmp/config.h"
28739 cat "$ac_result" >>"$tmp/config.h"
28740 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
28741 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28742 echo "$as_me: $ac_file is unchanged" >&6;}
28745 mv "$tmp/config.h" $ac_file
28748 echo "/* $configure_input */"
28760 { (exit 0); exit 0; }
28762 chmod +x
$CONFIG_STATUS
28763 ac_clean_files
=$ac_clean_files_save
28766 # configure is writing to config.log, and then calls config.status.
28767 # config.status does its own redirection, appending to config.log.
28768 # Unfortunately, on DOS this fails, as config.log is still kept open
28769 # by configure, so config.status won't be able to write to it; its
28770 # output is simply discarded. So we exec the FD to /dev/null,
28771 # effectively closing config.log, so it can be properly (re)opened and
28772 # appended to by config.status. When coming back to configure, we
28773 # need to make the FD available again.
28774 if test "$no_create" != yes; then
28776 ac_config_status_args
=
28777 test "$silent" = yes &&
28778 ac_config_status_args
="$ac_config_status_args --quiet"
28780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28783 # would make configure fail if this is the last instruction.
28784 $ac_cs_success ||
{ (exit 1); exit 1; }
28788 echo "creating Modules/Setup"
28789 if test ! -f Modules
/Setup
28791 cp $srcdir/Modules
/Setup.dist Modules
/Setup
28794 echo "creating Modules/Setup.local"
28795 if test ! -f Modules
/Setup.
local
28797 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
28800 echo "creating Makefile"
28801 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
28802 -s Modules Modules
/Setup.config \
28803 Modules
/Setup.
local Modules
/Setup
28805 case $ac_sys_system in
28807 { echo "$as_me:$LINENO: WARNING:
28809 Support for BeOS is deprecated as of Python 2.6.
28810 See PEP 11 for the gory details.
28812 echo "$as_me: WARNING:
28814 Support for BeOS is deprecated as of Python 2.6.
28815 See PEP 11 for the gory details.
28821 mv config.c Modules