2 # From configure.in Revision: 77193 .
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
663 PYTHONFRAMEWORKIDENTIFIER
665 PYTHONFRAMEWORKPREFIX
666 PYTHONFRAMEWORKINSTALLDIR
667 FRAMEWORKINSTALLFIRST
669 FRAMEWORKALTINSTALLFIRST
670 FRAMEWORKALTINSTALLLAST
671 FRAMEWORKUNIXTOOLSPREFIX
676 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
677 EXPORT_MACOSX_DEPLOYMENT_TARGET
732 HAVE_GETHOSTBYNAME_R_6_ARG
733 HAVE_GETHOSTBYNAME_R_5_ARG
734 HAVE_GETHOSTBYNAME_R_3_ARG
744 ac_precious_vars
='build_alias
755 # Initialize some variables set by options.
757 ac_init_version
=false
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name
=s
,x
,x
,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir
='${exec_prefix}/bin'
782 sbindir
='${exec_prefix}/sbin'
783 libexecdir
='${exec_prefix}/libexec'
784 datarootdir
='${prefix}/share'
785 datadir
='${datarootdir}'
786 sysconfdir
='${prefix}/etc'
787 sharedstatedir
='${prefix}/com'
788 localstatedir
='${prefix}/var'
789 includedir
='${prefix}/include'
790 oldincludedir
='/usr/include'
791 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir
='${datarootdir}/info'
797 libdir
='${exec_prefix}/lib'
798 localedir
='${datarootdir}/locale'
799 mandir
='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\
$ac_option
813 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
823 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
825 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
828 -build |
--build |
--buil |
--bui |
--bu)
829 ac_prev
=build_alias
;;
830 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
831 build_alias
=$ac_optarg ;;
833 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
834 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
835 ac_prev
=cache_file
;;
836 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
837 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
838 cache_file
=$ac_optarg ;;
841 cache_file
=config.cache
;;
843 -datadir |
--datadir |
--datadi |
--datad)
845 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
846 datadir
=$ac_optarg ;;
848 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
849 |
--dataroo |
--dataro |
--datar)
850 ac_prev
=datarootdir
;;
851 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
852 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
853 datarootdir
=$ac_optarg ;;
855 -disable-* |
--disable-*)
856 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_
$ac_feature=no
;;
864 -docdir |
--docdir |
--docdi |
--doc |
--do)
866 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
869 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
871 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
874 -enable-* |
--enable-*)
875 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_
$ac_feature=\
$ac_optarg ;;
883 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
884 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
885 |
--exec |
--exe |
--ex)
886 ac_prev
=exec_prefix
;;
887 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
888 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
889 |
--exec=* |
--exe=* |
--ex=*)
890 exec_prefix
=$ac_optarg ;;
892 -gas |
--gas |
--ga |
--g)
893 # Obsolete; use --with-gas.
896 -help |
--help |
--hel |
--he |
-h)
898 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
899 ac_init_help
=recursive
;;
900 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
901 ac_init_help
=short
;;
903 -host |
--host |
--hos |
--ho)
904 ac_prev
=host_alias
;;
905 -host=* |
--host=* |
--hos=* |
--ho=*)
906 host_alias
=$ac_optarg ;;
908 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
910 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
912 htmldir
=$ac_optarg ;;
914 -includedir |
--includedir |
--includedi |
--included |
--include \
915 |
--includ |
--inclu |
--incl |
--inc)
916 ac_prev
=includedir
;;
917 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
918 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
919 includedir
=$ac_optarg ;;
921 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
923 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
924 infodir
=$ac_optarg ;;
926 -libdir |
--libdir |
--libdi |
--libd)
928 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
931 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
932 |
--libexe |
--libex |
--libe)
933 ac_prev
=libexecdir
;;
934 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
935 |
--libexe=* |
--libex=* |
--libe=*)
936 libexecdir
=$ac_optarg ;;
938 -localedir |
--localedir |
--localedi |
--localed |
--locale)
940 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
941 localedir
=$ac_optarg ;;
943 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
944 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
945 ac_prev
=localstatedir
;;
946 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
947 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
948 localstatedir
=$ac_optarg ;;
950 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
952 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
956 # Obsolete; use --without-fp.
959 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
960 |
--no-cr |
--no-c |
-n)
963 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
964 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
967 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
968 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
969 |
--oldin |
--oldi |
--old |
--ol |
--o)
970 ac_prev
=oldincludedir
;;
971 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
972 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
973 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
974 oldincludedir
=$ac_optarg ;;
976 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
978 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
981 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
982 |
--program-pre |
--program-pr |
--program-p)
983 ac_prev
=program_prefix
;;
984 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
985 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
986 program_prefix
=$ac_optarg ;;
988 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
989 |
--program-suf |
--program-su |
--program-s)
990 ac_prev
=program_suffix
;;
991 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
992 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
993 program_suffix
=$ac_optarg ;;
995 -program-transform-name |
--program-transform-name \
996 |
--program-transform-nam |
--program-transform-na \
997 |
--program-transform-n |
--program-transform- \
998 |
--program-transform |
--program-transfor \
999 |
--program-transfo |
--program-transf \
1000 |
--program-trans |
--program-tran \
1001 |
--progr-tra |
--program-tr |
--program-t)
1002 ac_prev
=program_transform_name
;;
1003 -program-transform-name=* |
--program-transform-name=* \
1004 |
--program-transform-nam=* |
--program-transform-na=* \
1005 |
--program-transform-n=* |
--program-transform-=* \
1006 |
--program-transform=* |
--program-transfor=* \
1007 |
--program-transfo=* |
--program-transf=* \
1008 |
--program-trans=* |
--program-tran=* \
1009 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1010 program_transform_name
=$ac_optarg ;;
1012 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1014 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1015 pdfdir
=$ac_optarg ;;
1017 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1019 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1022 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1023 |
-silent |
--silent |
--silen |
--sile |
--sil)
1026 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1028 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1030 sbindir
=$ac_optarg ;;
1032 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1033 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1034 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1036 ac_prev
=sharedstatedir
;;
1037 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1038 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1039 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1041 sharedstatedir
=$ac_optarg ;;
1043 -site |
--site |
--sit)
1045 -site=* |
--site=* |
--sit=*)
1048 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1050 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1051 srcdir
=$ac_optarg ;;
1053 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1054 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1055 ac_prev
=sysconfdir
;;
1056 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1057 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1058 sysconfdir
=$ac_optarg ;;
1060 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1061 ac_prev
=target_alias
;;
1062 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1063 target_alias
=$ac_optarg ;;
1065 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1068 -version |
--version |
--versio |
--versi |
--vers |
-V)
1069 ac_init_version
=: ;;
1072 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_
$ac_package=\
$ac_optarg ;;
1080 -without-* |
--without-*)
1081 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_
$ac_package=no
;;
1090 # Obsolete; use --with-x.
1093 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1094 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1095 ac_prev
=x_includes
;;
1096 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1097 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1098 x_includes
=$ac_optarg ;;
1100 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1101 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1102 ac_prev
=x_libraries
;;
1103 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1104 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1105 x_libraries
=$ac_optarg ;;
1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
1108 Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
1113 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\
$ac_optarg
1119 export $ac_envvar ;;
1122 # FIXME: should be removed in autoconf 3.0.
1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132 if test -n "$ac_prev"; then
1133 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1134 { echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; }
1138 # Be sure to have absolute directory names.
1139 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1144 eval ac_val
=\$
$ac_var
1146 [\\/$
]* | ?
:[\\/]* ) continue;;
1147 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1150 { (exit 1); exit 1; }; }
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1158 target
=$target_alias
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x
; then
1162 if test "x$build_alias" = x
; then
1163 cross_compiling
=maybe
1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1172 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1174 test "$silent" = yes && exec 6>/dev
/null
1177 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di
=`ls -di .` &&
1179 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1180 { echo "$as_me: error: Working directory cannot be determined" >&2
1181 { (exit 1); exit 1; }; }
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
1184 { (exit 1); exit 1; }; }
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted
=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir
=`$as_dirname -- "$0" ||
1192 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1219 ac_srcdir_defaulted
=no
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1224 { (exit 1); exit 1; }; }
1226 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1229 { (exit 1); exit 1; }; }
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1239 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241 for ac_var
in $ac_precious_vars; do
1242 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1244 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1249 # Report the --help message.
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1255 \`configure' configures python 2.7 to adapt to many kinds of systems.
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1262 Defaults for the options are specified in brackets.
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1286 For better control, use the options below.
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1314 if test -n "$ac_init_help"; then
1315 case $ac_init_help in
1316 short | recursive
) echo "Configuration of python 2.7:";;
1321 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1322 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1323 --enable-universalsdk[=SDKDIR
]
1324 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1325 --enable-framework[=INSTALLDIR
]
1326 Build
(MacOSX|Darwin
) framework
1327 --enable-shared disable
/enable building shared python library
1328 --enable-profiling enable C-level code profiling
1329 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1330 --enable-ipv6 Enable ipv6
(with ipv4
) support
1331 --disable-ipv6 Disable ipv6 support
1332 --enable-big-digits[=BITS
]
1333 use big digits
for Python longs
[BITS
=30]
1334 --enable-unicode[=ucs
[24]]
1335 Enable Unicode
strings (default is
yes)
1338 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1339 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1340 --with-universal-archs=ARCH
1341 select architectures
for universal build
("32-bit",
1342 "64-bit", "3-way", "intel" or
"all")
1343 --with-framework-name=FRAMEWORK
1344 specify an alternate name of the framework built
1345 with
--enable-framework
1346 --without-gcc never use gcc
1347 --with-cxx-main=<compiler
>
1348 compile main
() and link python executable with C
++
1350 --with-suffix=.exe
set executable suffix
1351 --with-pydebug build with Py_DEBUG defined
1352 --with-libs='lib1 ...' link against additional libs
1353 --with-system-expat build pyexpat module using an installed expat
1355 --with-system-ffi build _ctypes module using an installed ffi library
1356 --with-dbmliborder=db1
:db2
:...
1357 order to check db backends
for dbm. Valid value is a
1358 colon separated string with the backend names
1359 `ndbm', `gdbm
' and `bdb'.
1360 --with-signal-module disable
/enable signal module
1361 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1362 --with(out
)-threads[=DIRECTORY
]
1363 disable
/enable thread support
1364 --with(out
)-thread[=DIRECTORY
]
1365 deprecated
; use
--with(out
)-threads
1366 --with-pth use GNU pth threading libraries
1367 --with(out
)-doc-strings disable
/enable documentation
strings
1368 --with(out
)-tsc enable
/disable timestamp counter profile
1369 --with(out
)-pymalloc disable
/enable specialized mallocs
1370 --with-valgrind Enable Valgrind support
1371 --with-wctype-functions use wctype.h functions
1372 --with-fpectl enable SIGFPE catching
1373 --with-libm=STRING math library
1374 --with-libc=STRING C library
1376 Some influential environment variables
:
1377 CC C compiler
command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1380 nonstandard directory
<lib dir
>
1381 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1382 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1383 you have headers
in a nonstandard directory
<include dir
>
1386 Use these variables to override the choices made by
`configure' or to help
1387 it to find libraries and programs with nonstandard names/locations.
1389 Report bugs to <http://bugs.python.org/>.
1394 if test "$ac_init_help" = "recursive"; then
1395 # If there are subdirs, report their specific --help.
1396 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397 test -d "$ac_dir" || continue
1401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1404 # A ".." for each directory in $ac_dir_suffix.
1405 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1406 case $ac_top_builddir_sub in
1407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411 ac_abs_top_builddir=$ac_pwd
1412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1413 # for backward compatibility:
1414 ac_top_builddir=$ac_top_build_prefix
1417 .) # We are building in place.
1419 ac_top_srcdir=$ac_top_builddir_sub
1420 ac_abs_top_srcdir=$ac_pwd ;;
1421 [\\/]* | ?:[\\/]* ) # Absolute name.
1422 ac_srcdir=$srcdir$ac_dir_suffix;
1423 ac_top_srcdir=$srcdir
1424 ac_abs_top_srcdir=$srcdir ;;
1426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1427 ac_top_srcdir=$ac_top_build_prefix$srcdir
1428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1432 cd "$ac_dir" || { ac_status=$?; continue; }
1433 # Check for guested configure.
1434 if test -f "$ac_srcdir/configure.gnu"; then
1436 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1437 elif test -f "$ac_srcdir/configure"; then
1439 $SHELL "$ac_srcdir/configure" --help=recursive
1441 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1443 cd "$ac_pwd" || { ac_status=$?; break; }
1447 test -n "$ac_init_help" && exit $ac_status
1448 if $ac_init_version; then
1450 python configure 2.7
1451 generated by GNU Autoconf 2.61
1453 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1454 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1455 This configure script is free software; the Free Software Foundation
1456 gives unlimited permission to copy, distribute and modify it.
1460 cat >config.log <<_ACEOF
1461 This file contains any messages produced by compilers while
1462 running configure, to aid debugging if configure makes a mistake.
1464 It was created by python $as_me 2.7, which was
1465 generated by GNU Autoconf 2.61. Invocation command line was
1477 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1478 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1479 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1480 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1481 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1483 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1484 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1486 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1487 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1488 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1489 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1490 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1491 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1492 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 test -z "$as_dir" && as_dir=.
1501 echo "PATH: $as_dir"
1517 # Keep a trace of the command line.
1518 # Strip out --no-create and --no-recursion so they do not pile up.
1519 # Strip out --silent because we don't want to record it for future runs.
1520 # Also quote any args containing shell meta-characters.
1521 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_must_keep_next=false
1531 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1533 | -silent | --silent | --silen | --sile | --sil)
1536 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1539 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1541 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1542 if test $ac_must_keep_next = true; then
1543 ac_must_keep_next=false # Got value, back to normal.
1546 *=* | --config-cache | -C | -disable-* | --disable-* \
1547 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1548 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1549 | -with-* | --with-* | -without-* | --without-* | --x)
1550 case "$ac_configure_args0 " in
1551 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1554 -* ) ac_must_keep_next=true ;;
1557 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1563 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1565 # When interrupted or exit'd, cleanup temporary files, and complete
1566 # config.log. We remove comments because anyway the quotes in there
1567 # would cause problems or look ugly.
1568 # WARNING: Use '\'' to represent an apostrophe within the trap.
1569 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1570 trap 'exit_status=$?
1571 # Save into config.log some information that might help in debugging.
1576 ## ---------------- ##
1577 ## Cache variables. ##
1578 ## ---------------- ##
1581 # The following way of writing the cache mishandles newlines in values,
1583 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1584 eval ac_val=\$$ac_var
1588 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1589 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1592 _ | IFS | as_nl) ;; #(
1593 *) $as_unset $ac_var ;;
1598 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1599 *${as_nl}ac_space=\ *)
1601 "s/'\''/'\''\\\\'\'''\''/g;
1602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1613 ## ----------------- ##
1614 ## Output variables. ##
1615 ## ----------------- ##
1618 for ac_var in $ac_subst_vars
1620 eval ac_val=\$$ac_var
1622 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1624 echo "$ac_var='\''$ac_val'\''"
1628 if test -n "$ac_subst_files"; then
1630 ## ------------------- ##
1631 ## File substitutions. ##
1632 ## ------------------- ##
1635 for ac_var in $ac_subst_files
1637 eval ac_val=\$$ac_var
1639 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1641 echo "$ac_var='\''$ac_val'\''"
1646 if test -s confdefs.h; then
1656 test "$ac_signal" != 0 &&
1657 echo "$as_me: caught signal $ac_signal"
1658 echo "$as_me: exit $exit_status"
1660 rm -f core *.core core.conftest.* &&
1661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1664 for ac_signal in 1 2 13 15; do
1665 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1670 rm -f -r conftest* confdefs.h
1672 # Predefined preprocessor variables.
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 # Let the site file select an alternate cache file if it wants to.
1700 # Prefer explicitly selected file to automatically selected ones.
1701 if test -n "$CONFIG_SITE"; then
1702 set x "$CONFIG_SITE"
1703 elif test "x$prefix" != xNONE; then
1704 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1706 set x "$ac_default_prefix/share/config.site" \
1707 "$ac_default_prefix/etc/config.site"
1712 if test -r "$ac_site_file"; then
1713 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1714 echo "$as_me: loading site script $ac_site_file" >&6;}
1715 sed 's/^/| /' "$ac_site_file" >&5
1720 if test -r "$cache_file"; then
1721 # Some versions of bash will fail to source /dev/null (special
1722 # files actually), so we avoid doing that.
1723 if test -f "$cache_file"; then
1724 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1725 echo "$as_me: loading cache $cache_file" >&6;}
1727 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1728 *) . "./$cache_file";;
1732 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1733 echo "$as_me: creating cache $cache_file" >&6;}
1737 # Check that the precious variables saved in the cache have kept the same
1739 ac_cache_corrupted=false
1740 for ac_var in $ac_precious_vars; do
1741 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1742 eval ac_new_set=\$ac_env_${ac_var}_set
1743 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1744 eval ac_new_val=\$ac_env_${ac_var}_value
1745 case $ac_old_set,$ac_new_set in
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1748 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1752 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1756 if test "x$ac_old_val" != "x$ac_new_val"; then
1757 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1758 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1759 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1760 echo "$as_me: former value
: $ac_old_val" >&2;}
1761 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1762 echo "$as_me: current value
: $ac_new_val" >&2;}
1763 ac_cache_corrupted=:
1766 # Pass precious variables to config.status.
1767 if test "$ac_new_set" = set; then
1769 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1770 *) ac_arg=$ac_var=$ac_new_val ;;
1772 case " $ac_configure_args " in
1773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1774 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1778 if $ac_cache_corrupted; then
1779 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1780 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1781 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1782 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1783 { (exit 1); exit 1; }; }
1811 ac_cpp='$CPP $CPPFLAGS'
1812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1818 ac_config_headers="$ac_config_headers pyconfig.h"
1822 if test "$prefix" != "/"; then
1823 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1831 # We don't use PACKAGE_ variables, and they cause conflicts
1832 # with other autoconf-based packages that include Python.h
1833 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1835 mv confdefs.h.new confdefs.h
1843 # The later defininition of _XOPEN_SOURCE disables certain features
1844 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1846 cat >>confdefs.h <<\_ACEOF
1847 #define _GNU_SOURCE 1
1851 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1852 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1855 cat >>confdefs.h <<\_ACEOF
1856 #define _NETBSD_SOURCE 1
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1864 cat >>confdefs.h <<\_ACEOF
1865 #define __BSD_VISIBLE 1
1869 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1870 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1872 cat >>confdefs.h <<\_ACEOF
1873 #define _BSD_TYPES 1
1877 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1878 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1881 cat >>confdefs.h <<\_ACEOF
1882 #define _DARWIN_C_SOURCE 1
1887 define_xopen_source=yes
1889 # Arguments passed to configure.
1891 CONFIG_ARGS="$ac_configure_args"
1893 # Check whether --enable-universalsdk was given.
1894 if test "${enable_universalsdk+set}" = set; then
1895 enableval=$enable_universalsdk;
1898 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1904 enable_universalsdk=
1907 UNIVERSALSDK=$enableval
1914 enable_universalsdk=
1922 UNIVERSAL_ARCHS="32-bit"
1924 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1925 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1927 # Check whether --with-universal-archs was given.
1928 if test "${with_universal_archs+set}" = set; then
1929 withval=$with_universal_archs;
1930 { echo "$as_me:$LINENO: result: $withval" >&5
1931 echo "${ECHO_T}$withval" >&6; }
1932 UNIVERSAL_ARCHS="$withval"
1933 if test "${enable_universalsdk}" ; then
1936 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1937 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1938 { (exit 1); exit 1; }; }
1943 { echo "$as_me:$LINENO: result: 32-bit" >&5
1944 echo "${ECHO_T}32-bit" >&6; }
1952 # Check whether --with-framework-name was given.
1953 if test "${with_framework_name+set}" = set; then
1954 withval=$with_framework_name;
1955 if test "${enable_framework}"; then
1958 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1959 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1960 { (exit 1); exit 1; }; }
1962 PYTHONFRAMEWORK=${withval}
1963 PYTHONFRAMEWORKDIR=${withval}.framework
1964 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1968 PYTHONFRAMEWORK=Python
1969 PYTHONFRAMEWORKDIR=Python.framework
1970 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1974 # Check whether --enable-framework was given.
1975 if test "${enable_framework+set}" = set; then
1976 enableval=$enable_framework;
1979 enableval=/Library/Frameworks
1984 PYTHONFRAMEWORKDIR=no-framework
1985 PYTHONFRAMEWORKPREFIX=
1986 PYTHONFRAMEWORKINSTALLDIR=
1987 FRAMEWORKINSTALLFIRST=
1988 FRAMEWORKINSTALLLAST=
1989 FRAMEWORKALTINSTALLFIRST=
1990 FRAMEWORKALTINSTALLLAST=
1991 if test "x${prefix}" = "xNONE"; then
1992 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1994 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1999 PYTHONFRAMEWORKPREFIX=$enableval
2000 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2001 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2002 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
2003 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2004 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}"
2059 ## AC_HELP_STRING(--with-dyld,
2060 ## Use (OpenStep|Rhapsody) dynamic linker))
2062 # Set name for machine-dependent library files
2064 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2065 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2066 if test -z "$MACHDEP"
2068 ac_sys_system=`uname
-s`
2069 if test "$ac_sys_system" = "AIX" \
2070 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2071 ac_sys_release=`uname
-v`
2073 ac_sys_release=`uname
-r`
2075 ac_md_system=`echo $ac_sys_system |
2076 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2077 ac_md_release=`echo $ac_sys_release |
2078 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2079 MACHDEP="$ac_md_system$ac_md_release"
2082 cygwin*) MACHDEP="cygwin";;
2083 darwin*) MACHDEP="darwin";;
2084 atheos*) MACHDEP="atheos";;
2085 irix646) MACHDEP="irix6";;
2086 '') MACHDEP="unknown";;
2090 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2091 # disable features if it is defined, without any means to access these
2092 # features as extensions. For these systems, we skip the definition of
2093 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2094 # some feature, make sure there is no alternative way to access this
2095 # feature. Also, when using wildcards, make sure you have verified the
2096 # need for not defining _XOPEN_SOURCE on all systems matching the
2097 # wildcard, and that the wildcard does not include future systems
2098 # (which may remove their limitations).
2099 case $ac_sys_system/$ac_sys_release in
2100 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2101 # even though select is a POSIX function. Reported by J. Ribbens.
2102 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2103 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2104 define_xopen_source=no
2105 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2106 # also defined. This can be overridden by defining _BSD_SOURCE
2107 # As this has a different meaning on Linux, only define it on OpenBSD
2109 cat >>confdefs.h <<\_ACEOF
2110 #define _BSD_SOURCE 1
2114 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2115 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2117 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2118 define_xopen_source=no;;
2119 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2120 # of union __?sigval. Reported by Stuart Bishop.
2122 define_xopen_source=no;;
2123 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2124 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2125 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2126 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2127 define_xopen_source=no;;
2128 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2129 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2131 define_xopen_source=no;;
2132 # On FreeBSD 4, the math functions C89 does not cover are never defined
2133 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2135 define_xopen_source=no;;
2136 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2137 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2138 # identifies itself as Darwin/7.*
2139 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2140 # disables platform specific features beyond repair.
2141 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2142 # has no effect, don't bother defining them
2144 define_xopen_source=no;;
2145 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2146 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2147 # or has another value. By not (re)defining it, the defaults come in place.
2149 define_xopen_source=no;;
2151 if test `uname
-r` -eq 1; then
2152 define_xopen_source=no
2155 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2156 # defining NI_NUMERICHOST.
2158 define_xopen_source=no
2163 if test $define_xopen_source = yes
2165 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2166 # defined precisely as g++ defines it
2167 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2169 case $ac_sys_system/$ac_sys_release in
2170 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2172 cat >>confdefs.h <<\_ACEOF
2173 #define _XOPEN_SOURCE 500
2179 cat >>confdefs.h <<\_ACEOF
2180 #define _XOPEN_SOURCE 600
2186 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2187 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2188 # several APIs are not declared. Since this is also needed in some
2189 # cases for HP-UX, we define it globally.
2190 # except for Solaris 10, where it must not be defined,
2191 # as it implies XPG4.2
2192 case $ac_sys_system/$ac_sys_release in
2197 cat >>confdefs.h <<\_ACEOF
2198 #define _XOPEN_SOURCE_EXTENDED 1
2205 cat >>confdefs.h <<\_ACEOF
2206 #define _POSIX_C_SOURCE 200112L
2213 # SGI compilers allow the specification of the both the ABI and the
2214 # ISA on the command line. Depending on the values of these switches,
2215 # different and often incompatable code will be generated.
2217 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2218 # thus supply support for various ABI/ISA combinations. The MACHDEP
2219 # variable is also adjusted.
2222 if test ! -z "$SGI_ABI"
2225 LDFLAGS="$SGI_ABI $LDFLAGS"
2226 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2228 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2229 echo "${ECHO_T}$MACHDEP" >&6; }
2231 # And add extra plat-mac for darwin
2234 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2235 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2236 if test -z "$EXTRAPLATDIR"
2240 EXTRAPLATDIR="\$(PLATMACDIRS)"
2241 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2249 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2250 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2252 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2253 # it may influence the way we can build extensions, so distutils
2257 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2258 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2260 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2261 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2262 ac_sys_machine=`uname
-m`
2263 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2264 echo "${ECHO_T}$ac_sys_machine" >&6; }
2266 # checks for alternative programs
2268 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2269 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2270 # just to get things to compile and link. Users are free to override OPT
2271 # when running configure or make. The build should not break if they do.
2272 # BASECFLAGS should generally not be messed with, however.
2274 # XXX shouldn't some/most/all of this code be merged with the stuff later
2275 # on that fiddles with OPT and BASECFLAGS?
2276 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2277 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2279 # Check whether --with-gcc was given.
2280 if test "${with_gcc+set}" = set; then
2288 without_gcc=$withval;;
2292 case $ac_sys_system in
2296 case $BE_HOST_CPU in
2300 BASECFLAGS="$BASECFLAGS -export pragma"
2302 LDFLAGS="$LDFLAGS -nodup"
2310 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2311 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2312 { (exit 1); exit 1; }; }
2315 AR="\$(srcdir)/Modules/ar_beos"
2322 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2323 echo "${ECHO_T}$without_gcc" >&6; }
2325 # If the user switches compilers, we can't believe the cache
2326 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2328 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2329 (it is also a good idea to do 'make clean' before compiling)" >&5
2330 echo "$as_me: error: cached CC is different -- throw away $cache_file
2331 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2332 { (exit 1); exit 1; }; }
2336 ac_cpp='$CPP $CPPFLAGS'
2337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2340 if test -n "$ac_tool_prefix"; then
2341 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2342 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC="$CC" # Let the user override the test.
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 if test -n "$CC"; then
2370 { echo "$as_me:$LINENO: result: $CC" >&5
2371 echo "${ECHO_T}$CC" >&6; }
2373 { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2379 if test -z "$ac_cv_prog_CC"; then
2381 # Extract the first word of "gcc", so it can be a program name with args.
2382 set dummy gcc; ac_word=$2
2383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 if test -n "$ac_ct_CC"; then
2389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398 ac_cv_prog_ac_ct_CC="gcc"
2399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409 if test -n "$ac_ct_CC"; then
2410 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411 echo "${ECHO_T}$ac_ct_CC" >&6; }
2413 { echo "$as_me:$LINENO: result: no" >&5
2414 echo "${ECHO_T}no" >&6; }
2417 if test "x$ac_ct_CC" = x; then
2420 case $cross_compiling:$ac_tool_warned in
2422 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2423 whose name does not start with the host triplet. If you think this
2424 configuration is useful to you, please write to autoconf@gnu.org." >&5
2425 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2428 ac_tool_warned=yes ;;
2436 if test -z "$CC"; then
2437 if test -n "$ac_tool_prefix"; then
2438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}cc; ac_word=$2
2440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_CC="${ac_tool_prefix}cc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 if test -n "$CC"; then
2467 { echo "$as_me:$LINENO: result: $CC" >&5
2468 echo "${ECHO_T}$CC" >&6; }
2470 { echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6; }
2477 if test -z "$CC"; then
2478 # Extract the first word of "cc", so it can be a program name with args.
2479 set dummy cc; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir=.
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2497 ac_prog_rejected=yes
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 if test $ac_prog_rejected = yes; then
2509 # We found a bogon in the path, so make sure we never use it.
2510 set dummy $ac_cv_prog_CC
2512 if test $# != 0; then
2513 # We chose a different compiler from the bogus one.
2514 # However, it has the same basename, so the bogon will be chosen
2515 # first if we set CC to just the basename; use the full file name.
2517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2523 if test -n "$CC"; then
2524 { echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6; }
2527 { echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6; }
2533 if test -z "$CC"; then
2534 if test -n "$ac_tool_prefix"; then
2535 for ac_prog in cl.exe
2537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 if test -n "$CC"; then
2566 { echo "$as_me:$LINENO: result: $CC" >&5
2567 echo "${ECHO_T}$CC" >&6; }
2569 { echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6; }
2574 test -n "$CC" && break
2577 if test -z "$CC"; then
2579 for ac_prog in cl.exe
2581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy $ac_prog; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if test -n "$ac_ct_CC"; then
2589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_ac_ct_CC="$ac_prog"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609 if test -n "$ac_ct_CC"; then
2610 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611 echo "${ECHO_T}$ac_ct_CC" >&6; }
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2618 test -n "$ac_ct_CC" && break
2621 if test "x$ac_ct_CC" = x; then
2624 case $cross_compiling:$ac_tool_warned in
2626 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet. If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&5
2629 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2630 whose name does not start with the host triplet. If you think this
2631 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2632 ac_tool_warned=yes ;;
2641 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2642 See \`config.log
' for more details." >&5
2643 echo "$as_me: error: no acceptable C compiler found in \$PATH
2644 See \`config.log' for more details.
" >&2;}
2645 { (exit 1); exit 1; }; }
2647 # Provide some information about the compiler.
2648 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2649 ac_compiler=`set X $ac_compile; echo $2`
2650 { (ac_try="$ac_compiler --version >&5"
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compiler --version >&5") 2>&5
2658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2659 (exit $ac_status); }
2660 { (ac_try="$ac_compiler -v >&5"
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2666 (eval "$ac_compiler -v >&5") 2>&5
2668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2669 (exit $ac_status); }
2670 { (ac_try="$ac_compiler -V >&5"
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2676 (eval "$ac_compiler -V >&5") 2>&5
2678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2679 (exit $ac_status); }
2681 cat >conftest.$ac_ext <<_ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h. */
2696 ac_clean_files_save=$ac_clean_files
2697 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2698 # Try to create an executable without -o first, disregard a.out.
2699 # It will help us diagnose broken compilers, and finding out an intuition
2701 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2702 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2703 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2705 # List of possible output files, starting from the most likely.
2706 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2707 # only as a last resort. b.out is created by i960 compilers.
2708 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2710 # The IRIX 6 linker writes into existing files which may not be
2711 # executable, retaining their permissions. Remove them first so a
2712 # subsequent execution test works.
2714 for ac_file in $ac_files
2717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2718 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2723 if { (ac_try="$ac_link_default"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_link_default") 2>&5
2731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2732 (exit $ac_status); }; then
2733 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2734 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2735 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2736 # so that the user can short-circuit this test for compilers unknown to
2738 for ac_file in $ac_files ''
2740 test -f "$ac_file" || continue
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2745 # We found the default executable, but exeext='' is most
2749 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2751 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2753 # We set ac_cv_exeext here because the later test for it is not
2754 # safe: cross compilers may not add the suffix if given an `-o'
2755 # argument, so we may need to know it at that point already.
2756 # Even if this section looks crufty: it has the advantage of
2763 test "$ac_cv_exeext" = no && ac_cv_exeext=
2769 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2770 echo "${ECHO_T}$ac_file" >&6; }
2771 if test -z "$ac_file"; then
2772 echo "$as_me: failed program was
:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2776 See \
`config.log' for more details." >&5
2777 echo "$as_me: error: C compiler cannot create executables
2778 See \`config.log
' for more details." >&2;}
2779 { (exit 77); exit 77; }; }
2782 ac_exeext=$ac_cv_exeext
2784 # Check that the compiler produces executables we can run. If not, either
2785 # the compiler is broken, or we cross compile.
2786 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2787 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2788 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2789 # If not cross compiling, check that we can run a simple program.
2790 if test "$cross_compiling" != yes; then
2791 if { ac_try='.
/$ac_file'
2792 { (case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_try") 2>&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2803 if test "$cross_compiling" = maybe; then
2806 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2807 If you meant to cross compile, use \`--host'.
2808 See \
`config.log' for more details." >&5
2809 echo "$as_me: error: cannot run C compiled programs.
2810 If you meant to cross compile, use \`--host'.
2811 See \`config.log' for more details.
" >&2;}
2812 { (exit 1); exit 1; }; }
2816 { echo "$as_me:$LINENO: result
: yes" >&5
2817 echo "${ECHO_T}yes" >&6; }
2819 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2820 ac_clean_files=$ac_clean_files_save
2821 # Check that the compiler produces executables we can run. If not, either
2822 # the compiler is broken, or we cross compile.
2823 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2824 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2825 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2826 echo "${ECHO_T}$cross_compiling" >&6; }
2828 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2829 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2830 if { (ac_try="$ac_link"
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_link") 2>&5
2838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2839 (exit $ac_status); }; then
2840 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2841 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2842 # work properly (i.e., refer to `conftest.exe'), while it won't with
2844 for ac_file in conftest.exe conftest conftest.*; do
2845 test -f "$ac_file" || continue
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2854 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2855 See \
`config.log' for more details." >&5
2856 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2857 See \`config.log
' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2861 rm -f conftest$ac_cv_exeext
2862 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2863 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2865 rm -f conftest.$ac_ext
2866 EXEEXT=$ac_cv_exeext
2868 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2869 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2870 if test "${ac_cv_objext+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 cat >conftest.$ac_ext <<_ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2888 rm -f conftest.o conftest.obj
2889 if { (ac_try="$ac_compile"
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compile") 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 for ac_file in conftest.o conftest.obj conftest.*; do
2900 test -f "$ac_file" || continue;
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2903 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2908 echo "$as_me: failed program was:" >&5
2909 sed 's
/^
/|
/' conftest.$ac_ext >&5
2911 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2912 See \`config.log' for more details.
" >&5
2913 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2914 See \
`config.log' for more details." >&2;}
2915 { (exit 1); exit 1; }; }
2918 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2920 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2921 echo "${ECHO_T}$ac_cv_objext" >&6; }
2922 OBJEXT=$ac_cv_objext
2924 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2925 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2926 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2947 rm -f conftest.$ac_objext
2948 if { (ac_try="$ac_compile"
2950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2951 *) ac_try_echo
=$ac_try;;
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>conftest.er1
2956 grep -v '^ *+' conftest.er1
>conftest.err
2958 cat conftest.err
>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } && {
2961 test -z "$ac_c_werror_flag" ||
2962 test ! -s conftest.err
2963 } && test -s conftest.
$ac_objext; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.
$ac_ext >&5
2972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2973 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2976 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2978 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CFLAGS
=${CFLAGS+set}
2980 ac_save_CFLAGS
=$CFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2982 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_save_c_werror_flag
=$ac_c_werror_flag
2987 ac_c_werror_flag
=yes
2990 cat >conftest.
$ac_ext <<_ACEOF
2993 cat confdefs.h
>>conftest.
$ac_ext
2994 cat >>conftest.
$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
3005 rm -f conftest.
$ac_objext
3006 if { (ac_try
="$ac_compile"
3008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3014 grep -v '^ *+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } && {
3019 test -z "$ac_c_werror_flag" ||
3020 test ! -s conftest.err
3021 } && test -s conftest.$ac_objext; then
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3047 *) ac_try_echo
=$ac_try;;
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compile") 2>conftest.er1
3052 grep -v '^ *+' conftest.er1
>conftest.err
3054 cat conftest.err
>&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); } && {
3057 test -z "$ac_c_werror_flag" ||
3058 test ! -s conftest.err
3059 } && test -s conftest.
$ac_objext; then
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.
$ac_ext >&5
3065 ac_c_werror_flag
=$ac_save_c_werror_flag
3067 cat >conftest.
$ac_ext <<_ACEOF
3070 cat confdefs.h
>>conftest.
$ac_ext
3071 cat >>conftest.
$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3082 rm -f conftest.
$ac_objext
3083 if { (ac_try
="$ac_compile"
3085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } && {
3096 test -z "$ac_c_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest.$ac_objext; then
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 ac_c_werror_flag=$ac_save_c_werror_flag
3116 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3117 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3118 if test "$ac_test_CFLAGS" = set; then
3119 CFLAGS=$ac_save_CFLAGS
3120 elif test $ac_cv_prog_cc_g = yes; then
3121 if test "$GCC" = yes; then
3127 if test "$GCC" = yes; then
3133 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3134 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_cc_c89+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 ac_cv_prog_cc_c89=no
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3148 #include <sys/types.h>
3149 #include <sys/stat.h>
3150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3151 struct buf { int x; };
3152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3153 static char *e (p, i)
3159 static char *f (char * (*g) (char **, int), char **p, ...)
3164 s = g (p, va_arg (v,int));
3169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3170 function prototypes and stuff, but not '\xHH' hex character constants.
3171 These don't provoke an error unfortunately, instead are silently treated
3172 as 'x'. The following induces an error, until -std is added to get
3173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3174 array size at least. It's necessary to write '\x00'==0 to get something
3175 that's true only with -std. */
3176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3179 inside strings and character constants. */
3181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3183 int test (int i, double x);
3184 struct s1 {int (*f) (int a);};
3185 struct s2 {int (*f) (double a);};
3186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3200 CC="$ac_save_CC $ac_arg"
3201 rm -f conftest.$ac_objext
3202 if { (ac_try="$ac_compile"
3204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3205 *) ac_try_echo
=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3210 grep -v '^ *+' conftest.er1
>conftest.err
3212 cat conftest.err
>&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && {
3215 test -z "$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3217 } && test -s conftest.
$ac_objext; then
3218 ac_cv_prog_cc_c89
=$ac_arg
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.
$ac_ext >&5
3226 rm -f core conftest.err conftest.
$ac_objext
3227 test "x$ac_cv_prog_cc_c89" != "xno" && break
3229 rm -f conftest.
$ac_ext
3234 case "x$ac_cv_prog_cc_c89" in
3236 { echo "$as_me:$LINENO: result: none needed" >&5
3237 echo "${ECHO_T}none needed" >&6; } ;;
3239 { echo "$as_me:$LINENO: result: unsupported" >&5
3240 echo "${ECHO_T}unsupported" >&6; } ;;
3242 CC
="$CC $ac_cv_prog_cc_c89"
3243 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3244 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3249 ac_cpp
='$CPP $CPPFLAGS'
3250 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3257 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3258 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3260 # Check whether --with-cxx_main was given.
3261 if test "${with_cxx_main+set}" = set; then
3262 withval
=$with_cxx_main;
3265 no
) with_cxx_main
=no
3267 yes) with_cxx_main
=yes
3269 *) with_cxx_main
=yes
3283 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3284 echo "${ECHO_T}$with_cxx_main" >&6; }
3290 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3291 set dummy g
++; ac_word
=$2
3292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3294 if test "${ac_cv_path_CXX+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3303 for as_dir
in notfound
3306 test -z "$as_dir" && as_dir
=.
3307 for ac_exec_ext
in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3322 if test -n "$CXX"; then
3323 { echo "$as_me:$LINENO: result: $CXX" >&5
3324 echo "${ECHO_T}$CXX" >&6; }
3326 { echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6; }
3331 cc
) # Extract the first word of "c++", so it can be a program name with args.
3332 set dummy c
++; ac_word
=$2
3333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3335 if test "${ac_cv_path_CXX+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3344 for as_dir
in notfound
3347 test -z "$as_dir" && as_dir
=.
3348 for ac_exec_ext
in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3363 if test -n "$CXX"; then
3364 { echo "$as_me:$LINENO: result: $CXX" >&5
3365 echo "${ECHO_T}$CXX" >&6; }
3367 { echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6; }
3373 if test "$CXX" = "notfound"
3380 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3382 # Extract the first word of "$ac_prog", so it can be a program name with args.
3383 set dummy
$ac_prog; ac_word
=$2
3384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3386 if test "${ac_cv_prog_CXX+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 if test -n "$CXX"; then
3390 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir
=.
3397 for ac_exec_ext
in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_CXX
="$ac_prog"
3400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 if test -n "$CXX"; then
3411 { echo "$as_me:$LINENO: result: $CXX" >&5
3412 echo "${ECHO_T}$CXX" >&6; }
3414 { echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6; }
3419 test -n "$CXX" && break
3421 test -n "$CXX" || CXX
="notfound"
3423 if test "$CXX" = "notfound"
3428 if test "$preset_cxx" != "$CXX"
3430 { echo "$as_me:$LINENO: WARNING:
3432 By default, distutils will build C++ extension modules with \"$CXX\".
3433 If this is not intended, then set CXX on the configure command line.
3435 echo "$as_me: 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.
3443 # checks for UNIX variants that set C preprocessor variables
3446 ac_cpp
='$CPP $CPPFLAGS'
3447 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3450 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3451 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3452 # On Suns, sometimes $CPP names a directory.
3453 if test -n "$CPP" && test -d "$CPP"; then
3456 if test -z "$CPP"; then
3457 if test "${ac_cv_prog_CPP+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 # Double quotes because CPP needs to be expanded
3461 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3464 for ac_c_preproc_warn_flag
in '' yes
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat >conftest.
$ac_ext <<_ACEOF
3475 cat confdefs.h
>>conftest.
$ac_ext
3476 cat >>conftest.
$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3479 # include <limits.h>
3481 # include <assert.h>
3485 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3493 grep -v '^ *+' conftest.er1 >conftest.err
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } >/dev/null && {
3498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Broken: fails on valid input.
3510 rm -f conftest.err conftest.$ac_ext
3512 # OK, works on sane cases. Now check whether nonexistent headers
3513 # can be detected and how.
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3522 if { (ac_try="$ac_cpp conftest.$ac_ext"
3524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3525 *) ac_try_echo
=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3530 grep -v '^ *+' conftest.er1
>conftest.err
3532 cat conftest.err
>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev
/null
&& {
3535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3538 # Broken: success on invalid input.
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.
$ac_ext >&5
3544 # Passes both tests.
3549 rm -f conftest.err conftest.
$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.
$ac_ext
3554 if $ac_preproc_ok; then
3566 { echo "$as_me:$LINENO: result: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3569 for ac_c_preproc_warn_flag
in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error" is here to catch this case.
3577 cat >conftest.
$ac_ext <<_ACEOF
3580 cat confdefs.h
>>conftest.
$ac_ext
3581 cat >>conftest.
$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3584 # include <limits.h>
3586 # include <assert.h>
3590 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null && {
3603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3604 test ! -s conftest.err
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3611 # Broken: fails on valid input.
3615 rm -f conftest.err conftest.$ac_ext
3617 # OK, works on sane cases. Now check whether nonexistent headers
3618 # can be detected and how.
3619 cat >conftest.$ac_ext <<_ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3625 #include <ac_nonexistent.h>
3627 if { (ac_try="$ac_cpp conftest.$ac_ext"
3629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3630 *) ac_try_echo
=$ac_try;;
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3635 grep -v '^ *+' conftest.er1
>conftest.err
3637 cat conftest.err
>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } >/dev
/null
&& {
3640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3643 # Broken: success on invalid input.
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.
$ac_ext >&5
3649 # Passes both tests.
3654 rm -f conftest.err conftest.
$ac_ext
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.err conftest.
$ac_ext
3659 if $ac_preproc_ok; then
3662 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details." >&5
3664 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3665 See \`config.log' for more details." >&2;}
3666 { (exit 1); exit 1; }; }
3670 ac_cpp
='$CPP $CPPFLAGS'
3671 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3676 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3677 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 # Extract the first word of "grep ggrep" to use in msg output
3682 if test -z "$GREP"; then
3683 set dummy
grep ggrep
; ac_prog_name
=$2
3684 if test "${ac_cv_path_GREP+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 ac_path_GREP_found
=false
3688 # Loop through the user's path and test for each of PROGNAME-LIST
3689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3690 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3693 test -z "$as_dir" && as_dir
=.
3694 for ac_prog
in grep ggrep
; do
3695 for ac_exec_ext
in '' $ac_executable_extensions; do
3696 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3697 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3698 # Check for GNU ac_path_GREP and select it if it is found.
3699 # Check for GNU $ac_path_GREP
3700 case `"$ac_path_GREP" --version 2>&1` in
3702 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3705 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3708 cat "conftest.in" "conftest.in" >"conftest.tmp"
3709 mv "conftest.tmp" "conftest.in"
3710 cp "conftest.in" "conftest.nl"
3711 echo 'GREP' >> "conftest.nl"
3712 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3713 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3714 ac_count
=`expr $ac_count + 1`
3715 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3716 # Best one so far, save it but keep looking for a better one
3717 ac_cv_path_GREP
="$ac_path_GREP"
3718 ac_path_GREP_max
=$ac_count
3720 # 10*(2^10) chars as input seems more than enough
3721 test $ac_count -gt 10 && break
3723 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3727 $ac_path_GREP_found && break 3
3737 GREP
="$ac_cv_path_GREP"
3738 if test -z "$GREP"; then
3739 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3740 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3741 { (exit 1); exit 1; }; }
3745 ac_cv_path_GREP
=$GREP
3750 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3751 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3752 GREP
="$ac_cv_path_GREP"
3755 { echo "$as_me:$LINENO: checking for egrep" >&5
3756 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3757 if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3761 then ac_cv_path_EGREP
="$GREP -E"
3763 # Extract the first word of "egrep" to use in msg output
3764 if test -z "$EGREP"; then
3765 set dummy
egrep; ac_prog_name
=$2
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 ac_path_EGREP_found
=false
3770 # Loop through the user's path and test for each of PROGNAME-LIST
3771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3772 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3775 test -z "$as_dir" && as_dir
=.
3776 for ac_prog
in egrep; do
3777 for ac_exec_ext
in '' $ac_executable_extensions; do
3778 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3779 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3780 # Check for GNU ac_path_EGREP and select it if it is found.
3781 # Check for GNU $ac_path_EGREP
3782 case `"$ac_path_EGREP" --version 2>&1` in
3784 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3787 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 echo 'EGREP' >> "conftest.nl"
3794 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3795 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3796 ac_count
=`expr $ac_count + 1`
3797 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_EGREP
="$ac_path_EGREP"
3800 ac_path_EGREP_max
=$ac_count
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3805 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3809 $ac_path_EGREP_found && break 3
3819 EGREP
="$ac_cv_path_EGREP"
3820 if test -z "$EGREP"; then
3821 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3822 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3823 { (exit 1); exit 1; }; }
3827 ac_cv_path_EGREP
=$EGREP
3833 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3834 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3835 EGREP
="$ac_cv_path_EGREP"
3839 { echo "$as_me:$LINENO: checking for AIX" >&5
3840 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3841 cat >conftest.
$ac_ext <<_ACEOF
3844 cat confdefs.h
>>conftest.
$ac_ext
3845 cat >>conftest.
$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "yes" >/dev
/null
2>&1; then
3854 { echo "$as_me:$LINENO: result: yes" >&5
3855 echo "${ECHO_T}yes" >&6; }
3856 cat >>confdefs.h
<<\_ACEOF
3857 #define _ALL_SOURCE 1
3861 { echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6; }
3868 # Check for unsupported systems
3869 case $ac_sys_system/$ac_sys_release in
3871 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3872 echo See README
for details.
3877 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3878 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3880 # Check whether --with-suffix was given.
3881 if test "${with_suffix+set}" = set; then
3882 withval
=$with_suffix;
3886 *) EXEEXT
=$withval;;
3890 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3891 echo "${ECHO_T}$EXEEXT" >&6; }
3893 # Test whether we're running on a non-case-sensitive system, in which
3894 # case we give a warning if no ext is given
3896 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3897 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3898 if test ! -d CaseSensitiveTestDir
; then
3899 mkdir CaseSensitiveTestDir
3902 if test -d casesensitivetestdir
3904 { echo "$as_me:$LINENO: result: yes" >&5
3905 echo "${ECHO_T}yes" >&6; }
3908 { echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6; }
3912 rmdir CaseSensitiveTestDir
3917 gcc
) CC
="$CC -D_HAVE_BSDI";;
3921 case $ac_sys_system in
3924 cc|
*/cc
) CC
="$CC -Ae";;
3927 # Some functions have a prototype only with that define, e.g. confstr
3929 cat >>confdefs.h
<<\_ACEOF
3930 #define __EXTENSIONS__ 1
3938 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3939 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3940 if test -z "$LIBRARY"
3942 LIBRARY
='libpython$(VERSION).a'
3944 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3945 echo "${ECHO_T}$LIBRARY" >&6; }
3947 # LDLIBRARY is the name of the library to link against (as opposed to the
3948 # name of the library into which to insert object files). BLDLIBRARY is also
3949 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3950 # is blank as the main program is not linked directly against LDLIBRARY.
3951 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3952 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3953 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3954 # DLLLIBRARY is the shared (i.e., DLL) library.
3956 # RUNSHARED is used to run shared python without installed libraries
3958 # INSTSONAME is the name of the shared library that will be use to install
3959 # on the system - some systems like version suffix, others don't
3966 LDLIBRARY
="$LIBRARY"
3967 BLDLIBRARY
='$(LDLIBRARY)'
3968 INSTSONAME
='$(LDLIBRARY)'
3973 # LINKCC is the command that links the python executable -- default is $(CC).
3974 # If CXX is set, and if it is needed to link a main function that was
3975 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3976 # python might then depend on the C++ runtime
3977 # This is altered for AIX in order to build the export list before
3980 { echo "$as_me:$LINENO: checking LINKCC" >&5
3981 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3982 if test -z "$LINKCC"
3984 LINKCC
='$(PURIFY) $(MAINCC)'
3985 case $ac_sys_system in
3988 if test $ac_sys_release -ge 5 -o \
3989 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3992 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3994 # qcc must be used because the other compilers do not
3999 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4000 echo "${ECHO_T}$LINKCC" >&6; }
4002 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4003 # make sure we default having it set to "no": this is used by
4004 # distutils.unixccompiler to know if it should add --enable-new-dtags
4005 # to linker command lines, and failing to detect GNU ld simply results
4006 # in the same bahaviour as before.
4008 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4009 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4011 if test "$GCC" = yes; then
4012 ac_prog
=`$CC -print-prog-name=ld`
4014 case `"$ac_prog" -V 2>&1 < /dev/null` in
4020 { echo "$as_me:$LINENO: result: $GNULD" >&5
4021 echo "${ECHO_T}$GNULD" >&6; }
4023 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4024 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4025 # Check whether --enable-shared was given.
4026 if test "${enable_shared+set}" = set; then
4027 enableval
=$enable_shared;
4031 if test -z "$enable_shared"
4033 case $ac_sys_system in
4035 enable_shared
="yes";;
4037 enable_shared
="no";;
4040 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4041 echo "${ECHO_T}$enable_shared" >&6; }
4043 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4044 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4045 # Check whether --enable-profiling was given.
4046 if test "${enable_profiling+set}" = set; then
4047 enableval
=$enable_profiling; ac_save_cc
="$CC"
4049 if test "$cross_compiling" = yes; then
4050 ac_enable_profiling
="no"
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 int main() { return 0; }
4060 rm -f conftest
$ac_exeext
4061 if { (ac_try
="$ac_link"
4063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_link") 2>&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4071 { (case "(($ac_try" in
4072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4073 *) ac_try_echo
=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_try") 2>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_enable_profiling
="yes"
4082 echo "$as_me: program exited with status $ac_status" >&5
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.
$ac_ext >&5
4087 ac_enable_profiling
="no"
4089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4096 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4097 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4099 case "$ac_enable_profiling" in
4101 BASECFLAGS
="-pg $BASECFLAGS"
4102 LDFLAGS
="-pg $LDFLAGS"
4106 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4107 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4109 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4110 # library that we build, but we do not want to link against it (we
4111 # will find it with a -framework option). For this reason there is an
4112 # extra variable BLDLIBRARY against which Python and the extension
4113 # modules are linked, BLDLIBRARY. This is normally the same as
4114 # LDLIBRARY, but empty for MacOSX framework builds.
4115 if test "$enable_framework"
4117 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4118 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4121 BLDLIBRARY
='$(LDLIBRARY)'
4124 # Other platforms follow
4125 if test $enable_shared = "yes"; then
4127 cat >>confdefs.h
<<\_ACEOF
4128 #define Py_ENABLE_SHARED 1
4131 case $ac_sys_system in
4133 LDLIBRARY
='libpython$(VERSION).so'
4136 LDLIBRARY
='libpython$(VERSION).dll.a'
4137 DLLLIBRARY
='libpython$(VERSION).dll'
4140 LDLIBRARY
='libpython$(VERSION).so'
4141 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4142 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4143 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4145 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4146 LDLIBRARY
='libpython$(VERSION).so'
4147 BLDLIBRARY
='-L. -lpython$(VERSION)'
4148 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4149 case $ac_sys_system in
4151 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4154 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4159 LDLIBRARY
='libpython$(VERSION).so'
4162 LDLIBRARY
='libpython$(VERSION).sl'
4165 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4166 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4169 LDLIBRARY
='libpython$(VERSION).so'
4170 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4171 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4174 LDLIBRARY
='libpython$(VERSION).so'
4175 BLDLIBRARY
='-L. -lpython$(VERSION)'
4176 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4179 LDLIBRARY
='libpython$(VERSION).dylib'
4180 BLDLIBRARY
='-L. -lpython$(VERSION)'
4181 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4185 else # shared is disabled
4186 case $ac_sys_system in
4188 BLDLIBRARY
='$(LIBRARY)'
4189 LDLIBRARY
='libpython$(VERSION).dll.a'
4194 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4195 echo "${ECHO_T}$LDLIBRARY" >&6; }
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4199 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$RANLIB"; then
4206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir
=.
4213 for ac_exec_ext
in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 RANLIB
=$ac_cv_prog_RANLIB
4226 if test -n "$RANLIB"; then
4227 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4228 echo "${ECHO_T}$RANLIB" >&6; }
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4236 if test -z "$ac_cv_prog_RANLIB"; then
4237 ac_ct_RANLIB
=$RANLIB
4238 # Extract the first word of "ranlib", so it can be a program name with args.
4239 set dummy ranlib
; ac_word
=$2
4240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if test -n "$ac_ct_RANLIB"; then
4246 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4266 if test -n "$ac_ct_RANLIB"; then
4267 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4268 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4270 { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4274 if test "x$ac_ct_RANLIB" = x
; then
4277 case $cross_compiling:$ac_tool_warned in
4279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4280 whose name does not start with the host triplet. If you think this
4281 configuration is useful to you, please write to autoconf@gnu.org." >&5
4282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4283 whose name does not start with the host triplet. If you think this
4284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4285 ac_tool_warned
=yes ;;
4287 RANLIB
=$ac_ct_RANLIB
4290 RANLIB
="$ac_cv_prog_RANLIB"
4294 for ac_prog
in ar aal
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy
$ac_prog; ac_word
=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_AR+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$AR"; then
4304 ac_cv_prog_AR
="$AR" # Let the user override the test.
4306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir
=.
4311 for ac_exec_ext
in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_AR
="$ac_prog"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 if test -n "$AR"; then
4325 { echo "$as_me:$LINENO: result: $AR" >&5
4326 echo "${ECHO_T}$AR" >&6; }
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4333 test -n "$AR" && break
4335 test -n "$AR" || AR
="ar"
4338 # tweak ARFLAGS only if the user didn't set it on the command line
4340 if test -z "$ARFLAGS"
4346 # Extract the first word of "svnversion", so it can be a program name with args.
4347 set dummy svnversion
; ac_word
=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 if test -n "$SVNVERSION"; then
4354 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4360 test -z "$as_dir" && as_dir
=.
4361 for ac_exec_ext
in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_SVNVERSION
="found"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4374 SVNVERSION
=$ac_cv_prog_SVNVERSION
4375 if test -n "$SVNVERSION"; then
4376 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4377 echo "${ECHO_T}$SVNVERSION" >&6; }
4379 { echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6; }
4384 if test $SVNVERSION = found
4386 SVNVERSION
="svnversion \$(srcdir)"
4388 SVNVERSION
="echo Unversioned directory"
4393 # install -d does not work on BSDI or HP-UX
4394 if test -z "$INSTALL"
4396 INSTALL
="${srcdir}/install-sh -c"
4400 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4401 if test -f "$ac_dir/install-sh"; then
4403 ac_install_sh
="$ac_aux_dir/install-sh -c"
4405 elif test -f "$ac_dir/install.sh"; then
4407 ac_install_sh
="$ac_aux_dir/install.sh -c"
4409 elif test -f "$ac_dir/shtool"; then
4411 ac_install_sh
="$ac_aux_dir/shtool install -c"
4415 if test -z "$ac_aux_dir"; then
4416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4417 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4418 { (exit 1); exit 1; }; }
4421 # These three variables are undocumented and unsupported,
4422 # and are intended to be withdrawn in a future Autoconf release.
4423 # They can cause serious problems if a builder's source tree is in a directory
4424 # whose full name contains unusual characters.
4425 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4426 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4427 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4430 # Find a good install program. We prefer a C program (faster),
4431 # so one script is as good as another. But avoid the broken or
4432 # incompatible versions:
4433 # SysV /etc/install, /usr/sbin/install
4434 # SunOS /usr/etc/install
4435 # IRIX /sbin/install
4437 # AmigaOS /C/install, which installs bootblocks on floppy discs
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # OS/2's system install, which has a completely different semantic
4442 # ./install, which can be erroneously created by make from ./install.sh.
4443 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4444 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4445 if test -z "$INSTALL"; then
4446 if test "${ac_cv_path_install+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir
=.
4454 # Account for people who put trailing slashes in PATH elements.
4456 .
/ | .
// |
/cC
/* | \
4457 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4458 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4461 # OSF1 and SCO ODT 3.0 have their own names for install.
4462 # Don't use installbsd from OSF since it installs stuff as root
4464 for ac_prog
in ginstall scoinst
install; do
4465 for ac_exec_ext
in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4467 if test $ac_prog = install &&
4468 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4469 # AIX install. It has an incompatible calling convention.
4471 elif test $ac_prog = install &&
4472 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4473 # program-specific install script used by HP pwplus--don't use.
4476 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4489 if test "${ac_cv_path_install+set}" = set; then
4490 INSTALL
=$ac_cv_path_install
4492 # As a last resort, use the slow shell script. Don't cache a
4493 # value for INSTALL within a source directory, because that will
4494 # break other packages using the cache if that directory is
4495 # removed, or if the value is a relative name.
4496 INSTALL
=$ac_install_sh
4499 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4500 echo "${ECHO_T}$INSTALL" >&6; }
4502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4503 # It thinks the first close brace ends the variable substitution.
4504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4508 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4511 # Not every filesystem supports hard links
4513 if test -z "$LN" ; then
4514 case $ac_sys_system in
4516 CYGWIN
*) LN
="ln -s";;
4517 atheos
*) LN
="ln -s";;
4522 # Check for --with-pydebug
4523 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4524 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4526 # Check whether --with-pydebug was given.
4527 if test "${with_pydebug+set}" = set; then
4528 withval
=$with_pydebug;
4529 if test "$withval" != no
4532 cat >>confdefs.h
<<\_ACEOF
4536 { echo "$as_me:$LINENO: result: yes" >&5
4537 echo "${ECHO_T}yes" >&6; };
4539 else { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4543 { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4548 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4549 # merged with this chunk of code?
4551 # Optimizer/debugger flags
4552 # ------------------------
4553 # (The following bit of code is complicated enough - please keep things
4554 # indented properly. Just pretend you're editing Python code. ;-)
4556 # There are two parallel sets of case statements below, one that checks to
4557 # see if OPT was set and one that does BASECFLAGS setting based upon
4558 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4561 # tweak OPT based on compiler and platform, only if the user didn't set
4562 # it on the command line
4568 if test "$CC" != 'g++' ; then
4569 STRICT_PROTO
="-Wstrict-prototypes"
4571 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4572 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4575 case $ac_cv_prog_cc_g in
4577 if test "$Py_DEBUG" = 'true' ; then
4578 # Optimization messes up debuggers, so turn it off for
4580 OPT
="-g -Wall $STRICT_PROTO"
4582 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4586 OPT
="-O3 -Wall $STRICT_PROTO"
4589 case $ac_sys_system in
4590 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4603 # The -arch flags for universal builds on OSX
4604 UNIVERSAL_ARCH_FLAGS
=
4607 # tweak BASECFLAGS based on compiler and platform
4610 # Python violates C99 rules, by casting between incompatible
4611 # pointer types. GCC may generate bad code as a result of that,
4612 # so use -fno-strict-aliasing if supported.
4613 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4614 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4616 CC
="$CC -fno-strict-aliasing"
4617 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 cat >conftest.
$ac_ext <<_ACEOF
4623 cat confdefs.h
>>conftest.
$ac_ext
4624 cat >>conftest.
$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4630 int main() { return 0; }
4635 rm -f conftest.
$ac_objext
4636 if { (ac_try
="$ac_compile"
4638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4644 grep -v '^ *+' conftest.er1 >conftest.err
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
4652 ac_cv_no_strict_aliasing_ok=yes
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 ac_cv_no_strict_aliasing_ok=no
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4665 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4666 if test $ac_cv_no_strict_aliasing_ok = yes
4668 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4671 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4672 # support. Without this, treatment of subnormals doesn't follow
4674 case $ac_sys_machine in
4676 BASECFLAGS="$BASECFLAGS -mieee"
4680 case $ac_sys_system in
4682 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4684 # is there any other compiler on Darwin besides gcc?
4686 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4687 # used to be here, but non-Apple gcc doesn't accept them.
4690 if test "${enable_universalsdk}"; then
4691 UNIVERSAL_ARCH_FLAGS=""
4692 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4693 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4695 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4697 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4698 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4700 ARCH_RUN_32BIT="true"
4702 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4703 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4704 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4705 ARCH_RUN_32BIT="arch -i386 -ppc"
4707 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4708 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4709 LIPO_32BIT_FLAGS="-extract i386"
4710 ARCH_RUN_32BIT="arch -i386"
4712 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4713 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4714 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4715 ARCH_RUN_32BIT="arch -i386 -ppc7400"
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
13472 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13473 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13475 cat >>confdefs.h <<\_ACEOF
13476 #define HAVE_LARGEFILE_SUPPORT 1
13479 { echo "$as_me:$LINENO: result: yes" >&5
13480 echo "${ECHO_T}yes" >&6; }
13482 { echo "$as_me:$LINENO: result: no" >&5
13483 echo "${ECHO_T}no" >&6; }
13486 { echo "$as_me:$LINENO: result: no" >&5
13487 echo "${ECHO_T}no" >&6; }
13490 { echo "$as_me:$LINENO: checking for time_t" >&5
13491 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13492 if test "${ac_cv_type_time_t+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 cat >conftest.$ac_ext <<_ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13502 #ifdef HAVE_SYS_TYPES_H
13503 #include <sys/types.h>
13510 typedef time_t ac__type_new_;
13514 if ((ac__type_new_ *) 0)
13516 if (sizeof (ac__type_new_))
13522 rm -f conftest.$ac_objext
13523 if { (ac_try="$ac_compile"
13524 case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_compile") 2>conftest.er1
13531 grep -v '^
*+' conftest.er1 >conftest.err
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } && {
13536 test -z "$ac_c_werror_flag" ||
13537 test ! -s conftest.err
13538 } && test -s conftest.$ac_objext; then
13539 ac_cv_type_time_t=yes
13541 echo "$as_me: failed program was:" >&5
13542 sed 's
/^
/|
/' conftest.$ac_ext >&5
13544 ac_cv_type_time_t=no
13547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13550 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13552 # The cast to long int works around a bug in the HP C Compiler
13553 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13554 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13555 # This bug is HP SR number 8606223364.
13556 { echo "$as_me:$LINENO: checking size of time_t" >&5
13557 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13558 if test "${ac_cv_sizeof_time_t+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 if test "$cross_compiling" = yes; then
13562 # Depending upon the size, compute the lo and hi bounds.
13563 cat >conftest.
$ac_ext <<_ACEOF
13566 cat confdefs.h
>>conftest.
$ac_ext
13567 cat >>conftest.
$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13570 #ifdef HAVE_SYS_TYPES_H
13571 #include <sys/types.h>
13578 typedef time_t ac__type_sizeof_;
13582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13589 rm -f conftest.
$ac_objext
13590 if { (ac_try
="$ac_compile"
13591 case "(($ac_try" in
13592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_compile") 2>conftest.er1
13598 grep -v '^ *+' conftest.er1 >conftest.err
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } && {
13603 test -z "$ac_c_werror_flag" ||
13604 test ! -s conftest.err
13605 } && test -s conftest.$ac_objext; then
13608 cat >conftest.$ac_ext <<_ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13615 #ifdef HAVE_SYS_TYPES_H
13616 #include <sys/types.h>
13623 typedef time_t ac__type_sizeof_;
13627 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13634 rm -f conftest.$ac_objext
13635 if { (ac_try="$ac_compile"
13636 case "(($ac_try" in
13637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13638 *) ac_try_echo
=$ac_try;;
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_compile") 2>conftest.er1
13643 grep -v '^ *+' conftest.er1
>conftest.err
13645 cat conftest.err
>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest.
$ac_objext; then
13651 ac_hi
=$ac_mid; break
13653 echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.
$ac_ext >&5
13656 ac_lo
=`expr $ac_mid + 1`
13657 if test $ac_lo -le $ac_mid; then
13661 ac_mid
=`expr 2 '*' $ac_mid + 1`
13664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13667 echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.
$ac_ext >&5
13670 cat >conftest.
$ac_ext <<_ACEOF
13673 cat confdefs.h
>>conftest.
$ac_ext
13674 cat >>conftest.
$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13677 #ifdef HAVE_SYS_TYPES_H
13678 #include <sys/types.h>
13685 typedef time_t ac__type_sizeof_;
13689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13696 rm -f conftest.
$ac_objext
13697 if { (ac_try
="$ac_compile"
13698 case "(($ac_try" in
13699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_compile") 2>conftest.er1
13705 grep -v '^ *+' conftest.er1 >conftest.err
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } && {
13710 test -z "$ac_c_werror_flag" ||
13711 test ! -s conftest.err
13712 } && test -s conftest.$ac_objext; then
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13722 #ifdef HAVE_SYS_TYPES_H
13723 #include <sys/types.h>
13730 typedef time_t ac__type_sizeof_;
13734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13741 rm -f conftest.$ac_objext
13742 if { (ac_try="$ac_compile"
13743 case "(($ac_try" in
13744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13745 *) ac_try_echo
=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_compile") 2>conftest.er1
13750 grep -v '^ *+' conftest.er1
>conftest.err
13752 cat conftest.err
>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && {
13755 test -z "$ac_c_werror_flag" ||
13756 test ! -s conftest.err
13757 } && test -s conftest.
$ac_objext; then
13758 ac_lo
=$ac_mid; break
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.
$ac_ext >&5
13763 ac_hi
=`expr '(' $ac_mid ')' - 1`
13764 if test $ac_mid -le $ac_hi; then
13768 ac_mid
=`expr 2 '*' $ac_mid`
13771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.
$ac_ext >&5
13780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13784 # Binary search between lo and hi bounds.
13785 while test "x$ac_lo" != "x$ac_hi"; do
13786 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13787 cat >conftest.
$ac_ext <<_ACEOF
13790 cat confdefs.h
>>conftest.
$ac_ext
13791 cat >>conftest.
$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13794 #ifdef HAVE_SYS_TYPES_H
13795 #include <sys/types.h>
13802 typedef time_t ac__type_sizeof_;
13806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13813 rm -f conftest.
$ac_objext
13814 if { (ac_try
="$ac_compile"
13815 case "(($ac_try" in
13816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_compile") 2>conftest.er1
13822 grep -v '^ *+' conftest.er1 >conftest.err
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } && {
13827 test -z "$ac_c_werror_flag" ||
13828 test ! -s conftest.err
13829 } && test -s conftest.$ac_objext; then
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13835 ac_lo=`expr '(' $ac_mid ')' + 1`
13838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13841 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13842 '') if test "$ac_cv_type_time_t" = yes; then
13843 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13844 See \`config.log
' for more details." >&5
13845 echo "$as_me: error: cannot compute sizeof (time_t)
13846 See \`config.log' for more details.
" >&2;}
13847 { (exit 77); exit 77; }; }
13849 ac_cv_sizeof_time_t=0
13853 cat >conftest.$ac_ext <<_ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13860 #ifdef HAVE_SYS_TYPES_H
13861 #include <sys/types.h>
13868 typedef time_t ac__type_sizeof_;
13869 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13870 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13872 #include <stdlib.h>
13877 FILE *f = fopen ("conftest.val
", "w
");
13880 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13882 long int i = longval ();
13883 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13885 fprintf (f, "%ld
\n", i);
13889 unsigned long int i = ulongval ();
13890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13892 fprintf (f, "%lu
\n", i);
13894 return ferror (f) || fclose (f) != 0;
13900 rm -f conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_link") 2>&5
13909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13911 { (case "(($ac_try" in
13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913 *) ac_try_echo=$ac_try;;
13915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_try") 2>&5
13918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_cv_sizeof_time_t=`cat conftest.val`
13922 echo "$as_me: program exited with status
$ac_status" >&5
13923 echo "$as_me: failed program was
:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13926 ( exit $ac_status )
13927 if test "$ac_cv_type_time_t" = yes; then
13928 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(time_t
)
13929 See \
`config.log' for more details." >&5
13930 echo "$as_me: error: cannot compute sizeof (time_t)
13931 See \`config.log
' for more details." >&2;}
13932 { (exit 77); exit 77; }; }
13934 ac_cv_sizeof_time_t=0
13937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13941 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13942 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13946 cat >>confdefs.h <<_ACEOF
13947 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13952 # if have pthread_t then define SIZEOF_PTHREAD_T
13954 if test "$ac_cv_kpthread" = "yes"
13955 then CC="$CC -Kpthread"
13956 elif test "$ac_cv_kthread" = "yes"
13957 then CC="$CC -Kthread"
13958 elif test "$ac_cv_pthread" = "yes"
13959 then CC="$CC -pthread"
13961 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13962 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <pthread.h>
13974 pthread_t x; x = *(pthread_t*)0;
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_compile") 2>conftest.er1
13988 grep -v '^
*+' conftest.er1 >conftest.err
13990 cat conftest.err >&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } && {
13993 test -z "$ac_c_werror_flag" ||
13994 test ! -s conftest.err
13995 } && test -s conftest.$ac_objext; then
13998 echo "$as_me: failed program was:" >&5
13999 sed 's
/^
/|
/' conftest.$ac_ext >&5
14004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14005 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
14006 echo "${ECHO_T}$have_pthread_t" >&6; }
14007 if test "$have_pthread_t" = yes ; then
14008 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14009 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14010 if test "${ac_cv_type_pthread_t+set}" = set; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 cat >conftest.$ac_ext <<_ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14020 #ifdef HAVE_PTHREAD_H
14021 #include <pthread.h>
14025 typedef pthread_t ac__type_new_;
14029 if ((ac__type_new_ *) 0)
14031 if (sizeof (ac__type_new_))
14037 rm -f conftest.$ac_objext
14038 if { (ac_try="$ac_compile"
14039 case "(($ac_try" in
14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14041 *) ac_try_echo=$ac_try;;
14043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14046 grep -v '^
*+' conftest.er1 >conftest.err
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.$ac_objext; then
14054 ac_cv_type_pthread_t=yes
14056 echo "$as_me: failed program was:" >&5
14057 sed 's
/^
/|
/' conftest.$ac_ext >&5
14059 ac_cv_type_pthread_t=no
14062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14064 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14065 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14067 # The cast to long int works around a bug in the HP C Compiler
14068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14070 # This bug is HP SR number 8606223364.
14071 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14072 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14073 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 if test "$cross_compiling" = yes; then
14077 # Depending upon the size, compute the lo and hi bounds.
14078 cat >conftest.
$ac_ext <<_ACEOF
14081 cat confdefs.h
>>conftest.
$ac_ext
14082 cat >>conftest.
$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 #ifdef HAVE_PTHREAD_H
14086 #include <pthread.h>
14090 typedef pthread_t ac__type_sizeof_;
14094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14101 rm -f conftest.
$ac_objext
14102 if { (ac_try
="$ac_compile"
14103 case "(($ac_try" in
14104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_compile") 2>conftest.er1
14110 grep -v '^ *+' conftest.er1 >conftest.err
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && {
14115 test -z "$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14117 } && test -s conftest.$ac_objext; then
14120 cat >conftest.$ac_ext <<_ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14127 #ifdef HAVE_PTHREAD_H
14128 #include <pthread.h>
14132 typedef pthread_t ac__type_sizeof_;
14136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14143 rm -f conftest.$ac_objext
14144 if { (ac_try="$ac_compile"
14145 case "(($ac_try" in
14146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14147 *) ac_try_echo
=$ac_try;;
14149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150 (eval "$ac_compile") 2>conftest.er1
14152 grep -v '^ *+' conftest.er1
>conftest.err
14154 cat conftest.err
>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } && {
14157 test -z "$ac_c_werror_flag" ||
14158 test ! -s conftest.err
14159 } && test -s conftest.
$ac_objext; then
14160 ac_hi
=$ac_mid; break
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.
$ac_ext >&5
14165 ac_lo
=`expr $ac_mid + 1`
14166 if test $ac_lo -le $ac_mid; then
14170 ac_mid
=`expr 2 '*' $ac_mid + 1`
14173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.
$ac_ext >&5
14179 cat >conftest.
$ac_ext <<_ACEOF
14182 cat confdefs.h
>>conftest.
$ac_ext
14183 cat >>conftest.
$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14186 #ifdef HAVE_PTHREAD_H
14187 #include <pthread.h>
14191 typedef pthread_t ac__type_sizeof_;
14195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14202 rm -f conftest.
$ac_objext
14203 if { (ac_try
="$ac_compile"
14204 case "(($ac_try" in
14205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_compile") 2>conftest.er1
14211 grep -v '^ *+' conftest.er1 >conftest.err
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } && {
14216 test -z "$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14218 } && test -s conftest.$ac_objext; then
14221 cat >conftest.$ac_ext <<_ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14228 #ifdef HAVE_PTHREAD_H
14229 #include <pthread.h>
14233 typedef pthread_t ac__type_sizeof_;
14237 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14244 rm -f conftest.$ac_objext
14245 if { (ac_try="$ac_compile"
14246 case "(($ac_try" in
14247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14248 *) ac_try_echo
=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_compile") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1
>conftest.err
14255 cat conftest.err
>&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.
$ac_objext; then
14261 ac_lo
=$ac_mid; break
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.
$ac_ext >&5
14266 ac_hi
=`expr '(' $ac_mid ')' - 1`
14267 if test $ac_mid -le $ac_hi; then
14271 ac_mid
=`expr 2 '*' $ac_mid`
14274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.
$ac_ext >&5
14283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14287 # Binary search between lo and hi bounds.
14288 while test "x$ac_lo" != "x$ac_hi"; do
14289 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14290 cat >conftest.
$ac_ext <<_ACEOF
14293 cat confdefs.h
>>conftest.
$ac_ext
14294 cat >>conftest.
$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14297 #ifdef HAVE_PTHREAD_H
14298 #include <pthread.h>
14302 typedef pthread_t ac__type_sizeof_;
14306 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14313 rm -f conftest.
$ac_objext
14314 if { (ac_try
="$ac_compile"
14315 case "(($ac_try" in
14316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_compile") 2>conftest.er1
14322 grep -v '^ *+' conftest.er1 >conftest.err
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } && {
14327 test -z "$ac_c_werror_flag" ||
14328 test ! -s conftest.err
14329 } && test -s conftest.$ac_objext; then
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 ac_lo=`expr '(' $ac_mid ')' + 1`
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14342 '') if test "$ac_cv_type_pthread_t" = yes; then
14343 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14344 See \`config.log
' for more details." >&5
14345 echo "$as_me: error: cannot compute sizeof (pthread_t)
14346 See \`config.log' for more details.
" >&2;}
14347 { (exit 77); exit 77; }; }
14349 ac_cv_sizeof_pthread_t=0
14353 cat >conftest.$ac_ext <<_ACEOF
14356 cat confdefs.h >>conftest.$ac_ext
14357 cat >>conftest.$ac_ext <<_ACEOF
14358 /* end confdefs.h. */
14360 #ifdef HAVE_PTHREAD_H
14361 #include <pthread.h>
14365 typedef pthread_t ac__type_sizeof_;
14366 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14367 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14369 #include <stdlib.h>
14374 FILE *f = fopen ("conftest.val
", "w
");
14377 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14379 long int i = longval ();
14380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14382 fprintf (f, "%ld
\n", i);
14386 unsigned long int i = ulongval ();
14387 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14389 fprintf (f, "%lu
\n", i);
14391 return ferror (f) || fclose (f) != 0;
14397 rm -f conftest$ac_exeext
14398 if { (ac_try="$ac_link"
14399 case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_link") 2>&5
14406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_cv_sizeof_pthread_t=`cat conftest.val`
14419 echo "$as_me: program exited with status
$ac_status" >&5
14420 echo "$as_me: failed program was
:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ( exit $ac_status )
14424 if test "$ac_cv_type_pthread_t" = yes; then
14425 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pthread_t
)
14426 See \
`config.log' for more details." >&5
14427 echo "$as_me: error: cannot compute sizeof (pthread_t)
14428 See \`config.log
' for more details." >&2;}
14429 { (exit 77); exit 77; }; }
14431 ac_cv_sizeof_pthread_t=0
14434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14438 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14439 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14443 cat >>confdefs.h <<_ACEOF
14444 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14451 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14452 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14453 # Check whether --enable-toolbox-glue was given.
14454 if test "${enable_toolbox_glue+set}" = set; then
14455 enableval=$enable_toolbox_glue;
14459 if test -z "$enable_toolbox_glue"
14461 case $ac_sys_system/$ac_sys_release in
14463 enable_toolbox_glue="yes";;
14465 enable_toolbox_glue="no";;
14468 case "$enable_toolbox_glue" in
14470 extra_machdep_objs="Python/mactoolboxglue.o"
14471 extra_undefs="-u _PyMac_Error"
14473 cat >>confdefs.h <<\_ACEOF
14474 #define USE_TOOLBOX_OBJECT_GLUE 1
14479 extra_machdep_objs=""
14483 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14484 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14488 case $ac_sys_system/$ac_sys_release in
14489 Darwin/[01567]\..*)
14490 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14493 OTHER_LIBTOOL_OPT=""
14500 case $ac_sys_system/$ac_sys_release in
14501 Darwin/[01567]\..*)
14502 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14503 if test "${enable_universalsdk}"; then
14506 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14508 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14509 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14511 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14512 if test ${gcc_version} '<' 4.0
14514 LIBTOOL_CRUFT="-lcc_dynamic"
14518 if test "$cross_compiling" = yes; then
14521 cat >conftest.$ac_ext <<_ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14528 #include <unistd.h>
14529 int main(int argc, char*argv[])
14531 if (sizeof(long) == 4) {
14539 rm -f conftest$ac_exeext
14540 if { (ac_try="$ac_link"
14541 case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_link") 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
14550 { (case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_try") 2>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14561 echo "$as_me: program exited with status $ac_status" >&5
14562 echo "$as_me: failed program was:" >&5
14563 sed 's
/^
/|
/' conftest.$ac_ext >&5
14565 ( exit $ac_status )
14568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14573 if test "${ac_osx_32bit}" = "yes"; then
14576 MACOSX_DEFAULT_ARCH="i386"
14579 MACOSX_DEFAULT_ARCH="ppc"
14582 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14583 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14584 { (exit 1); exit 1; }; }
14590 MACOSX_DEFAULT_ARCH="x86_64"
14593 MACOSX_DEFAULT_ARCH="ppc64"
14596 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14597 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14598 { (exit 1); exit 1; }; }
14602 #ARCH_RUN_32BIT="true"
14605 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14606 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14607 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14610 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14611 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14612 if test "$enable_framework"
14614 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14615 # -F. is needed to allow linking to the framework while
14616 # in the build location.
14618 cat >>confdefs.h <<\_ACEOF
14619 #define WITH_NEXT_FRAMEWORK 1
14622 { echo "$as_me:$LINENO: result: yes" >&5
14623 echo "${ECHO_T}yes" >&6; }
14624 if test $enable_shared = "yes"
14626 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14627 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14628 { (exit 1); exit 1; }; }
14631 { echo "$as_me:$LINENO: result: no" >&5
14632 echo "${ECHO_T}no" >&6; }
14635 { echo "$as_me:$LINENO: checking for dyld" >&5
14636 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14637 case $ac_sys_system/$ac_sys_release in
14640 cat >>confdefs.h <<\_ACEOF
14641 #define WITH_DYLD 1
14644 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14645 echo "${ECHO_T}always on for Darwin" >&6; }
14648 { echo "$as_me:$LINENO: result: no" >&5
14649 echo "${ECHO_T}no" >&6; }
14653 # Set info about shared libraries.
14659 # SO is the extension of shared libraries `(including the dot!)
14660 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14661 { echo "$as_me:$LINENO: checking SO" >&5
14662 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14665 case $ac_sys_system in
14676 # this might also be a termcap variable, see #610332
14678 echo '====================================================================='
14680 echo '+ WARNING
: You have
set SO
in your environment.
+'
14681 echo '+ Do you really mean to change the extension
for shared libraries?
+'
14682 echo '+ Continuing
in 10 seconds to
let you to ponder.
+'
14684 echo '====================================================================='
14687 { echo "$as_me:$LINENO: result: $SO" >&5
14688 echo "${ECHO_T}$SO" >&6; }
14691 cat >>confdefs.h <<_ACEOF
14692 #define SHLIB_EXT "$SO"
14695 # LDSHARED is the ld *command* used to create shared library
14696 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14697 # (Shared libraries in this instance are shared modules to be loaded into
14698 # Python, as opposed to building Python itself as a shared library.)
14699 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14700 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14701 if test -z "$LDSHARED"
14703 case $ac_sys_system/$ac_sys_release in
14705 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14706 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14709 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14710 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14712 IRIX/5*) LDSHARED="ld -shared";;
14713 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14715 if test "$GCC" = "yes"
14716 then LDSHARED='$
(CC
) -shared'
14717 else LDSHARED='$
(CC
) -G';
14720 if test "$GCC" = "yes"
14721 then LDSHARED='$
(CC
) -shared'
14722 else LDSHARED='ld
-b';
14724 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14726 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14727 if test "$enable_framework" ; then
14728 # Link against the framework. All externals should be defined.
14729 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14730 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14732 # No framework. Ignore undefined symbols, assuming they come from Python
14733 LDSHARED="$LDSHARED -undefined suppress"
14735 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14736 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14737 if test "$enable_framework" ; then
14738 # Link against the framework. All externals should be defined.
14739 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14740 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14742 # No framework, use the Python app as bundle-loader
14743 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14744 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14747 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14748 # This allows an extension to be used in any Python
14750 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14752 if test "${enable_universalsdk}"; then
14753 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14755 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle -undefined dynamic_lookup
'
14756 BLDSHARED="$LDSHARED"
14758 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14759 if test "$enable_framework" ; then
14760 # Link against the framework. All externals should be defined.
14761 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14762 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14764 # No framework, use the Python app as bundle-loader
14765 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14766 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14770 Linux*|GNU*|QNX*) LDSHARED='$
(CC
) -shared';;
14771 BSD/OS*/4*) LDSHARED="gcc -shared";;
14773 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14775 LDSHARED="$CC -shared ${LDFLAGS}"
14777 LDSHARED="ld -Bshareable ${LDFLAGS}"
14780 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14782 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14785 [01].* | 2.[0-7] | 2.[0-7].*)
14786 LDSHARED="ld -Bshareable ${LDFLAGS}"
14789 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14793 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14794 OpenUNIX*|UnixWare*)
14795 if test "$GCC" = "yes"
14796 then LDSHARED='$
(CC
) -shared'
14797 else LDSHARED='$
(CC
) -G'
14799 SCO_SV*) LDSHARED='$
(CC
) -Wl,-G,-Bexport';;
14800 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14801 atheos*) LDSHARED="gcc -shared";;
14805 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14806 echo "${ECHO_T}$LDSHARED" >&6; }
14807 BLDSHARED=${BLDSHARED-$LDSHARED}
14808 # CCSHARED are the C *flags* used to create objects to go into a shared
14809 # library (module) -- this is only needed for a few systems
14810 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14811 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14812 if test -z "$CCSHARED"
14814 case $ac_sys_system/$ac_sys_release in
14815 SunOS*) if test "$GCC" = yes;
14816 then CCSHARED="-fPIC";
14817 elif test `uname -p` = sparc;
14818 then CCSHARED="-xcode=pic32";
14819 else CCSHARED="-Kpic";
14821 hp*|HP*) if test "$GCC" = yes;
14822 then CCSHARED="-fPIC";
14823 else CCSHARED="+z";
14825 Linux*|GNU*) CCSHARED="-fPIC";;
14826 BSD/OS*/4*) CCSHARED="-fpic";;
14827 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14828 OpenUNIX*|UnixWare*)
14829 if test "$GCC" = "yes"
14830 then CCSHARED="-fPIC"
14831 else CCSHARED="-KPIC"
14834 if test "$GCC" = "yes"
14835 then CCSHARED="-fPIC"
14836 else CCSHARED="-Kpic -belf"
14838 IRIX*/6*) case $CC in
14839 *gcc*) CCSHARED="-shared";;
14842 atheos*) CCSHARED="-fPIC";;
14845 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14846 echo "${ECHO_T}$CCSHARED" >&6; }
14847 # LINKFORSHARED are the flags passed to the $(CC) command that links
14848 # the python executable -- this is only needed for a few systems
14849 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14850 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14851 if test -z "$LINKFORSHARED"
14853 case $ac_sys_system/$ac_sys_release in
14854 AIX*) LINKFORSHARED='-Wl,-bE:Modules
/python.exp
-lld';;
14856 LINKFORSHARED="-Wl,-E -Wl,+s";;
14857 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14858 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14859 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14860 # -u libsys_s pulls in all symbols in libsys
14862 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14864 # not used by the core itself but which needs to be in the core so
14865 # that dynamically loaded extension modules have access to it.
14866 # -prebind is no longer used, because it actually seems to give a
14867 # slowdown in stead of a speedup, maybe due to the large number of
14868 # dynamic loads Python does.
14870 LINKFORSHARED="$extra_undefs"
14871 if test "$enable_framework"
14873 LINKFORSHARED="$LINKFORSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14875 LINKFORSHARED="$LINKFORSHARED";;
14876 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14877 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14878 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14879 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14880 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14882 LINKFORSHARED="-Wl,--export-dynamic"
14884 SunOS/5*) case $CC in
14886 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14888 LINKFORSHARED="-Xlinker --export-dynamic"
14892 if test $enable_shared = "no"
14894 LINKFORSHARED='-Wl,--out-implib=$
(LDLIBRARY
)'
14897 # -Wl,-E causes the symbols to be added to the dynamic
14898 # symbol table so that they can be found when a module
14899 # is loaded. -N 2048K causes the stack size to be set
14900 # to 2048 kilobytes so that the stack doesn't overflow
14901 # when running test_compile.py.
14902 LINKFORSHARED
='-Wl,-E -N 2048K';;
14905 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14906 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14910 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14911 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14912 if test ! "$LIBRARY" = "$LDLIBRARY"
14914 case $ac_sys_system in
14916 # Cygwin needs CCSHARED when building extension DLLs
14917 # but not when building the interpreter DLL.
14918 CFLAGSFORSHARED
='';;
14920 CFLAGSFORSHARED
='$(CCSHARED)'
14923 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14924 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14926 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14927 # library (with --enable-shared).
14928 # For platforms on which shared libraries are not allowed to have unresolved
14929 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14930 # if it is not required, since it creates a dependency of the shared library
14931 # to LIBS. This, in turn, means that applications linking the shared libpython
14932 # don't need to link LIBS explicitly. The default should be only changed
14933 # on systems where this approach causes problems.
14935 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14936 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14937 case "$ac_sys_system" in
14941 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14942 echo "${ECHO_T}$SHLIBS" >&6; }
14945 # checks for libraries
14947 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14948 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14949 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 ac_check_lib_save_LIBS
=$LIBS
14954 cat >conftest.
$ac_ext <<_ACEOF
14957 cat confdefs.h
>>conftest.
$ac_ext
14958 cat >>conftest.
$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14961 /* Override any GCC internal prototype to avoid an error.
14962 Use char because int might match the return type of a GCC
14963 builtin and then its argument prototype would still apply. */
14976 rm -f conftest.
$ac_objext conftest
$ac_exeext
14977 if { (ac_try
="$ac_link"
14978 case "(($ac_try" in
14979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>conftest.er1
14985 grep -v '^ *+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && {
14990 test -z "$ac_c_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest$ac_exeext &&
14993 $as_test_x conftest$ac_exeext; then
14994 ac_cv_lib_dl_dlopen=yes
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14999 ac_cv_lib_dl_dlopen=no
15002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15003 conftest$ac_exeext conftest.$ac_ext
15004 LIBS=$ac_check_lib_save_LIBS
15006 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15007 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15008 if test $ac_cv_lib_dl_dlopen = yes; then
15009 cat >>confdefs.h <<_ACEOF
15010 #define HAVE_LIBDL 1
15016 # Dynamic linking for SunOS/Solaris and SYSV
15018 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15019 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15020 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 ac_check_lib_save_LIBS=$LIBS
15025 cat >conftest.$ac_ext <<_ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15032 /* Override any GCC internal prototype to avoid an error.
15033 Use char because int might match the return type of a GCC
15034 builtin and then its argument prototype would still apply. */
15042 return shl_load ();
15047 rm -f conftest.$ac_objext conftest$ac_exeext
15048 if { (ac_try="$ac_link"
15049 case "(($ac_try" in
15050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15051 *) ac_try_echo
=$ac_try;;
15053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_link") 2>conftest.er1
15056 grep -v '^ *+' conftest.er1
>conftest.err
15058 cat conftest.err
>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } && {
15061 test -z "$ac_c_werror_flag" ||
15062 test ! -s conftest.err
15063 } && test -s conftest
$ac_exeext &&
15064 $as_test_x conftest
$ac_exeext; then
15065 ac_cv_lib_dld_shl_load
=yes
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.
$ac_ext >&5
15070 ac_cv_lib_dld_shl_load
=no
15073 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15074 conftest
$ac_exeext conftest.
$ac_ext
15075 LIBS
=$ac_check_lib_save_LIBS
15077 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15078 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15079 if test $ac_cv_lib_dld_shl_load = yes; then
15080 cat >>confdefs.h
<<_ACEOF
15081 #define HAVE_LIBDLD 1
15087 # Dynamic linking for HP-UX
15089 # only check for sem_init if thread support is requested
15090 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15091 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15092 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15093 if test "${ac_cv_search_sem_init+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 ac_func_search_save_LIBS
=$LIBS
15097 cat >conftest.
$ac_ext <<_ACEOF
15100 cat confdefs.h
>>conftest.
$ac_ext
15101 cat >>conftest.
$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15104 /* Override any GCC internal prototype to avoid an error.
15105 Use char because int might match the return type of a GCC
15106 builtin and then its argument prototype would still apply. */
15114 return sem_init ();
15119 for ac_lib
in '' pthread rt posix4
; do
15120 if test -z "$ac_lib"; then
15121 ac_res
="none required"
15124 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15126 rm -f conftest.
$ac_objext conftest
$ac_exeext
15127 if { (ac_try
="$ac_link"
15128 case "(($ac_try" in
15129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_link") 2>conftest.er1
15135 grep -v '^ *+' conftest.er1 >conftest.err
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } && {
15140 test -z "$ac_c_werror_flag" ||
15141 test ! -s conftest.err
15142 } && test -s conftest$ac_exeext &&
15143 $as_test_x conftest$ac_exeext; then
15144 ac_cv_search_sem_init=$ac_res
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15154 if test "${ac_cv_search_sem_init+set}" = set; then
15158 if test "${ac_cv_search_sem_init+set}" = set; then
15161 ac_cv_search_sem_init=no
15163 rm conftest.$ac_ext
15164 LIBS=$ac_func_search_save_LIBS
15166 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15167 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15168 ac_res=$ac_cv_search_sem_init
15169 if test "$ac_res" != no; then
15170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15173 # 'Real Time' functions on Solaris
15174 # posix4 on Solaris 2.6
15175 # pthread (first!) on Linux
15178 # check if we need libintl for locale functions
15179 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15180 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15181 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 ac_check_lib_save_LIBS=$LIBS
15185 LIBS="-lintl $LIBS"
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15193 /* Override any GCC internal prototype to avoid an error.
15194 Use char because int might match the return type of a GCC
15195 builtin and then its argument prototype would still apply. */
15199 char textdomain ();
15203 return textdomain ();
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (ac_try="$ac_link"
15210 case "(($ac_try" in
15211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15212 *) ac_try_echo
=$ac_try;;
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_link") 2>conftest.er1
15217 grep -v '^ *+' conftest.er1
>conftest.err
15219 cat conftest.err
>&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest
$ac_exeext &&
15225 $as_test_x conftest
$ac_exeext; then
15226 ac_cv_lib_intl_textdomain
=yes
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.
$ac_ext >&5
15231 ac_cv_lib_intl_textdomain
=no
15234 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15235 conftest
$ac_exeext conftest.
$ac_ext
15236 LIBS
=$ac_check_lib_save_LIBS
15238 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15239 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15240 if test $ac_cv_lib_intl_textdomain = yes; then
15242 cat >>confdefs.h
<<\_ACEOF
15243 #define WITH_LIBINTL 1
15249 # checks for system dependent C++ extensions support
15250 case "$ac_sys_system" in
15251 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15252 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15253 cat >conftest.
$ac_ext <<_ACEOF
15256 cat confdefs.h
>>conftest.
$ac_ext
15257 cat >>conftest.
$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 #include "/usr/lpp/xlC/include/load.h"
15263 loadAndInit("", 0, "")
15268 rm -f conftest.
$ac_objext conftest
$ac_exeext
15269 if { (ac_try
="$ac_link"
15270 case "(($ac_try" in
15271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15272 *) ac_try_echo=$ac_try;;
15274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15275 (eval "$ac_link") 2>conftest.er1
15277 grep -v '^ *+' conftest.er1 >conftest.err
15279 cat conftest.err >&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } && {
15282 test -z "$ac_c_werror_flag" ||
15283 test ! -s conftest.err
15284 } && test -s conftest$ac_exeext &&
15285 $as_test_x conftest$ac_exeext; then
15287 cat >>confdefs.h <<\_ACEOF
15288 #define AIX_GENUINE_CPLUSPLUS 1
15291 { echo "$as_me:$LINENO: result: yes" >&5
15292 echo "${ECHO_T}yes" >&6; }
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15297 { echo "$as_me:$LINENO: result: no" >&5
15298 echo "${ECHO_T}no" >&6; }
15301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15302 conftest$ac_exeext conftest.$ac_ext;;
15306 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15307 # BeOS' sockets are stashed in libnet.
15308 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15309 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15310 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 ac_check_lib_save_LIBS=$LIBS
15315 cat >conftest.$ac_ext <<_ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15322 /* Override any GCC internal prototype to avoid an error.
15323 Use char because int might match the return type of a GCC
15324 builtin and then its argument prototype would still apply. */
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (ac_try="$ac_link"
15339 case "(($ac_try" in
15340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15341 *) ac_try_echo
=$ac_try;;
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_link") 2>conftest.er1
15346 grep -v '^ *+' conftest.er1
>conftest.err
15348 cat conftest.err
>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } && {
15351 test -z "$ac_c_werror_flag" ||
15352 test ! -s conftest.err
15353 } && test -s conftest
$ac_exeext &&
15354 $as_test_x conftest
$ac_exeext; then
15355 ac_cv_lib_nsl_t_open
=yes
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.
$ac_ext >&5
15360 ac_cv_lib_nsl_t_open
=no
15363 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15364 conftest
$ac_exeext conftest.
$ac_ext
15365 LIBS
=$ac_check_lib_save_LIBS
15367 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15368 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15369 if test $ac_cv_lib_nsl_t_open = yes; then
15373 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15374 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15375 if test "${ac_cv_lib_socket_socket+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6
15378 ac_check_lib_save_LIBS
=$LIBS
15379 LIBS
="-lsocket $LIBS $LIBS"
15380 cat >conftest.
$ac_ext <<_ACEOF
15383 cat confdefs.h
>>conftest.
$ac_ext
15384 cat >>conftest.
$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15387 /* Override any GCC internal prototype to avoid an error.
15388 Use char because int might match the return type of a GCC
15389 builtin and then its argument prototype would still apply. */
15402 rm -f conftest.
$ac_objext conftest
$ac_exeext
15403 if { (ac_try
="$ac_link"
15404 case "(($ac_try" in
15405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_link") 2>conftest.er1
15411 grep -v '^ *+' conftest.er1 >conftest.err
15413 cat conftest.err >&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } && {
15416 test -z "$ac_c_werror_flag" ||
15417 test ! -s conftest.err
15418 } && test -s conftest$ac_exeext &&
15419 $as_test_x conftest$ac_exeext; then
15420 ac_cv_lib_socket_socket=yes
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15425 ac_cv_lib_socket_socket=no
15428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15429 conftest$ac_exeext conftest.$ac_ext
15430 LIBS=$ac_check_lib_save_LIBS
15432 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15433 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15434 if test $ac_cv_lib_socket_socket = yes; then
15435 LIBS="-lsocket $LIBS"
15439 case "$ac_sys_system" in
15441 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15442 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15443 if test "${ac_cv_lib_net_socket+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 ac_check_lib_save_LIBS=$LIBS
15447 LIBS="-lnet $LIBS $LIBS"
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15455 /* Override any GCC internal prototype to avoid an error.
15456 Use char because int might match the return type of a GCC
15457 builtin and then its argument prototype would still apply. */
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15474 *) ac_try_echo
=$ac_try;;
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_link") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1
>conftest.err
15481 cat conftest.err
>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } && {
15484 test -z "$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15486 } && test -s conftest
$ac_exeext &&
15487 $as_test_x conftest
$ac_exeext; then
15488 ac_cv_lib_net_socket
=yes
15490 echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.
$ac_ext >&5
15493 ac_cv_lib_net_socket
=no
15496 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15497 conftest
$ac_exeext conftest.
$ac_ext
15498 LIBS
=$ac_check_lib_save_LIBS
15500 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15501 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15502 if test $ac_cv_lib_net_socket = yes; then
15509 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15510 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15512 # Check whether --with-libs was given.
15513 if test "${with_libs+set}" = set; then
15514 withval
=$with_libs;
15515 { echo "$as_me:$LINENO: result: $withval" >&5
15516 echo "${ECHO_T}$withval" >&6; }
15517 LIBS
="$withval $LIBS"
15520 { echo "$as_me:$LINENO: result: no" >&5
15521 echo "${ECHO_T}no" >&6; }
15525 # Check for use of the system expat library
15526 { echo "$as_me:$LINENO: checking for --with-system-expat" >&5
15527 echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; }
15529 # Check whether --with-system_expat was given.
15530 if test "${with_system_expat+set}" = set; then
15531 withval
=$with_system_expat;
15535 { echo "$as_me:$LINENO: result: $with_system_expat" >&5
15536 echo "${ECHO_T}$with_system_expat" >&6; }
15538 # Check for use of the system libffi library
15539 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15540 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15542 # Check whether --with-system_ffi was given.
15543 if test "${with_system_ffi+set}" = set; then
15544 withval
=$with_system_ffi;
15548 if test "$with_system_ffi" = "yes"; then
15549 if test -n "$ac_tool_prefix"; then
15550 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15551 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
15552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15554 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 case $PKG_CONFIG in
15559 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
15562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15563 for as_dir
in $PATH
15566 test -z "$as_dir" && as_dir
=.
15567 for ac_exec_ext
in '' $ac_executable_extensions; do
15568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15569 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15580 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
15581 if test -n "$PKG_CONFIG"; then
15582 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
15583 echo "${ECHO_T}$PKG_CONFIG" >&6; }
15585 { echo "$as_me:$LINENO: result: no" >&5
15586 echo "${ECHO_T}no" >&6; }
15591 if test -z "$ac_cv_path_PKG_CONFIG"; then
15592 ac_pt_PKG_CONFIG
=$PKG_CONFIG
15593 # Extract the first word of "pkg-config", so it can be a program name with args.
15594 set dummy pkg-config
; ac_word
=$2
15595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15597 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 case $ac_pt_PKG_CONFIG in
15602 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15605 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15606 for as_dir
in $PATH
15609 test -z "$as_dir" && as_dir
=.
15610 for ac_exec_ext
in '' $ac_executable_extensions; do
15611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15612 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15623 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
15624 if test -n "$ac_pt_PKG_CONFIG"; then
15625 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
15626 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
15628 { echo "$as_me:$LINENO: result: no" >&5
15629 echo "${ECHO_T}no" >&6; }
15632 if test "x$ac_pt_PKG_CONFIG" = x
; then
15635 case $cross_compiling:$ac_tool_warned in
15637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15638 whose name does not start with the host triplet. If you think this
15639 configuration is useful to you, please write to autoconf@gnu.org." >&5
15640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15641 whose name does not start with the host triplet. If you think this
15642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15643 ac_tool_warned
=yes ;;
15645 PKG_CONFIG
=$ac_pt_PKG_CONFIG
15648 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
15651 LIBFFI_INCLUDEDIR
="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
15653 LIBFFI_INCLUDEDIR
=""
15657 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15658 echo "${ECHO_T}$with_system_ffi" >&6; }
15660 # Check for --with-dbmliborder
15661 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15662 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15664 # Check whether --with-dbmliborder was given.
15665 if test "${with_dbmliborder+set}" = set; then
15666 withval
=$with_dbmliborder;
15667 if test x
$with_dbmliborder = xyes
15669 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15670 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15671 { (exit 1); exit 1; }; }
15673 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15674 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
15676 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15677 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15678 { (exit 1); exit 1; }; }
15684 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15685 echo "${ECHO_T}$with_dbmliborder" >&6; }
15687 # Determine if signalmodule should be used.
15690 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15691 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15693 # Check whether --with-signal-module was given.
15694 if test "${with_signal_module+set}" = set; then
15695 withval
=$with_signal_module;
15699 if test -z "$with_signal_module"
15700 then with_signal_module
="yes"
15702 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15703 echo "${ECHO_T}$with_signal_module" >&6; }
15705 if test "${with_signal_module}" = "yes"; then
15706 USE_SIGNAL_MODULE
=""
15709 USE_SIGNAL_MODULE
="#"
15710 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
15713 # This is used to generate Setup.config
15715 USE_THREAD_MODULE
=""
15717 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15718 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15721 # Check whether --with-dec-threads was given.
15722 if test "${with_dec_threads+set}" = set; then
15723 withval
=$with_dec_threads;
15724 { echo "$as_me:$LINENO: result: $withval" >&5
15725 echo "${ECHO_T}$withval" >&6; }
15727 if test "${with_thread+set}" != set; then
15728 with_thread
="$withval";
15731 { echo "$as_me:$LINENO: result: no" >&5
15732 echo "${ECHO_T}no" >&6; }
15736 # Templates for things AC_DEFINEd more than once.
15737 # For a single AC_DEFINE, no template is needed.
15745 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15746 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15748 # Check whether --with-threads was given.
15749 if test "${with_threads+set}" = set; then
15750 withval
=$with_threads;
15754 # --with-thread is deprecated, but check for it anyway
15756 # Check whether --with-thread was given.
15757 if test "${with_thread+set}" = set; then
15758 withval
=$with_thread; with_threads
=$with_thread
15762 if test -z "$with_threads"
15763 then with_threads
="yes"
15765 { echo "$as_me:$LINENO: result: $with_threads" >&5
15766 echo "${ECHO_T}$with_threads" >&6; }
15769 if test "$with_threads" = "no"
15771 USE_THREAD_MODULE
="#"
15772 elif test "$ac_cv_pthread_is_default" = yes
15774 cat >>confdefs.h
<<\_ACEOF
15775 #define WITH_THREAD 1
15778 # Defining _REENTRANT on system with POSIX threads should not hurt.
15779 cat >>confdefs.h
<<\_ACEOF
15780 #define _REENTRANT 1
15784 THREADOBJ
="Python/thread.o"
15785 elif test "$ac_cv_kpthread" = "yes"
15788 if test "$ac_cv_cxx_thread" = "yes"; then
15789 CXX
="$CXX -Kpthread"
15791 cat >>confdefs.h
<<\_ACEOF
15792 #define WITH_THREAD 1
15796 THREADOBJ
="Python/thread.o"
15797 elif test "$ac_cv_kthread" = "yes"
15800 if test "$ac_cv_cxx_thread" = "yes"; then
15801 CXX
="$CXX -Kthread"
15803 cat >>confdefs.h
<<\_ACEOF
15804 #define WITH_THREAD 1
15808 THREADOBJ
="Python/thread.o"
15809 elif test "$ac_cv_pthread" = "yes"
15812 if test "$ac_cv_cxx_thread" = "yes"; then
15813 CXX
="$CXX -pthread"
15815 cat >>confdefs.h
<<\_ACEOF
15816 #define WITH_THREAD 1
15820 THREADOBJ
="Python/thread.o"
15822 if test ! -z "$with_threads" -a -d "$with_threads"
15823 then LDFLAGS
="$LDFLAGS -L$with_threads"
15825 if test ! -z "$withval" -a -d "$withval"
15826 then LDFLAGS
="$LDFLAGS -L$withval"
15829 # According to the POSIX spec, a pthreads implementation must
15830 # define _POSIX_THREADS in unistd.h. Some apparently don't
15831 # (e.g. gnu pth with pthread emulation)
15832 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15833 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15834 cat >conftest.
$ac_ext <<_ACEOF
15837 cat confdefs.h
>>conftest.
$ac_ext
15838 cat >>conftest.
$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15841 #include <unistd.h>
15842 #ifdef _POSIX_THREADS
15847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15848 $EGREP "yes" >/dev
/null
2>&1; then
15849 unistd_defines_pthreads
=yes
15851 unistd_defines_pthreads
=no
15855 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15856 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15858 cat >>confdefs.h
<<\_ACEOF
15859 #define _REENTRANT 1
15862 if test "${ac_cv_header_cthreads_h+set}" = set; then
15863 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15864 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15865 if test "${ac_cv_header_cthreads_h+set}" = set; then
15866 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15869 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15871 # Is the header compilable?
15872 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15873 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15874 cat >conftest.
$ac_ext <<_ACEOF
15877 cat confdefs.h
>>conftest.
$ac_ext
15878 cat >>conftest.
$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 $ac_includes_default
15881 #include <cthreads.h>
15883 rm -f conftest.
$ac_objext
15884 if { (ac_try
="$ac_compile"
15885 case "(($ac_try" in
15886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_compile") 2>conftest.er1
15892 grep -v '^ *+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } && {
15897 test -z "$ac_c_werror_flag" ||
15898 test ! -s conftest.err
15899 } && test -s conftest.$ac_objext; then
15900 ac_header_compiler=yes
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 ac_header_compiler=no
15908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15910 echo "${ECHO_T}$ac_header_compiler" >&6; }
15912 # Is the header present?
15913 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15914 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15915 cat >conftest.$ac_ext <<_ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 #include <cthreads.h>
15923 if { (ac_try="$ac_cpp conftest.$ac_ext"
15924 case "(($ac_try" in
15925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15926 *) ac_try_echo
=$ac_try;;
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15931 grep -v '^ *+' conftest.er1
>conftest.err
15933 cat conftest.err
>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } >/dev
/null
&& {
15936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15937 test ! -s conftest.err
15939 ac_header_preproc
=yes
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.
$ac_ext >&5
15944 ac_header_preproc
=no
15947 rm -f conftest.err conftest.
$ac_ext
15948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15949 echo "${ECHO_T}$ac_header_preproc" >&6; }
15951 # So? What about this header?
15952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15954 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15955 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15957 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15958 ac_header_preproc
=yes
15961 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15962 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15963 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15964 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15965 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15966 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15967 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15968 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15970 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15972 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15974 ## -------------------------------------- ##
15975 ## Report this to http://bugs.python.org/ ##
15976 ## -------------------------------------- ##
15978 ) |
sed "s/^/$as_me: WARNING: /" >&2
15981 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15982 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15983 if test "${ac_cv_header_cthreads_h+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 ac_cv_header_cthreads_h
=$ac_header_preproc
15988 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15989 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15992 if test $ac_cv_header_cthreads_h = yes; then
15993 cat >>confdefs.h
<<\_ACEOF
15994 #define WITH_THREAD 1
15997 cat >>confdefs.h
<<\_ACEOF
15998 #define C_THREADS 1
16002 cat >>confdefs.h
<<\_ACEOF
16003 #define HURD_C_THREADS 1
16006 LIBS
="$LIBS -lthreads"
16007 THREADOBJ
="Python/thread.o"
16010 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16011 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16012 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16013 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16016 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16017 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16019 # Is the header compilable?
16020 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
16021 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
16022 cat >conftest.
$ac_ext <<_ACEOF
16025 cat confdefs.h
>>conftest.
$ac_ext
16026 cat >>conftest.
$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 $ac_includes_default
16029 #include <mach/cthreads.h>
16031 rm -f conftest.
$ac_objext
16032 if { (ac_try
="$ac_compile"
16033 case "(($ac_try" in
16034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_compile") 2>conftest.er1
16040 grep -v '^ *+' conftest.er1 >conftest.err
16042 cat conftest.err >&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } && {
16045 test -z "$ac_c_werror_flag" ||
16046 test ! -s conftest.err
16047 } && test -s conftest.$ac_objext; then
16048 ac_header_compiler=yes
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16053 ac_header_compiler=no
16056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16058 echo "${ECHO_T}$ac_header_compiler" >&6; }
16060 # Is the header present?
16061 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
16062 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
16063 cat >conftest.$ac_ext <<_ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 #include <mach/cthreads.h>
16071 if { (ac_try="$ac_cpp conftest.$ac_ext"
16072 case "(($ac_try" in
16073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16074 *) ac_try_echo
=$ac_try;;
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16079 grep -v '^ *+' conftest.er1
>conftest.err
16081 cat conftest.err
>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } >/dev
/null
&& {
16084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16085 test ! -s conftest.err
16087 ac_header_preproc
=yes
16089 echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.
$ac_ext >&5
16092 ac_header_preproc
=no
16095 rm -f conftest.err conftest.
$ac_ext
16096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16097 echo "${ECHO_T}$ac_header_preproc" >&6; }
16099 # So? What about this header?
16100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16102 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16103 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
16105 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
16106 ac_header_preproc
=yes
16109 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
16110 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
16112 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
16114 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
16116 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
16118 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
16120 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
16122 ## -------------------------------------- ##
16123 ## Report this to http://bugs.python.org/ ##
16124 ## -------------------------------------- ##
16126 ) |
sed "s/^/$as_me: WARNING: /" >&2
16129 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16130 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16131 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16134 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
16136 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16137 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16140 if test $ac_cv_header_mach_cthreads_h = yes; then
16141 cat >>confdefs.h
<<\_ACEOF
16142 #define WITH_THREAD 1
16145 cat >>confdefs.h
<<\_ACEOF
16146 #define C_THREADS 1
16150 cat >>confdefs.h
<<\_ACEOF
16151 #define MACH_C_THREADS 1
16154 THREADOBJ
="Python/thread.o"
16157 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16158 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16160 # Check whether --with-pth was given.
16161 if test "${with_pth+set}" = set; then
16162 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16163 echo "${ECHO_T}$withval" >&6; }
16164 cat >>confdefs.h
<<\_ACEOF
16165 #define WITH_THREAD 1
16169 cat >>confdefs.h
<<\_ACEOF
16174 THREADOBJ
="Python/thread.o"
16176 { echo "$as_me:$LINENO: result: no" >&5
16177 echo "${ECHO_T}no" >&6; }
16179 # Just looking for pthread_create in libpthread is not enough:
16180 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16181 # So we really have to include pthread.h, and then link.
16183 LIBS
="$LIBS -lpthread"
16184 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16185 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16186 cat >conftest.
$ac_ext <<_ACEOF
16189 cat confdefs.h
>>conftest.
$ac_ext
16190 cat >>conftest.
$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 #include <pthread.h>
16194 void * start_routine (void *arg) { exit (0); }
16199 pthread_create (NULL, NULL, start_routine, NULL)
16204 rm -f conftest.
$ac_objext conftest
$ac_exeext
16205 if { (ac_try
="$ac_link"
16206 case "(($ac_try" in
16207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_link") 2>conftest.er1
16213 grep -v '^ *+' conftest.er1 >conftest.err
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } && {
16218 test -z "$ac_c_werror_flag" ||
16219 test ! -s conftest.err
16220 } && test -s conftest$ac_exeext &&
16221 $as_test_x conftest$ac_exeext; then
16223 { echo "$as_me:$LINENO: result: yes" >&5
16224 echo "${ECHO_T}yes" >&6; }
16225 cat >>confdefs.h <<\_ACEOF
16226 #define WITH_THREAD 1
16230 THREADOBJ="Python/thread.o"
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16237 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16238 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16239 if test "${ac_cv_func_pthread_detach+set}" = set; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 cat >conftest.$ac_ext <<_ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16250 #define pthread_detach innocuous_pthread_detach
16252 /* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char pthread_detach (); below.
16254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16255 <limits.h> exists even on freestanding compilers. */
16258 # include <limits.h>
16260 # include <assert.h>
16263 #undef pthread_detach
16265 /* Override any GCC internal prototype to avoid an error.
16266 Use char because int might match the return type of a GCC
16267 builtin and then its argument prototype would still apply. */
16271 char pthread_detach ();
16272 /* The GNU C library defines this for functions which it implements
16273 to always fail with ENOSYS. Some functions are actually named
16274 something starting with __ and the normal name is an alias. */
16275 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16282 return pthread_detach ();
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (ac_try="$ac_link"
16289 case "(($ac_try" in
16290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16291 *) ac_try_echo
=$ac_try;;
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_link") 2>conftest.er1
16296 grep -v '^ *+' conftest.er1
>conftest.err
16298 cat conftest.err
>&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } && {
16301 test -z "$ac_c_werror_flag" ||
16302 test ! -s conftest.err
16303 } && test -s conftest
$ac_exeext &&
16304 $as_test_x conftest
$ac_exeext; then
16305 ac_cv_func_pthread_detach
=yes
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.
$ac_ext >&5
16310 ac_cv_func_pthread_detach
=no
16313 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16314 conftest
$ac_exeext conftest.
$ac_ext
16316 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16317 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16318 if test $ac_cv_func_pthread_detach = yes; then
16319 cat >>confdefs.h
<<\_ACEOF
16320 #define WITH_THREAD 1
16324 THREADOBJ
="Python/thread.o"
16327 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16328 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16329 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16330 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16333 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16334 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16336 # Is the header compilable?
16337 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16338 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16339 cat >conftest.
$ac_ext <<_ACEOF
16342 cat confdefs.h
>>conftest.
$ac_ext
16343 cat >>conftest.
$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 $ac_includes_default
16346 #include <atheos/threads.h>
16348 rm -f conftest.
$ac_objext
16349 if { (ac_try
="$ac_compile"
16350 case "(($ac_try" in
16351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_compile") 2>conftest.er1
16357 grep -v '^ *+' conftest.er1 >conftest.err
16359 cat conftest.err >&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); } && {
16362 test -z "$ac_c_werror_flag" ||
16363 test ! -s conftest.err
16364 } && test -s conftest.$ac_objext; then
16365 ac_header_compiler=yes
16367 echo "$as_me: failed program was:" >&5
16368 sed 's/^/| /' conftest.$ac_ext >&5
16370 ac_header_compiler=no
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16375 echo "${ECHO_T}$ac_header_compiler" >&6; }
16377 # Is the header present?
16378 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16379 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16380 cat >conftest.$ac_ext <<_ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 #include <atheos/threads.h>
16388 if { (ac_try="$ac_cpp conftest.$ac_ext"
16389 case "(($ac_try" in
16390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16391 *) ac_try_echo
=$ac_try;;
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16396 grep -v '^ *+' conftest.er1
>conftest.err
16398 cat conftest.err
>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } >/dev
/null
&& {
16401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16402 test ! -s conftest.err
16404 ac_header_preproc
=yes
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.
$ac_ext >&5
16409 ac_header_preproc
=no
16412 rm -f conftest.err conftest.
$ac_ext
16413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16414 echo "${ECHO_T}$ac_header_preproc" >&6; }
16416 # So? What about this header?
16417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16419 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16420 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16421 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16422 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16423 ac_header_preproc
=yes
16426 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16427 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16428 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16429 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16431 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16433 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16435 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16437 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16439 ## -------------------------------------- ##
16440 ## Report this to http://bugs.python.org/ ##
16441 ## -------------------------------------- ##
16443 ) |
sed "s/^/$as_me: WARNING: /" >&2
16446 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16447 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16448 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 ac_cv_header_atheos_threads_h
=$ac_header_preproc
16453 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16454 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16457 if test $ac_cv_header_atheos_threads_h = yes; then
16458 cat >>confdefs.h
<<\_ACEOF
16459 #define WITH_THREAD 1
16463 cat >>confdefs.h
<<\_ACEOF
16464 #define ATHEOS_THREADS 1
16467 THREADOBJ
="Python/thread.o"
16470 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16471 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16472 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16473 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16477 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16479 # Is the header compilable?
16480 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16481 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16482 cat >conftest.
$ac_ext <<_ACEOF
16485 cat confdefs.h
>>conftest.
$ac_ext
16486 cat >>conftest.
$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 $ac_includes_default
16489 #include <kernel/OS.h>
16491 rm -f conftest.
$ac_objext
16492 if { (ac_try
="$ac_compile"
16493 case "(($ac_try" in
16494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16495 *) ac_try_echo=$ac_try;;
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498 (eval "$ac_compile") 2>conftest.er1
16500 grep -v '^ *+' conftest.er1 >conftest.err
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } && {
16505 test -z "$ac_c_werror_flag" ||
16506 test ! -s conftest.err
16507 } && test -s conftest.$ac_objext; then
16508 ac_header_compiler=yes
16510 echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16513 ac_header_compiler=no
16516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16518 echo "${ECHO_T}$ac_header_compiler" >&6; }
16520 # Is the header present?
16521 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16522 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16523 cat >conftest.$ac_ext <<_ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h. */
16529 #include <kernel/OS.h>
16531 if { (ac_try="$ac_cpp conftest.$ac_ext"
16532 case "(($ac_try" in
16533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16534 *) ac_try_echo
=$ac_try;;
16536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16539 grep -v '^ *+' conftest.er1
>conftest.err
16541 cat conftest.err
>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } >/dev
/null
&& {
16544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16545 test ! -s conftest.err
16547 ac_header_preproc
=yes
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.
$ac_ext >&5
16552 ac_header_preproc
=no
16555 rm -f conftest.err conftest.
$ac_ext
16556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16557 echo "${ECHO_T}$ac_header_preproc" >&6; }
16559 # So? What about this header?
16560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16562 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16563 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16564 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16565 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16566 ac_header_preproc
=yes
16569 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16570 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16572 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16573 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16574 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16575 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16576 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16578 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16579 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16580 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16582 ## -------------------------------------- ##
16583 ## Report this to http://bugs.python.org/ ##
16584 ## -------------------------------------- ##
16586 ) |
sed "s/^/$as_me: WARNING: /" >&2
16589 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16590 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16591 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 ac_cv_header_kernel_OS_h
=$ac_header_preproc
16596 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16597 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16600 if test $ac_cv_header_kernel_OS_h = yes; then
16601 cat >>confdefs.h
<<\_ACEOF
16602 #define WITH_THREAD 1
16606 cat >>confdefs.h
<<\_ACEOF
16607 #define BEOS_THREADS 1
16610 THREADOBJ
="Python/thread.o"
16613 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16614 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16615 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 ac_check_lib_save_LIBS
=$LIBS
16619 LIBS
="-lpthreads $LIBS"
16620 cat >conftest.
$ac_ext <<_ACEOF
16623 cat confdefs.h
>>conftest.
$ac_ext
16624 cat >>conftest.
$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16627 /* Override any GCC internal prototype to avoid an error.
16628 Use char because int might match the return type of a GCC
16629 builtin and then its argument prototype would still apply. */
16633 char pthread_create ();
16637 return pthread_create ();
16642 rm -f conftest.
$ac_objext conftest
$ac_exeext
16643 if { (ac_try
="$ac_link"
16644 case "(($ac_try" in
16645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_link") 2>conftest.er1
16651 grep -v '^ *+' conftest.er1 >conftest.err
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest$ac_exeext &&
16659 $as_test_x conftest$ac_exeext; then
16660 ac_cv_lib_pthreads_pthread_create=yes
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 ac_cv_lib_pthreads_pthread_create=no
16668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16669 conftest$ac_exeext conftest.$ac_ext
16670 LIBS=$ac_check_lib_save_LIBS
16672 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16673 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16674 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16675 cat >>confdefs.h <<\_ACEOF
16676 #define WITH_THREAD 1
16680 LIBS="$LIBS -lpthreads"
16681 THREADOBJ="Python/thread.o"
16684 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16685 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16686 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16687 echo $ECHO_N "(cached) $ECHO_C" >&6
16689 ac_check_lib_save_LIBS=$LIBS
16691 cat >conftest.$ac_ext <<_ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16698 /* Override any GCC internal prototype to avoid an error.
16699 Use char because int might match the return type of a GCC
16700 builtin and then its argument prototype would still apply. */
16704 char pthread_create ();
16708 return pthread_create ();
16713 rm -f conftest.$ac_objext conftest$ac_exeext
16714 if { (ac_try="$ac_link"
16715 case "(($ac_try" in
16716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16717 *) ac_try_echo
=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_link") 2>conftest.er1
16722 grep -v '^ *+' conftest.er1
>conftest.err
16724 cat conftest.err
>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } && {
16727 test -z "$ac_c_werror_flag" ||
16728 test ! -s conftest.err
16729 } && test -s conftest
$ac_exeext &&
16730 $as_test_x conftest
$ac_exeext; then
16731 ac_cv_lib_c_r_pthread_create
=yes
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.
$ac_ext >&5
16736 ac_cv_lib_c_r_pthread_create
=no
16739 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16740 conftest
$ac_exeext conftest.
$ac_ext
16741 LIBS
=$ac_check_lib_save_LIBS
16743 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16744 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16745 if test $ac_cv_lib_c_r_pthread_create = yes; then
16746 cat >>confdefs.h
<<\_ACEOF
16747 #define WITH_THREAD 1
16752 THREADOBJ
="Python/thread.o"
16755 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16756 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16757 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 ac_check_lib_save_LIBS
=$LIBS
16761 LIBS
="-lpthread $LIBS"
16762 cat >conftest.
$ac_ext <<_ACEOF
16765 cat confdefs.h
>>conftest.
$ac_ext
16766 cat >>conftest.
$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16769 /* Override any GCC internal prototype to avoid an error.
16770 Use char because int might match the return type of a GCC
16771 builtin and then its argument prototype would still apply. */
16775 char __pthread_create_system ();
16779 return __pthread_create_system ();
16784 rm -f conftest.
$ac_objext conftest
$ac_exeext
16785 if { (ac_try
="$ac_link"
16786 case "(($ac_try" in
16787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_link") 2>conftest.er1
16793 grep -v '^ *+' conftest.er1 >conftest.err
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest$ac_exeext &&
16801 $as_test_x conftest$ac_exeext; then
16802 ac_cv_lib_pthread___pthread_create_system=yes
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 ac_cv_lib_pthread___pthread_create_system=no
16810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16811 conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16814 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16815 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16816 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16817 cat >>confdefs.h <<\_ACEOF
16818 #define WITH_THREAD 1
16822 LIBS="$LIBS -lpthread"
16823 THREADOBJ="Python/thread.o"
16826 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16827 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16828 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 ac_check_lib_save_LIBS=$LIBS
16833 cat >conftest.$ac_ext <<_ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16840 /* Override any GCC internal prototype to avoid an error.
16841 Use char because int might match the return type of a GCC
16842 builtin and then its argument prototype would still apply. */
16846 char pthread_create ();
16850 return pthread_create ();
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (ac_try="$ac_link"
16857 case "(($ac_try" in
16858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16859 *) ac_try_echo
=$ac_try;;
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_link") 2>conftest.er1
16864 grep -v '^ *+' conftest.er1
>conftest.err
16866 cat conftest.err
>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest
$ac_exeext &&
16872 $as_test_x conftest
$ac_exeext; then
16873 ac_cv_lib_cma_pthread_create
=yes
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.
$ac_ext >&5
16878 ac_cv_lib_cma_pthread_create
=no
16881 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16882 conftest
$ac_exeext conftest.
$ac_ext
16883 LIBS
=$ac_check_lib_save_LIBS
16885 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16886 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16887 if test $ac_cv_lib_cma_pthread_create = yes; then
16888 cat >>confdefs.h
<<\_ACEOF
16889 #define WITH_THREAD 1
16894 THREADOBJ
="Python/thread.o"
16897 USE_THREAD_MODULE
="#"
16917 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16918 conftest
$ac_exeext conftest.
$ac_ext
16928 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16929 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16930 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 ac_check_lib_save_LIBS
=$LIBS
16935 cat >conftest.
$ac_ext <<_ACEOF
16938 cat confdefs.h
>>conftest.
$ac_ext
16939 cat >>conftest.
$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 /* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16952 return usconfig ();
16957 rm -f conftest.
$ac_objext conftest
$ac_exeext
16958 if { (ac_try
="$ac_link"
16959 case "(($ac_try" in
16960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>conftest.er1
16966 grep -v '^ *+' conftest.er1 >conftest.err
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } && {
16971 test -z "$ac_c_werror_flag" ||
16972 test ! -s conftest.err
16973 } && test -s conftest$ac_exeext &&
16974 $as_test_x conftest$ac_exeext; then
16975 ac_cv_lib_mpc_usconfig=yes
16977 echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_cv_lib_mpc_usconfig=no
16983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16984 conftest$ac_exeext conftest.$ac_ext
16985 LIBS=$ac_check_lib_save_LIBS
16987 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16988 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16989 if test $ac_cv_lib_mpc_usconfig = yes; then
16990 cat >>confdefs.h <<\_ACEOF
16991 #define WITH_THREAD 1
16995 THREADOBJ="Python/thread.o"
16996 USE_THREAD_MODULE=""
17000 if test "$posix_threads" != "yes"; then
17001 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
17002 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
17003 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
17004 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 ac_check_lib_save_LIBS=$LIBS
17007 LIBS="-lthread $LIBS"
17008 cat >conftest.$ac_ext <<_ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17015 /* Override any GCC internal prototype to avoid an error.
17016 Use char because int might match the return type of a GCC
17017 builtin and then its argument prototype would still apply. */
17021 char thr_create ();
17025 return thr_create ();
17030 rm -f conftest.$ac_objext conftest$ac_exeext
17031 if { (ac_try="$ac_link"
17032 case "(($ac_try" in
17033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17034 *) ac_try_echo
=$ac_try;;
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_link") 2>conftest.er1
17039 grep -v '^ *+' conftest.er1
>conftest.err
17041 cat conftest.err
>&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } && {
17044 test -z "$ac_c_werror_flag" ||
17045 test ! -s conftest.err
17046 } && test -s conftest
$ac_exeext &&
17047 $as_test_x conftest
$ac_exeext; then
17048 ac_cv_lib_thread_thr_create
=yes
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.
$ac_ext >&5
17053 ac_cv_lib_thread_thr_create
=no
17056 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17057 conftest
$ac_exeext conftest.
$ac_ext
17058 LIBS
=$ac_check_lib_save_LIBS
17060 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
17061 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
17062 if test $ac_cv_lib_thread_thr_create = yes; then
17063 cat >>confdefs.h
<<\_ACEOF
17064 #define WITH_THREAD 1
17067 LIBS
="$LIBS -lthread"
17068 THREADOBJ
="Python/thread.o"
17069 USE_THREAD_MODULE
=""
17074 if test "$USE_THREAD_MODULE" != "#"
17076 # If the above checks didn't disable threads, (at least) OSF1
17077 # needs this '-threads' argument during linking.
17078 case $ac_sys_system in
17079 OSF1
) LDLAST
=-threads;;
17084 if test "$posix_threads" = "yes"; then
17085 if test "$unistd_defines_pthreads" = "no"; then
17087 cat >>confdefs.h
<<\_ACEOF
17088 #define _POSIX_THREADS 1
17093 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
17094 case $ac_sys_system/$ac_sys_release in
17096 cat >>confdefs.h
<<\_ACEOF
17097 #define HAVE_PTHREAD_DESTRUCTOR 1
17102 cat >>confdefs.h
<<\_ACEOF
17103 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
17108 cat >>confdefs.h
<<\_ACEOF
17109 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
17115 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
17116 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
17117 if test "${ac_cv_pthread_system_supported+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 if test "$cross_compiling" = yes; then
17121 ac_cv_pthread_system_supported
=no
17123 cat >conftest.
$ac_ext <<_ACEOF
17126 cat confdefs.h
>>conftest.
$ac_ext
17127 cat >>conftest.
$ac_ext <<_ACEOF
17128 /* end confdefs.h. */
17129 #include <pthread.h>
17130 void *foo(void *parm) {
17134 pthread_attr_t attr;
17136 if (pthread_attr_init(&attr)) exit(-1);
17137 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17138 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17142 rm -f conftest
$ac_exeext
17143 if { (ac_try
="$ac_link"
17144 case "(($ac_try" in
17145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17146 *) ac_try_echo=$ac_try;;
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_link") 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17153 { (case "(($ac_try" in
17154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17155 *) ac_try_echo
=$ac_try;;
17157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_try") 2>&5
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; }; then
17162 ac_cv_pthread_system_supported
=yes
17164 echo "$as_me: program exited with status $ac_status" >&5
17165 echo "$as_me: failed program was:" >&5
17166 sed 's/^/| /' conftest.
$ac_ext >&5
17168 ( exit $ac_status )
17169 ac_cv_pthread_system_supported
=no
17171 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17178 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17179 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17180 if test "$ac_cv_pthread_system_supported" = "yes"; then
17182 cat >>confdefs.h
<<\_ACEOF
17183 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17188 for ac_func
in pthread_sigmask
17190 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17193 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 cat >conftest.
$ac_ext <<_ACEOF
17199 cat confdefs.h
>>conftest.
$ac_ext
17200 cat >>conftest.
$ac_ext <<_ACEOF
17201 /* end confdefs.h. */
17202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17204 #define $ac_func innocuous_$ac_func
17206 /* System header to define __stub macros and hopefully few prototypes,
17207 which can conflict with char $ac_func (); below.
17208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17209 <limits.h> exists even on freestanding compilers. */
17212 # include <limits.h>
17214 # include <assert.h>
17219 /* Override any GCC internal prototype to avoid an error.
17220 Use char because int might match the return type of a GCC
17221 builtin and then its argument prototype would still apply. */
17226 /* The GNU C library defines this for functions which it implements
17227 to always fail with ENOSYS. Some functions are actually named
17228 something starting with __ and the normal name is an alias. */
17229 #if defined __stub_$ac_func || defined __stub___$ac_func
17236 return $ac_func ();
17241 rm -f conftest.
$ac_objext conftest
$ac_exeext
17242 if { (ac_try
="$ac_link"
17243 case "(($ac_try" in
17244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17245 *) ac_try_echo=$ac_try;;
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248 (eval "$ac_link") 2>conftest.er1
17250 grep -v '^ *+' conftest.er1 >conftest.err
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } && {
17255 test -z "$ac_c_werror_flag" ||
17256 test ! -s conftest.err
17257 } && test -s conftest$ac_exeext &&
17258 $as_test_x conftest$ac_exeext; then
17259 eval "$as_ac_var=yes"
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17264 eval "$as_ac_var=no"
17267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17268 conftest$ac_exeext conftest.$ac_ext
17270 ac_res=`eval echo '${'$as_ac_var'}'`
17271 { echo "$as_me:$LINENO: result: $ac_res" >&5
17272 echo "${ECHO_T}$ac_res" >&6; }
17273 if test `eval echo '${'$as_ac_var'}'` = yes; then
17274 cat >>confdefs.h <<_ACEOF
17275 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17277 case $ac_sys_system in
17280 cat >>confdefs.h <<\_ACEOF
17281 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17292 # Check for enable-ipv6
17295 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17296 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17297 # Check whether --enable-ipv6 was given.
17298 if test "${enable_ipv6+set}" = set; then
17299 enableval=$enable_ipv6; case "$enableval" in
17301 { echo "$as_me:$LINENO: result: no" >&5
17302 echo "${ECHO_T}no" >&6; }
17305 *) { echo "$as_me:$LINENO: result: yes" >&5
17306 echo "${ECHO_T}yes" >&6; }
17307 cat >>confdefs.h <<\_ACEOF
17308 #define ENABLE_IPV6 1
17316 if test "$cross_compiling" = yes; then
17317 { echo "$as_me:$LINENO: result: no" >&5
17318 echo "${ECHO_T}no" >&6; }
17322 cat >conftest.$ac_ext <<_ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h. */
17328 /* AF_INET6 available check */
17329 #include <sys/types.h>
17330 #include <sys/socket.h>
17333 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17340 rm -f conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17344 *) ac_try_echo
=$ac_try;;
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17351 { (case "(($ac_try" in
17352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17353 *) ac_try_echo=$ac_try;;
17355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17356 (eval "$ac_try") 2>&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 { echo "$as_me:$LINENO: result: yes" >&5
17361 echo "${ECHO_T}yes" >&6; }
17364 echo "$as_me: program exited with status $ac_status" >&5
17365 echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 ( exit $ac_status )
17369 { echo "$as_me:$LINENO: result: no" >&5
17370 echo "${ECHO_T}no" >&6; }
17373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17378 if test "$ipv6" = "yes"; then
17379 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17380 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <sys/types.h>
17388 #include <netinet/in.h>
17392 struct sockaddr_in6 x;
17398 rm -f conftest.$ac_objext
17399 if { (ac_try="$ac_compile"
17400 case "(($ac_try" in
17401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17402 *) ac_try_echo
=$ac_try;;
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_compile") 2>conftest.er1
17407 grep -v '^ *+' conftest.er1
>conftest.err
17409 cat conftest.err
>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } && {
17412 test -z "$ac_c_werror_flag" ||
17413 test ! -s conftest.err
17414 } && test -s conftest.
$ac_objext; then
17415 { echo "$as_me:$LINENO: result: yes" >&5
17416 echo "${ECHO_T}yes" >&6; }
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.
$ac_ext >&5
17422 { echo "$as_me:$LINENO: result: no" >&5
17423 echo "${ECHO_T}no" >&6; }
17427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17430 if test "$ipv6" = "yes"; then
17431 cat >>confdefs.h
<<\_ACEOF
17432 #define ENABLE_IPV6 1
17444 if test "$ipv6" = "yes"; then
17445 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17446 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17447 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
17451 cat >conftest.
$ac_ext <<_ACEOF
17454 cat confdefs.h
>>conftest.
$ac_ext
17455 cat >>conftest.
$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17458 #include <netinet/in.h>
17459 #ifdef IPV6_INRIA_VERSION
17463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17464 $EGREP "yes" >/dev
/null
2>&1; then
17471 cat >conftest.
$ac_ext <<_ACEOF
17474 cat confdefs.h
>>conftest.
$ac_ext
17475 cat >>conftest.
$ac_ext <<_ACEOF
17476 /* end confdefs.h. */
17478 #include <netinet/in.h>
17483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17484 $EGREP "yes" >/dev
/null
2>&1; then
17487 ipv6libdir
=/usr
/local
/v
6/lib
17494 cat >conftest.
$ac_ext <<_ACEOF
17497 cat confdefs.h
>>conftest.
$ac_ext
17498 cat >>conftest.
$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17501 #include <features.h>
17502 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17507 $EGREP "yes" >/dev
/null
2>&1; then
17515 if test -d /usr
/inet6
; then
17518 ipv6libdir
=/usr
/inet
6/lib
17519 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
17523 if test -f /etc
/netconfig
; then
17524 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
17531 cat >conftest.
$ac_ext <<_ACEOF
17534 cat confdefs.h
>>conftest.
$ac_ext
17535 cat >>conftest.
$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17538 #include <sys/param.h>
17539 #ifdef _TOSHIBA_INET6
17543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17544 $EGREP "yes" >/dev
/null
2>&1; then
17547 ipv6libdir
=/usr
/local
/v
6/lib
17553 cat >conftest.
$ac_ext <<_ACEOF
17556 cat confdefs.h
>>conftest.
$ac_ext
17557 cat >>conftest.
$ac_ext <<_ACEOF
17558 /* end confdefs.h. */
17560 #include </usr/local/v6/include/sys/v6config.h>
17565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17566 $EGREP "yes" >/dev
/null
2>&1; then
17569 ipv6libdir
=/usr
/local
/v
6/lib
;
17570 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
17576 cat >conftest.
$ac_ext <<_ACEOF
17579 cat confdefs.h
>>conftest.
$ac_ext
17580 cat >>conftest.
$ac_ext <<_ACEOF
17581 /* end confdefs.h. */
17583 #include <sys/param.h>
17584 #ifdef _ZETA_MINAMI_INET6
17588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17589 $EGREP "yes" >/dev
/null
2>&1; then
17592 ipv6libdir
=/usr
/local
/v
6/lib
17598 if test "$ipv6type" != "unknown"; then
17602 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17603 echo "${ECHO_T}$ipv6type" >&6; }
17606 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17607 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
17608 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
17609 echo "using lib$ipv6lib"
17611 if test $ipv6trylibc = "yes"; then
17614 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17615 echo "You need to fetch lib$ipv6lib.a from appropriate"
17616 echo 'ipv6 kit and compile beforehand.'
17622 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17623 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17624 cat >conftest.
$ac_ext <<_ACEOF
17627 cat confdefs.h
>>conftest.
$ac_ext
17628 cat >>conftest.
$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 #include <Carbon/Carbon.h>
17634 FSIORefNum fRef = 0
17639 rm -f conftest.
$ac_objext
17640 if { (ac_try
="$ac_compile"
17641 case "(($ac_try" in
17642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_compile") 2>conftest.er1
17648 grep -v '^ *+' conftest.er1 >conftest.err
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } && {
17653 test -z "$ac_c_werror_flag" ||
17654 test ! -s conftest.err
17655 } && test -s conftest.$ac_objext; then
17657 cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_OSX105_SDK 1
17661 { echo "$as_me:$LINENO: result: yes" >&5
17662 echo "${ECHO_T}yes" >&6; }
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 { echo "$as_me:$LINENO: result: no" >&5
17668 echo "${ECHO_T}no" >&6; }
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674 # Check for --with-doc-strings
17675 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17676 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17678 # Check whether --with-doc-strings was given.
17679 if test "${with_doc_strings+set}" = set; then
17680 withval=$with_doc_strings;
17684 if test -z "$with_doc_strings"
17685 then with_doc_strings="yes"
17687 if test "$with_doc_strings" != "no"
17690 cat >>confdefs.h <<\_ACEOF
17691 #define WITH_DOC_STRINGS 1
17695 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17696 echo "${ECHO_T}$with_doc_strings" >&6; }
17698 # Check for Python-specific malloc support
17699 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17700 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17702 # Check whether --with-tsc was given.
17703 if test "${with_tsc+set}" = set; then
17705 if test "$withval" != no
17708 cat >>confdefs.h <<\_ACEOF
17712 { echo "$as_me:$LINENO: result: yes" >&5
17713 echo "${ECHO_T}yes" >&6; }
17714 else { echo "$as_me:$LINENO: result: no" >&5
17715 echo "${ECHO_T}no" >&6; }
17718 { echo "$as_me:$LINENO: result: no" >&5
17719 echo "${ECHO_T}no" >&6; }
17723 # Check for Python-specific malloc support
17724 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17725 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17727 # Check whether --with-pymalloc was given.
17728 if test "${with_pymalloc+set}" = set; then
17729 withval=$with_pymalloc;
17733 if test -z "$with_pymalloc"
17734 then with_pymalloc="yes"
17736 if test "$with_pymalloc" != "no"
17739 cat >>confdefs.h <<\_ACEOF
17740 #define WITH_PYMALLOC 1
17744 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17745 echo "${ECHO_T}$with_pymalloc" >&6; }
17747 # Check for Valgrind support
17748 { echo "$as_me:$LINENO: checking for --with-valgrind" >&5
17749 echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; }
17751 # Check whether --with-valgrind was given.
17752 if test "${with_valgrind+set}" = set; then
17753 withval=$with_valgrind;
17758 { echo "$as_me:$LINENO: result: $with_valgrind" >&5
17759 echo "${ECHO_T}$with_valgrind" >&6; }
17760 if test "$with_valgrind" != no; then
17761 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17762 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17763 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17764 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17768 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17770 # Is the header compilable?
17771 { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5
17772 echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; }
17773 cat >conftest.$ac_ext <<_ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779 $ac_includes_default
17780 #include <valgrind/valgrind.h>
17782 rm -f conftest.$ac_objext
17783 if { (ac_try="$ac_compile"
17784 case "(($ac_try" in
17785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17786 *) ac_try_echo
=$ac_try;;
17788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17789 (eval "$ac_compile") 2>conftest.er1
17791 grep -v '^ *+' conftest.er1
>conftest.err
17793 cat conftest.err
>&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); } && {
17796 test -z "$ac_c_werror_flag" ||
17797 test ! -s conftest.err
17798 } && test -s conftest.
$ac_objext; then
17799 ac_header_compiler
=yes
17801 echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.
$ac_ext >&5
17804 ac_header_compiler
=no
17807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17809 echo "${ECHO_T}$ac_header_compiler" >&6; }
17811 # Is the header present?
17812 { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5
17813 echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; }
17814 cat >conftest.
$ac_ext <<_ACEOF
17817 cat confdefs.h
>>conftest.
$ac_ext
17818 cat >>conftest.
$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 #include <valgrind/valgrind.h>
17822 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17823 case "(($ac_try" in
17824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17825 *) ac_try_echo=$ac_try;;
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17830 grep -v '^ *+' conftest.er1 >conftest.err
17832 cat conftest.err >&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } >/dev/null && {
17835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17836 test ! -s conftest.err
17838 ac_header_preproc=yes
17840 echo "$as_me: failed program was:" >&5
17841 sed 's/^/| /' conftest.$ac_ext >&5
17843 ac_header_preproc=no
17846 rm -f conftest.err conftest.$ac_ext
17847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17848 echo "${ECHO_T}$ac_header_preproc" >&6; }
17850 # So? What about this header?
17851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17853 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
17854 echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17855 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5
17856 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;}
17857 ac_header_preproc=yes
17860 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5
17861 echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5
17863 echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;}
17864 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5
17865 echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;}
17866 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
17867 echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
17868 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5
17869 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;}
17870 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5
17871 echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;}
17873 ## -------------------------------------- ##
17874 ## Report this to http://bugs.python.org/ ##
17875 ## -------------------------------------- ##
17877 ) | sed "s/^/$as_me: WARNING: /" >&2
17880 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17881 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17882 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 ac_cv_header_valgrind_valgrind_h=$ac_header_preproc
17887 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17888 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17891 if test $ac_cv_header_valgrind_valgrind_h = yes; then
17893 cat >>confdefs.h <<\_ACEOF
17894 #define WITH_VALGRIND 1
17898 { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5
17899 echo "$as_me: error: Valgrind support requested but headers not available" >&2;}
17900 { (exit 1); exit 1; }; }
17907 # Check for --with-wctype-functions
17908 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17909 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17911 # Check whether --with-wctype-functions was given.
17912 if test "${with_wctype_functions+set}" = set; then
17913 withval=$with_wctype_functions;
17914 if test "$withval" != no
17917 cat >>confdefs.h <<\_ACEOF
17918 #define WANT_WCTYPE_FUNCTIONS 1
17921 { echo "$as_me:$LINENO: result: yes" >&5
17922 echo "${ECHO_T}yes" >&6; }
17923 else { echo "$as_me:$LINENO: result: no" >&5
17924 echo "${ECHO_T}no" >&6; }
17927 { echo "$as_me:$LINENO: result: no" >&5
17928 echo "${ECHO_T}no" >&6; }
17932 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17936 # the dlopen() function means we might want to use dynload_shlib.o. some
17937 # platforms, such as AIX, have dlopen(), but don't want to use it.
17939 for ac_func in dlopen
17941 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17944 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17947 cat >conftest.$ac_ext <<_ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17955 #define $ac_func innocuous_$ac_func
17957 /* System header to define __stub macros and hopefully few prototypes,
17958 which can conflict with char $ac_func (); below.
17959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17960 <limits.h> exists even on freestanding compilers. */
17963 # include <limits.h>
17965 # include <assert.h>
17970 /* Override any GCC internal prototype to avoid an error.
17971 Use char because int might match the return type of a GCC
17972 builtin and then its argument prototype would still apply. */
17977 /* The GNU C library defines this for functions which it implements
17978 to always fail with ENOSYS. Some functions are actually named
17979 something starting with __ and the normal name is an alias. */
17980 #if defined __stub_$ac_func || defined __stub___$ac_func
17987 return $ac_func ();
17992 rm -f conftest.$ac_objext conftest$ac_exeext
17993 if { (ac_try="$ac_link"
17994 case "(($ac_try" in
17995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17996 *) ac_try_echo
=$ac_try;;
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_link") 2>conftest.er1
18001 grep -v '^ *+' conftest.er1
>conftest.err
18003 cat conftest.err
>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } && {
18006 test -z "$ac_c_werror_flag" ||
18007 test ! -s conftest.err
18008 } && test -s conftest
$ac_exeext &&
18009 $as_test_x conftest
$ac_exeext; then
18010 eval "$as_ac_var=yes"
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.
$ac_ext >&5
18015 eval "$as_ac_var=no"
18018 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18019 conftest
$ac_exeext conftest.
$ac_ext
18021 ac_res
=`eval echo '${'$as_ac_var'}'`
18022 { echo "$as_me:$LINENO: result: $ac_res" >&5
18023 echo "${ECHO_T}$ac_res" >&6; }
18024 if test `eval echo '${'$as_ac_var'}'` = yes; then
18025 cat >>confdefs.h
<<_ACEOF
18026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18033 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
18034 # loading of modules.
18036 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
18037 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
18038 if test -z "$DYNLOADFILE"
18040 case $ac_sys_system/$ac_sys_release in
18041 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
18042 if test "$ac_cv_func_dlopen" = yes
18043 then DYNLOADFILE
="dynload_shlib.o"
18044 else DYNLOADFILE
="dynload_aix.o"
18047 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
18048 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
18049 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
18050 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
18051 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
18053 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
18054 # out any dynamic loading
18055 if test "$ac_cv_func_dlopen" = yes
18056 then DYNLOADFILE
="dynload_shlib.o"
18057 else DYNLOADFILE
="dynload_stub.o"
18062 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
18063 echo "${ECHO_T}$DYNLOADFILE" >&6; }
18064 if test "$DYNLOADFILE" != "dynload_stub.o"
18067 cat >>confdefs.h
<<\_ACEOF
18068 #define HAVE_DYNAMIC_LOADING 1
18073 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
18076 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
18077 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
18078 if test -z "$MACHDEP_OBJS"
18080 MACHDEP_OBJS
=$extra_machdep_objs
18082 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
18084 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
18085 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
18087 # checks for library functions
18187 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
18188 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
18189 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
18190 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
18191 initgroups
kill killpg lchmod lchown lstat
mkfifo mknod mktime \
18192 mremap nice pathconf pause plock poll pthread_init \
18193 putenv readlink realpath \
18194 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
18196 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
18197 setlocale setregid setreuid setresuid setresgid \
18198 setsid setpgid setpgrp setuid setvbuf snprintf \
18199 sigaction siginterrupt sigrelse strftime \
18200 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
18201 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
18203 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18206 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 cat >conftest.
$ac_ext <<_ACEOF
18212 cat confdefs.h
>>conftest.
$ac_ext
18213 cat >>conftest.
$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18217 #define $ac_func innocuous_$ac_func
18219 /* System header to define __stub macros and hopefully few prototypes,
18220 which can conflict with char $ac_func (); below.
18221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18222 <limits.h> exists even on freestanding compilers. */
18225 # include <limits.h>
18227 # include <assert.h>
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18239 /* The GNU C library defines this for functions which it implements
18240 to always fail with ENOSYS. Some functions are actually named
18241 something starting with __ and the normal name is an alias. */
18242 #if defined __stub_$ac_func || defined __stub___$ac_func
18249 return $ac_func ();
18254 rm -f conftest.
$ac_objext conftest
$ac_exeext
18255 if { (ac_try
="$ac_link"
18256 case "(($ac_try" in
18257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_link") 2>conftest.er1
18263 grep -v '^ *+' conftest.er1 >conftest.err
18265 cat conftest.err >&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); } && {
18268 test -z "$ac_c_werror_flag" ||
18269 test ! -s conftest.err
18270 } && test -s conftest$ac_exeext &&
18271 $as_test_x conftest$ac_exeext; then
18272 eval "$as_ac_var=yes"
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 eval "$as_ac_var=no"
18280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18281 conftest$ac_exeext conftest.$ac_ext
18283 ac_res=`eval echo '${'$as_ac_var'}'`
18284 { echo "$as_me:$LINENO: result: $ac_res" >&5
18285 echo "${ECHO_T}$ac_res" >&6; }
18286 if test `eval echo '${'$as_ac_var'}'` = yes; then
18287 cat >>confdefs.h <<_ACEOF
18288 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18295 # For some functions, having a definition is not sufficient, since
18296 # we want to take their address.
18297 { echo "$as_me:$LINENO: checking for chroot" >&5
18298 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18299 cat >conftest.$ac_ext <<_ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305 #include <unistd.h>
18314 rm -f conftest.$ac_objext
18315 if { (ac_try="$ac_compile"
18316 case "(($ac_try" in
18317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18318 *) ac_try_echo
=$ac_try;;
18320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_compile") 2>conftest.er1
18323 grep -v '^ *+' conftest.er1
>conftest.err
18325 cat conftest.err
>&5
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest.
$ac_objext; then
18332 cat >>confdefs.h
<<\_ACEOF
18333 #define HAVE_CHROOT 1
18336 { echo "$as_me:$LINENO: result: yes" >&5
18337 echo "${ECHO_T}yes" >&6; }
18339 echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.
$ac_ext >&5
18342 { echo "$as_me:$LINENO: result: no" >&5
18343 echo "${ECHO_T}no" >&6; }
18347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18348 { echo "$as_me:$LINENO: checking for link" >&5
18349 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18350 cat >conftest.
$ac_ext <<_ACEOF
18353 cat confdefs.h
>>conftest.
$ac_ext
18354 cat >>conftest.
$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 #include <unistd.h>
18365 rm -f conftest.
$ac_objext
18366 if { (ac_try
="$ac_compile"
18367 case "(($ac_try" in
18368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_compile") 2>conftest.er1
18374 grep -v '^ *+' conftest.er1 >conftest.err
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } && {
18379 test -z "$ac_c_werror_flag" ||
18380 test ! -s conftest.err
18381 } && test -s conftest.$ac_objext; then
18383 cat >>confdefs.h <<\_ACEOF
18384 #define HAVE_LINK 1
18387 { echo "$as_me:$LINENO: result: yes" >&5
18388 echo "${ECHO_T}yes" >&6; }
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 { echo "$as_me:$LINENO: result: no" >&5
18394 echo "${ECHO_T}no" >&6; }
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399 { echo "$as_me:$LINENO: checking for symlink" >&5
18400 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18401 cat >conftest.$ac_ext <<_ACEOF
18404 cat confdefs.h >>conftest.$ac_ext
18405 cat >>conftest.$ac_ext <<_ACEOF
18406 /* end confdefs.h. */
18407 #include <unistd.h>
18416 rm -f conftest.$ac_objext
18417 if { (ac_try="$ac_compile"
18418 case "(($ac_try" in
18419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18420 *) ac_try_echo
=$ac_try;;
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_compile") 2>conftest.er1
18425 grep -v '^ *+' conftest.er1
>conftest.err
18427 cat conftest.err
>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } && {
18430 test -z "$ac_c_werror_flag" ||
18431 test ! -s conftest.err
18432 } && test -s conftest.
$ac_objext; then
18434 cat >>confdefs.h
<<\_ACEOF
18435 #define HAVE_SYMLINK 1
18438 { echo "$as_me:$LINENO: result: yes" >&5
18439 echo "${ECHO_T}yes" >&6; }
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.
$ac_ext >&5
18444 { echo "$as_me:$LINENO: result: no" >&5
18445 echo "${ECHO_T}no" >&6; }
18449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18450 { echo "$as_me:$LINENO: checking for fchdir" >&5
18451 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18452 cat >conftest.
$ac_ext <<_ACEOF
18455 cat confdefs.h
>>conftest.
$ac_ext
18456 cat >>conftest.
$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18458 #include <unistd.h>
18467 rm -f conftest.
$ac_objext
18468 if { (ac_try
="$ac_compile"
18469 case "(($ac_try" in
18470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_compile") 2>conftest.er1
18476 grep -v '^ *+' conftest.er1 >conftest.err
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } && {
18481 test -z "$ac_c_werror_flag" ||
18482 test ! -s conftest.err
18483 } && test -s conftest.$ac_objext; then
18485 cat >>confdefs.h <<\_ACEOF
18486 #define HAVE_FCHDIR 1
18489 { echo "$as_me:$LINENO: result: yes" >&5
18490 echo "${ECHO_T}yes" >&6; }
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18495 { echo "$as_me:$LINENO: result: no" >&5
18496 echo "${ECHO_T}no" >&6; }
18500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18501 { echo "$as_me:$LINENO: checking for fsync" >&5
18502 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 #include <unistd.h>
18518 rm -f conftest.$ac_objext
18519 if { (ac_try="$ac_compile"
18520 case "(($ac_try" in
18521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18522 *) ac_try_echo
=$ac_try;;
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_compile") 2>conftest.er1
18527 grep -v '^ *+' conftest.er1
>conftest.err
18529 cat conftest.err
>&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } && {
18532 test -z "$ac_c_werror_flag" ||
18533 test ! -s conftest.err
18534 } && test -s conftest.
$ac_objext; then
18536 cat >>confdefs.h
<<\_ACEOF
18537 #define HAVE_FSYNC 1
18540 { echo "$as_me:$LINENO: result: yes" >&5
18541 echo "${ECHO_T}yes" >&6; }
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.
$ac_ext >&5
18546 { echo "$as_me:$LINENO: result: no" >&5
18547 echo "${ECHO_T}no" >&6; }
18551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18552 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18553 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18554 cat >conftest.
$ac_ext <<_ACEOF
18557 cat confdefs.h
>>conftest.
$ac_ext
18558 cat >>conftest.
$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18560 #include <unistd.h>
18569 rm -f conftest.
$ac_objext
18570 if { (ac_try
="$ac_compile"
18571 case "(($ac_try" in
18572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_compile") 2>conftest.er1
18578 grep -v '^ *+' conftest.er1 >conftest.err
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } && {
18583 test -z "$ac_c_werror_flag" ||
18584 test ! -s conftest.err
18585 } && test -s conftest.$ac_objext; then
18587 cat >>confdefs.h <<\_ACEOF
18588 #define HAVE_FDATASYNC 1
18591 { echo "$as_me:$LINENO: result: yes" >&5
18592 echo "${ECHO_T}yes" >&6; }
18594 echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18597 { echo "$as_me:$LINENO: result: no" >&5
18598 echo "${ECHO_T}no" >&6; }
18602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18603 { echo "$as_me:$LINENO: checking for epoll" >&5
18604 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18605 cat >conftest.$ac_ext <<_ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h. */
18611 #include <sys/epoll.h>
18615 void *x=epoll_create
18620 rm -f conftest.$ac_objext
18621 if { (ac_try="$ac_compile"
18622 case "(($ac_try" in
18623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18624 *) ac_try_echo
=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_compile") 2>conftest.er1
18629 grep -v '^ *+' conftest.er1
>conftest.err
18631 cat conftest.err
>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest.
$ac_objext; then
18638 cat >>confdefs.h
<<\_ACEOF
18639 #define HAVE_EPOLL 1
18642 { echo "$as_me:$LINENO: result: yes" >&5
18643 echo "${ECHO_T}yes" >&6; }
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.
$ac_ext >&5
18648 { echo "$as_me:$LINENO: result: no" >&5
18649 echo "${ECHO_T}no" >&6; }
18653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18654 { echo "$as_me:$LINENO: checking for kqueue" >&5
18655 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18656 cat >conftest.
$ac_ext <<_ACEOF
18659 cat confdefs.h
>>conftest.
$ac_ext
18660 cat >>conftest.
$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18663 #include <sys/types.h>
18664 #include <sys/event.h>
18674 rm -f conftest.
$ac_objext
18675 if { (ac_try
="$ac_compile"
18676 case "(($ac_try" in
18677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_compile") 2>conftest.er1
18683 grep -v '^ *+' conftest.er1 >conftest.err
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } && {
18688 test -z "$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18690 } && test -s conftest.$ac_objext; then
18692 cat >>confdefs.h <<\_ACEOF
18693 #define HAVE_KQUEUE 1
18696 { echo "$as_me:$LINENO: result: yes" >&5
18697 echo "${ECHO_T}yes" >&6; }
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 { echo "$as_me:$LINENO: result: no" >&5
18703 echo "${ECHO_T}no" >&6; }
18707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708 # On some systems (eg. FreeBSD 5), we would find a definition of the
18709 # functions ctermid_r, setgroups in the library, but no prototype
18710 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18711 # address to avoid compiler warnings and potential miscompilations
18712 # because of the missing prototypes.
18714 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18715 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18716 cat >conftest.$ac_ext <<_ACEOF
18719 cat confdefs.h >>conftest.$ac_ext
18720 cat >>conftest.$ac_ext <<_ACEOF
18721 /* end confdefs.h. */
18723 #include "confdefs.h"
18729 void* p = ctermid_r
18734 rm -f conftest.$ac_objext
18735 if { (ac_try="$ac_compile"
18736 case "(($ac_try" in
18737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18738 *) ac_try_echo
=$ac_try;;
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_compile") 2>conftest.er1
18743 grep -v '^ *+' conftest.er1
>conftest.err
18745 cat conftest.err
>&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } && {
18748 test -z "$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest.
$ac_objext; then
18752 cat >>confdefs.h
<<\_ACEOF
18753 #define HAVE_CTERMID_R 1
18756 { echo "$as_me:$LINENO: result: yes" >&5
18757 echo "${ECHO_T}yes" >&6; }
18759 echo "$as_me: failed program was:" >&5
18760 sed 's/^/| /' conftest.
$ac_ext >&5
18762 { echo "$as_me:$LINENO: result: no" >&5
18763 echo "${ECHO_T}no" >&6; }
18767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18769 { echo "$as_me:$LINENO: checking for flock" >&5
18770 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18771 cat >conftest.
$ac_ext <<_ACEOF
18774 cat confdefs.h
>>conftest.
$ac_ext
18775 cat >>conftest.
$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18778 #include "confdefs.h"
18779 #include <sys/file.h>
18789 rm -f conftest.
$ac_objext
18790 if { (ac_try
="$ac_compile"
18791 case "(($ac_try" in
18792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_compile") 2>conftest.er1
18798 grep -v '^ *+' conftest.er1 >conftest.err
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest.$ac_objext; then
18807 cat >>confdefs.h <<\_ACEOF
18808 #define HAVE_FLOCK 1
18811 { echo "$as_me:$LINENO: result: yes" >&5
18812 echo "${ECHO_T}yes" >&6; }
18814 echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18817 { echo "$as_me:$LINENO: result: no" >&5
18818 echo "${ECHO_T}no" >&6; }
18822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18825 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18826 cat >conftest.$ac_ext <<_ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18833 #include "confdefs.h"
18834 #include <unistd.h>
18839 void* p = getpagesize
18844 rm -f conftest.$ac_objext
18845 if { (ac_try="$ac_compile"
18846 case "(($ac_try" in
18847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18848 *) ac_try_echo
=$ac_try;;
18850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_compile") 2>conftest.er1
18853 grep -v '^ *+' conftest.er1
>conftest.err
18855 cat conftest.err
>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest.
$ac_objext; then
18862 cat >>confdefs.h
<<\_ACEOF
18863 #define HAVE_GETPAGESIZE 1
18866 { echo "$as_me:$LINENO: result: yes" >&5
18867 echo "${ECHO_T}yes" >&6; }
18869 echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.
$ac_ext >&5
18872 { echo "$as_me:$LINENO: result: no" >&5
18873 echo "${ECHO_T}no" >&6; }
18877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18879 for ac_prog
in true
18881 # Extract the first word of "$ac_prog", so it can be a program name with args.
18882 set dummy
$ac_prog; ac_word
=$2
18883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18885 if test "${ac_cv_prog_TRUE+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18888 if test -n "$TRUE"; then
18889 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
18891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18892 for as_dir
in $PATH
18895 test -z "$as_dir" && as_dir
=.
18896 for ac_exec_ext
in '' $ac_executable_extensions; do
18897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18898 ac_cv_prog_TRUE
="$ac_prog"
18899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18908 TRUE
=$ac_cv_prog_TRUE
18909 if test -n "$TRUE"; then
18910 { echo "$as_me:$LINENO: result: $TRUE" >&5
18911 echo "${ECHO_T}$TRUE" >&6; }
18913 { echo "$as_me:$LINENO: result: no" >&5
18914 echo "${ECHO_T}no" >&6; }
18918 test -n "$TRUE" && break
18920 test -n "$TRUE" || TRUE
="/bin/true"
18923 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18924 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18925 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 ac_check_lib_save_LIBS
=$LIBS
18930 cat >conftest.
$ac_ext <<_ACEOF
18933 cat confdefs.h
>>conftest.
$ac_ext
18934 cat >>conftest.
$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18937 /* Override any GCC internal prototype to avoid an error.
18938 Use char because int might match the return type of a GCC
18939 builtin and then its argument prototype would still apply. */
18947 return inet_aton ();
18952 rm -f conftest.
$ac_objext conftest
$ac_exeext
18953 if { (ac_try
="$ac_link"
18954 case "(($ac_try" in
18955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_link") 2>conftest.er1
18961 grep -v '^ *+' conftest.er1 >conftest.err
18963 cat conftest.err >&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } && {
18966 test -z "$ac_c_werror_flag" ||
18967 test ! -s conftest.err
18968 } && test -s conftest$ac_exeext &&
18969 $as_test_x conftest$ac_exeext; then
18970 ac_cv_lib_c_inet_aton=yes
18972 echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_cv_lib_c_inet_aton=no
18978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18979 conftest$ac_exeext conftest.$ac_ext
18980 LIBS=$ac_check_lib_save_LIBS
18982 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18983 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18984 if test $ac_cv_lib_c_inet_aton = yes; then
18988 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18989 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18990 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 ac_check_lib_save_LIBS=$LIBS
18994 LIBS="-lresolv $LIBS"
18995 cat >conftest.$ac_ext <<_ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19002 /* Override any GCC internal prototype to avoid an error.
19003 Use char because int might match the return type of a GCC
19004 builtin and then its argument prototype would still apply. */
19012 return inet_aton ();
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19021 *) ac_try_echo
=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1
>conftest.err
19028 cat conftest.err
>&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest
$ac_exeext &&
19034 $as_test_x conftest
$ac_exeext; then
19035 ac_cv_lib_resolv_inet_aton
=yes
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.
$ac_ext >&5
19040 ac_cv_lib_resolv_inet_aton
=no
19043 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19044 conftest
$ac_exeext conftest.
$ac_ext
19045 LIBS
=$ac_check_lib_save_LIBS
19047 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19048 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
19049 if test $ac_cv_lib_resolv_inet_aton = yes; then
19050 cat >>confdefs.h
<<_ACEOF
19051 #define HAVE_LIBRESOLV 1
19054 LIBS
="-lresolv $LIBS"
19062 # On Tru64, chflags seems to be present, but calling it will
19064 { echo "$as_me:$LINENO: checking for chflags" >&5
19065 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
19066 if test "${ac_cv_have_chflags+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 if test "$cross_compiling" = yes; then
19070 ac_cv_have_chflags
=cross
19072 cat >conftest.
$ac_ext <<_ACEOF
19075 cat confdefs.h
>>conftest.
$ac_ext
19076 cat >>conftest.
$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19079 #include <sys/stat.h>
19080 #include <unistd.h>
19081 int main(int argc, char*argv[])
19083 if(chflags(argv[0], 0) != 0)
19089 rm -f conftest
$ac_exeext
19090 if { (ac_try
="$ac_link"
19091 case "(($ac_try" in
19092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19100 { (case "(($ac_try" in
19101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19102 *) ac_try_echo
=$ac_try;;
19104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19105 (eval "$ac_try") 2>&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); }; }; then
19109 ac_cv_have_chflags
=yes
19111 echo "$as_me: program exited with status $ac_status" >&5
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.
$ac_ext >&5
19115 ( exit $ac_status )
19116 ac_cv_have_chflags
=no
19118 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19124 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
19125 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
19126 if test "$ac_cv_have_chflags" = cross
; then
19127 { echo "$as_me:$LINENO: checking for chflags" >&5
19128 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
19129 if test "${ac_cv_func_chflags+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 cat >conftest.
$ac_ext <<_ACEOF
19135 cat confdefs.h
>>conftest.
$ac_ext
19136 cat >>conftest.
$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
19139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19140 #define chflags innocuous_chflags
19142 /* System header to define __stub macros and hopefully few prototypes,
19143 which can conflict with char chflags (); below.
19144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19145 <limits.h> exists even on freestanding compilers. */
19148 # include <limits.h>
19150 # include <assert.h>
19155 /* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19162 /* The GNU C library defines this for functions which it implements
19163 to always fail with ENOSYS. Some functions are actually named
19164 something starting with __ and the normal name is an alias. */
19165 #if defined __stub_chflags || defined __stub___chflags
19177 rm -f conftest.
$ac_objext conftest
$ac_exeext
19178 if { (ac_try
="$ac_link"
19179 case "(($ac_try" in
19180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_link") 2>conftest.er1
19186 grep -v '^ *+' conftest.er1 >conftest.err
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest$ac_exeext &&
19194 $as_test_x conftest$ac_exeext; then
19195 ac_cv_func_chflags=yes
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 ac_cv_func_chflags=no
19203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19204 conftest$ac_exeext conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
19207 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
19208 if test $ac_cv_func_chflags = yes; then
19209 ac_cv_have_chflags="yes"
19211 ac_cv_have_chflags="no"
19215 if test "$ac_cv_have_chflags" = yes ; then
19217 cat >>confdefs.h <<\_ACEOF
19218 #define HAVE_CHFLAGS 1
19223 { echo "$as_me:$LINENO: checking for lchflags" >&5
19224 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19225 if test "${ac_cv_have_lchflags+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19228 if test "$cross_compiling" = yes; then
19229 ac_cv_have_lchflags=cross
19231 cat >conftest.$ac_ext <<_ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19238 #include <sys/stat.h>
19239 #include <unistd.h>
19240 int main(int argc, char*argv[])
19242 if(lchflags(argv[0], 0) != 0)
19248 rm -f conftest$ac_exeext
19249 if { (ac_try="$ac_link"
19250 case "(($ac_try" in
19251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19252 *) ac_try_echo
=$ac_try;;
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_link") 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19259 { (case "(($ac_try" in
19260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_try") 2>&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268 ac_cv_have_lchflags=yes
19270 echo "$as_me: program exited with status $ac_status" >&5
19271 echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 ( exit $ac_status )
19275 ac_cv_have_lchflags=no
19277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19283 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
19284 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
19285 if test "$ac_cv_have_lchflags" = cross ; then
19286 { echo "$as_me:$LINENO: checking for lchflags" >&5
19287 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19288 if test "${ac_cv_func_lchflags+set}" = set; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 cat >conftest.$ac_ext <<_ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
19298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19299 #define lchflags innocuous_lchflags
19301 /* System header to define __stub macros and hopefully few prototypes,
19302 which can conflict with char lchflags (); below.
19303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19304 <limits.h> exists even on freestanding compilers. */
19307 # include <limits.h>
19309 # include <assert.h>
19314 /* Override any GCC internal prototype to avoid an error.
19315 Use char because int might match the return type of a GCC
19316 builtin and then its argument prototype would still apply. */
19321 /* The GNU C library defines this for functions which it implements
19322 to always fail with ENOSYS. Some functions are actually named
19323 something starting with __ and the normal name is an alias. */
19324 #if defined __stub_lchflags || defined __stub___lchflags
19331 return lchflags ();
19336 rm -f conftest.$ac_objext conftest$ac_exeext
19337 if { (ac_try="$ac_link"
19338 case "(($ac_try" in
19339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19340 *) ac_try_echo
=$ac_try;;
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_link") 2>conftest.er1
19345 grep -v '^ *+' conftest.er1
>conftest.err
19347 cat conftest.err
>&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest
$ac_exeext &&
19353 $as_test_x conftest
$ac_exeext; then
19354 ac_cv_func_lchflags
=yes
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.
$ac_ext >&5
19359 ac_cv_func_lchflags
=no
19362 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19363 conftest
$ac_exeext conftest.
$ac_ext
19365 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
19366 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
19367 if test $ac_cv_func_lchflags = yes; then
19368 ac_cv_have_lchflags
="yes"
19370 ac_cv_have_lchflags
="no"
19374 if test "$ac_cv_have_lchflags" = yes ; then
19376 cat >>confdefs.h
<<\_ACEOF
19377 #define HAVE_LCHFLAGS 1
19382 case $ac_sys_system/$ac_sys_release in
19384 _CUR_CFLAGS
="${CFLAGS}"
19385 _CUR_LDFLAGS
="${LDFLAGS}"
19386 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
19387 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
19391 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
19392 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
19393 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 ac_check_lib_save_LIBS
=$LIBS
19398 cat >conftest.
$ac_ext <<_ACEOF
19401 cat confdefs.h
>>conftest.
$ac_ext
19402 cat >>conftest.
$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19405 /* Override any GCC internal prototype to avoid an error.
19406 Use char because int might match the return type of a GCC
19407 builtin and then its argument prototype would still apply. */
19411 char inflateCopy ();
19415 return inflateCopy ();
19420 rm -f conftest.
$ac_objext conftest
$ac_exeext
19421 if { (ac_try
="$ac_link"
19422 case "(($ac_try" in
19423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_link") 2>conftest.er1
19429 grep -v '^ *+' conftest.er1 >conftest.err
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } && {
19434 test -z "$ac_c_werror_flag" ||
19435 test ! -s conftest.err
19436 } && test -s conftest$ac_exeext &&
19437 $as_test_x conftest$ac_exeext; then
19438 ac_cv_lib_z_inflateCopy=yes
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 ac_cv_lib_z_inflateCopy=no
19446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19447 conftest$ac_exeext conftest.$ac_ext
19448 LIBS=$ac_check_lib_save_LIBS
19450 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
19451 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
19452 if test $ac_cv_lib_z_inflateCopy = yes; then
19454 cat >>confdefs.h <<\_ACEOF
19455 #define HAVE_ZLIB_COPY 1
19461 case $ac_sys_system/$ac_sys_release in
19463 CFLAGS="${_CUR_CFLAGS}"
19464 LDFLAGS="${_CUR_LDFLAGS}"
19468 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19469 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 #include "confdefs.h"
19483 void* p = hstrerror; hstrerror(0)
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19492 *) ac_try_echo
=$ac_try;;
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_link") 2>conftest.er1
19497 grep -v '^ *+' conftest.er1
>conftest.err
19499 cat conftest.err
>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } && {
19502 test -z "$ac_c_werror_flag" ||
19503 test ! -s conftest.err
19504 } && test -s conftest
$ac_exeext &&
19505 $as_test_x conftest
$ac_exeext; then
19507 cat >>confdefs.h
<<\_ACEOF
19508 #define HAVE_HSTRERROR 1
19511 { echo "$as_me:$LINENO: result: yes" >&5
19512 echo "${ECHO_T}yes" >&6; }
19514 echo "$as_me: failed program was:" >&5
19515 sed 's/^/| /' conftest.
$ac_ext >&5
19517 { echo "$as_me:$LINENO: result: no" >&5
19518 echo "${ECHO_T}no" >&6; }
19522 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19523 conftest
$ac_exeext conftest.
$ac_ext
19525 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19526 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19527 cat >conftest.
$ac_ext <<_ACEOF
19530 cat confdefs.h
>>conftest.
$ac_ext
19531 cat >>conftest.
$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19534 #include "confdefs.h"
19535 #include <sys/types.h>
19536 #include <sys/socket.h>
19537 #include <netinet/in.h>
19538 #include <arpa/inet.h>
19543 void* p = inet_aton;inet_aton(0,0)
19548 rm -f conftest.
$ac_objext conftest
$ac_exeext
19549 if { (ac_try
="$ac_link"
19550 case "(($ac_try" in
19551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_link") 2>conftest.er1
19557 grep -v '^ *+' conftest.er1 >conftest.err
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } && {
19562 test -z "$ac_c_werror_flag" ||
19563 test ! -s conftest.err
19564 } && test -s conftest$ac_exeext &&
19565 $as_test_x conftest$ac_exeext; then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define HAVE_INET_ATON 1
19571 { echo "$as_me:$LINENO: result: yes" >&5
19572 echo "${ECHO_T}yes" >&6; }
19574 echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19577 { echo "$as_me:$LINENO: result: no" >&5
19578 echo "${ECHO_T}no" >&6; }
19582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19583 conftest$ac_exeext conftest.$ac_ext
19585 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19586 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19587 cat >conftest.$ac_ext <<_ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19594 #include "confdefs.h"
19595 #include <sys/types.h>
19596 #include <sys/socket.h>
19597 #include <netinet/in.h>
19598 #include <arpa/inet.h>
19603 void* p = inet_pton
19608 rm -f conftest.$ac_objext
19609 if { (ac_try="$ac_compile"
19610 case "(($ac_try" in
19611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19612 *) ac_try_echo
=$ac_try;;
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_compile") 2>conftest.er1
19617 grep -v '^ *+' conftest.er1
>conftest.err
19619 cat conftest.err
>&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest.
$ac_objext; then
19626 cat >>confdefs.h
<<\_ACEOF
19627 #define HAVE_INET_PTON 1
19630 { echo "$as_me:$LINENO: result: yes" >&5
19631 echo "${ECHO_T}yes" >&6; }
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.
$ac_ext >&5
19636 { echo "$as_me:$LINENO: result: no" >&5
19637 echo "${ECHO_T}no" >&6; }
19641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19643 # On some systems, setgroups is in unistd.h, on others, in grp.h
19644 { echo "$as_me:$LINENO: checking for setgroups" >&5
19645 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19646 cat >conftest.
$ac_ext <<_ACEOF
19649 cat confdefs.h
>>conftest.
$ac_ext
19650 cat >>conftest.
$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19653 #include "confdefs.h"
19654 #include <unistd.h>
19662 void* p = setgroups
19667 rm -f conftest.
$ac_objext
19668 if { (ac_try
="$ac_compile"
19669 case "(($ac_try" in
19670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19671 *) ac_try_echo=$ac_try;;
19673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19674 (eval "$ac_compile") 2>conftest.er1
19676 grep -v '^ *+' conftest.er1 >conftest.err
19678 cat conftest.err >&5
19679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680 (exit $ac_status); } && {
19681 test -z "$ac_c_werror_flag" ||
19682 test ! -s conftest.err
19683 } && test -s conftest.$ac_objext; then
19685 cat >>confdefs.h <<\_ACEOF
19686 #define HAVE_SETGROUPS 1
19689 { echo "$as_me:$LINENO: result: yes" >&5
19690 echo "${ECHO_T}yes" >&6; }
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19695 { echo "$as_me:$LINENO: result: no" >&5
19696 echo "${ECHO_T}no" >&6; }
19700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19702 # check for openpty and forkpty
19705 for ac_func in openpty
19707 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 cat >conftest.$ac_ext <<_ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19721 #define $ac_func innocuous_$ac_func
19723 /* System header to define __stub macros and hopefully few prototypes,
19724 which can conflict with char $ac_func (); below.
19725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19726 <limits.h> exists even on freestanding compilers. */
19729 # include <limits.h>
19731 # include <assert.h>
19736 /* Override any GCC internal prototype to avoid an error.
19737 Use char because int might match the return type of a GCC
19738 builtin and then its argument prototype would still apply. */
19743 /* The GNU C library defines this for functions which it implements
19744 to always fail with ENOSYS. Some functions are actually named
19745 something starting with __ and the normal name is an alias. */
19746 #if defined __stub_$ac_func || defined __stub___$ac_func
19753 return $ac_func ();
19758 rm -f conftest.$ac_objext conftest$ac_exeext
19759 if { (ac_try="$ac_link"
19760 case "(($ac_try" in
19761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19762 *) ac_try_echo
=$ac_try;;
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_link") 2>conftest.er1
19767 grep -v '^ *+' conftest.er1
>conftest.err
19769 cat conftest.err
>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest
$ac_exeext &&
19775 $as_test_x conftest
$ac_exeext; then
19776 eval "$as_ac_var=yes"
19778 echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.
$ac_ext >&5
19781 eval "$as_ac_var=no"
19784 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19785 conftest
$ac_exeext conftest.
$ac_ext
19787 ac_res
=`eval echo '${'$as_ac_var'}'`
19788 { echo "$as_me:$LINENO: result: $ac_res" >&5
19789 echo "${ECHO_T}$ac_res" >&6; }
19790 if test `eval echo '${'$as_ac_var'}'` = yes; then
19791 cat >>confdefs.h
<<_ACEOF
19792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19796 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19797 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19798 if test "${ac_cv_lib_util_openpty+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 ac_check_lib_save_LIBS
=$LIBS
19802 LIBS
="-lutil $LIBS"
19803 cat >conftest.
$ac_ext <<_ACEOF
19806 cat confdefs.h
>>conftest.
$ac_ext
19807 cat >>conftest.
$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19810 /* Override any GCC internal prototype to avoid an error.
19811 Use char because int might match the return type of a GCC
19812 builtin and then its argument prototype would still apply. */
19825 rm -f conftest.
$ac_objext conftest
$ac_exeext
19826 if { (ac_try
="$ac_link"
19827 case "(($ac_try" in
19828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_link") 2>conftest.er1
19834 grep -v '^ *+' conftest.er1 >conftest.err
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } && {
19839 test -z "$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 } && test -s conftest$ac_exeext &&
19842 $as_test_x conftest$ac_exeext; then
19843 ac_cv_lib_util_openpty=yes
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19848 ac_cv_lib_util_openpty=no
19851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19852 conftest$ac_exeext conftest.$ac_ext
19853 LIBS=$ac_check_lib_save_LIBS
19855 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19856 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19857 if test $ac_cv_lib_util_openpty = yes; then
19858 cat >>confdefs.h <<\_ACEOF
19859 #define HAVE_OPENPTY 1
19861 LIBS="$LIBS -lutil"
19863 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19864 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19865 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19866 echo $ECHO_N "(cached) $ECHO_C" >&6
19868 ac_check_lib_save_LIBS=$LIBS
19870 cat >conftest.$ac_ext <<_ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h. */
19877 /* Override any GCC internal prototype to avoid an error.
19878 Use char because int might match the return type of a GCC
19879 builtin and then its argument prototype would still apply. */
19892 rm -f conftest.$ac_objext conftest$ac_exeext
19893 if { (ac_try="$ac_link"
19894 case "(($ac_try" in
19895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19896 *) ac_try_echo
=$ac_try;;
19898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_link") 2>conftest.er1
19901 grep -v '^ *+' conftest.er1
>conftest.err
19903 cat conftest.err
>&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest
$ac_exeext &&
19909 $as_test_x conftest
$ac_exeext; then
19910 ac_cv_lib_bsd_openpty
=yes
19912 echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.
$ac_ext >&5
19915 ac_cv_lib_bsd_openpty
=no
19918 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19919 conftest
$ac_exeext conftest.
$ac_ext
19920 LIBS
=$ac_check_lib_save_LIBS
19922 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19923 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19924 if test $ac_cv_lib_bsd_openpty = yes; then
19925 cat >>confdefs.h
<<\_ACEOF
19926 #define HAVE_OPENPTY 1
19939 for ac_func
in forkpty
19941 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19942 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19944 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 cat >conftest.
$ac_ext <<_ACEOF
19950 cat confdefs.h
>>conftest.
$ac_ext
19951 cat >>conftest.
$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19955 #define $ac_func innocuous_$ac_func
19957 /* System header to define __stub macros and hopefully few prototypes,
19958 which can conflict with char $ac_func (); below.
19959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19960 <limits.h> exists even on freestanding compilers. */
19963 # include <limits.h>
19965 # include <assert.h>
19970 /* Override any GCC internal prototype to avoid an error.
19971 Use char because int might match the return type of a GCC
19972 builtin and then its argument prototype would still apply. */
19977 /* The GNU C library defines this for functions which it implements
19978 to always fail with ENOSYS. Some functions are actually named
19979 something starting with __ and the normal name is an alias. */
19980 #if defined __stub_$ac_func || defined __stub___$ac_func
19987 return $ac_func ();
19992 rm -f conftest.
$ac_objext conftest
$ac_exeext
19993 if { (ac_try
="$ac_link"
19994 case "(($ac_try" in
19995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_link") 2>conftest.er1
20001 grep -v '^ *+' conftest.er1 >conftest.err
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest$ac_exeext &&
20009 $as_test_x conftest$ac_exeext; then
20010 eval "$as_ac_var=yes"
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 eval "$as_ac_var=no"
20018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20019 conftest$ac_exeext conftest.$ac_ext
20021 ac_res=`eval echo '${'$as_ac_var'}'`
20022 { echo "$as_me:$LINENO: result: $ac_res" >&5
20023 echo "${ECHO_T}$ac_res" >&6; }
20024 if test `eval echo '${'$as_ac_var'}'` = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20030 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
20031 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
20032 if test "${ac_cv_lib_util_forkpty+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 ac_check_lib_save_LIBS=$LIBS
20036 LIBS="-lutil $LIBS"
20037 cat >conftest.$ac_ext <<_ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h. */
20044 /* Override any GCC internal prototype to avoid an error.
20045 Use char because int might match the return type of a GCC
20046 builtin and then its argument prototype would still apply. */
20059 rm -f conftest.$ac_objext conftest$ac_exeext
20060 if { (ac_try="$ac_link"
20061 case "(($ac_try" in
20062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20063 *) ac_try_echo
=$ac_try;;
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066 (eval "$ac_link") 2>conftest.er1
20068 grep -v '^ *+' conftest.er1
>conftest.err
20070 cat conftest.err
>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); } && {
20073 test -z "$ac_c_werror_flag" ||
20074 test ! -s conftest.err
20075 } && test -s conftest
$ac_exeext &&
20076 $as_test_x conftest
$ac_exeext; then
20077 ac_cv_lib_util_forkpty
=yes
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.
$ac_ext >&5
20082 ac_cv_lib_util_forkpty
=no
20085 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20086 conftest
$ac_exeext conftest.
$ac_ext
20087 LIBS
=$ac_check_lib_save_LIBS
20089 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
20090 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
20091 if test $ac_cv_lib_util_forkpty = yes; then
20092 cat >>confdefs.h
<<\_ACEOF
20093 #define HAVE_FORKPTY 1
20095 LIBS
="$LIBS -lutil"
20097 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
20098 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
20099 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
20102 ac_check_lib_save_LIBS
=$LIBS
20104 cat >conftest.
$ac_ext <<_ACEOF
20107 cat confdefs.h
>>conftest.
$ac_ext
20108 cat >>conftest.
$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20111 /* Override any GCC internal prototype to avoid an error.
20112 Use char because int might match the return type of a GCC
20113 builtin and then its argument prototype would still apply. */
20126 rm -f conftest.
$ac_objext conftest
$ac_exeext
20127 if { (ac_try
="$ac_link"
20128 case "(($ac_try" in
20129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_link") 2>conftest.er1
20135 grep -v '^ *+' conftest.er1 >conftest.err
20137 cat conftest.err >&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } && {
20140 test -z "$ac_c_werror_flag" ||
20141 test ! -s conftest.err
20142 } && test -s conftest$ac_exeext &&
20143 $as_test_x conftest$ac_exeext; then
20144 ac_cv_lib_bsd_forkpty=yes
20146 echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20149 ac_cv_lib_bsd_forkpty=no
20152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20153 conftest$ac_exeext conftest.$ac_ext
20154 LIBS=$ac_check_lib_save_LIBS
20156 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
20157 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
20158 if test $ac_cv_lib_bsd_forkpty = yes; then
20159 cat >>confdefs.h <<\_ACEOF
20160 #define HAVE_FORKPTY 1
20175 for ac_func in memmove
20177 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20191 #define $ac_func innocuous_$ac_func
20193 /* System header to define __stub macros and hopefully few prototypes,
20194 which can conflict with char $ac_func (); below.
20195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196 <limits.h> exists even on freestanding compilers. */
20199 # include <limits.h>
20201 # include <assert.h>
20206 /* Override any GCC internal prototype to avoid an error.
20207 Use char because int might match the return type of a GCC
20208 builtin and then its argument prototype would still apply. */
20213 /* The GNU C library defines this for functions which it implements
20214 to always fail with ENOSYS. Some functions are actually named
20215 something starting with __ and the normal name is an alias. */
20216 #if defined __stub_$ac_func || defined __stub___$ac_func
20223 return $ac_func ();
20228 rm -f conftest.$ac_objext conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20232 *) ac_try_echo
=$ac_try;;
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_link") 2>conftest.er1
20237 grep -v '^ *+' conftest.er1
>conftest.err
20239 cat conftest.err
>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } && {
20242 test -z "$ac_c_werror_flag" ||
20243 test ! -s conftest.err
20244 } && test -s conftest
$ac_exeext &&
20245 $as_test_x conftest
$ac_exeext; then
20246 eval "$as_ac_var=yes"
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.
$ac_ext >&5
20251 eval "$as_ac_var=no"
20254 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20255 conftest
$ac_exeext conftest.
$ac_ext
20257 ac_res
=`eval echo '${'$as_ac_var'}'`
20258 { echo "$as_me:$LINENO: result: $ac_res" >&5
20259 echo "${ECHO_T}$ac_res" >&6; }
20260 if test `eval echo '${'$as_ac_var'}'` = yes; then
20261 cat >>confdefs.h
<<_ACEOF
20262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20269 # check for long file support functions
20276 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
20278 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20281 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20282 echo $ECHO_N "(cached) $ECHO_C" >&6
20284 cat >conftest.
$ac_ext <<_ACEOF
20287 cat confdefs.h
>>conftest.
$ac_ext
20288 cat >>conftest.
$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20292 #define $ac_func innocuous_$ac_func
20294 /* System header to define __stub macros and hopefully few prototypes,
20295 which can conflict with char $ac_func (); below.
20296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20297 <limits.h> exists even on freestanding compilers. */
20300 # include <limits.h>
20302 # include <assert.h>
20307 /* Override any GCC internal prototype to avoid an error.
20308 Use char because int might match the return type of a GCC
20309 builtin and then its argument prototype would still apply. */
20314 /* The GNU C library defines this for functions which it implements
20315 to always fail with ENOSYS. Some functions are actually named
20316 something starting with __ and the normal name is an alias. */
20317 #if defined __stub_$ac_func || defined __stub___$ac_func
20324 return $ac_func ();
20329 rm -f conftest.
$ac_objext conftest
$ac_exeext
20330 if { (ac_try
="$ac_link"
20331 case "(($ac_try" in
20332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_link") 2>conftest.er1
20338 grep -v '^ *+' conftest.er1 >conftest.err
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && {
20343 test -z "$ac_c_werror_flag" ||
20344 test ! -s conftest.err
20345 } && test -s conftest$ac_exeext &&
20346 $as_test_x conftest$ac_exeext; then
20347 eval "$as_ac_var=yes"
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 eval "$as_ac_var=no"
20355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20356 conftest$ac_exeext conftest.$ac_ext
20358 ac_res=`eval echo '${'$as_ac_var'}'`
20359 { echo "$as_me:$LINENO: result: $ac_res" >&5
20360 echo "${ECHO_T}$ac_res" >&6; }
20361 if test `eval echo '${'$as_ac_var'}'` = yes; then
20362 cat >>confdefs.h <<_ACEOF
20363 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20373 for ac_func in dup2 getcwd strdup
20375 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20389 #define $ac_func innocuous_$ac_func
20391 /* System header to define __stub macros and hopefully few prototypes,
20392 which can conflict with char $ac_func (); below.
20393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20394 <limits.h> exists even on freestanding compilers. */
20397 # include <limits.h>
20399 # include <assert.h>
20404 /* Override any GCC internal prototype to avoid an error.
20405 Use char because int might match the return type of a GCC
20406 builtin and then its argument prototype would still apply. */
20411 /* The GNU C library defines this for functions which it implements
20412 to always fail with ENOSYS. Some functions are actually named
20413 something starting with __ and the normal name is an alias. */
20414 #if defined __stub_$ac_func || defined __stub___$ac_func
20421 return $ac_func ();
20426 rm -f conftest.$ac_objext conftest$ac_exeext
20427 if { (ac_try="$ac_link"
20428 case "(($ac_try" in
20429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20430 *) ac_try_echo
=$ac_try;;
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_link") 2>conftest.er1
20435 grep -v '^ *+' conftest.er1
>conftest.err
20437 cat conftest.err
>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } && {
20440 test -z "$ac_c_werror_flag" ||
20441 test ! -s conftest.err
20442 } && test -s conftest
$ac_exeext &&
20443 $as_test_x conftest
$ac_exeext; then
20444 eval "$as_ac_var=yes"
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.
$ac_ext >&5
20449 eval "$as_ac_var=no"
20452 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20453 conftest
$ac_exeext conftest.
$ac_ext
20455 ac_res
=`eval echo '${'$as_ac_var'}'`
20456 { echo "$as_me:$LINENO: result: $ac_res" >&5
20457 echo "${ECHO_T}$ac_res" >&6; }
20458 if test `eval echo '${'$as_ac_var'}'` = yes; then
20459 cat >>confdefs.h
<<_ACEOF
20460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20464 case " $LIBOBJS " in
20465 *" $ac_func.$ac_objext "* ) ;;
20466 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20475 for ac_func
in getpgrp
20477 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20480 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 cat >conftest.
$ac_ext <<_ACEOF
20486 cat confdefs.h
>>conftest.
$ac_ext
20487 cat >>conftest.
$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20491 #define $ac_func innocuous_$ac_func
20493 /* System header to define __stub macros and hopefully few prototypes,
20494 which can conflict with char $ac_func (); below.
20495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20496 <limits.h> exists even on freestanding compilers. */
20499 # include <limits.h>
20501 # include <assert.h>
20506 /* Override any GCC internal prototype to avoid an error.
20507 Use char because int might match the return type of a GCC
20508 builtin and then its argument prototype would still apply. */
20513 /* The GNU C library defines this for functions which it implements
20514 to always fail with ENOSYS. Some functions are actually named
20515 something starting with __ and the normal name is an alias. */
20516 #if defined __stub_$ac_func || defined __stub___$ac_func
20523 return $ac_func ();
20528 rm -f conftest.
$ac_objext conftest
$ac_exeext
20529 if { (ac_try
="$ac_link"
20530 case "(($ac_try" in
20531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20532 *) ac_try_echo=$ac_try;;
20534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20535 (eval "$ac_link") 2>conftest.er1
20537 grep -v '^ *+' conftest.er1 >conftest.err
20539 cat conftest.err >&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); } && {
20542 test -z "$ac_c_werror_flag" ||
20543 test ! -s conftest.err
20544 } && test -s conftest$ac_exeext &&
20545 $as_test_x conftest$ac_exeext; then
20546 eval "$as_ac_var=yes"
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20551 eval "$as_ac_var=no"
20554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20555 conftest$ac_exeext conftest.$ac_ext
20557 ac_res=`eval echo '${'$as_ac_var'}'`
20558 { echo "$as_me:$LINENO: result: $ac_res" >&5
20559 echo "${ECHO_T}$ac_res" >&6; }
20560 if test `eval echo '${'$as_ac_var'}'` = yes; then
20561 cat >>confdefs.h <<_ACEOF
20562 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20570 #include <unistd.h>
20579 rm -f conftest.$ac_objext
20580 if { (ac_try="$ac_compile"
20581 case "(($ac_try" in
20582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20583 *) ac_try_echo
=$ac_try;;
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_compile") 2>conftest.er1
20588 grep -v '^ *+' conftest.er1
>conftest.err
20590 cat conftest.err
>&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } && {
20593 test -z "$ac_c_werror_flag" ||
20594 test ! -s conftest.err
20595 } && test -s conftest.
$ac_objext; then
20597 cat >>confdefs.h
<<\_ACEOF
20598 #define GETPGRP_HAVE_ARG 1
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.
$ac_ext >&5
20609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20615 for ac_func
in setpgrp
20617 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20618 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20620 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 cat >conftest.
$ac_ext <<_ACEOF
20626 cat confdefs.h
>>conftest.
$ac_ext
20627 cat >>conftest.
$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20631 #define $ac_func innocuous_$ac_func
20633 /* System header to define __stub macros and hopefully few prototypes,
20634 which can conflict with char $ac_func (); below.
20635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20636 <limits.h> exists even on freestanding compilers. */
20639 # include <limits.h>
20641 # include <assert.h>
20646 /* Override any GCC internal prototype to avoid an error.
20647 Use char because int might match the return type of a GCC
20648 builtin and then its argument prototype would still apply. */
20653 /* The GNU C library defines this for functions which it implements
20654 to always fail with ENOSYS. Some functions are actually named
20655 something starting with __ and the normal name is an alias. */
20656 #if defined __stub_$ac_func || defined __stub___$ac_func
20663 return $ac_func ();
20668 rm -f conftest.
$ac_objext conftest
$ac_exeext
20669 if { (ac_try
="$ac_link"
20670 case "(($ac_try" in
20671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_link") 2>conftest.er1
20677 grep -v '^ *+' conftest.er1 >conftest.err
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && {
20682 test -z "$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 } && test -s conftest$ac_exeext &&
20685 $as_test_x conftest$ac_exeext; then
20686 eval "$as_ac_var=yes"
20688 echo "$as_me: failed program was:" >&5
20689 sed 's/^/| /' conftest.$ac_ext >&5
20691 eval "$as_ac_var=no"
20694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20695 conftest$ac_exeext conftest.$ac_ext
20697 ac_res=`eval echo '${'$as_ac_var'}'`
20698 { echo "$as_me:$LINENO: result: $ac_res" >&5
20699 echo "${ECHO_T}$ac_res" >&6; }
20700 if test `eval echo '${'$as_ac_var'}'` = yes; then
20701 cat >>confdefs.h <<_ACEOF
20702 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 #include <unistd.h>
20719 rm -f conftest.$ac_objext
20720 if { (ac_try="$ac_compile"
20721 case "(($ac_try" in
20722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20723 *) ac_try_echo
=$ac_try;;
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_compile") 2>conftest.er1
20728 grep -v '^ *+' conftest.er1
>conftest.err
20730 cat conftest.err
>&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest.
$ac_objext; then
20737 cat >>confdefs.h
<<\_ACEOF
20738 #define SETPGRP_HAVE_ARG 1
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.
$ac_ext >&5
20749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20755 for ac_func
in gettimeofday
20757 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20760 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 cat >conftest.
$ac_ext <<_ACEOF
20766 cat confdefs.h
>>conftest.
$ac_ext
20767 cat >>conftest.
$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20771 #define $ac_func innocuous_$ac_func
20773 /* System header to define __stub macros and hopefully few prototypes,
20774 which can conflict with char $ac_func (); below.
20775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20776 <limits.h> exists even on freestanding compilers. */
20779 # include <limits.h>
20781 # include <assert.h>
20786 /* Override any GCC internal prototype to avoid an error.
20787 Use char because int might match the return type of a GCC
20788 builtin and then its argument prototype would still apply. */
20793 /* The GNU C library defines this for functions which it implements
20794 to always fail with ENOSYS. Some functions are actually named
20795 something starting with __ and the normal name is an alias. */
20796 #if defined __stub_$ac_func || defined __stub___$ac_func
20803 return $ac_func ();
20808 rm -f conftest.
$ac_objext conftest
$ac_exeext
20809 if { (ac_try
="$ac_link"
20810 case "(($ac_try" in
20811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_link") 2>conftest.er1
20817 grep -v '^ *+' conftest.er1 >conftest.err
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && {
20822 test -z "$ac_c_werror_flag" ||
20823 test ! -s conftest.err
20824 } && test -s conftest$ac_exeext &&
20825 $as_test_x conftest$ac_exeext; then
20826 eval "$as_ac_var=yes"
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20831 eval "$as_ac_var=no"
20834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20835 conftest$ac_exeext conftest.$ac_ext
20837 ac_res=`eval echo '${'$as_ac_var'}'`
20838 { echo "$as_me:$LINENO: result: $ac_res" >&5
20839 echo "${ECHO_T}$ac_res" >&6; }
20840 if test `eval echo '${'$as_ac_var'}'` = yes; then
20841 cat >>confdefs.h <<_ACEOF
20842 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <sys/time.h>
20854 gettimeofday((struct timeval*)0,(struct timezone*)0);
20859 rm -f conftest.$ac_objext
20860 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
20878 echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.
$ac_ext >&5
20882 cat >>confdefs.h
<<\_ACEOF
20883 #define GETTIMEOFDAY_NO_TZ 1
20889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20895 { echo "$as_me:$LINENO: checking for major" >&5
20896 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20897 cat >conftest.
$ac_ext <<_ACEOF
20900 cat confdefs.h
>>conftest.
$ac_ext
20901 cat >>conftest.
$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20904 #if defined(MAJOR_IN_MKDEV)
20905 #include <sys/mkdev.h>
20906 #elif defined(MAJOR_IN_SYSMACROS)
20907 #include <sys/sysmacros.h>
20909 #include <sys/types.h>
20916 makedev(major(0),minor(0));
20922 rm -f conftest.
$ac_objext conftest
$ac_exeext
20923 if { (ac_try
="$ac_link"
20924 case "(($ac_try" in
20925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_link") 2>conftest.er1
20931 grep -v '^ *+' conftest.er1 >conftest.err
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && {
20936 test -z "$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20938 } && test -s conftest$ac_exeext &&
20939 $as_test_x conftest$ac_exeext; then
20942 cat >>confdefs.h <<\_ACEOF
20943 #define HAVE_DEVICE_MACROS 1
20946 { echo "$as_me:$LINENO: result: yes" >&5
20947 echo "${ECHO_T}yes" >&6; }
20950 echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20954 { echo "$as_me:$LINENO: result: no" >&5
20955 echo "${ECHO_T}no" >&6; }
20959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20960 conftest$ac_exeext conftest.$ac_ext
20962 # On OSF/1 V5.1, getaddrinfo is available, but a define
20963 # for [no]getaddrinfo in netdb.h.
20964 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20965 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20966 cat >conftest.$ac_ext <<_ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20973 #include <sys/types.h>
20974 #include <sys/socket.h>
20981 getaddrinfo(NULL, NULL, NULL, NULL);
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20990 *) ac_try_echo
=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>conftest.er1
20995 grep -v '^ *+' conftest.er1
>conftest.err
20997 cat conftest.err
>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest
$ac_exeext &&
21003 $as_test_x conftest
$ac_exeext; then
21004 have_getaddrinfo
=yes
21006 echo "$as_me: failed program was:" >&5
21007 sed 's/^/| /' conftest.
$ac_ext >&5
21009 have_getaddrinfo
=no
21012 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21013 conftest
$ac_exeext conftest.
$ac_ext
21014 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
21015 echo "${ECHO_T}$have_getaddrinfo" >&6; }
21016 if test $have_getaddrinfo = yes
21018 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
21019 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
21020 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
21021 echo $ECHO_N "(cached) $ECHO_C" >&6
21023 if test "$cross_compiling" = yes; then
21024 ac_cv_buggy_getaddrinfo
=yes
21026 cat >conftest.
$ac_ext <<_ACEOF
21029 cat confdefs.h
>>conftest.
$ac_ext
21030 cat >>conftest.
$ac_ext <<_ACEOF
21031 /* end confdefs.h. */
21033 #include <sys/types.h>
21035 #include <string.h>
21036 #include <sys/socket.h>
21037 #include <netinet/in.h>
21041 int passive, gaierr, inet4 = 0, inet6 = 0;
21042 struct addrinfo hints, *ai, *aitop;
21043 char straddr[INET6_ADDRSTRLEN], strport[16];
21045 for (passive = 0; passive <= 1; passive++) {
21046 memset(&hints, 0, sizeof(hints));
21047 hints.ai_family = AF_UNSPEC;
21048 hints.ai_flags = passive ? AI_PASSIVE : 0;
21049 hints.ai_socktype = SOCK_STREAM;
21050 hints.ai_protocol = IPPROTO_TCP;
21051 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
21052 (void)gai_strerror(gaierr);
21055 for (ai = aitop; ai; ai = ai->ai_next) {
21056 if (ai->ai_addr == NULL ||
21057 ai->ai_addrlen == 0 ||
21058 getnameinfo(ai->ai_addr, ai->ai_addrlen,
21059 straddr, sizeof(straddr), strport, sizeof(strport),
21060 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
21063 switch (ai->ai_family) {
21065 if (strcmp(strport, "54321") != 0) {
21069 if (strcmp(straddr, "0.0.0.0") != 0) {
21073 if (strcmp(straddr, "127.0.0.1") != 0) {
21080 if (strcmp(strport, "54321") != 0) {
21084 if (strcmp(straddr, "::") != 0) {
21088 if (strcmp(straddr, "::1") != 0) {
21098 /* another family support? */
21104 if (!(inet4 == 0 || inet4 == 2))
21106 if (!(inet6 == 0 || inet6 == 2))
21110 freeaddrinfo(aitop);
21115 freeaddrinfo(aitop);
21120 rm -f conftest
$ac_exeext
21121 if { (ac_try
="$ac_link"
21122 case "(($ac_try" in
21123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_link") 2>&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21131 { (case "(($ac_try" in
21132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21133 *) ac_try_echo
=$ac_try;;
21135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136 (eval "$ac_try") 2>&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_cv_buggy_getaddrinfo
=no
21142 echo "$as_me: program exited with status $ac_status" >&5
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.
$ac_ext >&5
21146 ( exit $ac_status )
21147 ac_cv_buggy_getaddrinfo
=yes
21149 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21157 if test $have_getaddrinfo = no
-o "$ac_cv_buggy_getaddrinfo" = yes
21159 if test $ipv6 = yes
21161 echo 'Fatal: You must get working getaddrinfo() function.'
21162 echo ' or you can specify "--disable-ipv6"'.
21167 cat >>confdefs.h
<<\_ACEOF
21168 #define HAVE_GETADDRINFO 1
21173 for ac_func
in getnameinfo
21175 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21178 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21179 echo $ECHO_N "(cached) $ECHO_C" >&6
21181 cat >conftest.
$ac_ext <<_ACEOF
21184 cat confdefs.h
>>conftest.
$ac_ext
21185 cat >>conftest.
$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21189 #define $ac_func innocuous_$ac_func
21191 /* System header to define __stub macros and hopefully few prototypes,
21192 which can conflict with char $ac_func (); below.
21193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21194 <limits.h> exists even on freestanding compilers. */
21197 # include <limits.h>
21199 # include <assert.h>
21204 /* Override any GCC internal prototype to avoid an error.
21205 Use char because int might match the return type of a GCC
21206 builtin and then its argument prototype would still apply. */
21211 /* The GNU C library defines this for functions which it implements
21212 to always fail with ENOSYS. Some functions are actually named
21213 something starting with __ and the normal name is an alias. */
21214 #if defined __stub_$ac_func || defined __stub___$ac_func
21221 return $ac_func ();
21226 rm -f conftest.
$ac_objext conftest
$ac_exeext
21227 if { (ac_try
="$ac_link"
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_link") 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_exeext &&
21243 $as_test_x conftest$ac_exeext; then
21244 eval "$as_ac_var=yes"
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 eval "$as_ac_var=no"
21252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21253 conftest$ac_exeext conftest.$ac_ext
21255 ac_res=`eval echo '${'$as_ac_var'}'`
21256 { echo "$as_me:$LINENO: result: $ac_res" >&5
21257 echo "${ECHO_T}$ac_res" >&6; }
21258 if test `eval echo '${'$as_ac_var'}'` = yes; then
21259 cat >>confdefs.h <<_ACEOF
21260 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21267 # checks for structures
21268 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21269 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21270 if test "${ac_cv_header_time+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21273 cat >conftest.$ac_ext <<_ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21279 #include <sys/types.h>
21280 #include <sys/time.h>
21286 if ((struct tm *) 0)
21292 rm -f conftest.$ac_objext
21293 if { (ac_try="$ac_compile"
21294 case "(($ac_try" in
21295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21296 *) ac_try_echo
=$ac_try;;
21298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21299 (eval "$ac_compile") 2>conftest.er1
21301 grep -v '^ *+' conftest.er1
>conftest.err
21303 cat conftest.err
>&5
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); } && {
21306 test -z "$ac_c_werror_flag" ||
21307 test ! -s conftest.err
21308 } && test -s conftest.
$ac_objext; then
21309 ac_cv_header_time
=yes
21311 echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.
$ac_ext >&5
21314 ac_cv_header_time
=no
21317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21319 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21320 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21321 if test $ac_cv_header_time = yes; then
21323 cat >>confdefs.h
<<\_ACEOF
21324 #define TIME_WITH_SYS_TIME 1
21329 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21330 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21331 if test "${ac_cv_struct_tm+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 cat >conftest.
$ac_ext <<_ACEOF
21337 cat confdefs.h
>>conftest.
$ac_ext
21338 cat >>conftest.
$ac_ext <<_ACEOF
21339 /* end confdefs.h. */
21340 #include <sys/types.h>
21347 int *p = &tm.tm_sec;
21353 rm -f conftest.
$ac_objext
21354 if { (ac_try
="$ac_compile"
21355 case "(($ac_try" in
21356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_compile") 2>conftest.er1
21362 grep -v '^ *+' conftest.er1 >conftest.err
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } && {
21367 test -z "$ac_c_werror_flag" ||
21368 test ! -s conftest.err
21369 } && test -s conftest.$ac_objext; then
21370 ac_cv_struct_tm=time.h
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ac_cv_struct_tm=sys/time.h
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21380 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21381 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21382 if test $ac_cv_struct_tm = sys/time.h; then
21384 cat >>confdefs.h <<\_ACEOF
21385 #define TM_IN_SYS_TIME 1
21390 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21391 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21392 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21393 echo $ECHO_N "(cached) $ECHO_C" >&6
21395 cat >conftest.$ac_ext <<_ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h. */
21401 #include <sys/types.h>
21402 #include <$ac_cv_struct_tm>
21408 static struct tm ac_aggr;
21409 if (ac_aggr.tm_zone)
21415 rm -f conftest.$ac_objext
21416 if { (ac_try="$ac_compile"
21417 case "(($ac_try" in
21418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21419 *) ac_try_echo
=$ac_try;;
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422 (eval "$ac_compile") 2>conftest.er1
21424 grep -v '^ *+' conftest.er1
>conftest.err
21426 cat conftest.err
>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest.
$ac_objext; then
21432 ac_cv_member_struct_tm_tm_zone
=yes
21434 echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.
$ac_ext >&5
21437 cat >conftest.
$ac_ext <<_ACEOF
21440 cat confdefs.h
>>conftest.
$ac_ext
21441 cat >>conftest.
$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 #include <sys/types.h>
21444 #include <$ac_cv_struct_tm>
21450 static struct tm ac_aggr;
21451 if (sizeof ac_aggr.tm_zone)
21457 rm -f conftest.
$ac_objext
21458 if { (ac_try
="$ac_compile"
21459 case "(($ac_try" in
21460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21461 *) ac_try_echo=$ac_try;;
21463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21464 (eval "$ac_compile") 2>conftest.er1
21466 grep -v '^ *+' conftest.er1 >conftest.err
21468 cat conftest.err >&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } && {
21471 test -z "$ac_c_werror_flag" ||
21472 test ! -s conftest.err
21473 } && test -s conftest.$ac_objext; then
21474 ac_cv_member_struct_tm_tm_zone=yes
21476 echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21479 ac_cv_member_struct_tm_tm_zone=no
21482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21488 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21489 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21491 cat >>confdefs.h <<_ACEOF
21492 #define HAVE_STRUCT_TM_TM_ZONE 1
21498 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21500 cat >>confdefs.h <<\_ACEOF
21501 #define HAVE_TM_ZONE 1
21505 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21506 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21507 if test "${ac_cv_have_decl_tzname+set}" = set; then
21508 echo $ECHO_N "(cached) $ECHO_C" >&6
21510 cat >conftest.$ac_ext <<_ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21529 rm -f conftest.$ac_objext
21530 if { (ac_try="$ac_compile"
21531 case "(($ac_try" in
21532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21533 *) ac_try_echo
=$ac_try;;
21535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_compile") 2>conftest.er1
21538 grep -v '^ *+' conftest.er1
>conftest.err
21540 cat conftest.err
>&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } && {
21543 test -z "$ac_c_werror_flag" ||
21544 test ! -s conftest.err
21545 } && test -s conftest.
$ac_objext; then
21546 ac_cv_have_decl_tzname
=yes
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.
$ac_ext >&5
21551 ac_cv_have_decl_tzname
=no
21554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21557 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21558 if test $ac_cv_have_decl_tzname = yes; then
21560 cat >>confdefs.h
<<_ACEOF
21561 #define HAVE_DECL_TZNAME 1
21566 cat >>confdefs.h
<<_ACEOF
21567 #define HAVE_DECL_TZNAME 0
21574 { echo "$as_me:$LINENO: checking for tzname" >&5
21575 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21576 if test "${ac_cv_var_tzname+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21579 cat >conftest.
$ac_ext <<_ACEOF
21582 cat confdefs.h
>>conftest.
$ac_ext
21583 cat >>conftest.
$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21586 #if !HAVE_DECL_TZNAME
21587 extern char *tzname[];
21593 return tzname[0][0];
21598 rm -f conftest.
$ac_objext conftest
$ac_exeext
21599 if { (ac_try
="$ac_link"
21600 case "(($ac_try" in
21601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21602 *) ac_try_echo=$ac_try;;
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605 (eval "$ac_link") 2>conftest.er1
21607 grep -v '^ *+' conftest.er1 >conftest.err
21609 cat conftest.err >&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } && {
21612 test -z "$ac_c_werror_flag" ||
21613 test ! -s conftest.err
21614 } && test -s conftest$ac_exeext &&
21615 $as_test_x conftest$ac_exeext; then
21616 ac_cv_var_tzname=yes
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 ac_cv_var_tzname=no
21624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21625 conftest$ac_exeext conftest.$ac_ext
21627 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21628 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21629 if test $ac_cv_var_tzname = yes; then
21631 cat >>confdefs.h <<\_ACEOF
21632 #define HAVE_TZNAME 1
21638 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21639 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21640 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 cat >conftest.$ac_ext <<_ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 $ac_includes_default
21653 static struct stat ac_aggr;
21654 if (ac_aggr.st_rdev)
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21664 *) ac_try_echo
=$ac_try;;
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667 (eval "$ac_compile") 2>conftest.er1
21669 grep -v '^ *+' conftest.er1
>conftest.err
21671 cat conftest.err
>&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest.
$ac_objext; then
21677 ac_cv_member_struct_stat_st_rdev
=yes
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.
$ac_ext >&5
21682 cat >conftest.
$ac_ext <<_ACEOF
21685 cat confdefs.h
>>conftest.
$ac_ext
21686 cat >>conftest.
$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21688 $ac_includes_default
21692 static struct stat ac_aggr;
21693 if (sizeof ac_aggr.st_rdev)
21699 rm -f conftest.
$ac_objext
21700 if { (ac_try
="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_compile") 2>conftest.er1
21708 grep -v '^ *+' conftest.er1 >conftest.err
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } && {
21713 test -z "$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 } && test -s conftest.$ac_objext; then
21716 ac_cv_member_struct_stat_st_rdev=yes
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 ac_cv_member_struct_stat_st_rdev=no
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21729 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21730 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21731 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21733 cat >>confdefs.h <<_ACEOF
21734 #define HAVE_STRUCT_STAT_ST_RDEV 1
21740 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21741 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21742 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 cat >conftest.$ac_ext <<_ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21751 $ac_includes_default
21755 static struct stat ac_aggr;
21756 if (ac_aggr.st_blksize)
21762 rm -f conftest.$ac_objext
21763 if { (ac_try="$ac_compile"
21764 case "(($ac_try" in
21765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21766 *) ac_try_echo
=$ac_try;;
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_compile") 2>conftest.er1
21771 grep -v '^ *+' conftest.er1
>conftest.err
21773 cat conftest.err
>&5
21774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest.
$ac_objext; then
21779 ac_cv_member_struct_stat_st_blksize
=yes
21781 echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.
$ac_ext >&5
21784 cat >conftest.
$ac_ext <<_ACEOF
21787 cat confdefs.h
>>conftest.
$ac_ext
21788 cat >>conftest.
$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 $ac_includes_default
21794 static struct stat ac_aggr;
21795 if (sizeof ac_aggr.st_blksize)
21801 rm -f conftest.
$ac_objext
21802 if { (ac_try
="$ac_compile"
21803 case "(($ac_try" in
21804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21808 (eval "$ac_compile") 2>conftest.er1
21810 grep -v '^ *+' conftest.er1 >conftest.err
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } && {
21815 test -z "$ac_c_werror_flag" ||
21816 test ! -s conftest.err
21817 } && test -s conftest.$ac_objext; then
21818 ac_cv_member_struct_stat_st_blksize=yes
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_cv_member_struct_stat_st_blksize=no
21826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21831 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21832 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21833 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21835 cat >>confdefs.h <<_ACEOF
21836 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21842 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21843 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21844 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21847 cat >conftest.$ac_ext <<_ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 $ac_includes_default
21857 static struct stat ac_aggr;
21858 if (ac_aggr.st_flags)
21864 rm -f conftest.$ac_objext
21865 if { (ac_try="$ac_compile"
21866 case "(($ac_try" in
21867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21868 *) ac_try_echo
=$ac_try;;
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871 (eval "$ac_compile") 2>conftest.er1
21873 grep -v '^ *+' conftest.er1
>conftest.err
21875 cat conftest.err
>&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } && {
21878 test -z "$ac_c_werror_flag" ||
21879 test ! -s conftest.err
21880 } && test -s conftest.
$ac_objext; then
21881 ac_cv_member_struct_stat_st_flags
=yes
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.
$ac_ext >&5
21886 cat >conftest.
$ac_ext <<_ACEOF
21889 cat confdefs.h
>>conftest.
$ac_ext
21890 cat >>conftest.
$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21892 $ac_includes_default
21896 static struct stat ac_aggr;
21897 if (sizeof ac_aggr.st_flags)
21903 rm -f conftest.
$ac_objext
21904 if { (ac_try
="$ac_compile"
21905 case "(($ac_try" in
21906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910 (eval "$ac_compile") 2>conftest.er1
21912 grep -v '^ *+' conftest.er1 >conftest.err
21914 cat conftest.err >&5
21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916 (exit $ac_status); } && {
21917 test -z "$ac_c_werror_flag" ||
21918 test ! -s conftest.err
21919 } && test -s conftest.$ac_objext; then
21920 ac_cv_member_struct_stat_st_flags=yes
21922 echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21925 ac_cv_member_struct_stat_st_flags=no
21928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21934 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21935 if test $ac_cv_member_struct_stat_st_flags = yes; then
21937 cat >>confdefs.h <<_ACEOF
21938 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21944 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21945 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21946 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21947 echo $ECHO_N "(cached) $ECHO_C" >&6
21949 cat >conftest.$ac_ext <<_ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h. */
21955 $ac_includes_default
21959 static struct stat ac_aggr;
21960 if (ac_aggr.st_gen)
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21970 *) ac_try_echo
=$ac_try;;
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_compile") 2>conftest.er1
21975 grep -v '^ *+' conftest.er1
>conftest.err
21977 cat conftest.err
>&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); } && {
21980 test -z "$ac_c_werror_flag" ||
21981 test ! -s conftest.err
21982 } && test -s conftest.
$ac_objext; then
21983 ac_cv_member_struct_stat_st_gen
=yes
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.
$ac_ext >&5
21988 cat >conftest.
$ac_ext <<_ACEOF
21991 cat confdefs.h
>>conftest.
$ac_ext
21992 cat >>conftest.
$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 $ac_includes_default
21998 static struct stat ac_aggr;
21999 if (sizeof ac_aggr.st_gen)
22005 rm -f conftest.
$ac_objext
22006 if { (ac_try
="$ac_compile"
22007 case "(($ac_try" in
22008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_compile") 2>conftest.er1
22014 grep -v '^ *+' conftest.er1 >conftest.err
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } && {
22019 test -z "$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22021 } && test -s conftest.$ac_objext; then
22022 ac_cv_member_struct_stat_st_gen=yes
22024 echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22027 ac_cv_member_struct_stat_st_gen=no
22030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22035 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
22036 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
22037 if test $ac_cv_member_struct_stat_st_gen = yes; then
22039 cat >>confdefs.h <<_ACEOF
22040 #define HAVE_STRUCT_STAT_ST_GEN 1
22046 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
22047 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
22048 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 cat >conftest.$ac_ext <<_ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 $ac_includes_default
22061 static struct stat ac_aggr;
22062 if (ac_aggr.st_birthtime)
22068 rm -f conftest.$ac_objext
22069 if { (ac_try="$ac_compile"
22070 case "(($ac_try" in
22071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22072 *) ac_try_echo
=$ac_try;;
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_compile") 2>conftest.er1
22077 grep -v '^ *+' conftest.er1
>conftest.err
22079 cat conftest.err
>&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && {
22082 test -z "$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22084 } && test -s conftest.
$ac_objext; then
22085 ac_cv_member_struct_stat_st_birthtime
=yes
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.
$ac_ext >&5
22090 cat >conftest.
$ac_ext <<_ACEOF
22093 cat confdefs.h
>>conftest.
$ac_ext
22094 cat >>conftest.
$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 $ac_includes_default
22100 static struct stat ac_aggr;
22101 if (sizeof ac_aggr.st_birthtime)
22107 rm -f conftest.
$ac_objext
22108 if { (ac_try
="$ac_compile"
22109 case "(($ac_try" in
22110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_compile") 2>conftest.er1
22116 grep -v '^ *+' conftest.er1 >conftest.err
22118 cat conftest.err >&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } && {
22121 test -z "$ac_c_werror_flag" ||
22122 test ! -s conftest.err
22123 } && test -s conftest.$ac_objext; then
22124 ac_cv_member_struct_stat_st_birthtime=yes
22126 echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22129 ac_cv_member_struct_stat_st_birthtime=no
22132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
22138 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
22139 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
22141 cat >>confdefs.h <<_ACEOF
22142 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
22148 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22149 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22150 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 cat >conftest.$ac_ext <<_ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h. */
22159 $ac_includes_default
22163 static struct stat ac_aggr;
22164 if (ac_aggr.st_blocks)
22170 rm -f conftest.$ac_objext
22171 if { (ac_try="$ac_compile"
22172 case "(($ac_try" in
22173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22174 *) ac_try_echo
=$ac_try;;
22176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_compile") 2>conftest.er1
22179 grep -v '^ *+' conftest.er1
>conftest.err
22181 cat conftest.err
>&5
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest.
$ac_objext; then
22187 ac_cv_member_struct_stat_st_blocks
=yes
22189 echo "$as_me: failed program was:" >&5
22190 sed 's/^/| /' conftest.
$ac_ext >&5
22192 cat >conftest.
$ac_ext <<_ACEOF
22195 cat confdefs.h
>>conftest.
$ac_ext
22196 cat >>conftest.
$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 $ac_includes_default
22202 static struct stat ac_aggr;
22203 if (sizeof ac_aggr.st_blocks)
22209 rm -f conftest.
$ac_objext
22210 if { (ac_try
="$ac_compile"
22211 case "(($ac_try" in
22212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_compile") 2>conftest.er1
22218 grep -v '^ *+' conftest.er1 >conftest.err
22220 cat conftest.err >&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } && {
22223 test -z "$ac_c_werror_flag" ||
22224 test ! -s conftest.err
22225 } && test -s conftest.$ac_objext; then
22226 ac_cv_member_struct_stat_st_blocks=yes
22228 echo "$as_me: failed program was:" >&5
22229 sed 's/^/| /' conftest.$ac_ext >&5
22231 ac_cv_member_struct_stat_st_blocks=no
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22240 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22241 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22243 cat >>confdefs.h <<_ACEOF
22244 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22248 cat >>confdefs.h <<\_ACEOF
22249 #define HAVE_ST_BLOCKS 1
22253 case " $LIBOBJS " in
22254 *" fileblocks.$ac_objext "* ) ;;
22255 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22263 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22264 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
22265 if test "${ac_cv_header_time_altzone+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22268 cat >conftest.$ac_ext <<_ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22283 rm -f conftest.$ac_objext
22284 if { (ac_try="$ac_compile"
22285 case "(($ac_try" in
22286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22287 *) ac_try_echo
=$ac_try;;
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_compile") 2>conftest.er1
22292 grep -v '^ *+' conftest.er1
>conftest.err
22294 cat conftest.err
>&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } && {
22297 test -z "$ac_c_werror_flag" ||
22298 test ! -s conftest.err
22299 } && test -s conftest.
$ac_objext; then
22300 ac_cv_header_time_altzone
=yes
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.
$ac_ext >&5
22305 ac_cv_header_time_altzone
=no
22308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22311 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22312 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22313 if test $ac_cv_header_time_altzone = yes; then
22315 cat >>confdefs.h
<<\_ACEOF
22316 #define HAVE_ALTZONE 1
22322 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22323 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22324 cat >conftest.
$ac_ext <<_ACEOF
22327 cat confdefs.h
>>conftest.
$ac_ext
22328 cat >>conftest.
$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22331 #include <sys/types.h>
22332 #include <sys/select.h>
22333 #include <sys/time.h>
22343 rm -f conftest.
$ac_objext
22344 if { (ac_try
="$ac_compile"
22345 case "(($ac_try" in
22346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22347 *) ac_try_echo=$ac_try;;
22349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22350 (eval "$ac_compile") 2>conftest.er1
22352 grep -v '^ *+' conftest.er1 >conftest.err
22354 cat conftest.err >&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); } && {
22357 test -z "$ac_c_werror_flag" ||
22358 test ! -s conftest.err
22359 } && test -s conftest.$ac_objext; then
22362 cat >>confdefs.h <<\_ACEOF
22363 #define SYS_SELECT_WITH_SYS_TIME 1
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
22377 echo "${ECHO_T}$was_it_defined" >&6; }
22379 { echo "$as_me:$LINENO: checking for addrinfo" >&5
22380 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22381 if test "${ac_cv_struct_addrinfo+set}" = set; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22391 # include <netdb.h>
22400 rm -f conftest.$ac_objext
22401 if { (ac_try="$ac_compile"
22402 case "(($ac_try" in
22403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22404 *) ac_try_echo
=$ac_try;;
22406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22407 (eval "$ac_compile") 2>conftest.er1
22409 grep -v '^ *+' conftest.er1
>conftest.err
22411 cat conftest.err
>&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); } && {
22414 test -z "$ac_c_werror_flag" ||
22415 test ! -s conftest.err
22416 } && test -s conftest.
$ac_objext; then
22417 ac_cv_struct_addrinfo
=yes
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.
$ac_ext >&5
22422 ac_cv_struct_addrinfo
=no
22425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22428 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22429 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22430 if test $ac_cv_struct_addrinfo = yes; then
22432 cat >>confdefs.h
<<\_ACEOF
22433 #define HAVE_ADDRINFO 1
22438 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22439 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22440 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22441 echo $ECHO_N "(cached) $ECHO_C" >&6
22443 cat >conftest.
$ac_ext <<_ACEOF
22446 cat confdefs.h
>>conftest.
$ac_ext
22447 cat >>conftest.
$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22450 # include <sys/types.h>
22451 # include <sys/socket.h>
22455 struct sockaddr_storage s
22460 rm -f conftest.
$ac_objext
22461 if { (ac_try
="$ac_compile"
22462 case "(($ac_try" in
22463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22464 *) ac_try_echo=$ac_try;;
22466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22467 (eval "$ac_compile") 2>conftest.er1
22469 grep -v '^ *+' conftest.er1 >conftest.err
22471 cat conftest.err >&5
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); } && {
22474 test -z "$ac_c_werror_flag" ||
22475 test ! -s conftest.err
22476 } && test -s conftest.$ac_objext; then
22477 ac_cv_struct_sockaddr_storage=yes
22479 echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22482 ac_cv_struct_sockaddr_storage=no
22485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22489 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22490 if test $ac_cv_struct_sockaddr_storage = yes; then
22492 cat >>confdefs.h <<\_ACEOF
22493 #define HAVE_SOCKADDR_STORAGE 1
22498 # checks for compiler characteristics
22501 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22502 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22503 if test "${ac_cv_c_char_unsigned+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
22506 cat >conftest.$ac_ext <<_ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h. */
22512 $ac_includes_default
22516 static int test_array [1 - 2 * !(((char) -1) < 0)];
22523 rm -f conftest.$ac_objext
22524 if { (ac_try="$ac_compile"
22525 case "(($ac_try" in
22526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22527 *) ac_try_echo
=$ac_try;;
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530 (eval "$ac_compile") 2>conftest.er1
22532 grep -v '^ *+' conftest.er1
>conftest.err
22534 cat conftest.err
>&5
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } && {
22537 test -z "$ac_c_werror_flag" ||
22538 test ! -s conftest.err
22539 } && test -s conftest.
$ac_objext; then
22540 ac_cv_c_char_unsigned
=no
22542 echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.
$ac_ext >&5
22545 ac_cv_c_char_unsigned
=yes
22548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22550 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22551 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22552 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22553 cat >>confdefs.h
<<\_ACEOF
22554 #define __CHAR_UNSIGNED__ 1
22559 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22560 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22561 if test "${ac_cv_c_const+set}" = set; then
22562 echo $ECHO_N "(cached) $ECHO_C" >&6
22564 cat >conftest.
$ac_ext <<_ACEOF
22567 cat confdefs.h
>>conftest.
$ac_ext
22568 cat >>conftest.
$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22574 /* FIXME: Include the comments suggested by Paul. */
22575 #ifndef __cplusplus
22576 /* Ultrix mips cc rejects this. */
22577 typedef int charset[2];
22579 /* SunOS 4.1.1 cc rejects this. */
22580 char const *const *pcpcc;
22582 /* NEC SVR4.0.2 mips cc rejects this. */
22583 struct point {int x, y;};
22584 static struct point const zero = {0,0};
22585 /* AIX XL C 1.02.0.0 rejects this.
22586 It does not let you subtract one const X* pointer from another in
22587 an arm of an if-expression whose if-part is not a constant
22589 const char *g = "string";
22590 pcpcc = &g + (g ? g-g : 0);
22591 /* HPUX 7.0 cc rejects these. */
22593 ppc = (char**) pcpcc;
22594 pcpcc = (char const *const *) ppc;
22595 { /* SCO 3.2v4 cc rejects this. */
22597 char const *s = 0 ? (char *) 0 : (char const *) 0;
22602 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22603 int x[] = {25, 17};
22604 const int *foo = &x[0];
22607 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22608 typedef const int *iptr;
22612 { /* AIX XL C 1.02.0.0 rejects this saying
22613 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22614 struct s { int j; const int *ap[3]; };
22615 struct s *b; b->j = 5;
22617 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22618 const int foo = 10;
22619 if (!foo) return 0;
22621 return !cs[0] && !zero.x;
22628 rm -f conftest.
$ac_objext
22629 if { (ac_try
="$ac_compile"
22630 case "(($ac_try" in
22631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635 (eval "$ac_compile") 2>conftest.er1
22637 grep -v '^ *+' conftest.er1 >conftest.err
22639 cat conftest.err >&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } && {
22642 test -z "$ac_c_werror_flag" ||
22643 test ! -s conftest.err
22644 } && test -s conftest.$ac_objext; then
22647 echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22656 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22657 if test $ac_cv_c_const = no; then
22659 cat >>confdefs.h <<\_ACEOF
22667 { echo "$as_me:$LINENO: checking for working volatile" >&5
22668 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22669 cat >conftest.$ac_ext <<_ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h. */
22679 volatile int x; x = 0;
22684 rm -f conftest.$ac_objext
22685 if { (ac_try="$ac_compile"
22686 case "(($ac_try" in
22687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22688 *) ac_try_echo
=$ac_try;;
22690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22693 grep -v '^ *+' conftest.er1
>conftest.err
22695 cat conftest.err
>&5
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.
$ac_objext; then
22703 echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.
$ac_ext >&5
22707 cat >>confdefs.h
<<\_ACEOF
22714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22715 { echo "$as_me:$LINENO: result: $works" >&5
22716 echo "${ECHO_T}$works" >&6; }
22719 { echo "$as_me:$LINENO: checking for working signed char" >&5
22720 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22721 cat >conftest.
$ac_ext <<_ACEOF
22724 cat confdefs.h
>>conftest.
$ac_ext
22725 cat >>conftest.
$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22736 rm -f conftest.
$ac_objext
22737 if { (ac_try
="$ac_compile"
22738 case "(($ac_try" in
22739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_compile") 2>conftest.er1
22745 grep -v '^ *+' conftest.er1 >conftest.err
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && {
22750 test -z "$ac_c_werror_flag" ||
22751 test ! -s conftest.err
22752 } && test -s conftest.$ac_objext; then
22755 echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22759 cat >>confdefs.h <<\_ACEOF
22766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767 { echo "$as_me:$LINENO: result: $works" >&5
22768 echo "${ECHO_T}$works" >&6; }
22771 { echo "$as_me:$LINENO: checking for prototypes" >&5
22772 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22773 cat >conftest.$ac_ext <<_ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h. */
22779 int foo(int x) { return 0; }
22788 rm -f conftest.$ac_objext
22789 if { (ac_try="$ac_compile"
22790 case "(($ac_try" in
22791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22792 *) ac_try_echo
=$ac_try;;
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_compile") 2>conftest.er1
22797 grep -v '^ *+' conftest.er1
>conftest.err
22799 cat conftest.err
>&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } && {
22802 test -z "$ac_c_werror_flag" ||
22803 test ! -s conftest.err
22804 } && test -s conftest.
$ac_objext; then
22807 cat >>confdefs.h
<<\_ACEOF
22808 #define HAVE_PROTOTYPES 1
22811 have_prototypes
=yes
22814 echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.
$ac_ext >&5
22820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22821 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22822 echo "${ECHO_T}$have_prototypes" >&6; }
22825 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22826 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22827 cat >conftest.
$ac_ext <<_ACEOF
22830 cat confdefs.h
>>conftest.
$ac_ext
22831 cat >>conftest.
$ac_ext <<_ACEOF
22832 /* end confdefs.h. */
22834 #include <stdarg.h>
22835 int foo(int x, ...) {
22839 va_arg(va, char *);
22840 va_arg(va, double);
22847 return foo(10, "", 3.14);
22852 rm -f conftest.
$ac_objext
22853 if { (ac_try
="$ac_compile"
22854 case "(($ac_try" in
22855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22856 *) ac_try_echo=$ac_try;;
22858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22859 (eval "$ac_compile") 2>conftest.er1
22861 grep -v '^ *+' conftest.er1 >conftest.err
22863 cat conftest.err >&5
22864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865 (exit $ac_status); } && {
22866 test -z "$ac_c_werror_flag" ||
22867 test ! -s conftest.err
22868 } && test -s conftest.$ac_objext; then
22871 cat >>confdefs.h <<\_ACEOF
22872 #define HAVE_STDARG_PROTOTYPES 1
22878 echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 { echo "$as_me:$LINENO: result: $works" >&5
22886 echo "${ECHO_T}$works" >&6; }
22888 # check for socketpair
22889 { echo "$as_me:$LINENO: checking for socketpair" >&5
22890 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22891 cat >conftest.$ac_ext <<_ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22898 #include <sys/types.h>
22899 #include <sys/socket.h>
22909 rm -f conftest.$ac_objext
22910 if { (ac_try="$ac_compile"
22911 case "(($ac_try" in
22912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22913 *) ac_try_echo
=$ac_try;;
22915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22916 (eval "$ac_compile") 2>conftest.er1
22918 grep -v '^ *+' conftest.er1
>conftest.err
22920 cat conftest.err
>&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } && {
22923 test -z "$ac_c_werror_flag" ||
22924 test ! -s conftest.err
22925 } && test -s conftest.
$ac_objext; then
22927 cat >>confdefs.h
<<\_ACEOF
22928 #define HAVE_SOCKETPAIR 1
22931 { echo "$as_me:$LINENO: result: yes" >&5
22932 echo "${ECHO_T}yes" >&6; }
22934 echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.
$ac_ext >&5
22937 { echo "$as_me:$LINENO: result: no" >&5
22938 echo "${ECHO_T}no" >&6; }
22942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22944 # check if sockaddr has sa_len member
22945 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22946 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22947 cat >conftest.
$ac_ext <<_ACEOF
22950 cat confdefs.h
>>conftest.
$ac_ext
22951 cat >>conftest.
$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 #include <sys/types.h>
22954 #include <sys/socket.h>
22964 rm -f conftest.
$ac_objext
22965 if { (ac_try
="$ac_compile"
22966 case "(($ac_try" in
22967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 { echo "$as_me:$LINENO: result: yes" >&5
22982 echo "${ECHO_T}yes" >&6; }
22984 cat >>confdefs.h <<\_ACEOF
22985 #define HAVE_SOCKADDR_SA_LEN 1
22989 echo "$as_me: failed program was:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 { echo "$as_me:$LINENO: result: no" >&5
22993 echo "${ECHO_T}no" >&6; }
22996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22998 va_list_is_array=no
22999 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
23000 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
23001 cat >conftest.$ac_ext <<_ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23008 #ifdef HAVE_STDARG_PROTOTYPES
23009 #include <stdarg.h>
23011 #include <varargs.h>
23017 va_list list1, list2; list1 = list2;
23022 rm -f conftest.$ac_objext
23023 if { (ac_try="$ac_compile"
23024 case "(($ac_try" in
23025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23026 *) ac_try_echo
=$ac_try;;
23028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029 (eval "$ac_compile") 2>conftest.er1
23031 grep -v '^ *+' conftest.er1
>conftest.err
23033 cat conftest.err
>&5
23034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035 (exit $ac_status); } && {
23036 test -z "$ac_c_werror_flag" ||
23037 test ! -s conftest.err
23038 } && test -s conftest.
$ac_objext; then
23041 echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.
$ac_ext >&5
23046 cat >>confdefs.h
<<\_ACEOF
23047 #define VA_LIST_IS_ARRAY 1
23050 va_list_is_array
=yes
23054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23055 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
23056 echo "${ECHO_T}$va_list_is_array" >&6; }
23058 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
23062 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
23063 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
23064 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
23065 echo $ECHO_N "(cached) $ECHO_C" >&6
23067 cat >conftest.
$ac_ext <<_ACEOF
23070 cat confdefs.h
>>conftest.
$ac_ext
23071 cat >>conftest.
$ac_ext <<_ACEOF
23072 /* end confdefs.h. */
23073 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
23074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23075 #define gethostbyname_r innocuous_gethostbyname_r
23077 /* System header to define __stub macros and hopefully few prototypes,
23078 which can conflict with char gethostbyname_r (); below.
23079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23080 <limits.h> exists even on freestanding compilers. */
23083 # include <limits.h>
23085 # include <assert.h>
23088 #undef gethostbyname_r
23090 /* Override any GCC internal prototype to avoid an error.
23091 Use char because int might match the return type of a GCC
23092 builtin and then its argument prototype would still apply. */
23096 char gethostbyname_r ();
23097 /* The GNU C library defines this for functions which it implements
23098 to always fail with ENOSYS. Some functions are actually named
23099 something starting with __ and the normal name is an alias. */
23100 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
23107 return gethostbyname_r ();
23112 rm -f conftest.
$ac_objext conftest
$ac_exeext
23113 if { (ac_try
="$ac_link"
23114 case "(($ac_try" in
23115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23116 *) ac_try_echo=$ac_try;;
23118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23119 (eval "$ac_link") 2>conftest.er1
23121 grep -v '^ *+' conftest.er1 >conftest.err
23123 cat conftest.err >&5
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); } && {
23126 test -z "$ac_c_werror_flag" ||
23127 test ! -s conftest.err
23128 } && test -s conftest$ac_exeext &&
23129 $as_test_x conftest$ac_exeext; then
23130 ac_cv_func_gethostbyname_r=yes
23132 echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23135 ac_cv_func_gethostbyname_r=no
23138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23139 conftest$ac_exeext conftest.$ac_ext
23141 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
23142 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
23143 if test $ac_cv_func_gethostbyname_r = yes; then
23145 cat >>confdefs.h <<\_ACEOF
23146 #define HAVE_GETHOSTBYNAME_R 1
23149 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
23150 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
23152 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23153 cat >conftest.$ac_ext <<_ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h. */
23160 # include <netdb.h>
23167 struct hostent *he, *res;
23172 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23182 *) ac_try_echo
=$ac_try;;
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185 (eval "$ac_compile") 2>conftest.er1
23187 grep -v '^ *+' conftest.er1
>conftest.err
23189 cat conftest.err
>&5
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); } && {
23192 test -z "$ac_c_werror_flag" ||
23193 test ! -s conftest.err
23194 } && test -s conftest.
$ac_objext; then
23196 cat >>confdefs.h
<<\_ACEOF
23197 #define HAVE_GETHOSTBYNAME_R 1
23201 cat >>confdefs.h
<<\_ACEOF
23202 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
23205 { echo "$as_me:$LINENO: result: yes" >&5
23206 echo "${ECHO_T}yes" >&6; }
23209 echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.
$ac_ext >&5
23213 { echo "$as_me:$LINENO: result: no" >&5
23214 echo "${ECHO_T}no" >&6; }
23215 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
23216 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
23217 cat >conftest.
$ac_ext <<_ACEOF
23220 cat confdefs.h
>>conftest.
$ac_ext
23221 cat >>conftest.
$ac_ext <<_ACEOF
23222 /* end confdefs.h. */
23224 # include <netdb.h>
23231 struct hostent *he;
23236 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23242 rm -f conftest.
$ac_objext
23243 if { (ac_try
="$ac_compile"
23244 case "(($ac_try" in
23245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23246 *) ac_try_echo=$ac_try;;
23248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23249 (eval "$ac_compile") 2>conftest.er1
23251 grep -v '^ *+' conftest.er1 >conftest.err
23253 cat conftest.err >&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); } && {
23256 test -z "$ac_c_werror_flag" ||
23257 test ! -s conftest.err
23258 } && test -s conftest.$ac_objext; then
23260 cat >>confdefs.h <<\_ACEOF
23261 #define HAVE_GETHOSTBYNAME_R 1
23265 cat >>confdefs.h <<\_ACEOF
23266 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
23269 { echo "$as_me:$LINENO: result: yes" >&5
23270 echo "${ECHO_T}yes" >&6; }
23273 echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23277 { echo "$as_me:$LINENO: result: no" >&5
23278 echo "${ECHO_T}no" >&6; }
23279 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23280 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
23281 cat >conftest.$ac_ext <<_ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h. */
23288 # include <netdb.h>
23295 struct hostent *he;
23296 struct hostent_data data;
23298 (void) gethostbyname_r(name, he, &data);
23304 rm -f conftest.$ac_objext
23305 if { (ac_try="$ac_compile"
23306 case "(($ac_try" in
23307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23308 *) ac_try_echo
=$ac_try;;
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311 (eval "$ac_compile") 2>conftest.er1
23313 grep -v '^ *+' conftest.er1
>conftest.err
23315 cat conftest.err
>&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } && {
23318 test -z "$ac_c_werror_flag" ||
23319 test ! -s conftest.err
23320 } && test -s conftest.
$ac_objext; then
23322 cat >>confdefs.h
<<\_ACEOF
23323 #define HAVE_GETHOSTBYNAME_R 1
23327 cat >>confdefs.h
<<\_ACEOF
23328 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
23331 { echo "$as_me:$LINENO: result: yes" >&5
23332 echo "${ECHO_T}yes" >&6; }
23335 echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.
$ac_ext >&5
23339 { echo "$as_me:$LINENO: result: no" >&5
23340 echo "${ECHO_T}no" >&6; }
23344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23358 for ac_func
in gethostbyname
23360 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23363 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23364 echo $ECHO_N "(cached) $ECHO_C" >&6
23366 cat >conftest.
$ac_ext <<_ACEOF
23369 cat confdefs.h
>>conftest.
$ac_ext
23370 cat >>conftest.
$ac_ext <<_ACEOF
23371 /* end confdefs.h. */
23372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23374 #define $ac_func innocuous_$ac_func
23376 /* System header to define __stub macros and hopefully few prototypes,
23377 which can conflict with char $ac_func (); below.
23378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23379 <limits.h> exists even on freestanding compilers. */
23382 # include <limits.h>
23384 # include <assert.h>
23389 /* Override any GCC internal prototype to avoid an error.
23390 Use char because int might match the return type of a GCC
23391 builtin and then its argument prototype would still apply. */
23396 /* The GNU C library defines this for functions which it implements
23397 to always fail with ENOSYS. Some functions are actually named
23398 something starting with __ and the normal name is an alias. */
23399 #if defined __stub_$ac_func || defined __stub___$ac_func
23406 return $ac_func ();
23411 rm -f conftest.
$ac_objext conftest
$ac_exeext
23412 if { (ac_try
="$ac_link"
23413 case "(($ac_try" in
23414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23418 (eval "$ac_link") 2>conftest.er1
23420 grep -v '^ *+' conftest.er1 >conftest.err
23422 cat conftest.err >&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } && {
23425 test -z "$ac_c_werror_flag" ||
23426 test ! -s conftest.err
23427 } && test -s conftest$ac_exeext &&
23428 $as_test_x conftest$ac_exeext; then
23429 eval "$as_ac_var=yes"
23431 echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23434 eval "$as_ac_var=no"
23437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23438 conftest$ac_exeext conftest.$ac_ext
23440 ac_res=`eval echo '${'$as_ac_var'}'`
23441 { echo "$as_me:$LINENO: result: $ac_res" >&5
23442 echo "${ECHO_T}$ac_res" >&6; }
23443 if test `eval echo '${'$as_ac_var'}'` = yes; then
23444 cat >>confdefs.h <<_ACEOF
23445 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23460 # checks for system services
23463 # Linux requires this for correct f.p. operations
23464 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
23465 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
23466 if test "${ac_cv_func___fpu_control+set}" = set; then
23467 echo $ECHO_N "(cached) $ECHO_C" >&6
23469 cat >conftest.$ac_ext <<_ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h. */
23475 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23477 #define __fpu_control innocuous___fpu_control
23479 /* System header to define __stub macros and hopefully few prototypes,
23480 which can conflict with char __fpu_control (); below.
23481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23482 <limits.h> exists even on freestanding compilers. */
23485 # include <limits.h>
23487 # include <assert.h>
23490 #undef __fpu_control
23492 /* Override any GCC internal prototype to avoid an error.
23493 Use char because int might match the return type of a GCC
23494 builtin and then its argument prototype would still apply. */
23498 char __fpu_control ();
23499 /* The GNU C library defines this for functions which it implements
23500 to always fail with ENOSYS. Some functions are actually named
23501 something starting with __ and the normal name is an alias. */
23502 #if defined __stub___fpu_control || defined __stub_____fpu_control
23509 return __fpu_control ();
23514 rm -f conftest.$ac_objext conftest$ac_exeext
23515 if { (ac_try="$ac_link"
23516 case "(($ac_try" in
23517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23518 *) ac_try_echo
=$ac_try;;
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521 (eval "$ac_link") 2>conftest.er1
23523 grep -v '^ *+' conftest.er1
>conftest.err
23525 cat conftest.err
>&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } && {
23528 test -z "$ac_c_werror_flag" ||
23529 test ! -s conftest.err
23530 } && test -s conftest
$ac_exeext &&
23531 $as_test_x conftest
$ac_exeext; then
23532 ac_cv_func___fpu_control
=yes
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.
$ac_ext >&5
23537 ac_cv_func___fpu_control
=no
23540 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23541 conftest
$ac_exeext conftest.
$ac_ext
23543 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23544 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23545 if test $ac_cv_func___fpu_control = yes; then
23549 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23550 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23551 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 ac_check_lib_save_LIBS
=$LIBS
23555 LIBS
="-lieee $LIBS"
23556 cat >conftest.
$ac_ext <<_ACEOF
23559 cat confdefs.h
>>conftest.
$ac_ext
23560 cat >>conftest.
$ac_ext <<_ACEOF
23561 /* end confdefs.h. */
23563 /* Override any GCC internal prototype to avoid an error.
23564 Use char because int might match the return type of a GCC
23565 builtin and then its argument prototype would still apply. */
23569 char __fpu_control ();
23573 return __fpu_control ();
23578 rm -f conftest.
$ac_objext conftest
$ac_exeext
23579 if { (ac_try
="$ac_link"
23580 case "(($ac_try" in
23581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_link") 2>conftest.er1
23587 grep -v '^ *+' conftest.er1 >conftest.err
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } && {
23592 test -z "$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23594 } && test -s conftest$ac_exeext &&
23595 $as_test_x conftest$ac_exeext; then
23596 ac_cv_lib_ieee___fpu_control=yes
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 ac_cv_lib_ieee___fpu_control=no
23604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23605 conftest$ac_exeext conftest.$ac_ext
23606 LIBS=$ac_check_lib_save_LIBS
23608 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23609 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23610 if test $ac_cv_lib_ieee___fpu_control = yes; then
23611 cat >>confdefs.h <<_ACEOF
23612 #define HAVE_LIBIEEE 1
23615 LIBS="-lieee $LIBS"
23623 # Check for --with-fpectl
23624 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23625 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23627 # Check whether --with-fpectl was given.
23628 if test "${with_fpectl+set}" = set; then
23629 withval=$with_fpectl;
23630 if test "$withval" != no
23633 cat >>confdefs.h <<\_ACEOF
23634 #define WANT_SIGFPE_HANDLER 1
23637 { echo "$as_me:$LINENO: result: yes" >&5
23638 echo "${ECHO_T}yes" >&6; }
23639 else { echo "$as_me:$LINENO: result: no" >&5
23640 echo "${ECHO_T}no" >&6; }
23643 { echo "$as_me:$LINENO: result: no" >&5
23644 echo "${ECHO_T}no" >&6; }
23648 # check for --with-libm=...
23650 case $ac_sys_system in
23655 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23656 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23658 # Check whether --with-libm was given.
23659 if test "${with_libm+set}" = set; then
23660 withval=$with_libm;
23661 if test "$withval" = no
23663 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23664 echo "${ECHO_T}force LIBM empty" >&6; }
23665 elif test "$withval" != yes
23667 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23668 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23669 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23670 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23671 { (exit 1); exit 1; }; }
23674 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23675 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23679 # check for --with-libc=...
23681 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23682 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23684 # Check whether --with-libc was given.
23685 if test "${with_libc+set}" = set; then
23686 withval=$with_libc;
23687 if test "$withval" = no
23689 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23690 echo "${ECHO_T}force LIBC empty" >&6; }
23691 elif test "$withval" != yes
23693 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23694 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23695 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23696 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23697 { (exit 1); exit 1; }; }
23700 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23701 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23705 # **************************************************
23706 # * Check for various properties of floating point *
23707 # **************************************************
23709 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
23710 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
23711 if test "${ac_cv_little_endian_double+set}" = set; then
23712 echo $ECHO_N "(cached) $ECHO_C" >&6
23715 if test "$cross_compiling" = yes; then
23716 ac_cv_little_endian_double=no
23718 cat >conftest.$ac_ext <<_ACEOF
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23725 #include <string.h>
23727 double x = 9006104071832581.0;
23728 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
23735 rm -f conftest$ac_exeext
23736 if { (ac_try="$ac_link"
23737 case "(($ac_try" in
23738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23739 *) ac_try_echo
=$ac_try;;
23741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23742 (eval "$ac_link") 2>&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23746 { (case "(($ac_try" in
23747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23748 *) ac_try_echo=$ac_try;;
23750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23751 (eval "$ac_try") 2>&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; }; then
23755 ac_cv_little_endian_double=yes
23757 echo "$as_me: program exited with status $ac_status" >&5
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23761 ( exit $ac_status )
23762 ac_cv_little_endian_double=no
23764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23770 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
23771 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
23772 if test "$ac_cv_little_endian_double" = yes
23775 cat >>confdefs.h <<\_ACEOF
23776 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
23781 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
23782 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
23783 if test "${ac_cv_big_endian_double+set}" = set; then
23784 echo $ECHO_N "(cached) $ECHO_C" >&6
23787 if test "$cross_compiling" = yes; then
23788 ac_cv_big_endian_double=no
23790 cat >conftest.$ac_ext <<_ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23797 #include <string.h>
23799 double x = 9006104071832581.0;
23800 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
23807 rm -f conftest$ac_exeext
23808 if { (ac_try="$ac_link"
23809 case "(($ac_try" in
23810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23811 *) ac_try_echo
=$ac_try;;
23813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23814 (eval "$ac_link") 2>&5
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23818 { (case "(($ac_try" in
23819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823 (eval "$ac_try") 2>&5
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; }; then
23827 ac_cv_big_endian_double=yes
23829 echo "$as_me: program exited with status $ac_status" >&5
23830 echo "$as_me: failed program was:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23833 ( exit $ac_status )
23834 ac_cv_big_endian_double=no
23836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23842 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
23843 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
23844 if test "$ac_cv_big_endian_double" = yes
23847 cat >>confdefs.h <<\_ACEOF
23848 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
23853 # Some ARM platforms use a mixed-endian representation for doubles.
23854 # While Python doesn't currently have full support for these platforms
23855 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23856 # conversions work.
23857 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
23858 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
23859 if test "${ac_cv_mixed_endian_double+set}" = set; then
23860 echo $ECHO_N "(cached) $ECHO_C" >&6
23863 if test "$cross_compiling" = yes; then
23864 ac_cv_mixed_endian_double=no
23866 cat >conftest.$ac_ext <<_ACEOF
23869 cat confdefs.h >>conftest.$ac_ext
23870 cat >>conftest.$ac_ext <<_ACEOF
23871 /* end confdefs.h. */
23873 #include <string.h>
23875 double x = 9006104071832581.0;
23876 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
23883 rm -f conftest$ac_exeext
23884 if { (ac_try="$ac_link"
23885 case "(($ac_try" in
23886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23887 *) ac_try_echo
=$ac_try;;
23889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23890 (eval "$ac_link") 2>&5
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23894 { (case "(($ac_try" in
23895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23896 *) ac_try_echo=$ac_try;;
23898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23899 (eval "$ac_try") 2>&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); }; }; then
23903 ac_cv_mixed_endian_double=yes
23905 echo "$as_me: program exited with status $ac_status" >&5
23906 echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23909 ( exit $ac_status )
23910 ac_cv_mixed_endian_double=no
23912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23918 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
23919 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
23920 if test "$ac_cv_mixed_endian_double" = yes
23923 cat >>confdefs.h <<\_ACEOF
23924 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
23929 # The short float repr introduced in Python 3.1 requires the
23930 # correctly-rounded string <-> double conversion functions from
23931 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23932 # rounding; this is a problem on x86, where the x87 FPU has a default
23933 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23934 # using inline assembler to get and set the x87 FPU control word.
23936 # This inline assembler syntax may also work for suncc and icc,
23937 # so we try it on all platforms.
23939 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23940 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23941 cat >conftest.$ac_ext <<_ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23953 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23954 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23960 rm -f conftest.$ac_objext
23961 if { (ac_try="$ac_compile"
23962 case "(($ac_try" in
23963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23964 *) ac_try_echo
=$ac_try;;
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967 (eval "$ac_compile") 2>conftest.er1
23969 grep -v '^ *+' conftest.er1
>conftest.err
23971 cat conftest.err
>&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); } && {
23974 test -z "$ac_c_werror_flag" ||
23975 test ! -s conftest.err
23976 } && test -s conftest.
$ac_objext; then
23977 have_gcc_asm_for_x87
=yes
23979 echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.
$ac_ext >&5
23982 have_gcc_asm_for_x87
=no
23985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23986 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23987 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23988 if test "$have_gcc_asm_for_x87" = yes
23991 cat >>confdefs.h
<<\_ACEOF
23992 #define HAVE_GCC_ASM_FOR_X87 1
23997 # Detect whether system arithmetic is subject to x87-style double
23998 # rounding issues. The result of this test has little meaning on non
23999 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
24000 # mode is round-to-nearest and double rounding issues are present, and
24001 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
24002 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
24003 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
24004 # $BASECFLAGS may affect the result
24006 CC
="$CC $BASECFLAGS"
24007 if test "$cross_compiling" = yes; then
24008 ac_cv_x87_double_rounding
=no
24010 cat >conftest.
$ac_ext <<_ACEOF
24013 cat confdefs.h
>>conftest.
$ac_ext
24014 cat >>conftest.
$ac_ext <<_ACEOF
24015 /* end confdefs.h. */
24017 #include <stdlib.h>
24020 volatile double x, y, z;
24021 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
24022 x = 0.99999999999999989; /* 1-2**-53 */
24026 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
24032 /* both tests show evidence of double rounding */
24037 rm -f conftest
$ac_exeext
24038 if { (ac_try
="$ac_link"
24039 case "(($ac_try" in
24040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24041 *) ac_try_echo=$ac_try;;
24043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24044 (eval "$ac_link") 2>&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24048 { (case "(($ac_try" in
24049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24050 *) ac_try_echo
=$ac_try;;
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053 (eval "$ac_try") 2>&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; }; then
24057 ac_cv_x87_double_rounding
=no
24059 echo "$as_me: program exited with status $ac_status" >&5
24060 echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.
$ac_ext >&5
24063 ( exit $ac_status )
24064 ac_cv_x87_double_rounding
=yes
24066 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24071 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
24072 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
24073 if test "$ac_cv_x87_double_rounding" = yes
24076 cat >>confdefs.h
<<\_ACEOF
24077 #define X87_DOUBLE_ROUNDING 1
24082 # ************************************
24083 # * Check for mathematical functions *
24084 # ************************************
24089 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
24090 # -0. on some architectures.
24091 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
24092 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
24093 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
24094 echo $ECHO_N "(cached) $ECHO_C" >&6
24097 if test "$cross_compiling" = yes; then
24098 ac_cv_tanh_preserves_zero_sign
=no
24100 cat >conftest.
$ac_ext <<_ACEOF
24103 cat confdefs.h
>>conftest.
$ac_ext
24104 cat >>conftest.
$ac_ext <<_ACEOF
24105 /* end confdefs.h. */
24108 #include <stdlib.h>
24110 /* return 0 if either negative zeros don't exist
24111 on this platform or if negative zeros exist
24112 and tanh(-0.) == -0. */
24113 if (atan2(0., -1.) == atan2(-0., -1.) ||
24114 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
24119 rm -f conftest
$ac_exeext
24120 if { (ac_try
="$ac_link"
24121 case "(($ac_try" in
24122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24123 *) ac_try_echo=$ac_try;;
24125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126 (eval "$ac_link") 2>&5
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24130 { (case "(($ac_try" in
24131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24132 *) ac_try_echo
=$ac_try;;
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135 (eval "$ac_try") 2>&5
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; }; then
24139 ac_cv_tanh_preserves_zero_sign
=yes
24141 echo "$as_me: program exited with status $ac_status" >&5
24142 echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.
$ac_ext >&5
24145 ( exit $ac_status )
24146 ac_cv_tanh_preserves_zero_sign
=no
24148 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24154 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
24155 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
24156 if test "$ac_cv_tanh_preserves_zero_sign" = yes
24159 cat >>confdefs.h
<<\_ACEOF
24160 #define TANH_PRESERVES_ZERO_SIGN 1
24174 for ac_func
in acosh asinh atanh copysign erf erfc expm1 finite gamma
24176 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24179 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24180 echo $ECHO_N "(cached) $ECHO_C" >&6
24182 cat >conftest.
$ac_ext <<_ACEOF
24185 cat confdefs.h
>>conftest.
$ac_ext
24186 cat >>conftest.
$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24190 #define $ac_func innocuous_$ac_func
24192 /* System header to define __stub macros and hopefully few prototypes,
24193 which can conflict with char $ac_func (); below.
24194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24195 <limits.h> exists even on freestanding compilers. */
24198 # include <limits.h>
24200 # include <assert.h>
24205 /* Override any GCC internal prototype to avoid an error.
24206 Use char because int might match the return type of a GCC
24207 builtin and then its argument prototype would still apply. */
24212 /* The GNU C library defines this for functions which it implements
24213 to always fail with ENOSYS. Some functions are actually named
24214 something starting with __ and the normal name is an alias. */
24215 #if defined __stub_$ac_func || defined __stub___$ac_func
24222 return $ac_func ();
24227 rm -f conftest.
$ac_objext conftest
$ac_exeext
24228 if { (ac_try
="$ac_link"
24229 case "(($ac_try" in
24230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234 (eval "$ac_link") 2>conftest.er1
24236 grep -v '^ *+' conftest.er1 >conftest.err
24238 cat conftest.err >&5
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } && {
24241 test -z "$ac_c_werror_flag" ||
24242 test ! -s conftest.err
24243 } && test -s conftest$ac_exeext &&
24244 $as_test_x conftest$ac_exeext; then
24245 eval "$as_ac_var=yes"
24247 echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24250 eval "$as_ac_var=no"
24253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24254 conftest$ac_exeext conftest.$ac_ext
24256 ac_res=`eval echo '${'$as_ac_var'}'`
24257 { echo "$as_me:$LINENO: result: $ac_res" >&5
24258 echo "${ECHO_T}$ac_res" >&6; }
24259 if test `eval echo '${'$as_ac_var'}'` = yes; then
24260 cat >>confdefs.h <<_ACEOF
24261 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24272 for ac_func in hypot lgamma log1p round tgamma
24274 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
24275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24278 echo $ECHO_N "(cached) $ECHO_C" >&6
24280 cat >conftest.$ac_ext <<_ACEOF
24283 cat confdefs.h >>conftest.$ac_ext
24284 cat >>conftest.$ac_ext <<_ACEOF
24285 /* end confdefs.h. */
24286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24288 #define $ac_func innocuous_$ac_func
24290 /* System header to define __stub macros and hopefully few prototypes,
24291 which can conflict with char $ac_func (); below.
24292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24293 <limits.h> exists even on freestanding compilers. */
24296 # include <limits.h>
24298 # include <assert.h>
24303 /* Override any GCC internal prototype to avoid an error.
24304 Use char because int might match the return type of a GCC
24305 builtin and then its argument prototype would still apply. */
24310 /* The GNU C library defines this for functions which it implements
24311 to always fail with ENOSYS. Some functions are actually named
24312 something starting with __ and the normal name is an alias. */
24313 #if defined __stub_$ac_func || defined __stub___$ac_func
24320 return $ac_func ();
24325 rm -f conftest.$ac_objext conftest$ac_exeext
24326 if { (ac_try="$ac_link"
24327 case "(($ac_try" in
24328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24329 *) ac_try_echo
=$ac_try;;
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332 (eval "$ac_link") 2>conftest.er1
24334 grep -v '^ *+' conftest.er1
>conftest.err
24336 cat conftest.err
>&5
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); } && {
24339 test -z "$ac_c_werror_flag" ||
24340 test ! -s conftest.err
24341 } && test -s conftest
$ac_exeext &&
24342 $as_test_x conftest
$ac_exeext; then
24343 eval "$as_ac_var=yes"
24345 echo "$as_me: failed program was:" >&5
24346 sed 's/^/| /' conftest.
$ac_ext >&5
24348 eval "$as_ac_var=no"
24351 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24352 conftest
$ac_exeext conftest.
$ac_ext
24354 ac_res
=`eval echo '${'$as_ac_var'}'`
24355 { echo "$as_me:$LINENO: result: $ac_res" >&5
24356 echo "${ECHO_T}$ac_res" >&6; }
24357 if test `eval echo '${'$as_ac_var'}'` = yes; then
24358 cat >>confdefs.h
<<_ACEOF
24359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24365 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
24366 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
24367 if test "${ac_cv_have_decl_isinf+set}" = set; then
24368 echo $ECHO_N "(cached) $ECHO_C" >&6
24370 cat >conftest.
$ac_ext <<_ACEOF
24373 cat confdefs.h
>>conftest.
$ac_ext
24374 cat >>conftest.
$ac_ext <<_ACEOF
24375 /* end confdefs.h. */
24389 rm -f conftest.
$ac_objext
24390 if { (ac_try
="$ac_compile"
24391 case "(($ac_try" in
24392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396 (eval "$ac_compile") 2>conftest.er1
24398 grep -v '^ *+' conftest.er1 >conftest.err
24400 cat conftest.err >&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } && {
24403 test -z "$ac_c_werror_flag" ||
24404 test ! -s conftest.err
24405 } && test -s conftest.$ac_objext; then
24406 ac_cv_have_decl_isinf=yes
24408 echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24411 ac_cv_have_decl_isinf=no
24414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24416 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
24417 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
24418 if test $ac_cv_have_decl_isinf = yes; then
24420 cat >>confdefs.h <<_ACEOF
24421 #define HAVE_DECL_ISINF 1
24426 cat >>confdefs.h <<_ACEOF
24427 #define HAVE_DECL_ISINF 0
24432 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24433 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
24434 if test "${ac_cv_have_decl_isnan+set}" = set; then
24435 echo $ECHO_N "(cached) $ECHO_C" >&6
24437 cat >conftest.$ac_ext <<_ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h. */
24456 rm -f conftest.$ac_objext
24457 if { (ac_try="$ac_compile"
24458 case "(($ac_try" in
24459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24460 *) ac_try_echo
=$ac_try;;
24462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24463 (eval "$ac_compile") 2>conftest.er1
24465 grep -v '^ *+' conftest.er1
>conftest.err
24467 cat conftest.err
>&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } && {
24470 test -z "$ac_c_werror_flag" ||
24471 test ! -s conftest.err
24472 } && test -s conftest.
$ac_objext; then
24473 ac_cv_have_decl_isnan
=yes
24475 echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.
$ac_ext >&5
24478 ac_cv_have_decl_isnan
=no
24481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24483 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24484 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
24485 if test $ac_cv_have_decl_isnan = yes; then
24487 cat >>confdefs.h
<<_ACEOF
24488 #define HAVE_DECL_ISNAN 1
24493 cat >>confdefs.h
<<_ACEOF
24494 #define HAVE_DECL_ISNAN 0
24499 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24500 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
24501 if test "${ac_cv_have_decl_isfinite+set}" = set; then
24502 echo $ECHO_N "(cached) $ECHO_C" >&6
24504 cat >conftest.
$ac_ext <<_ACEOF
24507 cat confdefs.h
>>conftest.
$ac_ext
24508 cat >>conftest.
$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24523 rm -f conftest.
$ac_objext
24524 if { (ac_try
="$ac_compile"
24525 case "(($ac_try" in
24526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24527 *) ac_try_echo=$ac_try;;
24529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24530 (eval "$ac_compile") 2>conftest.er1
24532 grep -v '^ *+' conftest.er1 >conftest.err
24534 cat conftest.err >&5
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); } && {
24537 test -z "$ac_c_werror_flag" ||
24538 test ! -s conftest.err
24539 } && test -s conftest.$ac_objext; then
24540 ac_cv_have_decl_isfinite=yes
24542 echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24545 ac_cv_have_decl_isfinite=no
24548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24550 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24551 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
24552 if test $ac_cv_have_decl_isfinite = yes; then
24554 cat >>confdefs.h <<_ACEOF
24555 #define HAVE_DECL_ISFINITE 1
24560 cat >>confdefs.h <<_ACEOF
24561 #define HAVE_DECL_ISFINITE 0
24571 # For multiprocessing module, check that sem_open
24572 # actually works. For FreeBSD versions <= 7.2,
24573 # the kernel module that provides POSIX semaphores
24574 # isn't loaded by default, so an attempt to call
24575 # sem_open results in a 'Signal 12' error.
24576 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
24577 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
24578 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
24579 echo $ECHO_N "(cached) $ECHO_C" >&6
24581 if test "$cross_compiling" = yes; then
24582 ac_cv_posix_semaphores_enabled=yes
24584 cat >conftest.$ac_ext <<_ACEOF
24587 cat confdefs.h >>conftest.$ac_ext
24588 cat >>conftest.$ac_ext <<_ACEOF
24589 /* end confdefs.h. */
24591 #include <unistd.h>
24594 #include <semaphore.h>
24595 #include <sys/stat.h>
24598 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24599 if (a == SEM_FAILED) {
24600 perror("sem_open");
24604 sem_unlink("/autoconf");
24609 rm -f conftest$ac_exeext
24610 if { (ac_try="$ac_link"
24611 case "(($ac_try" in
24612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24613 *) ac_try_echo
=$ac_try;;
24615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616 (eval "$ac_link") 2>&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24620 { (case "(($ac_try" in
24621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625 (eval "$ac_try") 2>&5
24627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628 (exit $ac_status); }; }; then
24629 ac_cv_posix_semaphores_enabled=yes
24631 echo "$as_me: program exited with status $ac_status" >&5
24632 echo "$as_me: failed program was:" >&5
24633 sed 's/^/| /' conftest.$ac_ext >&5
24635 ( exit $ac_status )
24636 ac_cv_posix_semaphores_enabled=no
24638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24645 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
24646 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
24647 if test $ac_cv_posix_semaphores_enabled = no
24650 cat >>confdefs.h <<\_ACEOF
24651 #define POSIX_SEMAPHORES_NOT_ENABLED 1
24656 # Multiprocessing check for broken sem_getvalue
24657 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
24658 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
24659 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24662 if test "$cross_compiling" = yes; then
24663 ac_cv_broken_sem_getvalue=yes
24665 cat >conftest.$ac_ext <<_ACEOF
24668 cat confdefs.h >>conftest.$ac_ext
24669 cat >>conftest.$ac_ext <<_ACEOF
24670 /* end confdefs.h. */
24672 #include <unistd.h>
24675 #include <semaphore.h>
24676 #include <sys/stat.h>
24679 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
24683 perror("sem_open");
24687 res = sem_getvalue(a, &count);
24689 sem_unlink("/autocftw");
24690 return res==-1 ? 1 : 0;
24694 rm -f conftest$ac_exeext
24695 if { (ac_try="$ac_link"
24696 case "(($ac_try" in
24697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24698 *) ac_try_echo
=$ac_try;;
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_link") 2>&5
24703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24705 { (case "(($ac_try" in
24706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24707 *) ac_try_echo=$ac_try;;
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710 (eval "$ac_try") 2>&5
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; }; then
24714 ac_cv_broken_sem_getvalue=no
24716 echo "$as_me: program exited with status $ac_status" >&5
24717 echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24720 ( exit $ac_status )
24721 ac_cv_broken_sem_getvalue=yes
24723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24730 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
24731 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
24732 if test $ac_cv_broken_sem_getvalue = yes
24735 cat >>confdefs.h <<\_ACEOF
24736 #define HAVE_BROKEN_SEM_GETVALUE 1
24741 # determine what size digit to use for Python's longs
24742 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24743 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
24744 # Check whether --enable-big-digits was given.
24745 if test "${enable_big_digits+set}" = set; then
24746 enableval=$enable_big_digits; case $enable_big_digits in
24748 enable_big_digits=30 ;;
24750 enable_big_digits=15 ;;
24754 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24755 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
24756 { (exit 1); exit 1; }; } ;;
24758 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24759 echo "${ECHO_T}$enable_big_digits" >&6; }
24761 cat >>confdefs.h <<_ACEOF
24762 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
24767 { echo "$as_me:$LINENO: result: no value specified" >&5
24768 echo "${ECHO_T}no value specified" >&6; }
24772 # check for wchar.h
24773 if test "${ac_cv_header_wchar_h+set}" = set; then
24774 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24775 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24776 if test "${ac_cv_header_wchar_h+set}" = set; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
24779 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24780 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24782 # Is the header compilable?
24783 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
24784 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24785 cat >conftest.$ac_ext <<_ACEOF
24788 cat confdefs.h >>conftest.$ac_ext
24789 cat >>conftest.$ac_ext <<_ACEOF
24790 /* end confdefs.h. */
24791 $ac_includes_default
24794 rm -f conftest.$ac_objext
24795 if { (ac_try="$ac_compile"
24796 case "(($ac_try" in
24797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24798 *) ac_try_echo
=$ac_try;;
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801 (eval "$ac_compile") 2>conftest.er1
24803 grep -v '^ *+' conftest.er1
>conftest.err
24805 cat conftest.err
>&5
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); } && {
24808 test -z "$ac_c_werror_flag" ||
24809 test ! -s conftest.err
24810 } && test -s conftest.
$ac_objext; then
24811 ac_header_compiler
=yes
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.
$ac_ext >&5
24816 ac_header_compiler
=no
24819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24821 echo "${ECHO_T}$ac_header_compiler" >&6; }
24823 # Is the header present?
24824 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
24825 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24826 cat >conftest.
$ac_ext <<_ACEOF
24829 cat confdefs.h
>>conftest.
$ac_ext
24830 cat >>conftest.
$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24834 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24835 case "(($ac_try" in
24836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24837 *) ac_try_echo=$ac_try;;
24839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24842 grep -v '^ *+' conftest.er1 >conftest.err
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } >/dev/null && {
24847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24848 test ! -s conftest.err
24850 ac_header_preproc=yes
24852 echo "$as_me: failed program was:" >&5
24853 sed 's/^/| /' conftest.$ac_ext >&5
24855 ac_header_preproc=no
24858 rm -f conftest.err conftest.$ac_ext
24859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24860 echo "${ECHO_T}$ac_header_preproc" >&6; }
24862 # So? What about this header?
24863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24865 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24866 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24867 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24868 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24869 ac_header_preproc=yes
24872 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24873 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24874 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24875 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24876 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24877 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24878 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24879 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24880 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24881 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24882 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24883 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24885 ## -------------------------------------- ##
24886 ## Report this to http://bugs.python.org/ ##
24887 ## -------------------------------------- ##
24889 ) | sed "s/^/$as_me: WARNING: /" >&2
24892 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24893 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24894 if test "${ac_cv_header_wchar_h+set}" = set; then
24895 echo $ECHO_N "(cached) $ECHO_C" >&6
24897 ac_cv_header_wchar_h=$ac_header_preproc
24899 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24900 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24903 if test $ac_cv_header_wchar_h = yes; then
24906 cat >>confdefs.h <<\_ACEOF
24907 #define HAVE_WCHAR_H 1
24919 # determine wchar_t size
24920 if test "$wchar_h" = yes
24922 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24923 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24924 if test "${ac_cv_type_wchar_t+set}" = set; then
24925 echo $ECHO_N "(cached) $ECHO_C" >&6
24927 cat >conftest.$ac_ext <<_ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h. */
24935 typedef wchar_t ac__type_new_;
24939 if ((ac__type_new_ *) 0)
24941 if (sizeof (ac__type_new_))
24947 rm -f conftest.$ac_objext
24948 if { (ac_try="$ac_compile"
24949 case "(($ac_try" in
24950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24951 *) ac_try_echo
=$ac_try;;
24953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24954 (eval "$ac_compile") 2>conftest.er1
24956 grep -v '^ *+' conftest.er1
>conftest.err
24958 cat conftest.err
>&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } && {
24961 test -z "$ac_c_werror_flag" ||
24962 test ! -s conftest.err
24963 } && test -s conftest.
$ac_objext; then
24964 ac_cv_type_wchar_t
=yes
24966 echo "$as_me: failed program was:" >&5
24967 sed 's/^/| /' conftest.
$ac_ext >&5
24969 ac_cv_type_wchar_t
=no
24972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24974 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24975 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24977 # The cast to long int works around a bug in the HP C Compiler
24978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24980 # This bug is HP SR number 8606223364.
24981 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24982 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24983 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24984 echo $ECHO_N "(cached) $ECHO_C" >&6
24986 if test "$cross_compiling" = yes; then
24987 # Depending upon the size, compute the lo and hi bounds.
24988 cat >conftest.
$ac_ext <<_ACEOF
24991 cat confdefs.h
>>conftest.
$ac_ext
24992 cat >>conftest.
$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24996 typedef wchar_t ac__type_sizeof_;
25000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25007 rm -f conftest.
$ac_objext
25008 if { (ac_try
="$ac_compile"
25009 case "(($ac_try" in
25010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25011 *) ac_try_echo=$ac_try;;
25013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25014 (eval "$ac_compile") 2>conftest.er1
25016 grep -v '^ *+' conftest.er1 >conftest.err
25018 cat conftest.err >&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); } && {
25021 test -z "$ac_c_werror_flag" ||
25022 test ! -s conftest.err
25023 } && test -s conftest.$ac_objext; then
25026 cat >conftest.$ac_ext <<_ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25034 typedef wchar_t ac__type_sizeof_;
25038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25045 rm -f conftest.$ac_objext
25046 if { (ac_try="$ac_compile"
25047 case "(($ac_try" in
25048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25049 *) ac_try_echo
=$ac_try;;
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052 (eval "$ac_compile") 2>conftest.er1
25054 grep -v '^ *+' conftest.er1
>conftest.err
25056 cat conftest.err
>&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } && {
25059 test -z "$ac_c_werror_flag" ||
25060 test ! -s conftest.err
25061 } && test -s conftest.
$ac_objext; then
25062 ac_hi
=$ac_mid; break
25064 echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.
$ac_ext >&5
25067 ac_lo
=`expr $ac_mid + 1`
25068 if test $ac_lo -le $ac_mid; then
25072 ac_mid
=`expr 2 '*' $ac_mid + 1`
25075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25078 echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.
$ac_ext >&5
25081 cat >conftest.
$ac_ext <<_ACEOF
25084 cat confdefs.h
>>conftest.
$ac_ext
25085 cat >>conftest.
$ac_ext <<_ACEOF
25086 /* end confdefs.h. */
25089 typedef wchar_t ac__type_sizeof_;
25093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25100 rm -f conftest.
$ac_objext
25101 if { (ac_try
="$ac_compile"
25102 case "(($ac_try" in
25103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25104 *) ac_try_echo=$ac_try;;
25106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107 (eval "$ac_compile") 2>conftest.er1
25109 grep -v '^ *+' conftest.er1 >conftest.err
25111 cat conftest.err >&5
25112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113 (exit $ac_status); } && {
25114 test -z "$ac_c_werror_flag" ||
25115 test ! -s conftest.err
25116 } && test -s conftest.$ac_objext; then
25119 cat >conftest.$ac_ext <<_ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h. */
25127 typedef wchar_t ac__type_sizeof_;
25131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25142 *) ac_try_echo
=$ac_try;;
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145 (eval "$ac_compile") 2>conftest.er1
25147 grep -v '^ *+' conftest.er1
>conftest.err
25149 cat conftest.err
>&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } && {
25152 test -z "$ac_c_werror_flag" ||
25153 test ! -s conftest.err
25154 } && test -s conftest.
$ac_objext; then
25155 ac_lo
=$ac_mid; break
25157 echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.
$ac_ext >&5
25160 ac_hi
=`expr '(' $ac_mid ')' - 1`
25161 if test $ac_mid -le $ac_hi; then
25165 ac_mid
=`expr 2 '*' $ac_mid`
25168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25171 echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.
$ac_ext >&5
25177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25181 # Binary search between lo and hi bounds.
25182 while test "x$ac_lo" != "x$ac_hi"; do
25183 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25184 cat >conftest.
$ac_ext <<_ACEOF
25187 cat confdefs.h
>>conftest.
$ac_ext
25188 cat >>conftest.
$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25192 typedef wchar_t ac__type_sizeof_;
25196 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25203 rm -f conftest.
$ac_objext
25204 if { (ac_try
="$ac_compile"
25205 case "(($ac_try" in
25206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25207 *) ac_try_echo=$ac_try;;
25209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210 (eval "$ac_compile") 2>conftest.er1
25212 grep -v '^ *+' conftest.er1 >conftest.err
25214 cat conftest.err >&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } && {
25217 test -z "$ac_c_werror_flag" ||
25218 test ! -s conftest.err
25219 } && test -s conftest.$ac_objext; then
25222 echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25225 ac_lo=`expr '(' $ac_mid ')' + 1`
25228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25231 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25232 '') if test "$ac_cv_type_wchar_t" = yes; then
25233 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25234 See \`config.log
' for more details." >&5
25235 echo "$as_me: error: cannot compute sizeof (wchar_t)
25236 See \`config.log' for more details.
" >&2;}
25237 { (exit 77); exit 77; }; }
25239 ac_cv_sizeof_wchar_t=0
25243 cat >conftest.$ac_ext <<_ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25251 typedef wchar_t ac__type_sizeof_;
25252 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25253 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25255 #include <stdlib.h>
25260 FILE *f = fopen ("conftest.val
", "w
");
25263 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25265 long int i = longval ();
25266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25268 fprintf (f, "%ld
\n", i);
25272 unsigned long int i = ulongval ();
25273 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25275 fprintf (f, "%lu
\n", i);
25277 return ferror (f) || fclose (f) != 0;
25283 rm -f conftest$ac_exeext
25284 if { (ac_try="$ac_link"
25285 case "(($ac_try" in
25286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287 *) ac_try_echo=$ac_try;;
25289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25290 (eval "$ac_link") 2>&5
25292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25294 { (case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_try") 2>&5
25301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25302 (exit $ac_status); }; }; then
25303 ac_cv_sizeof_wchar_t=`cat conftest.val`
25305 echo "$as_me: program exited with status
$ac_status" >&5
25306 echo "$as_me: failed program was
:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25309 ( exit $ac_status )
25310 if test "$ac_cv_type_wchar_t" = yes; then
25311 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
25312 See \
`config.log' for more details." >&5
25313 echo "$as_me: error: cannot compute sizeof (wchar_t)
25314 See \`config.log
' for more details." >&2;}
25315 { (exit 77); exit 77; }; }
25317 ac_cv_sizeof_wchar_t=0
25320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25324 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25325 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25329 cat >>confdefs.h <<_ACEOF
25330 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25336 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25337 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25339 cat >conftest.$ac_ext <<_ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25347 #if TCL_UTF_MAX != 6
25348 # error "NOT UCS4_TCL"
25358 rm -f conftest.$ac_objext
25359 if { (ac_try="$ac_compile"
25360 case "(($ac_try" in
25361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25362 *) ac_try_echo=$ac_try;;
25364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25365 (eval "$ac_compile") 2>conftest.er1
25367 grep -v '^
*+' conftest.er1 >conftest.err
25369 cat conftest.err >&5
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); } && {
25372 test -z "$ac_c_werror_flag" ||
25373 test ! -s conftest.err
25374 } && test -s conftest.$ac_objext; then
25377 cat >>confdefs.h <<\_ACEOF
25378 #define HAVE_UCS4_TCL 1
25384 echo "$as_me: failed program was:" >&5
25385 sed 's
/^
/|
/' conftest.$ac_ext >&5
25390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25391 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25392 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25394 # check whether wchar_t is signed or not
25395 if test "$wchar_h" = yes
25397 # check whether wchar_t is signed or not
25398 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25399 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25400 if test "${ac_cv_wchar_t_signed+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 if test "$cross_compiling" = yes; then
25405 ac_cv_wchar_t_signed=yes
25407 cat >conftest.$ac_ext <<_ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */
25417 /* Success: exit code 0 */
25418 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
25422 rm -f conftest$ac_exeext
25423 if { (ac_try="$ac_link"
25424 case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25429 (eval "$ac_link") 2>&5
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25433 { (case "(($ac_try" in
25434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435 *) ac_try_echo=$ac_try;;
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438 (eval "$ac_try") 2>&5
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); }; }; then
25442 ac_cv_wchar_t_signed=yes
25444 echo "$as_me: program exited with status $ac_status" >&5
25445 echo "$as_me: failed program was:" >&5
25446 sed 's
/^
/|
/' conftest.$ac_ext >&5
25448 ( exit $ac_status )
25449 ac_cv_wchar_t_signed=no
25451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25457 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25458 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25461 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25462 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25463 # Check whether --enable-unicode was given.
25464 if test "${enable_unicode+set}" = set; then
25465 enableval=$enable_unicode;
25471 if test $enable_unicode = yes
25473 # Without any arguments, Py_UNICODE defaults to two-byte mode
25474 case "$have_ucs4_tcl" in
25475 yes) enable_unicode="ucs4"
25477 *) enable_unicode="ucs2"
25484 case "$enable_unicode" in
25485 ucs2) unicode_size="2"
25486 cat >>confdefs.h <<\_ACEOF
25487 #define Py_UNICODE_SIZE 2
25491 ucs4) unicode_size="4"
25492 cat >>confdefs.h <<\_ACEOF
25493 #define Py_UNICODE_SIZE 4
25503 if test "$enable_unicode" = "no"
25506 { echo "$as_me:$LINENO: result: not used" >&5
25507 echo "${ECHO_T}not used" >&6; }
25509 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25511 cat >>confdefs.h <<\_ACEOF
25512 #define Py_USING_UNICODE 1
25516 # wchar_t is only usable if it maps to an unsigned type
25517 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
25518 -a "$ac_cv_wchar_t_signed" = "no"
25520 PY_UNICODE_TYPE="wchar_t"
25522 cat >>confdefs.h <<\_ACEOF
25523 #define HAVE_USABLE_WCHAR_T 1
25526 cat >>confdefs.h <<\_ACEOF
25527 #define PY_UNICODE_TYPE wchar_t
25530 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25532 PY_UNICODE_TYPE="unsigned short"
25533 cat >>confdefs.h <<\_ACEOF
25534 #define PY_UNICODE_TYPE unsigned short
25537 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25539 PY_UNICODE_TYPE="unsigned long"
25540 cat >>confdefs.h <<\_ACEOF
25541 #define PY_UNICODE_TYPE unsigned long
25545 PY_UNICODE_TYPE="no type found"
25547 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25548 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25551 # check for endianness
25552 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25553 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25554 if test "${ac_cv_c_bigendian+set}" = set; then
25555 echo $ECHO_N "(cached) $ECHO_C" >&6
25557 # See if sys/param.h defines the BYTE_ORDER macro.
25558 cat >conftest.$ac_ext <<_ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h. */
25564 #include <sys/types.h>
25565 #include <sys/param.h>
25570 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25571 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25572 bogus endian macros
25579 rm -f conftest.$ac_objext
25580 if { (ac_try="$ac_compile"
25581 case "(($ac_try" in
25582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583 *) ac_try_echo=$ac_try;;
25585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586 (eval "$ac_compile") 2>conftest.er1
25588 grep -v '^
*+' conftest.er1 >conftest.err
25590 cat conftest.err >&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); } && {
25593 test -z "$ac_c_werror_flag" ||
25594 test ! -s conftest.err
25595 } && test -s conftest.$ac_objext; then
25596 # It does; now see whether it defined to BIG_ENDIAN or not.
25597 cat >conftest.$ac_ext <<_ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h. */
25603 #include <sys/types.h>
25604 #include <sys/param.h>
25609 #if BYTE_ORDER != BIG_ENDIAN
25617 rm -f conftest.$ac_objext
25618 if { (ac_try="$ac_compile"
25619 case "(($ac_try" in
25620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621 *) ac_try_echo=$ac_try;;
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624 (eval "$ac_compile") 2>conftest.er1
25626 grep -v '^
*+' conftest.er1 >conftest.err
25628 cat conftest.err >&5
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); } && {
25631 test -z "$ac_c_werror_flag" ||
25632 test ! -s conftest.err
25633 } && test -s conftest.$ac_objext; then
25634 ac_cv_c_bigendian=yes
25636 echo "$as_me: failed program was:" >&5
25637 sed 's
/^
/|
/' conftest.$ac_ext >&5
25639 ac_cv_c_bigendian=no
25642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25644 echo "$as_me: failed program was:" >&5
25645 sed 's
/^
/|
/' conftest.$ac_ext >&5
25647 # It does not; compile a test program.
25648 if test "$cross_compiling" = yes; then
25649 # try to guess the endianness by grepping values into an object file
25650 ac_cv_c_bigendian=unknown
25651 cat >conftest.$ac_ext <<_ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h. */
25657 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25658 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25659 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25660 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25661 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25662 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25666 _ascii (); _ebcdic ();
25671 rm -f conftest.$ac_objext
25672 if { (ac_try="$ac_compile"
25673 case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25678 (eval "$ac_compile") 2>conftest.er1
25680 grep -v '^
*+' conftest.er1 >conftest.err
25682 cat conftest.err >&5
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); } && {
25685 test -z "$ac_c_werror_flag" ||
25686 test ! -s conftest.err
25687 } && test -s conftest.$ac_objext; then
25688 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25689 ac_cv_c_bigendian=yes
25691 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25692 if test "$ac_cv_c_bigendian" = unknown; then
25693 ac_cv_c_bigendian=no
25695 # finding both strings is unlikely to happen, but who knows?
25696 ac_cv_c_bigendian=unknown
25700 echo "$as_me: failed program was:" >&5
25701 sed 's
/^
/|
/' conftest.$ac_ext >&5
25706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25708 cat >conftest.$ac_ext <<_ACEOF
25711 cat confdefs.h >>conftest.$ac_ext
25712 cat >>conftest.$ac_ext <<_ACEOF
25713 /* end confdefs.h. */
25714 $ac_includes_default
25719 /* Are we little or big endian? From Harbison&Steele. */
25723 char c[sizeof (long int)];
25726 return u.c[sizeof (long int) - 1] == 1;
25732 rm -f conftest$ac_exeext
25733 if { (ac_try="$ac_link"
25734 case "(($ac_try" in
25735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25736 *) ac_try_echo=$ac_try;;
25738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25739 (eval "$ac_link") 2>&5
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25743 { (case "(($ac_try" in
25744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25745 *) ac_try_echo=$ac_try;;
25747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25748 (eval "$ac_try") 2>&5
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; }; then
25752 ac_cv_c_bigendian=no
25754 echo "$as_me: program exited with status $ac_status" >&5
25755 echo "$as_me: failed program was:" >&5
25756 sed 's
/^
/|
/' conftest.$ac_ext >&5
25758 ( exit $ac_status )
25759 ac_cv_c_bigendian=yes
25761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25769 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25770 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25771 case $ac_cv_c_bigendian in
25774 cat >>confdefs.h <<\_ACEOF
25775 #define WORDS_BIGENDIAN 1
25781 { { echo "$as_me:$LINENO: error: unknown endianness
25782 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25783 echo "$as_me: error: unknown endianness
25784 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25785 { (exit 1); exit 1; }; } ;;
25789 # Check whether right shifting a negative integer extends the sign bit
25790 # or fills with zeros (like the Cray J90, according to Tim Peters).
25791 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25792 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25793 if test "${ac_cv_rshift_extends_sign+set}" = set; then
25794 echo $ECHO_N "(cached) $ECHO_C" >&6
25797 if test "$cross_compiling" = yes; then
25798 ac_cv_rshift_extends_sign=yes
25800 cat >conftest.$ac_ext <<_ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h. */
25809 exit(((-1)>>3 == -1) ? 0 : 1);
25813 rm -f conftest$ac_exeext
25814 if { (ac_try="$ac_link"
25815 case "(($ac_try" in
25816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25817 *) ac_try_echo=$ac_try;;
25819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25820 (eval "$ac_link") 2>&5
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25824 { (case "(($ac_try" in
25825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25826 *) ac_try_echo=$ac_try;;
25828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25829 (eval "$ac_try") 2>&5
25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); }; }; then
25833 ac_cv_rshift_extends_sign=yes
25835 echo "$as_me: program exited with status $ac_status" >&5
25836 echo "$as_me: failed program was:" >&5
25837 sed 's
/^
/|
/' conftest.$ac_ext >&5
25839 ( exit $ac_status )
25840 ac_cv_rshift_extends_sign=no
25842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25848 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25849 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25850 if test "$ac_cv_rshift_extends_sign" = no
25853 cat >>confdefs.h <<\_ACEOF
25854 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25859 # check for getc_unlocked and related locking functions
25860 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25861 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25862 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25863 echo $ECHO_N "(cached) $ECHO_C" >&6
25866 cat >conftest.$ac_ext <<_ACEOF
25869 cat confdefs.h >>conftest.$ac_ext
25870 cat >>conftest.$ac_ext <<_ACEOF
25871 /* end confdefs.h. */
25877 FILE *f = fopen("/dev/null", "r");
25886 rm -f conftest.$ac_objext conftest$ac_exeext
25887 if { (ac_try="$ac_link"
25888 case "(($ac_try" in
25889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25890 *) ac_try_echo=$ac_try;;
25892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25893 (eval "$ac_link") 2>conftest.er1
25895 grep -v '^
*+' conftest.er1 >conftest.err
25897 cat conftest.err >&5
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); } && {
25900 test -z "$ac_c_werror_flag" ||
25901 test ! -s conftest.err
25902 } && test -s conftest$ac_exeext &&
25903 $as_test_x conftest$ac_exeext; then
25904 ac_cv_have_getc_unlocked=yes
25906 echo "$as_me: failed program was:" >&5
25907 sed 's
/^
/|
/' conftest.$ac_ext >&5
25909 ac_cv_have_getc_unlocked=no
25912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25913 conftest$ac_exeext conftest.$ac_ext
25916 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25917 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25918 if test "$ac_cv_have_getc_unlocked" = yes
25921 cat >>confdefs.h <<\_ACEOF
25922 #define HAVE_GETC_UNLOCKED 1
25927 # check where readline lives
25928 # save the value of LIBS so we don't actually link Python with readline
25929 LIBS_no_readline
=$LIBS
25931 # On some systems we need to link readline to a termcap compatible
25932 # library. NOTE: Keep the precedence of listed libraries synchronised
25934 py_cv_lib_readline
=no
25935 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25936 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25937 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
25938 if test -z "$py_libtermcap"; then
25939 READLINE_LIBS
="-lreadline"
25941 READLINE_LIBS
="-lreadline -l$py_libtermcap"
25943 LIBS
="$READLINE_LIBS $LIBS_no_readline"
25944 cat >conftest.
$ac_ext <<_ACEOF
25947 cat confdefs.h
>>conftest.
$ac_ext
25948 cat >>conftest.
$ac_ext <<_ACEOF
25949 /* end confdefs.h. */
25951 /* Override any GCC internal prototype to avoid an error.
25952 Use char because int might match the return type of a GCC
25953 builtin and then its argument prototype would still apply. */
25961 return readline ();
25966 rm -f conftest.
$ac_objext conftest
$ac_exeext
25967 if { (ac_try
="$ac_link"
25968 case "(($ac_try" in
25969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_link") 2>conftest.er1
25975 grep -v '^ *+' conftest.er1 >conftest.err
25977 cat conftest.err >&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } && {
25980 test -z "$ac_c_werror_flag" ||
25981 test ! -s conftest.err
25982 } && test -s conftest$ac_exeext &&
25983 $as_test_x conftest$ac_exeext; then
25984 py_cv_lib_readline=yes
25986 echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25993 conftest$ac_exeext conftest.$ac_ext
25994 if test $py_cv_lib_readline = yes; then
25998 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25999 #AC_SUBST([READLINE_LIBS])
26000 if test $py_cv_lib_readline = no; then
26001 { echo "$as_me:$LINENO: result: none" >&5
26002 echo "${ECHO_T}none" >&6; }
26004 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
26005 echo "${ECHO_T}$READLINE_LIBS" >&6; }
26007 cat >>confdefs.h <<\_ACEOF
26008 #define HAVE_LIBREADLINE 1
26013 # check for readline 2.1
26014 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
26015 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
26016 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
26017 echo $ECHO_N "(cached) $ECHO_C" >&6
26019 ac_check_lib_save_LIBS=$LIBS
26020 LIBS="-lreadline $READLINE_LIBS $LIBS"
26021 cat >conftest.$ac_ext <<_ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26028 /* Override any GCC internal prototype to avoid an error.
26029 Use char because int might match the return type of a GCC
26030 builtin and then its argument prototype would still apply. */
26034 char rl_callback_handler_install ();
26038 return rl_callback_handler_install ();
26043 rm -f conftest.$ac_objext conftest$ac_exeext
26044 if { (ac_try="$ac_link"
26045 case "(($ac_try" in
26046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26047 *) ac_try_echo
=$ac_try;;
26049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050 (eval "$ac_link") 2>conftest.er1
26052 grep -v '^ *+' conftest.er1
>conftest.err
26054 cat conftest.err
>&5
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); } && {
26057 test -z "$ac_c_werror_flag" ||
26058 test ! -s conftest.err
26059 } && test -s conftest
$ac_exeext &&
26060 $as_test_x conftest
$ac_exeext; then
26061 ac_cv_lib_readline_rl_callback_handler_install
=yes
26063 echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.
$ac_ext >&5
26066 ac_cv_lib_readline_rl_callback_handler_install
=no
26069 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26070 conftest
$ac_exeext conftest.
$ac_ext
26071 LIBS
=$ac_check_lib_save_LIBS
26073 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
26074 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
26075 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
26077 cat >>confdefs.h
<<\_ACEOF
26078 #define HAVE_RL_CALLBACK 1
26084 # check for readline 2.2
26085 cat >conftest.
$ac_ext <<_ACEOF
26088 cat confdefs.h
>>conftest.
$ac_ext
26089 cat >>conftest.
$ac_ext <<_ACEOF
26090 /* end confdefs.h. */
26091 #include <readline/readline.h>
26093 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26094 case "(($ac_try" in
26095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26096 *) ac_try_echo=$ac_try;;
26098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26101 grep -v '^ *+' conftest.er1 >conftest.err
26103 cat conftest.err >&5
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); } >/dev/null && {
26106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26107 test ! -s conftest.err
26111 echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26117 rm -f conftest.err conftest.$ac_ext
26118 if test $have_readline = yes
26120 cat >conftest.$ac_ext <<_ACEOF
26123 cat confdefs.h >>conftest.$ac_ext
26124 cat >>conftest.$ac_ext <<_ACEOF
26125 /* end confdefs.h. */
26126 #include <readline/readline.h>
26129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26130 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
26132 cat >>confdefs.h <<\_ACEOF
26133 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
26139 cat >conftest.$ac_ext <<_ACEOF
26142 cat confdefs.h >>conftest.$ac_ext
26143 cat >>conftest.$ac_ext <<_ACEOF
26144 /* end confdefs.h. */
26145 #include <readline/readline.h>
26148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26149 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
26151 cat >>confdefs.h <<\_ACEOF
26152 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
26160 # check for readline 4.0
26161 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
26162 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
26163 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
26164 echo $ECHO_N "(cached) $ECHO_C" >&6
26166 ac_check_lib_save_LIBS=$LIBS
26167 LIBS="-lreadline $READLINE_LIBS $LIBS"
26168 cat >conftest.$ac_ext <<_ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h. */
26175 /* Override any GCC internal prototype to avoid an error.
26176 Use char because int might match the return type of a GCC
26177 builtin and then its argument prototype would still apply. */
26181 char rl_pre_input_hook ();
26185 return rl_pre_input_hook ();
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26194 *) ac_try_echo
=$ac_try;;
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_link") 2>conftest.er1
26199 grep -v '^ *+' conftest.er1
>conftest.err
26201 cat conftest.err
>&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } && {
26204 test -z "$ac_c_werror_flag" ||
26205 test ! -s conftest.err
26206 } && test -s conftest
$ac_exeext &&
26207 $as_test_x conftest
$ac_exeext; then
26208 ac_cv_lib_readline_rl_pre_input_hook
=yes
26210 echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.
$ac_ext >&5
26213 ac_cv_lib_readline_rl_pre_input_hook
=no
26216 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26217 conftest
$ac_exeext conftest.
$ac_ext
26218 LIBS
=$ac_check_lib_save_LIBS
26220 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26221 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26222 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
26224 cat >>confdefs.h
<<\_ACEOF
26225 #define HAVE_RL_PRE_INPUT_HOOK 1
26232 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
26233 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
26234 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
26235 echo $ECHO_N "(cached) $ECHO_C" >&6
26237 ac_check_lib_save_LIBS
=$LIBS
26238 LIBS
="-lreadline $READLINE_LIBS $LIBS"
26239 cat >conftest.
$ac_ext <<_ACEOF
26242 cat confdefs.h
>>conftest.
$ac_ext
26243 cat >>conftest.
$ac_ext <<_ACEOF
26244 /* end confdefs.h. */
26246 /* Override any GCC internal prototype to avoid an error.
26247 Use char because int might match the return type of a GCC
26248 builtin and then its argument prototype would still apply. */
26252 char rl_completion_display_matches_hook ();
26256 return rl_completion_display_matches_hook ();
26261 rm -f conftest.
$ac_objext conftest
$ac_exeext
26262 if { (ac_try
="$ac_link"
26263 case "(($ac_try" in
26264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26265 *) ac_try_echo=$ac_try;;
26267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26268 (eval "$ac_link") 2>conftest.er1
26270 grep -v '^ *+' conftest.er1 >conftest.err
26272 cat conftest.err >&5
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); } && {
26275 test -z "$ac_c_werror_flag" ||
26276 test ! -s conftest.err
26277 } && test -s conftest$ac_exeext &&
26278 $as_test_x conftest$ac_exeext; then
26279 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
26281 echo "$as_me: failed program was:" >&5
26282 sed 's/^/| /' conftest.$ac_ext >&5
26284 ac_cv_lib_readline_rl_completion_display_matches_hook=no
26287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26288 conftest$ac_exeext conftest.$ac_ext
26289 LIBS=$ac_check_lib_save_LIBS
26291 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
26292 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
26293 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
26295 cat >>confdefs.h <<\_ACEOF
26296 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
26302 # check for readline 4.2
26303 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26304 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26305 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26306 echo $ECHO_N "(cached) $ECHO_C" >&6
26308 ac_check_lib_save_LIBS=$LIBS
26309 LIBS="-lreadline $READLINE_LIBS $LIBS"
26310 cat >conftest.$ac_ext <<_ACEOF
26313 cat confdefs.h >>conftest.$ac_ext
26314 cat >>conftest.$ac_ext <<_ACEOF
26315 /* end confdefs.h. */
26317 /* Override any GCC internal prototype to avoid an error.
26318 Use char because int might match the return type of a GCC
26319 builtin and then its argument prototype would still apply. */
26323 char rl_completion_matches ();
26327 return rl_completion_matches ();
26332 rm -f conftest.$ac_objext conftest$ac_exeext
26333 if { (ac_try="$ac_link"
26334 case "(($ac_try" in
26335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26336 *) ac_try_echo
=$ac_try;;
26338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26339 (eval "$ac_link") 2>conftest.er1
26341 grep -v '^ *+' conftest.er1
>conftest.err
26343 cat conftest.err
>&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } && {
26346 test -z "$ac_c_werror_flag" ||
26347 test ! -s conftest.err
26348 } && test -s conftest
$ac_exeext &&
26349 $as_test_x conftest
$ac_exeext; then
26350 ac_cv_lib_readline_rl_completion_matches
=yes
26352 echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.
$ac_ext >&5
26355 ac_cv_lib_readline_rl_completion_matches
=no
26358 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26359 conftest
$ac_exeext conftest.
$ac_ext
26360 LIBS
=$ac_check_lib_save_LIBS
26362 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26363 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26364 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26366 cat >>confdefs.h
<<\_ACEOF
26367 #define HAVE_RL_COMPLETION_MATCHES 1
26373 # also in readline 4.2
26374 cat >conftest.
$ac_ext <<_ACEOF
26377 cat confdefs.h
>>conftest.
$ac_ext
26378 cat >>conftest.
$ac_ext <<_ACEOF
26379 /* end confdefs.h. */
26380 #include <readline/readline.h>
26382 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26383 case "(($ac_try" in
26384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26385 *) ac_try_echo=$ac_try;;
26387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26390 grep -v '^ *+' conftest.er1 >conftest.err
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } >/dev/null && {
26395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26396 test ! -s conftest.err
26400 echo "$as_me: failed program was:" >&5
26401 sed 's/^/| /' conftest.$ac_ext >&5
26406 rm -f conftest.err conftest.$ac_ext
26407 if test $have_readline = yes
26409 cat >conftest.$ac_ext <<_ACEOF
26412 cat confdefs.h >>conftest.$ac_ext
26413 cat >>conftest.$ac_ext <<_ACEOF
26414 /* end confdefs.h. */
26415 #include <readline/readline.h>
26418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26419 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26421 cat >>confdefs.h <<\_ACEOF
26422 #define HAVE_RL_CATCH_SIGNAL 1
26430 # End of readline checks: restore LIBS
26431 LIBS=$LIBS_no_readline
26433 { echo "$as_me:$LINENO: checking for broken nice()" >&5
26434 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26435 if test "${ac_cv_broken_nice+set}" = set; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 if test "$cross_compiling" = yes; then
26440 ac_cv_broken_nice=no
26442 cat >conftest.$ac_ext <<_ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h. */
26451 int val1 = nice(1);
26452 if (val1 != -1 && val1 == nice(2))
26458 rm -f conftest$ac_exeext
26459 if { (ac_try="$ac_link"
26460 case "(($ac_try" in
26461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26462 *) ac_try_echo
=$ac_try;;
26464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26465 (eval "$ac_link") 2>&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26469 { (case "(($ac_try" in
26470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26471 *) ac_try_echo=$ac_try;;
26473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26474 (eval "$ac_try") 2>&5
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); }; }; then
26478 ac_cv_broken_nice=yes
26480 echo "$as_me: program exited with status $ac_status" >&5
26481 echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26484 ( exit $ac_status )
26485 ac_cv_broken_nice=no
26487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26493 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26494 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26495 if test "$ac_cv_broken_nice" = yes
26498 cat >>confdefs.h <<\_ACEOF
26499 #define HAVE_BROKEN_NICE 1
26504 { echo "$as_me:$LINENO: checking for broken poll()" >&5
26505 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26506 if test "${ac_cv_broken_poll+set}" = set; then
26507 echo $ECHO_N "(cached) $ECHO_C" >&6
26509 if test "$cross_compiling" = yes; then
26510 ac_cv_broken_poll=no
26512 cat >conftest.$ac_ext <<_ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h. */
26523 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
26528 poll_test = poll(&poll_struct, 1, 0);
26531 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26538 rm -f conftest$ac_exeext
26539 if { (ac_try="$ac_link"
26540 case "(($ac_try" in
26541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26542 *) ac_try_echo
=$ac_try;;
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545 (eval "$ac_link") 2>&5
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26549 { (case "(($ac_try" in
26550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26551 *) ac_try_echo=$ac_try;;
26553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26554 (eval "$ac_try") 2>&5
26556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); }; }; then
26558 ac_cv_broken_poll=yes
26560 echo "$as_me: program exited with status $ac_status" >&5
26561 echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26564 ( exit $ac_status )
26565 ac_cv_broken_poll=no
26567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26573 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26574 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26575 if test "$ac_cv_broken_poll" = yes
26578 cat >>confdefs.h <<\_ACEOF
26579 #define HAVE_BROKEN_POLL 1
26584 # Before we can test tzset, we need to check if struct tm has a tm_zone
26585 # (which is not required by ISO C or UNIX spec) and/or if we support
26587 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26588 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26589 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26590 echo $ECHO_N "(cached) $ECHO_C" >&6
26592 cat >conftest.$ac_ext <<_ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26598 #include <sys/types.h>
26599 #include <$ac_cv_struct_tm>
26605 static struct tm ac_aggr;
26606 if (ac_aggr.tm_zone)
26612 rm -f conftest.$ac_objext
26613 if { (ac_try="$ac_compile"
26614 case "(($ac_try" in
26615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26616 *) ac_try_echo
=$ac_try;;
26618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26619 (eval "$ac_compile") 2>conftest.er1
26621 grep -v '^ *+' conftest.er1
>conftest.err
26623 cat conftest.err
>&5
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); } && {
26626 test -z "$ac_c_werror_flag" ||
26627 test ! -s conftest.err
26628 } && test -s conftest.
$ac_objext; then
26629 ac_cv_member_struct_tm_tm_zone
=yes
26631 echo "$as_me: failed program was:" >&5
26632 sed 's/^/| /' conftest.
$ac_ext >&5
26634 cat >conftest.
$ac_ext <<_ACEOF
26637 cat confdefs.h
>>conftest.
$ac_ext
26638 cat >>conftest.
$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26640 #include <sys/types.h>
26641 #include <$ac_cv_struct_tm>
26647 static struct tm ac_aggr;
26648 if (sizeof ac_aggr.tm_zone)
26654 rm -f conftest.
$ac_objext
26655 if { (ac_try
="$ac_compile"
26656 case "(($ac_try" in
26657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26658 *) ac_try_echo=$ac_try;;
26660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26661 (eval "$ac_compile") 2>conftest.er1
26663 grep -v '^ *+' conftest.er1 >conftest.err
26665 cat conftest.err >&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } && {
26668 test -z "$ac_c_werror_flag" ||
26669 test ! -s conftest.err
26670 } && test -s conftest.$ac_objext; then
26671 ac_cv_member_struct_tm_tm_zone=yes
26673 echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.$ac_ext >&5
26676 ac_cv_member_struct_tm_tm_zone=no
26679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26684 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26685 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26686 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26688 cat >>confdefs.h <<_ACEOF
26689 #define HAVE_STRUCT_TM_TM_ZONE 1
26695 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26697 cat >>confdefs.h <<\_ACEOF
26698 #define HAVE_TM_ZONE 1
26702 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26703 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26704 if test "${ac_cv_have_decl_tzname+set}" = set; then
26705 echo $ECHO_N "(cached) $ECHO_C" >&6
26707 cat >conftest.$ac_ext <<_ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h. */
26726 rm -f conftest.$ac_objext
26727 if { (ac_try="$ac_compile"
26728 case "(($ac_try" in
26729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26730 *) ac_try_echo
=$ac_try;;
26732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26733 (eval "$ac_compile") 2>conftest.er1
26735 grep -v '^ *+' conftest.er1
>conftest.err
26737 cat conftest.err
>&5
26738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739 (exit $ac_status); } && {
26740 test -z "$ac_c_werror_flag" ||
26741 test ! -s conftest.err
26742 } && test -s conftest.
$ac_objext; then
26743 ac_cv_have_decl_tzname
=yes
26745 echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.
$ac_ext >&5
26748 ac_cv_have_decl_tzname
=no
26751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26753 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26754 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26755 if test $ac_cv_have_decl_tzname = yes; then
26757 cat >>confdefs.h
<<_ACEOF
26758 #define HAVE_DECL_TZNAME 1
26763 cat >>confdefs.h
<<_ACEOF
26764 #define HAVE_DECL_TZNAME 0
26771 { echo "$as_me:$LINENO: checking for tzname" >&5
26772 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26773 if test "${ac_cv_var_tzname+set}" = set; then
26774 echo $ECHO_N "(cached) $ECHO_C" >&6
26776 cat >conftest.
$ac_ext <<_ACEOF
26779 cat confdefs.h
>>conftest.
$ac_ext
26780 cat >>conftest.
$ac_ext <<_ACEOF
26781 /* end confdefs.h. */
26783 #if !HAVE_DECL_TZNAME
26784 extern char *tzname[];
26790 return tzname[0][0];
26795 rm -f conftest.
$ac_objext conftest
$ac_exeext
26796 if { (ac_try
="$ac_link"
26797 case "(($ac_try" in
26798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26799 *) ac_try_echo=$ac_try;;
26801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26802 (eval "$ac_link") 2>conftest.er1
26804 grep -v '^ *+' conftest.er1 >conftest.err
26806 cat conftest.err >&5
26807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); } && {
26809 test -z "$ac_c_werror_flag" ||
26810 test ! -s conftest.err
26811 } && test -s conftest$ac_exeext &&
26812 $as_test_x conftest$ac_exeext; then
26813 ac_cv_var_tzname=yes
26815 echo "$as_me: failed program was:" >&5
26816 sed 's/^/| /' conftest.$ac_ext >&5
26818 ac_cv_var_tzname=no
26821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26822 conftest$ac_exeext conftest.$ac_ext
26824 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26825 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26826 if test $ac_cv_var_tzname = yes; then
26828 cat >>confdefs.h <<\_ACEOF
26829 #define HAVE_TZNAME 1
26836 # check tzset(3) exists and works like we expect it to
26837 { echo "$as_me:$LINENO: checking for working tzset()" >&5
26838 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26839 if test "${ac_cv_working_tzset+set}" = set; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26843 if test "$cross_compiling" = yes; then
26844 ac_cv_working_tzset=no
26846 cat >conftest.$ac_ext <<_ACEOF
26849 cat confdefs.h >>conftest.$ac_ext
26850 cat >>conftest.$ac_ext <<_ACEOF
26851 /* end confdefs.h. */
26853 #include <stdlib.h>
26855 #include <string.h>
26858 extern char *tzname[];
26863 /* Note that we need to ensure that not only does tzset(3)
26864 do 'something' with localtime, but it works as documented
26865 in the library reference and as expected by the test suite.
26866 This includes making sure that tzname is set properly if
26867 tm->tm_zone does not exist since it is the alternative way
26868 of getting timezone info.
26870 Red Hat 6.2 doesn't understand the southern hemisphere
26871 after New Year's Day.
26874 time_t groundhogday = 1044144000; /* GMT-based */
26875 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26877 putenv("TZ=UTC+0");
26879 if (localtime(&groundhogday)->tm_hour != 0)
26882 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26883 if (strcmp(tzname[0], "UTC") ||
26884 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26888 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26890 if (localtime(&groundhogday)->tm_hour != 19)
26893 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26897 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26899 if (localtime(&groundhogday)->tm_hour != 11)
26902 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26906 #if HAVE_STRUCT_TM_TM_ZONE
26907 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26909 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26917 rm -f conftest$ac_exeext
26918 if { (ac_try="$ac_link"
26919 case "(($ac_try" in
26920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26921 *) ac_try_echo
=$ac_try;;
26923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26924 (eval "$ac_link") 2>&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26928 { (case "(($ac_try" in
26929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26930 *) ac_try_echo=$ac_try;;
26932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933 (eval "$ac_try") 2>&5
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); }; }; then
26937 ac_cv_working_tzset=yes
26939 echo "$as_me: program exited with status $ac_status" >&5
26940 echo "$as_me: failed program was:" >&5
26941 sed 's/^/| /' conftest.$ac_ext >&5
26943 ( exit $ac_status )
26944 ac_cv_working_tzset=no
26946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26952 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26953 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26954 if test "$ac_cv_working_tzset" = yes
26957 cat >>confdefs.h <<\_ACEOF
26958 #define HAVE_WORKING_TZSET 1
26963 # Look for subsecond timestamps in struct stat
26964 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26965 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26966 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26969 cat >conftest.$ac_ext <<_ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h. */
26975 #include <sys/stat.h>
26981 st.st_mtim.tv_nsec = 1;
26987 rm -f conftest.$ac_objext
26988 if { (ac_try="$ac_compile"
26989 case "(($ac_try" in
26990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26991 *) ac_try_echo
=$ac_try;;
26993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994 (eval "$ac_compile") 2>conftest.er1
26996 grep -v '^ *+' conftest.er1
>conftest.err
26998 cat conftest.err
>&5
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); } && {
27001 test -z "$ac_c_werror_flag" ||
27002 test ! -s conftest.err
27003 } && test -s conftest.
$ac_objext; then
27004 ac_cv_stat_tv_nsec
=yes
27006 echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.
$ac_ext >&5
27009 ac_cv_stat_tv_nsec
=no
27012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27015 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
27016 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
27017 if test "$ac_cv_stat_tv_nsec" = yes
27020 cat >>confdefs.h
<<\_ACEOF
27021 #define HAVE_STAT_TV_NSEC 1
27026 # Look for BSD style subsecond timestamps in struct stat
27027 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
27028 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
27029 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
27030 echo $ECHO_N "(cached) $ECHO_C" >&6
27032 cat >conftest.
$ac_ext <<_ACEOF
27035 cat confdefs.h
>>conftest.
$ac_ext
27036 cat >>conftest.
$ac_ext <<_ACEOF
27037 /* end confdefs.h. */
27038 #include <sys/stat.h>
27044 st.st_mtimespec.tv_nsec = 1;
27050 rm -f conftest.
$ac_objext
27051 if { (ac_try
="$ac_compile"
27052 case "(($ac_try" in
27053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27054 *) ac_try_echo=$ac_try;;
27056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27057 (eval "$ac_compile") 2>conftest.er1
27059 grep -v '^ *+' conftest.er1 >conftest.err
27061 cat conftest.err >&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } && {
27064 test -z "$ac_c_werror_flag" ||
27065 test ! -s conftest.err
27066 } && test -s conftest.$ac_objext; then
27067 ac_cv_stat_tv_nsec2=yes
27069 echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27072 ac_cv_stat_tv_nsec2=no
27075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
27079 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
27080 if test "$ac_cv_stat_tv_nsec2" = yes
27083 cat >>confdefs.h <<\_ACEOF
27084 #define HAVE_STAT_TV_NSEC2 1
27089 # On HP/UX 11.0, mvwdelch is a block with a return statement
27090 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
27091 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
27092 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27095 cat >conftest.$ac_ext <<_ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h. */
27101 #include <curses.h>
27107 rtn = mvwdelch(0,0,0);
27113 rm -f conftest.$ac_objext
27114 if { (ac_try="$ac_compile"
27115 case "(($ac_try" in
27116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27117 *) ac_try_echo
=$ac_try;;
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_compile") 2>conftest.er1
27122 grep -v '^ *+' conftest.er1
>conftest.err
27124 cat conftest.err
>&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); } && {
27127 test -z "$ac_c_werror_flag" ||
27128 test ! -s conftest.err
27129 } && test -s conftest.
$ac_objext; then
27130 ac_cv_mvwdelch_is_expression
=yes
27132 echo "$as_me: failed program was:" >&5
27133 sed 's/^/| /' conftest.
$ac_ext >&5
27135 ac_cv_mvwdelch_is_expression
=no
27138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27141 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
27142 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
27144 if test "$ac_cv_mvwdelch_is_expression" = yes
27147 cat >>confdefs.h
<<\_ACEOF
27148 #define MVWDELCH_IS_EXPRESSION 1
27153 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
27154 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
27155 if test "${ac_cv_window_has_flags+set}" = set; then
27156 echo $ECHO_N "(cached) $ECHO_C" >&6
27158 cat >conftest.
$ac_ext <<_ACEOF
27161 cat confdefs.h
>>conftest.
$ac_ext
27162 cat >>conftest.
$ac_ext <<_ACEOF
27163 /* end confdefs.h. */
27164 #include <curses.h>
27176 rm -f conftest.
$ac_objext
27177 if { (ac_try
="$ac_compile"
27178 case "(($ac_try" in
27179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27180 *) ac_try_echo=$ac_try;;
27182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27183 (eval "$ac_compile") 2>conftest.er1
27185 grep -v '^ *+' conftest.er1 >conftest.err
27187 cat conftest.err >&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); } && {
27190 test -z "$ac_c_werror_flag" ||
27191 test ! -s conftest.err
27192 } && test -s conftest.$ac_objext; then
27193 ac_cv_window_has_flags=yes
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27198 ac_cv_window_has_flags=no
27201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27204 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
27205 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
27208 if test "$ac_cv_window_has_flags" = yes
27211 cat >>confdefs.h <<\_ACEOF
27212 #define WINDOW_HAS_FLAGS 1
27217 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
27218 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
27219 cat >conftest.$ac_ext <<_ACEOF
27222 cat confdefs.h >>conftest.$ac_ext
27223 cat >>conftest.$ac_ext <<_ACEOF
27224 /* end confdefs.h. */
27225 #include <curses.h>
27229 void *x=is_term_resized
27234 rm -f conftest.$ac_objext
27235 if { (ac_try="$ac_compile"
27236 case "(($ac_try" in
27237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27238 *) ac_try_echo
=$ac_try;;
27240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241 (eval "$ac_compile") 2>conftest.er1
27243 grep -v '^ *+' conftest.er1
>conftest.err
27245 cat conftest.err
>&5
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); } && {
27248 test -z "$ac_c_werror_flag" ||
27249 test ! -s conftest.err
27250 } && test -s conftest.
$ac_objext; then
27252 cat >>confdefs.h
<<\_ACEOF
27253 #define HAVE_CURSES_IS_TERM_RESIZED 1
27256 { echo "$as_me:$LINENO: result: yes" >&5
27257 echo "${ECHO_T}yes" >&6; }
27259 echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.
$ac_ext >&5
27262 { echo "$as_me:$LINENO: result: no" >&5
27263 echo "${ECHO_T}no" >&6; }
27267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27269 { echo "$as_me:$LINENO: checking for resize_term" >&5
27270 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
27271 cat >conftest.
$ac_ext <<_ACEOF
27274 cat confdefs.h
>>conftest.
$ac_ext
27275 cat >>conftest.
$ac_ext <<_ACEOF
27276 /* end confdefs.h. */
27277 #include <curses.h>
27281 void *x=resize_term
27286 rm -f conftest.
$ac_objext
27287 if { (ac_try
="$ac_compile"
27288 case "(($ac_try" in
27289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293 (eval "$ac_compile") 2>conftest.er1
27295 grep -v '^ *+' conftest.er1 >conftest.err
27297 cat conftest.err >&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } && {
27300 test -z "$ac_c_werror_flag" ||
27301 test ! -s conftest.err
27302 } && test -s conftest.$ac_objext; then
27304 cat >>confdefs.h <<\_ACEOF
27305 #define HAVE_CURSES_RESIZE_TERM 1
27308 { echo "$as_me:$LINENO: result: yes" >&5
27309 echo "${ECHO_T}yes" >&6; }
27311 echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27314 { echo "$as_me:$LINENO: result: no" >&5
27315 echo "${ECHO_T}no" >&6; }
27319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27321 { echo "$as_me:$LINENO: checking for resizeterm" >&5
27322 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27323 cat >conftest.$ac_ext <<_ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27329 #include <curses.h>
27338 rm -f conftest.$ac_objext
27339 if { (ac_try="$ac_compile"
27340 case "(($ac_try" in
27341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27342 *) ac_try_echo
=$ac_try;;
27344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27345 (eval "$ac_compile") 2>conftest.er1
27347 grep -v '^ *+' conftest.er1
>conftest.err
27349 cat conftest.err
>&5
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); } && {
27352 test -z "$ac_c_werror_flag" ||
27353 test ! -s conftest.err
27354 } && test -s conftest.
$ac_objext; then
27356 cat >>confdefs.h
<<\_ACEOF
27357 #define HAVE_CURSES_RESIZETERM 1
27360 { echo "$as_me:$LINENO: result: yes" >&5
27361 echo "${ECHO_T}yes" >&6; }
27363 echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.
$ac_ext >&5
27366 { echo "$as_me:$LINENO: result: no" >&5
27367 echo "${ECHO_T}no" >&6; }
27371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27373 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27374 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27376 if test -r /dev
/ptmx
27378 { echo "$as_me:$LINENO: result: yes" >&5
27379 echo "${ECHO_T}yes" >&6; }
27381 cat >>confdefs.h
<<\_ACEOF
27382 #define HAVE_DEV_PTMX 1
27386 { echo "$as_me:$LINENO: result: no" >&5
27387 echo "${ECHO_T}no" >&6; }
27390 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27391 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27393 if test -r /dev
/ptc
27395 { echo "$as_me:$LINENO: result: yes" >&5
27396 echo "${ECHO_T}yes" >&6; }
27398 cat >>confdefs.h
<<\_ACEOF
27399 #define HAVE_DEV_PTC 1
27403 { echo "$as_me:$LINENO: result: no" >&5
27404 echo "${ECHO_T}no" >&6; }
27407 if test "$have_long_long" = yes
27409 { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5
27410 echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; }
27411 if test "${ac_cv_have_long_long_format+set}" = set; then
27412 echo $ECHO_N "(cached) $ECHO_C" >&6
27414 if test "$cross_compiling" = yes; then
27415 ac_cv_have_long_long_format
=no
27417 cat >conftest.
$ac_ext <<_ACEOF
27420 cat confdefs.h
>>conftest.
$ac_ext
27421 cat >>conftest.
$ac_ext <<_ACEOF
27422 /* end confdefs.h. */
27425 #include <stddef.h>
27426 #include <string.h>
27428 #ifdef HAVE_SYS_TYPES_H
27429 #include <sys/types.h>
27436 if (sprintf(buffer, "%lld", (long long)123) < 0)
27438 if (strcmp(buffer, "123"))
27441 if (sprintf(buffer, "%lld", (long long)-123) < 0)
27443 if (strcmp(buffer, "-123"))
27446 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
27448 if (strcmp(buffer, "123"))
27455 rm -f conftest
$ac_exeext
27456 if { (ac_try
="$ac_link"
27457 case "(($ac_try" in
27458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27459 *) ac_try_echo=$ac_try;;
27461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27462 (eval "$ac_link") 2>&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27466 { (case "(($ac_try" in
27467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27468 *) ac_try_echo
=$ac_try;;
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_try") 2>&5
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; }; then
27475 ac_cv_have_long_long_format
=yes
27477 echo "$as_me: program exited with status $ac_status" >&5
27478 echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.
$ac_ext >&5
27481 ( exit $ac_status )
27482 ac_cv_have_long_long_format
=no
27484 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27491 { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5
27492 echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; }
27495 if test "$ac_cv_have_long_long_format" = yes
27498 cat >>confdefs.h
<<\_ACEOF
27499 #define PY_FORMAT_LONG_LONG "ll"
27504 if test $ac_sys_system = Darwin
27506 LIBS
="$LIBS -framework CoreFoundation"
27510 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27511 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27512 if test "${ac_cv_have_size_t_format+set}" = set; then
27513 echo $ECHO_N "(cached) $ECHO_C" >&6
27515 if test "$cross_compiling" = yes; then
27516 ac_cv_have_size_t_format
="cross -- assuming yes"
27519 cat >conftest.
$ac_ext <<_ACEOF
27522 cat confdefs.h
>>conftest.
$ac_ext
27523 cat >>conftest.
$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27527 #include <stddef.h>
27528 #include <string.h>
27530 #ifdef HAVE_SYS_TYPES_H
27531 #include <sys/types.h>
27534 #ifdef HAVE_SSIZE_T
27535 typedef ssize_t Py_ssize_t;
27536 #elif SIZEOF_VOID_P == SIZEOF_LONG
27537 typedef long Py_ssize_t;
27539 typedef int Py_ssize_t;
27546 if(sprintf(buffer, "%zd", (size_t)123) < 0)
27549 if (strcmp(buffer, "123"))
27552 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
27555 if (strcmp(buffer, "-123"))
27562 rm -f conftest
$ac_exeext
27563 if { (ac_try
="$ac_link"
27564 case "(($ac_try" in
27565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_link") 2>&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27573 { (case "(($ac_try" in
27574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27575 *) ac_try_echo
=$ac_try;;
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_try") 2>&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
27582 ac_cv_have_size_t_format
=yes
27584 echo "$as_me: program exited with status $ac_status" >&5
27585 echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.
$ac_ext >&5
27588 ( exit $ac_status )
27589 ac_cv_have_size_t_format
=no
27591 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27596 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
27597 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
27598 if test "$ac_cv_have_size_t_format" != no
; then
27600 cat >>confdefs.h
<<\_ACEOF
27601 #define PY_FORMAT_SIZE_T "z"
27606 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27607 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27608 if test "${ac_cv_type_socklen_t+set}" = set; then
27609 echo $ECHO_N "(cached) $ECHO_C" >&6
27611 cat >conftest.
$ac_ext <<_ACEOF
27614 cat confdefs.h
>>conftest.
$ac_ext
27615 cat >>conftest.
$ac_ext <<_ACEOF
27616 /* end confdefs.h. */
27618 #ifdef HAVE_SYS_TYPES_H
27619 #include <sys/types.h>
27621 #ifdef HAVE_SYS_SOCKET_H
27622 #include <sys/socket.h>
27626 typedef socklen_t ac__type_new_;
27630 if ((ac__type_new_ *) 0)
27632 if (sizeof (ac__type_new_))
27638 rm -f conftest.
$ac_objext
27639 if { (ac_try
="$ac_compile"
27640 case "(($ac_try" in
27641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27642 *) ac_try_echo=$ac_try;;
27644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27645 (eval "$ac_compile") 2>conftest.er1
27647 grep -v '^ *+' conftest.er1 >conftest.err
27649 cat conftest.err >&5
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); } && {
27652 test -z "$ac_c_werror_flag" ||
27653 test ! -s conftest.err
27654 } && test -s conftest.$ac_objext; then
27655 ac_cv_type_socklen_t=yes
27657 echo "$as_me: failed program was:" >&5
27658 sed 's/^/| /' conftest.$ac_ext >&5
27660 ac_cv_type_socklen_t=no
27663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27665 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27666 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27667 if test $ac_cv_type_socklen_t = yes; then
27671 cat >>confdefs.h <<\_ACEOF
27672 #define socklen_t int
27680 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
27682 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27686 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27687 { echo "$as_me:$LINENO: checking for build directories" >&5
27688 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27689 for dir in $SRCDIRS; do
27690 if test ! -d $dir; then
27694 { echo "$as_me:$LINENO: result: done" >&5
27695 echo "${ECHO_T}done" >&6; }
27697 # generate output files
27698 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
27700 cat >confcache <<\_ACEOF
27701 # This file is a shell script that caches the results of configure
27702 # tests run on this system so they can be shared between configure
27703 # scripts and configure runs, see configure's option --config-cache.
27704 # It is not useful on other systems. If it contains results you don't
27705 # want to keep, you may remove or edit it.
27707 # config.status only pays attention to the cache file if you give it
27708 # the --recheck option to rerun configure.
27710 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
27711 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27712 # following values.
27716 # The following way of writing the cache mishandles newlines in values,
27717 # but we know of no workaround that is simple, portable, and efficient.
27718 # So, we kill variables containing newlines.
27719 # Ultrix sh set writes to stderr and can't be redirected directly,
27720 # and sets the high bit in the cache file unless we assign to the vars.
27722 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27723 eval ac_val
=\$
$ac_var
27727 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27728 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27731 _ | IFS | as_nl
) ;; #(
27732 *) $as_unset $ac_var ;;
27738 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27739 *${as_nl}ac_space
=\
*)
27740 # `set' does not quote correctly, so add quotes (double-quote
27741 # substitution turns \\\\ into \\, and sed turns \\ into \).
27744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27747 # `set' quotes correctly as required by POSIX, so do not add quotes.
27748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27757 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27759 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27761 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27762 if test -w "$cache_file"; then
27763 test "x$cache_file" != "x/dev/null" &&
27764 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27765 echo "$as_me: updating cache $cache_file" >&6;}
27766 cat confcache
>$cache_file
27768 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27769 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27774 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27775 # Let make expand exec_prefix.
27776 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27778 DEFS
=-DHAVE_CONFIG_H
27782 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27783 # 1. Remove the extension, and $U if already installed.
27784 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27785 ac_i
=`echo "$ac_i" | sed "$ac_script"`
27786 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27787 # will be set to the directory where LIBOBJS objects are built.
27788 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27789 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27791 LIBOBJS
=$ac_libobjs
27793 LTLIBOBJS
=$ac_ltlibobjs
27797 : ${CONFIG_STATUS=./config.status}
27798 ac_clean_files_save
=$ac_clean_files
27799 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27800 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27801 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27802 cat >$CONFIG_STATUS <<_ACEOF
27804 # Generated by $as_me.
27805 # Run this file to recreate the current configuration.
27806 # Compiler output produced by configure, useful for debugging
27807 # configure, is in config.log if it exists.
27810 ac_cs_recheck=false
27812 SHELL=\${CONFIG_SHELL-$SHELL}
27815 cat >>$CONFIG_STATUS <<\_ACEOF
27816 ## --------------------- ##
27817 ## M4sh Initialization. ##
27818 ## --------------------- ##
27820 # Be more Bourne compatible
27821 DUALCASE
=1; export DUALCASE
# for MKS sh
27822 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27825 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27826 # is contrary to our usage. Disable this feature.
27827 alias -g '${1+"$@"}'='"$@"'
27828 setopt NO_GLOB_SUBST
27830 case `(set -o) 2>/dev/null` in
27831 *posix
*) set -o posix
;;
27840 # Avoid depending upon Character Ranges.
27841 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27842 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27843 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27844 as_cr_digits
='0123456789'
27845 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27847 # The user is always right.
27848 if test "${PATH_SEPARATOR+set}" != set; then
27849 echo "#! /bin/sh" >conf$$.sh
27850 echo "exit 0" >>conf$$.sh
27852 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
27860 # Support unset when possible.
27861 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
27869 # We need space, tab and new line, in precisely that order. Quoting is
27870 # there to prevent editors from complaining about space-tab.
27871 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27872 # splitting by setting IFS to empty value.)
27877 # Find who we are. Look in the path if we contain no directory separator.
27879 *[\\/]* ) as_myself
=$0 ;;
27880 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27881 for as_dir
in $PATH
27884 test -z "$as_dir" && as_dir
=.
27885 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
27891 # We did not find ourselves, most probably we were run as `sh COMMAND'
27892 # in which case we are not to be found in the path.
27893 if test "x$as_myself" = x
; then
27896 if test ! -f "$as_myself"; then
27897 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27898 { (exit 1); exit 1; }
27901 # Work around bugs in pre-3.0 UWIN ksh.
27902 for as_var
in ENV MAIL MAILPATH
27903 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27911 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27912 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27913 LC_TELEPHONE LC_TIME
27915 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27916 eval $as_var=C
; export $as_var
27918 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27922 # Required to use basename.
27923 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27924 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27930 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27931 as_basename
=basename
27937 # Name of the executable.
27938 as_me
=`$as_basename -- "$0" ||
27939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27940 X"$0" : 'X\(//\)$' \| \
27941 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27943 sed '/^.*\/\([^/][^/]*\)\/*$/{
27962 as_lineno_1
=$LINENO
27963 as_lineno_2
=$LINENO
27964 test "x$as_lineno_1" != "x$as_lineno_2" &&
27965 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27967 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27968 # uniformly replaced by the line number. The first 'sed' inserts a
27969 # line-number line after each line using $LINENO; the second 'sed'
27970 # does the real work. The second script uses 'N' to pair each
27971 # line-number line with the line containing $LINENO, and appends
27972 # trailing '-' during substitution so that $LINENO is not a special
27973 # case at line end.
27974 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27975 # scripts with optimization help from Paolo Bonzini. Blame Lee
27976 # E. McMahon (1931-1989) for sed's syntax. :-)
27988 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27991 ' >$as_me.lineno
&&
27992 chmod +x
"$as_me.lineno" ||
27993 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27994 { (exit 1); exit 1; }; }
27996 # Don't try to exec as it changes $[0], causing all sort of problems
27997 # (the dirname of $[0] is not the place where we might find the
27998 # original and so on. Autoconf is especially sensitive to this).
27999 .
"./$as_me.lineno"
28000 # Exit status is that of the last command.
28005 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28011 ECHO_C
= ECHO_N
= ECHO_T
=
28012 case `echo -n x` in
28014 case `echo 'x\c'` in
28015 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28022 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28023 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28029 rm -f conf$$ conf$$.exe conf$$.
file
28030 if test -d conf$$.dir
; then
28031 rm -f conf$$.dir
/conf$$.
file
28037 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28039 # ... but there are two gotchas:
28040 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28041 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28042 # In both cases, we have to default to `cp -p'.
28043 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28045 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28050 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28051 rmdir conf$$.dir
2>/dev
/null
28053 if mkdir
-p .
2>/dev
/null
; then
28056 test -d .
/-p && rmdir .
/-p
28060 if test -x / >/dev
/null
2>&1; then
28061 as_test_x
='test -x'
28063 if ls -dL / >/dev
/null
2>&1; then
28070 if test -d "$1"; then
28076 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28077 ???[sx]*):;;*)false;;esac;fi
28081 as_executable_p
=$as_test_x
28083 # Sed expression to map a string onto a valid CPP name.
28084 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28086 # Sed expression to map a string onto a valid variable name.
28087 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28092 # Save the log message, to keep $[0] and so on meaningful, and to
28093 # report actual input values of CONFIG_FILES etc. instead of their
28094 # values after options handling.
28096 This file was extended by python $as_me 2.7, which was
28097 generated by GNU Autoconf 2.61. Invocation command line was
28099 CONFIG_FILES = $CONFIG_FILES
28100 CONFIG_HEADERS = $CONFIG_HEADERS
28101 CONFIG_LINKS = $CONFIG_LINKS
28102 CONFIG_COMMANDS = $CONFIG_COMMANDS
28105 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28110 cat >>$CONFIG_STATUS <<_ACEOF
28111 # Files that config.status was made for.
28112 config_files="$ac_config_files"
28113 config_headers="$ac_config_headers"
28117 cat >>$CONFIG_STATUS <<\_ACEOF
28119 \`$as_me' instantiates files from templates according to the
28120 current configuration.
28122 Usage: $0 [OPTIONS] [FILE]...
28124 -h, --help print this help, then exit
28125 -V, --version print version number and configuration settings, then exit
28126 -q, --quiet do not print progress messages
28127 -d, --debug don't remove temporary files
28128 --recheck update $as_me by reconfiguring in the same conditions
28129 --file=FILE[:TEMPLATE]
28130 instantiate the configuration file FILE
28131 --header=FILE[:TEMPLATE]
28132 instantiate the configuration header FILE
28134 Configuration files:
28137 Configuration headers:
28140 Report bugs to <bug-autoconf@gnu.org>."
28143 cat >>$CONFIG_STATUS <<_ACEOF
28145 python config.status 2.7
28146 configured by $0, generated by GNU Autoconf 2.61,
28147 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28149 Copyright (C) 2006 Free Software Foundation, Inc.
28150 This config.status script is free software; the Free Software Foundation
28151 gives unlimited permission to copy, distribute and modify it."
28158 cat >>$CONFIG_STATUS <<\_ACEOF
28159 # If no file are specified by the user, then we need to provide default
28160 # value. By we need to know if files were specified by the user.
28166 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28167 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28178 # Handling of the options.
28179 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28181 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28182 echo "$ac_cs_version"; exit ;;
28183 --debug |
--debu |
--deb |
--de |
--d |
-d )
28185 --file |
--fil |
--fi |
--f )
28187 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
28188 ac_need_defaults
=false
;;
28189 --header |
--heade |
--head |
--hea )
28191 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
28192 ac_need_defaults
=false
;;
28194 # Conflict between --help and --header
28195 { echo "$as_me: error: ambiguous option: $1
28196 Try \`$0 --help' for more information." >&2
28197 { (exit 1); exit 1; }; };;
28198 --help |
--hel |
-h )
28199 echo "$ac_cs_usage"; exit ;;
28200 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28201 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28204 # This is an error.
28205 -*) { echo "$as_me: error: unrecognized option: $1
28206 Try \`$0 --help' for more information." >&2
28207 { (exit 1); exit 1; }; } ;;
28209 *) ac_config_targets
="$ac_config_targets $1"
28210 ac_need_defaults
=false
;;
28216 ac_configure_extra_args
=
28218 if $ac_cs_silent; then
28220 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28224 cat >>$CONFIG_STATUS <<_ACEOF
28225 if \$ac_cs_recheck; then
28226 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28227 CONFIG_SHELL=$SHELL
28228 export CONFIG_SHELL
28229 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28233 cat >>$CONFIG_STATUS <<\_ACEOF
28237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28238 ## Running $as_me. ##
28244 cat >>$CONFIG_STATUS <<_ACEOF
28247 cat >>$CONFIG_STATUS <<\_ACEOF
28249 # Handling of arguments.
28250 for ac_config_target
in $ac_config_targets
28252 case $ac_config_target in
28253 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
28254 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
28255 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
28256 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
28257 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
28258 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
28259 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
28260 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
28261 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
28263 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28264 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28265 { (exit 1); exit 1; }; };;
28270 # If the user did not use the arguments to specify the items to instantiate,
28271 # then the envvar interface is used. Set only those that are not.
28272 # We use the long form for the default assignment because of an extremely
28273 # bizarre bug on SunOS 4.1.3.
28274 if $ac_need_defaults; then
28275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28276 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28279 # Have a temporary directory for convenience. Make it in the build tree
28280 # simply because there is no reason against having it here, and in addition,
28281 # creating and moving files from /tmp can sometimes cause problems.
28282 # Hook for its removal unless debugging.
28283 # Note that there is a small window in which the directory will not be cleaned:
28284 # after its creation but before its name has been assigned to `$tmp'.
28288 trap 'exit_status=$?
28289 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28291 trap '{ (exit 1); exit 1; }' 1 2 13 15
28293 # Create a (secure) tmp directory for tmp files.
28296 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28297 test -n "$tmp" && test -d "$tmp"
28300 tmp
=.
/conf$$
-$RANDOM
28301 (umask 077 && mkdir
"$tmp")
28304 echo "$me: cannot create a temporary directory in ." >&2
28305 { (exit 1); exit 1; }
28309 # Set up the sed scripts for CONFIG_FILES section.
28312 # No need to generate the scripts if there are no CONFIG_FILES.
28313 # This happens for instance when ./config.status config.h
28314 if test -n "$CONFIG_FILES"; then
28321 for ac_last_try
in false false false false false
:; do
28322 cat >conf$
$subs.
sed <<_ACEOF
28323 SHELL!$SHELL$ac_delim
28324 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28325 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28326 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28327 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28328 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28329 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28330 exec_prefix!$exec_prefix$ac_delim
28331 prefix!$prefix$ac_delim
28332 program_transform_name!$program_transform_name$ac_delim
28333 bindir!$bindir$ac_delim
28334 sbindir!$sbindir$ac_delim
28335 libexecdir!$libexecdir$ac_delim
28336 datarootdir!$datarootdir$ac_delim
28337 datadir!$datadir$ac_delim
28338 sysconfdir!$sysconfdir$ac_delim
28339 sharedstatedir!$sharedstatedir$ac_delim
28340 localstatedir!$localstatedir$ac_delim
28341 includedir!$includedir$ac_delim
28342 oldincludedir!$oldincludedir$ac_delim
28343 docdir!$docdir$ac_delim
28344 infodir!$infodir$ac_delim
28345 htmldir!$htmldir$ac_delim
28346 dvidir!$dvidir$ac_delim
28347 pdfdir!$pdfdir$ac_delim
28348 psdir!$psdir$ac_delim
28349 libdir!$libdir$ac_delim
28350 localedir!$localedir$ac_delim
28351 mandir!$mandir$ac_delim
28352 DEFS!$DEFS$ac_delim
28353 ECHO_C!$ECHO_C$ac_delim
28354 ECHO_N!$ECHO_N$ac_delim
28355 ECHO_T!$ECHO_T$ac_delim
28356 LIBS!$LIBS$ac_delim
28357 build_alias!$build_alias$ac_delim
28358 host_alias!$host_alias$ac_delim
28359 target_alias!$target_alias$ac_delim
28360 VERSION!$VERSION$ac_delim
28361 SOVERSION!$SOVERSION$ac_delim
28362 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28363 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28364 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
28365 LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
28366 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28367 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
28368 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28369 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28370 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28371 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28372 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28373 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28374 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28375 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28376 MACHDEP!$MACHDEP$ac_delim
28377 SGI_ABI!$SGI_ABI$ac_delim
28378 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28379 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28380 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28381 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28383 CFLAGS!$CFLAGS$ac_delim
28384 LDFLAGS!$LDFLAGS$ac_delim
28385 CPPFLAGS!$CPPFLAGS$ac_delim
28386 ac_ct_CC!$ac_ct_CC$ac_delim
28387 EXEEXT!$EXEEXT$ac_delim
28388 OBJEXT!$OBJEXT$ac_delim
28390 MAINCC!$MAINCC$ac_delim
28392 GREP!$GREP$ac_delim
28393 EGREP!$EGREP$ac_delim
28394 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28395 LIBRARY!$LIBRARY$ac_delim
28396 LDLIBRARY!$LDLIBRARY$ac_delim
28397 DLLLIBRARY!$DLLLIBRARY$ac_delim
28398 BLDLIBRARY!$BLDLIBRARY$ac_delim
28399 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28400 INSTSONAME!$INSTSONAME$ac_delim
28401 RUNSHARED!$RUNSHARED$ac_delim
28402 LINKCC!$LINKCC$ac_delim
28403 GNULD!$GNULD$ac_delim
28404 RANLIB!$RANLIB$ac_delim
28406 ARFLAGS!$ARFLAGS$ac_delim
28407 SVNVERSION!$SVNVERSION$ac_delim
28408 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28409 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28410 INSTALL_DATA!$INSTALL_DATA$ac_delim
28413 BASECFLAGS!$BASECFLAGS$ac_delim
28414 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
28415 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28416 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28418 LDSHARED!$LDSHARED$ac_delim
28419 BLDSHARED!$BLDSHARED$ac_delim
28422 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28424 elif $ac_last_try; then
28425 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28426 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28427 { (exit 1); exit 1; }; }
28429 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28433 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28434 if test -n "$ac_eof"; then
28435 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28436 ac_eof
=`expr $ac_eof + 1`
28439 cat >>$CONFIG_STATUS <<_ACEOF
28440 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28444 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28445 s/^/s,@/; s/!/@,|#_!!_#|/
28448 s/'"$ac_delim"'$/,g/; t
28450 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28451 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28452 rm -f conf$
$subs.
sed
28453 cat >>$CONFIG_STATUS <<_ACEOF
28459 for ac_last_try
in false false false false false
:; do
28460 cat >conf$
$subs.
sed <<_ACEOF
28461 CCSHARED!$CCSHARED$ac_delim
28462 LINKFORSHARED!$LINKFORSHARED$ac_delim
28463 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28464 SHLIBS!$SHLIBS$ac_delim
28465 PKG_CONFIG!$PKG_CONFIG$ac_delim
28466 LIBFFI_INCLUDEDIR!$LIBFFI_INCLUDEDIR$ac_delim
28467 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28468 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28469 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28470 LDLAST!$LDLAST$ac_delim
28471 THREADOBJ!$THREADOBJ$ac_delim
28472 DLINCLDIR!$DLINCLDIR$ac_delim
28473 DYNLOADFILE!$DYNLOADFILE$ac_delim
28474 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28475 TRUE!$TRUE$ac_delim
28476 LIBOBJS!$LIBOBJS$ac_delim
28477 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28478 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28479 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28480 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28481 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28482 LIBM!$LIBM$ac_delim
28483 LIBC!$LIBC$ac_delim
28484 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28485 THREADHEADERS!$THREADHEADERS$ac_delim
28486 SRCDIRS!$SRCDIRS$ac_delim
28487 LTLIBOBJS!$LTLIBOBJS$ac_delim
28490 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
28492 elif $ac_last_try; then
28493 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28494 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28495 { (exit 1); exit 1; }; }
28497 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28501 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28502 if test -n "$ac_eof"; then
28503 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28504 ac_eof
=`expr $ac_eof + 1`
28507 cat >>$CONFIG_STATUS <<_ACEOF
28508 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28512 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28513 s/^/s,@/; s/!/@,|#_!!_#|/
28516 s/'"$ac_delim"'$/,g/; t
28518 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28519 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28520 rm -f conf$
$subs.
sed
28521 cat >>$CONFIG_STATUS <<_ACEOF
28528 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28529 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28530 # trailing colons and then remove the whole line if VPATH becomes empty
28531 # (actually we leave an empty line to preserve line numbers).
28532 if test "x$srcdir" = x.
; then
28533 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
28534 s/:*\$(srcdir):*/:/
28535 s/:*\${srcdir}:*/:/
28537 s/^\([^=]*=[ ]*\):*/\1/
28543 cat >>$CONFIG_STATUS <<\_ACEOF
28544 fi # test -n "$CONFIG_FILES"
28547 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
28550 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28552 case $ac_mode$ac_tag in
28554 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28555 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28556 { (exit 1); exit 1; }; };;
28557 :[FH
]-) ac_tag
=-:-;;
28558 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28575 -) ac_f
="$tmp/stdin";;
28576 *) # Look for the file first in the build tree, then in the source tree
28577 # (if the path is not absolute). The absolute path cannot be DOS-style,
28578 # because $ac_f cannot contain `:'.
28582 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28584 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28585 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28586 { (exit 1); exit 1; }; };;
28588 ac_file_inputs
="$ac_file_inputs $ac_f"
28591 # Let's still pretend it is `configure' which instantiates (i.e., don't
28592 # use $as_me), people would be surprised to read:
28593 # /* config.h. Generated by config.status. */
28594 configure_input
="Generated from "`IFS=:
28595 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28596 if test x
"$ac_file" != x-
; then
28597 configure_input
="$ac_file. $configure_input"
28598 { echo "$as_me:$LINENO: creating $ac_file" >&5
28599 echo "$as_me: creating $ac_file" >&6;}
28603 *:-:* |
*:-) cat >"$tmp/stdin";;
28608 ac_dir
=`$as_dirname -- "$ac_file" ||
28609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28610 X"$ac_file" : 'X\(//\)[^/]' \| \
28611 X"$ac_file" : 'X\(//\)$' \| \
28612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28618 /^X\(\/\/\)[^/].*/{
28633 -*) as_dir
=.
/$as_dir;;
28635 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
28639 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28640 *) as_qdir
=$as_dir;;
28642 as_dirs
="'$as_qdir' $as_dirs"
28643 as_dir
=`$as_dirname -- "$as_dir" ||
28644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28645 X"$as_dir" : 'X\(//\)[^/]' \| \
28646 X"$as_dir" : 'X\(//\)$' \| \
28647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28653 /^X\(\/\/\)[^/].*/{
28666 test -d "$as_dir" && break
28668 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28669 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28670 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28671 { (exit 1); exit 1; }; }; }
28675 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28677 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28678 # A ".." for each directory in $ac_dir_suffix.
28679 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28680 case $ac_top_builddir_sub in
28681 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28682 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28685 ac_abs_top_builddir
=$ac_pwd
28686 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28687 # for backward compatibility:
28688 ac_top_builddir
=$ac_top_build_prefix
28691 .
) # We are building in place.
28693 ac_top_srcdir
=$ac_top_builddir_sub
28694 ac_abs_top_srcdir
=$ac_pwd ;;
28695 [\\/]* | ?
:[\\/]* ) # Absolute name.
28696 ac_srcdir
=$srcdir$ac_dir_suffix;
28697 ac_top_srcdir
=$srcdir
28698 ac_abs_top_srcdir
=$srcdir ;;
28699 *) # Relative name.
28700 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28701 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28702 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28704 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28714 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28715 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28719 cat >>$CONFIG_STATUS <<\_ACEOF
28720 # If the template does not know about datarootdir, expand it.
28721 # FIXME: This hack should be removed a few years after 2.60.
28722 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28724 case `sed -n '/datarootdir/ {
28733 ' $ac_file_inputs` in
28734 *datarootdir
*) ac_datarootdir_seen
=yes;;
28735 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28736 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28737 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28739 cat >>$CONFIG_STATUS <<_ACEOF
28740 ac_datarootdir_hack='
28741 s&@datadir@&$datadir&g
28742 s&@docdir@&$docdir&g
28743 s&@infodir@&$infodir&g
28744 s&@localedir@&$localedir&g
28745 s&@mandir@&$mandir&g
28746 s&\\\${datarootdir}&$datarootdir&g' ;;
28750 # Neutralize VPATH when `$srcdir' = `.'.
28751 # Shell code in configure.ac might set extrasub.
28752 # FIXME: do we really want to maintain this feature?
28753 cat >>$CONFIG_STATUS <<_ACEOF
28757 cat >>$CONFIG_STATUS <<\_ACEOF
28759 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28760 s
&@configure_input@
&$configure_input&;t t
28761 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28762 s
&@srcdir@
&$ac_srcdir&;t t
28763 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28764 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28765 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28766 s
&@builddir@
&$ac_builddir&;t t
28767 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28768 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28769 s
&@INSTALL@
&$ac_INSTALL&;t t
28770 $ac_datarootdir_hack
28771 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
28773 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28774 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28775 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28776 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28777 which seems to be undefined. Please make sure it is defined." >&5
28778 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28779 which seems to be undefined. Please make sure it is defined." >&2;}
28783 -) cat "$tmp/out"; rm -f "$tmp/out";;
28784 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28793 # Transform confdefs.h into a sed script `conftest.defines', that
28794 # substitutes the proper values into config.h.in to produce config.h.
28795 rm -f conftest.defines conftest.
tail
28796 # First, append a space to every undef/define line, to ease matching.
28797 echo 's/$/ /' >conftest.defines
28798 # Then, protect against being on the right side of a sed subst, or in
28799 # an unquoted here document, in config.status. If some macros were
28800 # called several times there might be several #defines for the same
28801 # symbol, which is useless. But do not sort them, since the last
28802 # AC_DEFINE must be honored.
28803 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
28804 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28805 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28806 # PARAMS is the parameter list in the macro definition--in most cases, it's
28807 # just an empty string.
28808 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28809 ac_dB
='\\)[ (].*,\\1define\\2'
28817 s/^[ ]*#[ ]*define[ ][ ]*//
28822 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28823 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28824 ' >>conftest.defines
28826 # Remove the space that was appended to ease matching.
28827 # Then replace #undef with comments. This is necessary, for
28828 # example, in the case of _POSIX_SOURCE, which is predefined and required
28829 # on some systems where configure will not decide to define it.
28830 # (The regexp can be short, since the line contains either #define or #undef.)
28832 s,^[ #]*u.*,/* & */,' >>conftest.defines
28834 # Break up conftest.defines:
28835 ac_max_sed_lines
=50
28837 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28838 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28839 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28841 ac_in
='$ac_file_inputs'
28842 ac_out
='"$tmp/out1"'
28843 ac_nxt
='"$tmp/out2"'
28847 # Write a here document:
28848 cat >>$CONFIG_STATUS <<_ACEOF
28849 # First, check the format of the line:
28850 cat >"\$tmp/defines.sed" <<\\CEOF
28851 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28852 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28856 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
28858 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28859 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
28860 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
28861 grep . conftest.
tail >/dev
/null ||
break
28862 rm -f conftest.defines
28863 mv conftest.
tail conftest.defines
28865 rm -f conftest.defines conftest.
tail
28867 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28868 cat >>$CONFIG_STATUS <<\_ACEOF
28869 if test x
"$ac_file" != x-
; then
28870 echo "/* $configure_input */" >"$tmp/config.h"
28871 cat "$ac_result" >>"$tmp/config.h"
28872 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
28873 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28874 echo "$as_me: $ac_file is unchanged" >&6;}
28877 mv "$tmp/config.h" $ac_file
28880 echo "/* $configure_input */"
28892 { (exit 0); exit 0; }
28894 chmod +x
$CONFIG_STATUS
28895 ac_clean_files
=$ac_clean_files_save
28898 # configure is writing to config.log, and then calls config.status.
28899 # config.status does its own redirection, appending to config.log.
28900 # Unfortunately, on DOS this fails, as config.log is still kept open
28901 # by configure, so config.status won't be able to write to it; its
28902 # output is simply discarded. So we exec the FD to /dev/null,
28903 # effectively closing config.log, so it can be properly (re)opened and
28904 # appended to by config.status. When coming back to configure, we
28905 # need to make the FD available again.
28906 if test "$no_create" != yes; then
28908 ac_config_status_args
=
28909 test "$silent" = yes &&
28910 ac_config_status_args
="$ac_config_status_args --quiet"
28912 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28914 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28915 # would make configure fail if this is the last instruction.
28916 $ac_cs_success ||
{ (exit 1); exit 1; }
28920 echo "creating Modules/Setup"
28921 if test ! -f Modules
/Setup
28923 cp $srcdir/Modules
/Setup.dist Modules
/Setup
28926 echo "creating Modules/Setup.local"
28927 if test ! -f Modules
/Setup.
local
28929 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
28932 echo "creating Makefile"
28933 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
28934 -s Modules Modules
/Setup.config \
28935 Modules
/Setup.
local Modules
/Setup
28937 case $ac_sys_system in
28939 { echo "$as_me:$LINENO: WARNING:
28941 Support for BeOS is deprecated as of Python 2.6.
28942 See PEP 11 for the gory details.
28944 echo "$as_me: WARNING:
28946 Support for BeOS is deprecated as of Python 2.6.
28947 See PEP 11 for the gory details.
28953 mv config.c Modules