2 # From configure.in Revision: 76644 .
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
730 HAVE_GETHOSTBYNAME_R_6_ARG
731 HAVE_GETHOSTBYNAME_R_5_ARG
732 HAVE_GETHOSTBYNAME_R_3_ARG
742 ac_precious_vars
='build_alias
753 # Initialize some variables set by options.
755 ac_init_version
=false
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
765 program_transform_name
=s
,x
,x
,
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir
='${exec_prefix}/bin'
780 sbindir
='${exec_prefix}/sbin'
781 libexecdir
='${exec_prefix}/libexec'
782 datarootdir
='${prefix}/share'
783 datadir
='${datarootdir}'
784 sysconfdir
='${prefix}/etc'
785 sharedstatedir
='${prefix}/com'
786 localstatedir
='${prefix}/var'
787 includedir
='${prefix}/include'
788 oldincludedir
='/usr/include'
789 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir
='${datarootdir}/info'
795 libdir
='${exec_prefix}/lib'
796 localedir
='${datarootdir}/locale'
797 mandir
='${datarootdir}/man'
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\
$ac_option
811 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
821 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
823 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
826 -build |
--build |
--buil |
--bui |
--bu)
827 ac_prev
=build_alias
;;
828 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
829 build_alias
=$ac_optarg ;;
831 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
832 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
833 ac_prev
=cache_file
;;
834 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
835 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
836 cache_file
=$ac_optarg ;;
839 cache_file
=config.cache
;;
841 -datadir |
--datadir |
--datadi |
--datad)
843 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
844 datadir
=$ac_optarg ;;
846 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
847 |
--dataroo |
--dataro |
--datar)
848 ac_prev
=datarootdir
;;
849 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
850 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
851 datarootdir
=$ac_optarg ;;
853 -disable-* |
--disable-*)
854 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 { (exit 1); exit 1; }; }
859 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
860 eval enable_
$ac_feature=no
;;
862 -docdir |
--docdir |
--docdi |
--doc |
--do)
864 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
867 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
869 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
872 -enable-* |
--enable-*)
873 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
876 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
877 { (exit 1); exit 1; }; }
878 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
879 eval enable_
$ac_feature=\
$ac_optarg ;;
881 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
882 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
883 |
--exec |
--exe |
--ex)
884 ac_prev
=exec_prefix
;;
885 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
886 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
887 |
--exec=* |
--exe=* |
--ex=*)
888 exec_prefix
=$ac_optarg ;;
890 -gas |
--gas |
--ga |
--g)
891 # Obsolete; use --with-gas.
894 -help |
--help |
--hel |
--he |
-h)
896 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
897 ac_init_help
=recursive
;;
898 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
899 ac_init_help
=short
;;
901 -host |
--host |
--hos |
--ho)
902 ac_prev
=host_alias
;;
903 -host=* |
--host=* |
--hos=* |
--ho=*)
904 host_alias
=$ac_optarg ;;
906 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
908 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
910 htmldir
=$ac_optarg ;;
912 -includedir |
--includedir |
--includedi |
--included |
--include \
913 |
--includ |
--inclu |
--incl |
--inc)
914 ac_prev
=includedir
;;
915 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
916 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
917 includedir
=$ac_optarg ;;
919 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
921 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
922 infodir
=$ac_optarg ;;
924 -libdir |
--libdir |
--libdi |
--libd)
926 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
929 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
930 |
--libexe |
--libex |
--libe)
931 ac_prev
=libexecdir
;;
932 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
933 |
--libexe=* |
--libex=* |
--libe=*)
934 libexecdir
=$ac_optarg ;;
936 -localedir |
--localedir |
--localedi |
--localed |
--locale)
938 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
939 localedir
=$ac_optarg ;;
941 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
942 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
943 ac_prev
=localstatedir
;;
944 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
945 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
946 localstatedir
=$ac_optarg ;;
948 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
950 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
954 # Obsolete; use --without-fp.
957 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
958 |
--no-cr |
--no-c |
-n)
961 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
962 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
965 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
966 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
967 |
--oldin |
--oldi |
--old |
--ol |
--o)
968 ac_prev
=oldincludedir
;;
969 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
970 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
971 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
972 oldincludedir
=$ac_optarg ;;
974 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
976 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
979 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
980 |
--program-pre |
--program-pr |
--program-p)
981 ac_prev
=program_prefix
;;
982 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
983 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
984 program_prefix
=$ac_optarg ;;
986 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
987 |
--program-suf |
--program-su |
--program-s)
988 ac_prev
=program_suffix
;;
989 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
990 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
991 program_suffix
=$ac_optarg ;;
993 -program-transform-name |
--program-transform-name \
994 |
--program-transform-nam |
--program-transform-na \
995 |
--program-transform-n |
--program-transform- \
996 |
--program-transform |
--program-transfor \
997 |
--program-transfo |
--program-transf \
998 |
--program-trans |
--program-tran \
999 |
--progr-tra |
--program-tr |
--program-t)
1000 ac_prev
=program_transform_name
;;
1001 -program-transform-name=* |
--program-transform-name=* \
1002 |
--program-transform-nam=* |
--program-transform-na=* \
1003 |
--program-transform-n=* |
--program-transform-=* \
1004 |
--program-transform=* |
--program-transfor=* \
1005 |
--program-transfo=* |
--program-transf=* \
1006 |
--program-trans=* |
--program-tran=* \
1007 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1008 program_transform_name
=$ac_optarg ;;
1010 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1012 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1013 pdfdir
=$ac_optarg ;;
1015 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1017 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1020 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1021 |
-silent |
--silent |
--silen |
--sile |
--sil)
1024 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1026 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1028 sbindir
=$ac_optarg ;;
1030 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1031 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1032 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1034 ac_prev
=sharedstatedir
;;
1035 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1036 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1037 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1039 sharedstatedir
=$ac_optarg ;;
1041 -site |
--site |
--sit)
1043 -site=* |
--site=* |
--sit=*)
1046 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1048 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1049 srcdir
=$ac_optarg ;;
1051 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1052 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1053 ac_prev
=sysconfdir
;;
1054 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1055 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1056 sysconfdir
=$ac_optarg ;;
1058 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1059 ac_prev
=target_alias
;;
1060 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1061 target_alias
=$ac_optarg ;;
1063 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1066 -version |
--version |
--versio |
--versi |
--vers |
-V)
1067 ac_init_version
=: ;;
1070 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_
$ac_package=\
$ac_optarg ;;
1078 -without-* |
--without-*)
1079 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1082 { echo "$as_me: error: invalid package name: $ac_package" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1085 eval with_
$ac_package=no
;;
1088 # Obsolete; use --with-x.
1091 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1092 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1093 ac_prev
=x_includes
;;
1094 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1095 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1096 x_includes
=$ac_optarg ;;
1098 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1099 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1100 ac_prev
=x_libraries
;;
1101 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1102 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1103 x_libraries
=$ac_optarg ;;
1105 -*) { echo "$as_me: error: unrecognized option: $ac_option
1106 Try \`$0 --help' for more information." >&2
1107 { (exit 1); exit 1; }; }
1111 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1114 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1115 { (exit 1); exit 1; }; }
1116 eval $ac_envvar=\
$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1123 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1130 if test -n "$ac_prev"; then
1131 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1132 { echo "$as_me: error: missing argument to $ac_option" >&2
1133 { (exit 1); exit 1; }; }
1136 # Be sure to have absolute directory names.
1137 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
1142 eval ac_val
=\$
$ac_var
1144 [\\/$
]* | ?
:[\\/]* ) continue;;
1145 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1147 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1148 { (exit 1); exit 1; }; }
1151 # There might be people who depend on the old broken behavior: `$host'
1152 # used to hold the argument of --host etc.
1153 # FIXME: To remove some day.
1156 target
=$target_alias
1158 # FIXME: To remove some day.
1159 if test "x$host_alias" != x
; then
1160 if test "x$build_alias" = x
; then
1161 cross_compiling
=maybe
1162 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1163 If a cross compiler is detected then cross compile mode will be used." >&2
1164 elif test "x$build_alias" != "x$host_alias"; then
1170 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1172 test "$silent" = yes && exec 6>/dev
/null
1175 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1176 ac_ls_di
=`ls -di .` &&
1177 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1178 { echo "$as_me: error: Working directory cannot be determined" >&2
1179 { (exit 1); exit 1; }; }
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 { echo "$as_me: error: pwd does not report name of working directory" >&2
1182 { (exit 1); exit 1; }; }
1185 # Find the source files, if location was not specified.
1186 if test -z "$srcdir"; then
1187 ac_srcdir_defaulted
=yes
1188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir
=`$as_dirname -- "$0" ||
1190 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$0" : 'X\(//\)[^/]' \| \
1192 X"$0" : 'X\(//\)$' \| \
1193 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1217 ac_srcdir_defaulted
=no
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1221 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1222 { (exit 1); exit 1; }; }
1224 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1226 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1227 { (exit 1); exit 1; }; }
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 # Remove unnecessary trailing slashes from srcdir.
1234 # Double slashes in file names in object file debugging info
1235 # mess up M-x gdb in Emacs.
1237 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239 for ac_var
in $ac_precious_vars; do
1240 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1242 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1247 # Report the --help message.
1249 if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1253 \`configure' configures python 2.7 to adapt to many kinds of systems.
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE. See below for descriptions of some of the useful variables.
1260 Defaults for the options are specified in brackets.
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
1267 -q, --quiet, --silent do not print \`checking...' messages
1268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273 Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
1275 [$ac_default_prefix]
1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1284 For better control, use the options below.
1286 Fine tuning of the installation directories:
1287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1312 if test -n "$ac_init_help"; then
1313 case $ac_init_help in
1314 short | recursive
) echo "Configuration of python 2.7:";;
1319 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1320 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1321 --enable-universalsdk[=SDKDIR
]
1322 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1323 --enable-framework[=INSTALLDIR
]
1324 Build
(MacOSX|Darwin
) framework
1325 --enable-shared disable
/enable building shared python library
1326 --enable-profiling enable C-level code profiling
1327 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1328 --enable-ipv6 Enable ipv6
(with ipv4
) support
1329 --disable-ipv6 Disable ipv6 support
1330 --enable-big-digits[=BITS
]
1331 use big digits
for Python longs
[BITS
=30]
1332 --enable-unicode[=ucs
[24]]
1333 Enable Unicode
strings (default is
yes)
1336 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1337 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1338 --with-universal-archs=ARCH
1339 select architectures
for universal build
("32-bit",
1340 "64-bit", "3-way", "intel" or
"all")
1341 --with-framework-name=FRAMEWORK
1342 specify an alternate name of the framework built
1343 with
--enable-framework
1344 --without-gcc never use gcc
1345 --with-cxx-main=<compiler
>
1346 compile main
() and link python executable with C
++
1348 --with-suffix=.exe
set executable suffix
1349 --with-pydebug build with Py_DEBUG defined
1350 --with-libs='lib1 ...' link against additional libs
1351 --with-system-ffi build _ctypes module using an installed ffi library
1352 --with-dbmliborder=db1
:db2
:...
1353 order to check db backends
for dbm. Valid value is a
1354 colon separated string with the backend names
1355 `ndbm', `gdbm
' and `bdb'.
1356 --with-signal-module disable
/enable signal module
1357 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1358 --with(out
)-threads[=DIRECTORY
]
1359 disable
/enable thread support
1360 --with(out
)-thread[=DIRECTORY
]
1361 deprecated
; use
--with(out
)-threads
1362 --with-pth use GNU pth threading libraries
1363 --with(out
)-doc-strings disable
/enable documentation
strings
1364 --with(out
)-tsc enable
/disable timestamp counter profile
1365 --with(out
)-pymalloc disable
/enable specialized mallocs
1366 --with-valgrind Enable Valgrind support
1367 --with-wctype-functions use wctype.h functions
1368 --with-fpectl enable SIGFPE catching
1369 --with-libm=STRING math library
1370 --with-libc=STRING C library
1372 Some influential environment variables
:
1373 CC C compiler
command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1376 nonstandard directory
<lib dir
>
1377 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1378 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1379 you have headers
in a nonstandard directory
<include dir
>
1382 Use these variables to override the choices made by
`configure' or to help
1383 it to find libraries and programs with nonstandard names/locations.
1385 Report bugs to <http://bugs.python.org/>.
1390 if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
1392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393 test -d "$ac_dir" || continue
1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 ac_abs_top_builddir=$ac_pwd
1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir=$ac_top_build_prefix
1413 .) # We are building in place.
1415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
1418 ac_srcdir=$srcdir$ac_dir_suffix;
1419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for guested configure.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1435 $SHELL "$ac_srcdir/configure" --help=recursive
1437 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 cd "$ac_pwd" || { ac_status=$?; break; }
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1446 python configure 2.7
1447 generated by GNU Autoconf 2.61
1449 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1450 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1456 cat >config.log <<_ACEOF
1457 This file contains any messages produced by compilers while
1458 running configure, to aid debugging if configure makes a mistake.
1460 It was created by python $as_me 2.7, which was
1461 generated by GNU Autoconf 2.61. Invocation command line was
1473 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1474 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1475 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1476 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1477 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1479 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1480 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1482 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1483 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1484 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1485 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1486 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1487 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1488 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 test -z "$as_dir" && as_dir=.
1497 echo "PATH: $as_dir"
1513 # Keep a trace of the command line.
1514 # Strip out --no-create and --no-recursion so they do not pile up.
1515 # Strip out --silent because we don't want to record it for future runs.
1516 # Also quote any args containing shell meta-characters.
1517 # Make two passes to allow for proper duplicate-argument suppression.
1521 ac_must_keep_next=false
1527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1529 | -silent | --silent | --silen | --sile | --sil)
1532 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1535 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1537 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1538 if test $ac_must_keep_next = true; then
1539 ac_must_keep_next=false # Got value, back to normal.
1542 *=* | --config-cache | -C | -disable-* | --disable-* \
1543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1545 | -with-* | --with-* | -without-* | --without-* | --x)
1546 case "$ac_configure_args0 " in
1547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1550 -* ) ac_must_keep_next=true ;;
1553 ac_configure_args="$ac_configure_args '$ac_arg'"
1558 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1559 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1561 # When interrupted or exit'd, cleanup temporary files, and complete
1562 # config.log. We remove comments because anyway the quotes in there
1563 # would cause problems or look ugly.
1564 # WARNING: Use '\'' to represent an apostrophe within the trap.
1565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1566 trap 'exit_status=$?
1567 # Save into config.log some information that might help in debugging.
1572 ## ---------------- ##
1573 ## Cache variables. ##
1574 ## ---------------- ##
1577 # The following way of writing the cache mishandles newlines in values,
1579 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1580 eval ac_val=\$$ac_var
1584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1588 _ | IFS | as_nl) ;; #(
1589 *) $as_unset $ac_var ;;
1594 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1595 *${as_nl}ac_space=\ *)
1597 "s/'\''/'\''\\\\'\'''\''/g;
1598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 ## ----------------- ##
1610 ## Output variables. ##
1611 ## ----------------- ##
1614 for ac_var in $ac_subst_vars
1616 eval ac_val=\$$ac_var
1618 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1620 echo "$ac_var='\''$ac_val'\''"
1624 if test -n "$ac_subst_files"; then
1626 ## ------------------- ##
1627 ## File substitutions. ##
1628 ## ------------------- ##
1631 for ac_var in $ac_subst_files
1633 eval ac_val=\$$ac_var
1635 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1637 echo "$ac_var='\''$ac_val'\''"
1642 if test -s confdefs.h; then
1652 test "$ac_signal" != 0 &&
1653 echo "$as_me: caught signal $ac_signal"
1654 echo "$as_me: exit $exit_status"
1656 rm -f core *.core core.conftest.* &&
1657 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1660 for ac_signal in 1 2 13 15; do
1661 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1665 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1666 rm -f -r conftest* confdefs.h
1668 # Predefined preprocessor variables.
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_NAME "$PACKAGE_NAME"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_STRING "$PACKAGE_STRING"
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1695 # Let the site file select an alternate cache file if it wants to.
1696 # Prefer explicitly selected file to automatically selected ones.
1697 if test -n "$CONFIG_SITE"; then
1698 set x "$CONFIG_SITE"
1699 elif test "x$prefix" != xNONE; then
1700 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1702 set x "$ac_default_prefix/share/config.site" \
1703 "$ac_default_prefix/etc/config.site"
1708 if test -r "$ac_site_file"; then
1709 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1710 echo "$as_me: loading site script $ac_site_file" >&6;}
1711 sed 's/^/| /' "$ac_site_file" >&5
1716 if test -r "$cache_file"; then
1717 # Some versions of bash will fail to source /dev/null (special
1718 # files actually), so we avoid doing that.
1719 if test -f "$cache_file"; then
1720 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1721 echo "$as_me: loading cache $cache_file" >&6;}
1723 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1724 *) . "./$cache_file";;
1728 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1729 echo "$as_me: creating cache $cache_file" >&6;}
1733 # Check that the precious variables saved in the cache have kept the same
1735 ac_cache_corrupted=false
1736 for ac_var in $ac_precious_vars; do
1737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1738 eval ac_new_set=\$ac_env_${ac_var}_set
1739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1740 eval ac_new_val=\$ac_env_${ac_var}_value
1741 case $ac_old_set,$ac_new_set in
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1744 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1748 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1752 if test "x$ac_old_val" != "x$ac_new_val"; then
1753 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1754 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1755 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1756 echo "$as_me: former value
: $ac_old_val" >&2;}
1757 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1758 echo "$as_me: current value
: $ac_new_val" >&2;}
1759 ac_cache_corrupted=:
1762 # Pass precious variables to config.status.
1763 if test "$ac_new_set" = set; then
1765 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1766 *) ac_arg=$ac_var=$ac_new_val ;;
1768 case " $ac_configure_args " in
1769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1770 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1774 if $ac_cache_corrupted; then
1775 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1776 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1777 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1778 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1779 { (exit 1); exit 1; }; }
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814 ac_config_headers="$ac_config_headers pyconfig.h"
1818 if test "$prefix" != "/"; then
1819 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1827 # We don't use PACKAGE_ variables, and they cause conflicts
1828 # with other autoconf-based packages that include Python.h
1829 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1831 mv confdefs.h.new confdefs.h
1839 # The later defininition of _XOPEN_SOURCE disables certain features
1840 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1842 cat >>confdefs.h <<\_ACEOF
1843 #define _GNU_SOURCE 1
1847 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1848 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1851 cat >>confdefs.h <<\_ACEOF
1852 #define _NETBSD_SOURCE 1
1856 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1857 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1860 cat >>confdefs.h <<\_ACEOF
1861 #define __BSD_VISIBLE 1
1865 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1866 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1868 cat >>confdefs.h <<\_ACEOF
1869 #define _BSD_TYPES 1
1873 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1874 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1877 cat >>confdefs.h <<\_ACEOF
1878 #define _DARWIN_C_SOURCE 1
1883 define_xopen_source=yes
1885 # Arguments passed to configure.
1887 CONFIG_ARGS="$ac_configure_args"
1889 # Check whether --enable-universalsdk was given.
1890 if test "${enable_universalsdk+set}" = set; then
1891 enableval=$enable_universalsdk;
1894 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1900 enable_universalsdk=
1903 UNIVERSALSDK=$enableval
1910 enable_universalsdk=
1918 UNIVERSAL_ARCHS="32-bit"
1920 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1921 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1923 # Check whether --with-universal-archs was given.
1924 if test "${with_universal_archs+set}" = set; then
1925 withval=$with_universal_archs;
1926 { echo "$as_me:$LINENO: result: $withval" >&5
1927 echo "${ECHO_T}$withval" >&6; }
1928 UNIVERSAL_ARCHS="$withval"
1929 if test "${enable_universalsdk}" ; then
1932 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1933 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1934 { (exit 1); exit 1; }; }
1939 { echo "$as_me:$LINENO: result: 32-bit" >&5
1940 echo "${ECHO_T}32-bit" >&6; }
1948 # Check whether --with-framework-name was given.
1949 if test "${with_framework_name+set}" = set; then
1950 withval=$with_framework_name;
1951 if test "${enable_framework}"; then
1954 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1955 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1956 { (exit 1); exit 1; }; }
1958 PYTHONFRAMEWORK=${withval}
1959 PYTHONFRAMEWORKDIR=${withval}.framework
1960 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1964 PYTHONFRAMEWORK=Python
1965 PYTHONFRAMEWORKDIR=Python.framework
1966 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1970 # Check whether --enable-framework was given.
1971 if test "${enable_framework+set}" = set; then
1972 enableval=$enable_framework;
1975 enableval=/Library/Frameworks
1980 PYTHONFRAMEWORKDIR=no-framework
1981 PYTHONFRAMEWORKPREFIX=
1982 PYTHONFRAMEWORKINSTALLDIR=
1983 FRAMEWORKINSTALLFIRST=
1984 FRAMEWORKINSTALLLAST=
1985 FRAMEWORKALTINSTALLFIRST=
1986 FRAMEWORKALTINSTALLLAST=
1987 if test "x${prefix}" = "xNONE"; then
1988 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1990 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1995 PYTHONFRAMEWORKPREFIX=$enableval
1996 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1997 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1998 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1999 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2000 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2002 if test "x${prefix}" = "xNONE" ; then
2003 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2005 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2007 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2009 # Add files for Mac specific code to the list of output
2011 ac_config_files="$ac_config_files Mac/Makefile"
2013 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2015 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2017 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2019 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2026 PYTHONFRAMEWORKDIR=no-framework
2027 PYTHONFRAMEWORKPREFIX=
2028 PYTHONFRAMEWORKINSTALLDIR=
2029 FRAMEWORKINSTALLFIRST=
2030 FRAMEWORKINSTALLLAST=
2031 FRAMEWORKALTINSTALLFIRST=
2032 FRAMEWORKALTINSTALLLAST=
2033 if test "x${prefix}" = "xNONE" ; then
2034 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2036 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2055 ## AC_HELP_STRING(--with-dyld,
2056 ## Use (OpenStep|Rhapsody) dynamic linker))
2058 # Set name for machine-dependent library files
2060 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2061 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2062 if test -z "$MACHDEP"
2064 ac_sys_system=`uname
-s`
2065 if test "$ac_sys_system" = "AIX" \
2066 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2067 ac_sys_release=`uname
-v`
2069 ac_sys_release=`uname
-r`
2071 ac_md_system=`echo $ac_sys_system |
2072 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2073 ac_md_release=`echo $ac_sys_release |
2074 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2075 MACHDEP="$ac_md_system$ac_md_release"
2078 cygwin*) MACHDEP="cygwin";;
2079 darwin*) MACHDEP="darwin";;
2080 atheos*) MACHDEP="atheos";;
2081 irix646) MACHDEP="irix6";;
2082 '') MACHDEP="unknown";;
2086 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2087 # disable features if it is defined, without any means to access these
2088 # features as extensions. For these systems, we skip the definition of
2089 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2090 # some feature, make sure there is no alternative way to access this
2091 # feature. Also, when using wildcards, make sure you have verified the
2092 # need for not defining _XOPEN_SOURCE on all systems matching the
2093 # wildcard, and that the wildcard does not include future systems
2094 # (which may remove their limitations).
2095 case $ac_sys_system/$ac_sys_release in
2096 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2097 # even though select is a POSIX function. Reported by J. Ribbens.
2098 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2099 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2100 define_xopen_source=no
2101 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2102 # also defined. This can be overridden by defining _BSD_SOURCE
2103 # As this has a different meaning on Linux, only define it on OpenBSD
2105 cat >>confdefs.h <<\_ACEOF
2106 #define _BSD_SOURCE 1
2110 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2111 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2113 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2114 define_xopen_source=no;;
2115 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2116 # of union __?sigval. Reported by Stuart Bishop.
2118 define_xopen_source=no;;
2119 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2120 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2121 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2122 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2123 define_xopen_source=no;;
2124 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2125 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2127 define_xopen_source=no;;
2128 # On FreeBSD 4, the math functions C89 does not cover are never defined
2129 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2131 define_xopen_source=no;;
2132 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2133 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2134 # identifies itself as Darwin/7.*
2135 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2136 # disables platform specific features beyond repair.
2137 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2138 # has no effect, don't bother defining them
2140 define_xopen_source=no;;
2141 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2142 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2143 # or has another value. By not (re)defining it, the defaults come in place.
2145 define_xopen_source=no;;
2147 if test `uname
-r` -eq 1; then
2148 define_xopen_source=no
2151 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2152 # defining NI_NUMERICHOST.
2154 define_xopen_source=no
2159 if test $define_xopen_source = yes
2161 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2162 # defined precisely as g++ defines it
2163 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2165 case $ac_sys_system/$ac_sys_release in
2166 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2168 cat >>confdefs.h <<\_ACEOF
2169 #define _XOPEN_SOURCE 500
2175 cat >>confdefs.h <<\_ACEOF
2176 #define _XOPEN_SOURCE 600
2182 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2183 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2184 # several APIs are not declared. Since this is also needed in some
2185 # cases for HP-UX, we define it globally.
2186 # except for Solaris 10, where it must not be defined,
2187 # as it implies XPG4.2
2188 case $ac_sys_system/$ac_sys_release in
2193 cat >>confdefs.h <<\_ACEOF
2194 #define _XOPEN_SOURCE_EXTENDED 1
2201 cat >>confdefs.h <<\_ACEOF
2202 #define _POSIX_C_SOURCE 200112L
2209 # SGI compilers allow the specification of the both the ABI and the
2210 # ISA on the command line. Depending on the values of these switches,
2211 # different and often incompatable code will be generated.
2213 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2214 # thus supply support for various ABI/ISA combinations. The MACHDEP
2215 # variable is also adjusted.
2218 if test ! -z "$SGI_ABI"
2221 LDFLAGS="$SGI_ABI $LDFLAGS"
2222 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2224 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2225 echo "${ECHO_T}$MACHDEP" >&6; }
2227 # And add extra plat-mac for darwin
2230 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2231 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2232 if test -z "$EXTRAPLATDIR"
2236 EXTRAPLATDIR="\$(PLATMACDIRS)"
2237 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2245 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2246 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2248 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2249 # it may influence the way we can build extensions, so distutils
2253 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2254 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2256 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2257 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2258 ac_sys_machine=`uname
-m`
2259 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2260 echo "${ECHO_T}$ac_sys_machine" >&6; }
2262 # checks for alternative programs
2264 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2265 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2266 # just to get things to compile and link. Users are free to override OPT
2267 # when running configure or make. The build should not break if they do.
2268 # BASECFLAGS should generally not be messed with, however.
2270 # XXX shouldn't some/most/all of this code be merged with the stuff later
2271 # on that fiddles with OPT and BASECFLAGS?
2272 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2273 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2275 # Check whether --with-gcc was given.
2276 if test "${with_gcc+set}" = set; then
2284 without_gcc=$withval;;
2288 case $ac_sys_system in
2292 case $BE_HOST_CPU in
2296 BASECFLAGS="$BASECFLAGS -export pragma"
2298 LDFLAGS="$LDFLAGS -nodup"
2306 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2307 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2308 { (exit 1); exit 1; }; }
2311 AR="\$(srcdir)/Modules/ar_beos"
2318 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2319 echo "${ECHO_T}$without_gcc" >&6; }
2321 # If the user switches compilers, we can't believe the cache
2322 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2324 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2325 (it is also a good idea to do 'make clean' before compiling)" >&5
2326 echo "$as_me: error: cached CC is different -- throw away $cache_file
2327 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2328 { (exit 1); exit 1; }; }
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 if test -n "$ac_tool_prefix"; then
2337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2338 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_CC+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$CC"; then
2345 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 { echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6; }
2369 { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2375 if test -z "$ac_cv_prog_CC"; then
2377 # Extract the first word of "gcc", so it can be a program name with args.
2378 set dummy gcc; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_ac_ct_CC="gcc"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2407 echo "${ECHO_T}$ac_ct_CC" >&6; }
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2413 if test "x$ac_ct_CC" = x; then
2416 case $cross_compiling:$ac_tool_warned in
2418 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet. If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&5
2421 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2422 whose name does not start with the host triplet. If you think this
2423 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2424 ac_tool_warned=yes ;;
2432 if test -z "$CC"; then
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}cc; ac_word=$2
2436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2438 if test "${ac_cv_prog_CC+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_CC="${ac_tool_prefix}cc"
2452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 if test -n "$CC"; then
2463 { echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6; }
2466 { echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6; }
2473 if test -z "$CC"; then
2474 # Extract the first word of "cc", so it can be a program name with args.
2475 set dummy cc; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2493 ac_prog_rejected=yes
2497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 if test $ac_prog_rejected = yes; then
2505 # We found a bogon in the path, so make sure we never use it.
2506 set dummy $ac_cv_prog_CC
2508 if test $# != 0; then
2509 # We chose a different compiler from the bogus one.
2510 # However, it has the same basename, so the bogon will be chosen
2511 # first if we set CC to just the basename; use the full file name.
2513 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2519 if test -n "$CC"; then
2520 { echo "$as_me:$LINENO: result: $CC" >&5
2521 echo "${ECHO_T}$CC" >&6; }
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 if test -n "$ac_tool_prefix"; then
2531 for ac_prog in cl.exe
2533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2570 test -n "$CC" && break
2573 if test -z "$CC"; then
2575 for ac_prog in cl.exe
2577 # Extract the first word of "$ac_prog", so it can be a program name with args.
2578 set dummy $ac_prog; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$ac_ct_CC"; then
2585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594 ac_cv_prog_ac_ct_CC="$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2605 if test -n "$ac_ct_CC"; then
2606 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2607 echo "${ECHO_T}$ac_ct_CC" >&6; }
2609 { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2614 test -n "$ac_ct_CC" && break
2617 if test "x$ac_ct_CC" = x; then
2620 case $cross_compiling:$ac_tool_warned in
2622 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2623 whose name does not start with the host triplet. If you think this
2624 configuration is useful to you, please write to autoconf@gnu.org." >&5
2625 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2626 whose name does not start with the host triplet. If you think this
2627 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2628 ac_tool_warned=yes ;;
2637 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2638 See \`config.log
' for more details." >&5
2639 echo "$as_me: error: no acceptable C compiler found in \$PATH
2640 See \`config.log' for more details.
" >&2;}
2641 { (exit 1); exit 1; }; }
2643 # Provide some information about the compiler.
2644 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2645 ac_compiler=`set X $ac_compile; echo $2`
2646 { (ac_try="$ac_compiler --version >&5"
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2652 (eval "$ac_compiler --version >&5") 2>&5
2654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2655 (exit $ac_status); }
2656 { (ac_try="$ac_compiler -v >&5"
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compiler -v >&5") 2>&5
2664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2665 (exit $ac_status); }
2666 { (ac_try="$ac_compiler -V >&5"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler -V >&5") 2>&5
2674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2675 (exit $ac_status); }
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 ac_clean_files_save=$ac_clean_files
2693 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2694 # Try to create an executable without -o first, disregard a.out.
2695 # It will help us diagnose broken compilers, and finding out an intuition
2697 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2698 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2699 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2701 # List of possible output files, starting from the most likely.
2702 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2703 # only as a last resort. b.out is created by i960 compilers.
2704 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2706 # The IRIX 6 linker writes into existing files which may not be
2707 # executable, retaining their permissions. Remove them first so a
2708 # subsequent execution test works.
2710 for ac_file in $ac_files
2713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2714 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2719 if { (ac_try="$ac_link_default"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_link_default") 2>&5
2727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2728 (exit $ac_status); }; then
2729 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2730 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2731 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2732 # so that the user can short-circuit this test for compilers unknown to
2734 for ac_file in $ac_files ''
2736 test -f "$ac_file" || continue
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2741 # We found the default executable, but exeext='' is most
2745 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2747 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749 # We set ac_cv_exeext here because the later test for it is not
2750 # safe: cross compilers may not add the suffix if given an `-o'
2751 # argument, so we may need to know it at that point already.
2752 # Even if this section looks crufty: it has the advantage of
2759 test "$ac_cv_exeext" = no && ac_cv_exeext=
2765 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2766 echo "${ECHO_T}$ac_file" >&6; }
2767 if test -z "$ac_file"; then
2768 echo "$as_me: failed program was
:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2771 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2772 See \
`config.log' for more details." >&5
2773 echo "$as_me: error: C compiler cannot create executables
2774 See \`config.log
' for more details." >&2;}
2775 { (exit 77); exit 77; }; }
2778 ac_exeext=$ac_cv_exeext
2780 # Check that the compiler produces executables we can run. If not, either
2781 # the compiler is broken, or we cross compile.
2782 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2785 # If not cross compiling, check that we can run a simple program.
2786 if test "$cross_compiling" != yes; then
2787 if { ac_try='.
/$ac_file'
2788 { (case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_try") 2>&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2799 if test "$cross_compiling" = maybe; then
2802 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2803 If you meant to cross compile, use \`--host'.
2804 See \
`config.log' for more details." >&5
2805 echo "$as_me: error: cannot run C compiled programs.
2806 If you meant to cross compile, use \`--host'.
2807 See \`config.log' for more details.
" >&2;}
2808 { (exit 1); exit 1; }; }
2812 { echo "$as_me:$LINENO: result
: yes" >&5
2813 echo "${ECHO_T}yes" >&6; }
2815 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2816 ac_clean_files=$ac_clean_files_save
2817 # Check that the compiler produces executables we can run. If not, either
2818 # the compiler is broken, or we cross compile.
2819 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2820 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2821 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2822 echo "${ECHO_T}$cross_compiling" >&6; }
2824 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2825 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2826 if { (ac_try="$ac_link"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_link") 2>&5
2834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2835 (exit $ac_status); }; then
2836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2837 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2838 # work properly (i.e., refer to `conftest.exe'), while it won't with
2840 for ac_file in conftest.exe conftest conftest.*; do
2841 test -f "$ac_file" || continue
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2850 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2851 See \
`config.log' for more details." >&5
2852 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2853 See \`config.log
' for more details." >&2;}
2854 { (exit 1); exit 1; }; }
2857 rm -f conftest$ac_cv_exeext
2858 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2859 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2861 rm -f conftest.$ac_ext
2862 EXEEXT=$ac_cv_exeext
2864 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2865 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2866 if test "${ac_cv_objext+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2884 rm -f conftest.o conftest.obj
2885 if { (ac_try="$ac_compile"
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compile") 2>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; then
2895 for ac_file in conftest.o conftest.obj conftest.*; do
2896 test -f "$ac_file" || continue;
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2899 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2904 echo "$as_me: failed program was:" >&5
2905 sed 's
/^
/|
/' conftest.$ac_ext >&5
2907 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2908 See \`config.log' for more details.
" >&5
2909 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2910 See \
`config.log' for more details." >&2;}
2911 { (exit 1); exit 1; }; }
2914 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2916 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2917 echo "${ECHO_T}$ac_cv_objext" >&6; }
2918 OBJEXT=$ac_cv_objext
2920 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2921 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2922 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2947 *) ac_try_echo
=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_compile") 2>conftest.er1
2952 grep -v '^ *+' conftest.er1
>conftest.err
2954 cat conftest.err
>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } && {
2957 test -z "$ac_c_werror_flag" ||
2958 test ! -s conftest.err
2959 } && test -s conftest.
$ac_objext; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.
$ac_ext >&5
2968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2969 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2972 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2973 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2974 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2975 ac_test_CFLAGS
=${CFLAGS+set}
2976 ac_save_CFLAGS
=$CFLAGS
2977 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2978 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2979 if test "${ac_cv_prog_cc_g+set}" = set; then
2980 echo $ECHO_N "(cached) $ECHO_C" >&6
2982 ac_save_c_werror_flag
=$ac_c_werror_flag
2983 ac_c_werror_flag
=yes
2986 cat >conftest.
$ac_ext <<_ACEOF
2989 cat confdefs.h
>>conftest.
$ac_ext
2990 cat >>conftest.
$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
3001 rm -f conftest.
$ac_objext
3002 if { (ac_try
="$ac_compile"
3004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_compile") 2>conftest.er1
3010 grep -v '^ *+' conftest.er1 >conftest.err
3012 cat conftest.err >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } && {
3015 test -z "$ac_c_werror_flag" ||
3016 test ! -s conftest.err
3017 } && test -s conftest.$ac_objext; then
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3024 cat >conftest.$ac_ext <<_ACEOF
3027 cat confdefs.h >>conftest.$ac_ext
3028 cat >>conftest.$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3043 *) ac_try_echo
=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3048 grep -v '^ *+' conftest.er1
>conftest.err
3050 cat conftest.err
>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.
$ac_objext; then
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.
$ac_ext >&5
3061 ac_c_werror_flag
=$ac_save_c_werror_flag
3063 cat >conftest.
$ac_ext <<_ACEOF
3066 cat confdefs.h
>>conftest.
$ac_ext
3067 cat >>conftest.
$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 rm -f conftest.
$ac_objext
3079 if { (ac_try
="$ac_compile"
3081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3110 ac_c_werror_flag=$ac_save_c_werror_flag
3112 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3113 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3114 if test "$ac_test_CFLAGS" = set; then
3115 CFLAGS=$ac_save_CFLAGS
3116 elif test $ac_cv_prog_cc_g = yes; then
3117 if test "$GCC" = yes; then
3123 if test "$GCC" = yes; then
3129 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3130 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3131 if test "${ac_cv_prog_cc_c89+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 ac_cv_prog_cc_c89=no
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3144 #include <sys/types.h>
3145 #include <sys/stat.h>
3146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3147 struct buf { int x; };
3148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3149 static char *e (p, i)
3155 static char *f (char * (*g) (char **, int), char **p, ...)
3160 s = g (p, va_arg (v,int));
3165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3166 function prototypes and stuff, but not '\xHH' hex character constants.
3167 These don't provoke an error unfortunately, instead are silently treated
3168 as 'x'. The following induces an error, until -std is added to get
3169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3170 array size at least. It's necessary to write '\x00'==0 to get something
3171 that's true only with -std. */
3172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3175 inside strings and character constants. */
3177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3179 int test (int i, double x);
3180 struct s1 {int (*f) (int a);};
3181 struct s2 {int (*f) (double a);};
3182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3188 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3196 CC="$ac_save_CC $ac_arg"
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3201 *) ac_try_echo
=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3206 grep -v '^ *+' conftest.er1
>conftest.err
3208 cat conftest.err
>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.
$ac_objext; then
3214 ac_cv_prog_cc_c89
=$ac_arg
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.
$ac_ext >&5
3222 rm -f core conftest.err conftest.
$ac_objext
3223 test "x$ac_cv_prog_cc_c89" != "xno" && break
3225 rm -f conftest.
$ac_ext
3230 case "x$ac_cv_prog_cc_c89" in
3232 { echo "$as_me:$LINENO: result: none needed" >&5
3233 echo "${ECHO_T}none needed" >&6; } ;;
3235 { echo "$as_me:$LINENO: result: unsupported" >&5
3236 echo "${ECHO_T}unsupported" >&6; } ;;
3238 CC
="$CC $ac_cv_prog_cc_c89"
3239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3245 ac_cpp
='$CPP $CPPFLAGS'
3246 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3253 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3254 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3256 # Check whether --with-cxx_main was given.
3257 if test "${with_cxx_main+set}" = set; then
3258 withval
=$with_cxx_main;
3261 no
) with_cxx_main
=no
3263 yes) with_cxx_main
=yes
3265 *) with_cxx_main
=yes
3279 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3280 echo "${ECHO_T}$with_cxx_main" >&6; }
3286 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3287 set dummy g
++; ac_word
=$2
3288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3290 if test "${ac_cv_path_CXX+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3299 for as_dir
in notfound
3302 test -z "$as_dir" && as_dir
=.
3303 for ac_exec_ext
in '' $ac_executable_extensions; do
3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3305 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3318 if test -n "$CXX"; then
3319 { echo "$as_me:$LINENO: result: $CXX" >&5
3320 echo "${ECHO_T}$CXX" >&6; }
3322 { echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6; }
3327 cc
) # Extract the first word of "c++", so it can be a program name with args.
3328 set dummy c
++; ac_word
=$2
3329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3331 if test "${ac_cv_path_CXX+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3340 for as_dir
in notfound
3343 test -z "$as_dir" && as_dir
=.
3344 for ac_exec_ext
in '' $ac_executable_extensions; do
3345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3359 if test -n "$CXX"; then
3360 { echo "$as_me:$LINENO: result: $CXX" >&5
3361 echo "${ECHO_T}$CXX" >&6; }
3363 { echo "$as_me:$LINENO: result: no" >&5
3364 echo "${ECHO_T}no" >&6; }
3369 if test "$CXX" = "notfound"
3376 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy
$ac_prog; ac_word
=$2
3380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_CXX+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 if test -n "$CXX"; then
3386 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3392 test -z "$as_dir" && as_dir
=.
3393 for ac_exec_ext
in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_CXX
="$ac_prog"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 if test -n "$CXX"; then
3407 { echo "$as_me:$LINENO: result: $CXX" >&5
3408 echo "${ECHO_T}$CXX" >&6; }
3410 { echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6; }
3415 test -n "$CXX" && break
3417 test -n "$CXX" || CXX
="notfound"
3419 if test "$CXX" = "notfound"
3424 if test "$preset_cxx" != "$CXX"
3426 { echo "$as_me:$LINENO: WARNING:
3428 By default, distutils will build C++ extension modules with \"$CXX\".
3429 If this is not intended, then set CXX on the configure command line.
3431 echo "$as_me: WARNING:
3433 By default, distutils will build C++ extension modules with \"$CXX\".
3434 If this is not intended, then set CXX on the configure command line.
3439 # checks for UNIX variants that set C preprocessor variables
3442 ac_cpp
='$CPP $CPPFLAGS'
3443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3446 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3447 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3448 # On Suns, sometimes $CPP names a directory.
3449 if test -n "$CPP" && test -d "$CPP"; then
3452 if test -z "$CPP"; then
3453 if test "${ac_cv_prog_CPP+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 # Double quotes because CPP needs to be expanded
3457 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3460 for ac_c_preproc_warn_flag
in '' yes
3462 # Use a header file that comes with gcc, so configuring glibc
3463 # with a fresh cross-compiler works.
3464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3465 # <limits.h> exists even on freestanding compilers.
3466 # On the NeXT, cc -E runs the code through the compiler's parser,
3467 # not just through cpp. "Syntax error" is here to catch this case.
3468 cat >conftest.
$ac_ext <<_ACEOF
3471 cat confdefs.h
>>conftest.
$ac_ext
3472 cat >>conftest.
$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3475 # include <limits.h>
3477 # include <assert.h>
3481 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } >/dev/null && {
3494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3502 # Broken: fails on valid input.
3506 rm -f conftest.err conftest.$ac_ext
3508 # OK, works on sane cases. Now check whether nonexistent headers
3509 # can be detected and how.
3510 cat >conftest.$ac_ext <<_ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #include <ac_nonexistent.h>
3518 if { (ac_try="$ac_cpp conftest.$ac_ext"
3520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3521 *) ac_try_echo
=$ac_try;;
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 grep -v '^ *+' conftest.er1
>conftest.err
3528 cat conftest.err
>&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } >/dev
/null
&& {
3531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3532 test ! -s conftest.err
3534 # Broken: success on invalid input.
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.
$ac_ext >&5
3540 # Passes both tests.
3545 rm -f conftest.err conftest.
$ac_ext
3548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3549 rm -f conftest.err conftest.
$ac_ext
3550 if $ac_preproc_ok; then
3562 { echo "$as_me:$LINENO: result: $CPP" >&5
3563 echo "${ECHO_T}$CPP" >&6; }
3565 for ac_c_preproc_warn_flag
in '' yes
3567 # Use a header file that comes with gcc, so configuring glibc
3568 # with a fresh cross-compiler works.
3569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570 # <limits.h> exists even on freestanding compilers.
3571 # On the NeXT, cc -E runs the code through the compiler's parser,
3572 # not just through cpp. "Syntax error" is here to catch this case.
3573 cat >conftest.
$ac_ext <<_ACEOF
3576 cat confdefs.h
>>conftest.
$ac_ext
3577 cat >>conftest.
$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3580 # include <limits.h>
3582 # include <assert.h>
3586 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); } >/dev/null && {
3599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 # Broken: fails on valid input.
3611 rm -f conftest.err conftest.$ac_ext
3613 # OK, works on sane cases. Now check whether nonexistent headers
3614 # can be detected and how.
3615 cat >conftest.$ac_ext <<_ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h. */
3621 #include <ac_nonexistent.h>
3623 if { (ac_try="$ac_cpp conftest.$ac_ext"
3625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3626 *) ac_try_echo
=$ac_try;;
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3631 grep -v '^ *+' conftest.er1
>conftest.err
3633 cat conftest.err
>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } >/dev
/null
&& {
3636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3637 test ! -s conftest.err
3639 # Broken: success on invalid input.
3642 echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.
$ac_ext >&5
3645 # Passes both tests.
3650 rm -f conftest.err conftest.
$ac_ext
3653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3654 rm -f conftest.err conftest.
$ac_ext
3655 if $ac_preproc_ok; then
3658 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3659 See \`config.log' for more details." >&5
3660 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3661 See \`config.log' for more details." >&2;}
3662 { (exit 1); exit 1; }; }
3666 ac_cpp
='$CPP $CPPFLAGS'
3667 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3672 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3673 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3674 if test "${ac_cv_path_GREP+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 # Extract the first word of "grep ggrep" to use in msg output
3678 if test -z "$GREP"; then
3679 set dummy
grep ggrep
; ac_prog_name
=$2
3680 if test "${ac_cv_path_GREP+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 ac_path_GREP_found
=false
3684 # Loop through the user's path and test for each of PROGNAME-LIST
3685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3686 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3689 test -z "$as_dir" && as_dir
=.
3690 for ac_prog
in grep ggrep
; do
3691 for ac_exec_ext
in '' $ac_executable_extensions; do
3692 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3693 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3694 # Check for GNU ac_path_GREP and select it if it is found.
3695 # Check for GNU $ac_path_GREP
3696 case `"$ac_path_GREP" --version 2>&1` in
3698 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3701 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3704 cat "conftest.in" "conftest.in" >"conftest.tmp"
3705 mv "conftest.tmp" "conftest.in"
3706 cp "conftest.in" "conftest.nl"
3707 echo 'GREP' >> "conftest.nl"
3708 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3709 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3710 ac_count
=`expr $ac_count + 1`
3711 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3712 # Best one so far, save it but keep looking for a better one
3713 ac_cv_path_GREP
="$ac_path_GREP"
3714 ac_path_GREP_max
=$ac_count
3716 # 10*(2^10) chars as input seems more than enough
3717 test $ac_count -gt 10 && break
3719 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3723 $ac_path_GREP_found && break 3
3733 GREP
="$ac_cv_path_GREP"
3734 if test -z "$GREP"; then
3735 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3736 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3737 { (exit 1); exit 1; }; }
3741 ac_cv_path_GREP
=$GREP
3746 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3747 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3748 GREP
="$ac_cv_path_GREP"
3751 { echo "$as_me:$LINENO: checking for egrep" >&5
3752 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3753 if test "${ac_cv_path_EGREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3757 then ac_cv_path_EGREP
="$GREP -E"
3759 # Extract the first word of "egrep" to use in msg output
3760 if test -z "$EGREP"; then
3761 set dummy
egrep; ac_prog_name
=$2
3762 if test "${ac_cv_path_EGREP+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 ac_path_EGREP_found
=false
3766 # Loop through the user's path and test for each of PROGNAME-LIST
3767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3768 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3771 test -z "$as_dir" && as_dir
=.
3772 for ac_prog
in egrep; do
3773 for ac_exec_ext
in '' $ac_executable_extensions; do
3774 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3775 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3776 # Check for GNU ac_path_EGREP and select it if it is found.
3777 # Check for GNU $ac_path_EGREP
3778 case `"$ac_path_EGREP" --version 2>&1` in
3780 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3783 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3786 cat "conftest.in" "conftest.in" >"conftest.tmp"
3787 mv "conftest.tmp" "conftest.in"
3788 cp "conftest.in" "conftest.nl"
3789 echo 'EGREP' >> "conftest.nl"
3790 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3791 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3792 ac_count
=`expr $ac_count + 1`
3793 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3794 # Best one so far, save it but keep looking for a better one
3795 ac_cv_path_EGREP
="$ac_path_EGREP"
3796 ac_path_EGREP_max
=$ac_count
3798 # 10*(2^10) chars as input seems more than enough
3799 test $ac_count -gt 10 && break
3801 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3805 $ac_path_EGREP_found && break 3
3815 EGREP
="$ac_cv_path_EGREP"
3816 if test -z "$EGREP"; then
3817 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3818 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3819 { (exit 1); exit 1; }; }
3823 ac_cv_path_EGREP
=$EGREP
3829 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3830 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3831 EGREP
="$ac_cv_path_EGREP"
3835 { echo "$as_me:$LINENO: checking for AIX" >&5
3836 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3837 cat >conftest.
$ac_ext <<_ACEOF
3840 cat confdefs.h
>>conftest.
$ac_ext
3841 cat >>conftest.
$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849 $EGREP "yes" >/dev
/null
2>&1; then
3850 { echo "$as_me:$LINENO: result: yes" >&5
3851 echo "${ECHO_T}yes" >&6; }
3852 cat >>confdefs.h
<<\_ACEOF
3853 #define _ALL_SOURCE 1
3857 { echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6; }
3864 # Check for unsupported systems
3865 case $ac_sys_system/$ac_sys_release in
3867 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3868 echo See README
for details.
3873 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3874 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3876 # Check whether --with-suffix was given.
3877 if test "${with_suffix+set}" = set; then
3878 withval
=$with_suffix;
3882 *) EXEEXT
=$withval;;
3886 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3887 echo "${ECHO_T}$EXEEXT" >&6; }
3889 # Test whether we're running on a non-case-sensitive system, in which
3890 # case we give a warning if no ext is given
3892 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3893 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3894 if test ! -d CaseSensitiveTestDir
; then
3895 mkdir CaseSensitiveTestDir
3898 if test -d casesensitivetestdir
3900 { echo "$as_me:$LINENO: result: yes" >&5
3901 echo "${ECHO_T}yes" >&6; }
3904 { echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6; }
3908 rmdir CaseSensitiveTestDir
3913 gcc
) CC
="$CC -D_HAVE_BSDI";;
3917 case $ac_sys_system in
3920 cc|
*/cc
) CC
="$CC -Ae";;
3923 # Some functions have a prototype only with that define, e.g. confstr
3925 cat >>confdefs.h
<<\_ACEOF
3926 #define __EXTENSIONS__ 1
3934 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3935 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3936 if test -z "$LIBRARY"
3938 LIBRARY
='libpython$(VERSION).a'
3940 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3941 echo "${ECHO_T}$LIBRARY" >&6; }
3943 # LDLIBRARY is the name of the library to link against (as opposed to the
3944 # name of the library into which to insert object files). BLDLIBRARY is also
3945 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3946 # is blank as the main program is not linked directly against LDLIBRARY.
3947 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3948 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3949 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3950 # DLLLIBRARY is the shared (i.e., DLL) library.
3952 # RUNSHARED is used to run shared python without installed libraries
3954 # INSTSONAME is the name of the shared library that will be use to install
3955 # on the system - some systems like version suffix, others don't
3962 LDLIBRARY
="$LIBRARY"
3963 BLDLIBRARY
='$(LDLIBRARY)'
3964 INSTSONAME
='$(LDLIBRARY)'
3969 # LINKCC is the command that links the python executable -- default is $(CC).
3970 # If CXX is set, and if it is needed to link a main function that was
3971 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3972 # python might then depend on the C++ runtime
3973 # This is altered for AIX in order to build the export list before
3976 { echo "$as_me:$LINENO: checking LINKCC" >&5
3977 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3978 if test -z "$LINKCC"
3980 LINKCC
='$(PURIFY) $(MAINCC)'
3981 case $ac_sys_system in
3984 if test $ac_sys_release -ge 5 -o \
3985 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3988 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3990 # qcc must be used because the other compilers do not
3995 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3996 echo "${ECHO_T}$LINKCC" >&6; }
3998 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3999 # make sure we default having it set to "no": this is used by
4000 # distutils.unixccompiler to know if it should add --enable-new-dtags
4001 # to linker command lines, and failing to detect GNU ld simply results
4002 # in the same bahaviour as before.
4004 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4005 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4007 if test "$GCC" = yes; then
4008 ac_prog
=`$CC -print-prog-name=ld`
4010 case `"$ac_prog" -V 2>&1 < /dev/null` in
4016 { echo "$as_me:$LINENO: result: $GNULD" >&5
4017 echo "${ECHO_T}$GNULD" >&6; }
4019 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4020 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4021 # Check whether --enable-shared was given.
4022 if test "${enable_shared+set}" = set; then
4023 enableval
=$enable_shared;
4027 if test -z "$enable_shared"
4029 case $ac_sys_system in
4031 enable_shared
="yes";;
4033 enable_shared
="no";;
4036 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4037 echo "${ECHO_T}$enable_shared" >&6; }
4039 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4040 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4041 # Check whether --enable-profiling was given.
4042 if test "${enable_profiling+set}" = set; then
4043 enableval
=$enable_profiling; ac_save_cc
="$CC"
4045 if test "$cross_compiling" = yes; then
4046 ac_enable_profiling
="no"
4048 cat >conftest.
$ac_ext <<_ACEOF
4051 cat confdefs.h
>>conftest.
$ac_ext
4052 cat >>conftest.
$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 int main() { return 0; }
4056 rm -f conftest
$ac_exeext
4057 if { (ac_try
="$ac_link"
4059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_link") 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4067 { (case "(($ac_try" in
4068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4069 *) ac_try_echo
=$ac_try;;
4071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_enable_profiling
="yes"
4078 echo "$as_me: program exited with status $ac_status" >&5
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.
$ac_ext >&5
4083 ac_enable_profiling
="no"
4085 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4092 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4093 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4095 case "$ac_enable_profiling" in
4097 BASECFLAGS
="-pg $BASECFLAGS"
4098 LDFLAGS
="-pg $LDFLAGS"
4102 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4103 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4105 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4106 # library that we build, but we do not want to link against it (we
4107 # will find it with a -framework option). For this reason there is an
4108 # extra variable BLDLIBRARY against which Python and the extension
4109 # modules are linked, BLDLIBRARY. This is normally the same as
4110 # LDLIBRARY, but empty for MacOSX framework builds.
4111 if test "$enable_framework"
4113 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4114 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4117 BLDLIBRARY
='$(LDLIBRARY)'
4120 # Other platforms follow
4121 if test $enable_shared = "yes"; then
4123 cat >>confdefs.h
<<\_ACEOF
4124 #define Py_ENABLE_SHARED 1
4127 case $ac_sys_system in
4129 LDLIBRARY
='libpython$(VERSION).so'
4132 LDLIBRARY
='libpython$(VERSION).dll.a'
4133 DLLLIBRARY
='libpython$(VERSION).dll'
4136 LDLIBRARY
='libpython$(VERSION).so'
4137 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4138 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4139 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4141 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4142 LDLIBRARY
='libpython$(VERSION).so'
4143 BLDLIBRARY
='-L. -lpython$(VERSION)'
4144 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4145 case $ac_sys_system in
4147 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4150 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4155 LDLIBRARY
='libpython$(VERSION).so'
4158 LDLIBRARY
='libpython$(VERSION).sl'
4161 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4162 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4165 LDLIBRARY
='libpython$(VERSION).so'
4166 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4167 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4170 LDLIBRARY
='libpython$(VERSION).so'
4171 BLDLIBRARY
='-L. -lpython$(VERSION)'
4172 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4175 LDLIBRARY
='libpython$(VERSION).dylib'
4176 BLDLIBRARY
='-L. -lpython$(VERSION)'
4177 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4181 else # shared is disabled
4182 case $ac_sys_system in
4184 BLDLIBRARY
='$(LIBRARY)'
4185 LDLIBRARY
='libpython$(VERSION).dll.a'
4190 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4191 echo "${ECHO_T}$LDLIBRARY" >&6; }
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4195 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_prog_RANLIB+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 if test -n "$RANLIB"; then
4202 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir
=.
4209 for ac_exec_ext
in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 RANLIB
=$ac_cv_prog_RANLIB
4222 if test -n "$RANLIB"; then
4223 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4224 echo "${ECHO_T}$RANLIB" >&6; }
4226 { echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6; }
4232 if test -z "$ac_cv_prog_RANLIB"; then
4233 ac_ct_RANLIB
=$RANLIB
4234 # Extract the first word of "ranlib", so it can be a program name with args.
4235 set dummy ranlib
; ac_word
=$2
4236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4238 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 if test -n "$ac_ct_RANLIB"; then
4242 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir
=.
4249 for ac_exec_ext
in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4262 if test -n "$ac_ct_RANLIB"; then
4263 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4264 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4266 { echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6; }
4270 if test "x$ac_ct_RANLIB" = x
; then
4273 case $cross_compiling:$ac_tool_warned in
4275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4276 whose name does not start with the host triplet. If you think this
4277 configuration is useful to you, please write to autoconf@gnu.org." >&5
4278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4279 whose name does not start with the host triplet. If you think this
4280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4281 ac_tool_warned
=yes ;;
4283 RANLIB
=$ac_ct_RANLIB
4286 RANLIB
="$ac_cv_prog_RANLIB"
4290 for ac_prog
in ar aal
4292 # Extract the first word of "$ac_prog", so it can be a program name with args.
4293 set dummy
$ac_prog; ac_word
=$2
4294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4296 if test "${ac_cv_prog_AR+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 if test -n "$AR"; then
4300 ac_cv_prog_AR
="$AR" # Let the user override the test.
4302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4306 test -z "$as_dir" && as_dir
=.
4307 for ac_exec_ext
in '' $ac_executable_extensions; do
4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309 ac_cv_prog_AR
="$ac_prog"
4310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 if test -n "$AR"; then
4321 { echo "$as_me:$LINENO: result: $AR" >&5
4322 echo "${ECHO_T}$AR" >&6; }
4324 { echo "$as_me:$LINENO: result: no" >&5
4325 echo "${ECHO_T}no" >&6; }
4329 test -n "$AR" && break
4331 test -n "$AR" || AR
="ar"
4334 # tweak ARFLAGS only if the user didn't set it on the command line
4336 if test -z "$ARFLAGS"
4342 # Extract the first word of "svnversion", so it can be a program name with args.
4343 set dummy svnversion
; ac_word
=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test -n "$SVNVERSION"; then
4350 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir
=.
4357 for ac_exec_ext
in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_SVNVERSION
="found"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4370 SVNVERSION
=$ac_cv_prog_SVNVERSION
4371 if test -n "$SVNVERSION"; then
4372 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4373 echo "${ECHO_T}$SVNVERSION" >&6; }
4375 { echo "$as_me:$LINENO: result: no" >&5
4376 echo "${ECHO_T}no" >&6; }
4380 if test $SVNVERSION = found
4382 SVNVERSION
="svnversion \$(srcdir)"
4384 SVNVERSION
="echo Unversioned directory"
4389 # install -d does not work on BSDI or HP-UX
4390 if test -z "$INSTALL"
4392 INSTALL
="${srcdir}/install-sh -c"
4396 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4397 if test -f "$ac_dir/install-sh"; then
4399 ac_install_sh
="$ac_aux_dir/install-sh -c"
4401 elif test -f "$ac_dir/install.sh"; then
4403 ac_install_sh
="$ac_aux_dir/install.sh -c"
4405 elif test -f "$ac_dir/shtool"; then
4407 ac_install_sh
="$ac_aux_dir/shtool install -c"
4411 if test -z "$ac_aux_dir"; then
4412 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4413 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4414 { (exit 1); exit 1; }; }
4417 # These three variables are undocumented and unsupported,
4418 # and are intended to be withdrawn in a future Autoconf release.
4419 # They can cause serious problems if a builder's source tree is in a directory
4420 # whose full name contains unusual characters.
4421 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4422 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4423 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4426 # Find a good install program. We prefer a C program (faster),
4427 # so one script is as good as another. But avoid the broken or
4428 # incompatible versions:
4429 # SysV /etc/install, /usr/sbin/install
4430 # SunOS /usr/etc/install
4431 # IRIX /sbin/install
4433 # AmigaOS /C/install, which installs bootblocks on floppy discs
4434 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4435 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4436 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4437 # OS/2's system install, which has a completely different semantic
4438 # ./install, which can be erroneously created by make from ./install.sh.
4439 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4440 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4441 if test -z "$INSTALL"; then
4442 if test "${ac_cv_path_install+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir
=.
4450 # Account for people who put trailing slashes in PATH elements.
4452 .
/ | .
// |
/cC
/* | \
4453 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4454 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4457 # OSF1 and SCO ODT 3.0 have their own names for install.
4458 # Don't use installbsd from OSF since it installs stuff as root
4460 for ac_prog
in ginstall scoinst
install; do
4461 for ac_exec_ext
in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4463 if test $ac_prog = install &&
4464 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4465 # AIX install. It has an incompatible calling convention.
4467 elif test $ac_prog = install &&
4468 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4469 # program-specific install script used by HP pwplus--don't use.
4472 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4485 if test "${ac_cv_path_install+set}" = set; then
4486 INSTALL
=$ac_cv_path_install
4488 # As a last resort, use the slow shell script. Don't cache a
4489 # value for INSTALL within a source directory, because that will
4490 # break other packages using the cache if that directory is
4491 # removed, or if the value is a relative name.
4492 INSTALL
=$ac_install_sh
4495 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4496 echo "${ECHO_T}$INSTALL" >&6; }
4498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4499 # It thinks the first close brace ends the variable substitution.
4500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4504 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4507 # Not every filesystem supports hard links
4509 if test -z "$LN" ; then
4510 case $ac_sys_system in
4512 CYGWIN
*) LN
="ln -s";;
4513 atheos
*) LN
="ln -s";;
4518 # Check for --with-pydebug
4519 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4520 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4522 # Check whether --with-pydebug was given.
4523 if test "${with_pydebug+set}" = set; then
4524 withval
=$with_pydebug;
4525 if test "$withval" != no
4528 cat >>confdefs.h
<<\_ACEOF
4532 { echo "$as_me:$LINENO: result: yes" >&5
4533 echo "${ECHO_T}yes" >&6; };
4535 else { echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4539 { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4544 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4545 # merged with this chunk of code?
4547 # Optimizer/debugger flags
4548 # ------------------------
4549 # (The following bit of code is complicated enough - please keep things
4550 # indented properly. Just pretend you're editing Python code. ;-)
4552 # There are two parallel sets of case statements below, one that checks to
4553 # see if OPT was set and one that does BASECFLAGS setting based upon
4554 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4557 # tweak OPT based on compiler and platform, only if the user didn't set
4558 # it on the command line
4564 if test "$CC" != 'g++' ; then
4565 STRICT_PROTO
="-Wstrict-prototypes"
4567 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4568 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4571 case $ac_cv_prog_cc_g in
4573 if test "$Py_DEBUG" = 'true' ; then
4574 # Optimization messes up debuggers, so turn it off for
4576 OPT
="-g -Wall $STRICT_PROTO"
4578 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4582 OPT
="-O3 -Wall $STRICT_PROTO"
4585 case $ac_sys_system in
4586 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4599 # The -arch flags for universal builds on OSX
4600 UNIVERSAL_ARCH_FLAGS
=
4603 # tweak BASECFLAGS based on compiler and platform
4606 # Python violates C99 rules, by casting between incompatible
4607 # pointer types. GCC may generate bad code as a result of that,
4608 # so use -fno-strict-aliasing if supported.
4609 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4610 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4612 CC
="$CC -fno-strict-aliasing"
4613 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 cat >conftest.
$ac_ext <<_ACEOF
4619 cat confdefs.h
>>conftest.
$ac_ext
4620 cat >>conftest.
$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4626 int main() { return 0; }
4631 rm -f conftest.
$ac_objext
4632 if { (ac_try
="$ac_compile"
4634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_compile") 2>conftest.er1
4640 grep -v '^ *+' conftest.er1 >conftest.err
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } && {
4645 test -z "$ac_c_werror_flag" ||
4646 test ! -s conftest.err
4647 } && test -s conftest.$ac_objext; then
4648 ac_cv_no_strict_aliasing_ok=yes
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 ac_cv_no_strict_aliasing_ok=no
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4661 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4662 if test $ac_cv_no_strict_aliasing_ok = yes
4664 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4667 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4668 # support. Without this, treatment of subnormals doesn't follow
4670 case $ac_sys_machine in
4672 BASECFLAGS="$BASECFLAGS -mieee"
4676 case $ac_sys_system in
4678 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4680 # is there any other compiler on Darwin besides gcc?
4682 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4683 # used to be here, but non-Apple gcc doesn't accept them.
4686 if test "${enable_universalsdk}"; then
4687 UNIVERSAL_ARCH_FLAGS=""
4688 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4689 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4691 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4693 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4694 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4696 ARCH_RUN_32BIT="true"
4698 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4699 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4700 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4701 ARCH_RUN_32BIT="arch -i386 -ppc"
4703 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4704 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4705 LIPO_32BIT_FLAGS="-extract i386"
4706 ARCH_RUN_32BIT="arch -i386"
4708 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4709 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4710 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4711 ARCH_RUN_32BIT="arch -i386 -ppc7400"
4714 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4715 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4716 { (exit 1); exit 1; }; }
4721 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4722 tgt=`sw_vers
-productVersion |
sed 's/\(10\.[0-9]*\).*/\1/'`
4723 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4724 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4728 # Calculate the right deployment target for this build.
4730 cur_target=`sw_vers
-productVersion |
sed 's/\(10\.[0-9]*\).*/\1/'`
4731 if test ${cur_target} '>' 10.2; then
4733 if test ${enable_universalsdk}; then
4734 if test "${UNIVERSAL_ARCHS}" = "all"; then
4735 # Ensure that the default platform for a
4736 # 4-way universal build is OSX 10.5,
4737 # that's the first OS release where
4738 # 4-way builds make sense.
4741 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4744 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4747 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4751 if test `arch
` = "i386"; then
4752 # On Intel macs default to a deployment
4753 # target of 10.4, that's the first OSX
4754 # release with Intel support.
4759 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4761 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4762 # environment with a value that is the same as what we'll use
4763 # in the Makefile to ensure that we'll get the same compiler
4764 # environment during configure and build time.
4765 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4766 export MACOSX_DEPLOYMENT_TARGET
4767 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4771 BASECFLAGS="$BASECFLAGS -mieee"
4777 case $ac_sys_system in
4778 OpenUNIX*|UnixWare*)
4779 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4782 BASECFLAGS="$BASECFLAGS -ieee -std"
4785 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4791 if test "$Py_DEBUG" = 'true'; then
4797 if test "$ac_arch_flags"
4799 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4802 # disable check for icc since it seems to pass, but generates a warning
4805 ac_cv_opt_olimit_ok=no
4808 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4809 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4810 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 CC="$CC -OPT:Olimit=0"
4815 cat >conftest.$ac_ext <<_ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4825 int main() { return 0; }
4830 rm -f conftest.$ac_objext
4831 if { (ac_try="$ac_compile"
4833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4834 *) ac_try_echo
=$ac_try;;
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1
>conftest.err
4841 cat conftest.err
>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.
$ac_objext; then
4847 ac_cv_opt_olimit_ok
=yes
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.
$ac_ext >&5
4852 ac_cv_opt_olimit_ok
=no
4855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4859 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4860 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4861 if test $ac_cv_opt_olimit_ok = yes; then
4862 case $ac_sys_system in
4863 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4864 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4869 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4873 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4874 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4875 if test "${ac_cv_olimit_ok+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 CC
="$CC -Olimit 1500"
4880 cat >conftest.
$ac_ext <<_ACEOF
4883 cat confdefs.h
>>conftest.
$ac_ext
4884 cat >>conftest.
$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4890 int main() { return 0; }
4895 rm -f conftest.
$ac_objext
4896 if { (ac_try
="$ac_compile"
4898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_compile") 2>conftest.er1
4904 grep -v '^ *+' conftest.er1 >conftest.err
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } && {
4909 test -z "$ac_c_werror_flag" ||
4910 test ! -s conftest.err
4911 } && test -s conftest.$ac_objext; then
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4925 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4926 if test $ac_cv_olimit_ok = yes; then
4927 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4931 # Check whether GCC supports PyArg_ParseTuple format
4932 if test "$GCC" = "yes"
4934 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4935 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4937 CFLAGS="$CFLAGS -Werror"
4938 cat >conftest.$ac_ext <<_ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4945 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4955 rm -f conftest.$ac_objext
4956 if { (ac_try="$ac_compile"
4958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4959 *) ac_try_echo
=$ac_try;;
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_compile") 2>conftest.er1
4964 grep -v '^ *+' conftest.er1
>conftest.err
4966 cat conftest.err
>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && {
4969 test -z "$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4971 } && test -s conftest.
$ac_objext; then
4973 cat >>confdefs.h
<<\_ACEOF
4974 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4977 { echo "$as_me:$LINENO: result: yes" >&5
4978 echo "${ECHO_T}yes" >&6; }
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.
$ac_ext >&5
4983 { echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6; }
4988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4992 # On some compilers, pthreads are available without further options
4993 # (e.g. MacOS X). On some of these systems, the compiler will not
4994 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4995 # So we have to see first whether pthreads are available without
4996 # options before we can check whether -Kpthread improves anything.
4997 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4998 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4999 if test "${ac_cv_pthread_is_default+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 if test "$cross_compiling" = yes; then
5003 ac_cv_pthread_is_default
=no
5005 cat >conftest.
$ac_ext <<_ACEOF
5008 cat confdefs.h
>>conftest.
$ac_ext
5009 cat >>conftest.
$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5012 #include <pthread.h>
5014 void* routine(void* p){return NULL;}
5018 if(pthread_create(&p,NULL,routine,NULL)!=0)
5020 (void)pthread_detach(p);
5025 rm -f conftest
$ac_exeext
5026 if { (ac_try
="$ac_link"
5028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_link") 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5036 { (case "(($ac_try" in
5037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5038 *) ac_try_echo
=$ac_try;;
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_try") 2>&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5046 ac_cv_pthread_is_default
=yes
5051 echo "$as_me: program exited with status $ac_status" >&5
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.
$ac_ext >&5
5056 ac_cv_pthread_is_default
=no
5058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5065 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5066 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5069 if test $ac_cv_pthread_is_default = yes
5073 # -Kpthread, if available, provides the right #defines
5074 # and linker options to make pthread_create available
5075 # Some compilers won't report that they do not support -Kpthread,
5076 # so we need to run a program to see whether it really made the
5077 # function available.
5078 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5079 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5080 if test "${ac_cv_kpthread+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 if test "$cross_compiling" = yes; then
5088 cat >conftest.
$ac_ext <<_ACEOF
5091 cat confdefs.h
>>conftest.
$ac_ext
5092 cat >>conftest.
$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5095 #include <pthread.h>
5097 void* routine(void* p){return NULL;}
5101 if(pthread_create(&p,NULL,routine,NULL)!=0)
5103 (void)pthread_detach(p);
5108 rm -f conftest
$ac_exeext
5109 if { (ac_try
="$ac_link"
5111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_link") 2>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5119 { (case "(($ac_try" in
5120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5121 *) ac_try_echo
=$ac_try;;
5123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_try") 2>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5130 echo "$as_me: program exited with status $ac_status" >&5
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.
$ac_ext >&5
5137 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5144 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5145 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5148 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
5150 # -Kthread, if available, provides the right #defines
5151 # and linker options to make pthread_create available
5152 # Some compilers won't report that they do not support -Kthread,
5153 # so we need to run a program to see whether it really made the
5154 # function available.
5155 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5156 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5157 if test "${ac_cv_kthread+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 if test "$cross_compiling" = yes; then
5165 cat >conftest.
$ac_ext <<_ACEOF
5168 cat confdefs.h
>>conftest.
$ac_ext
5169 cat >>conftest.
$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5172 #include <pthread.h>
5174 void* routine(void* p){return NULL;}
5178 if(pthread_create(&p,NULL,routine,NULL)!=0)
5180 (void)pthread_detach(p);
5185 rm -f conftest
$ac_exeext
5186 if { (ac_try
="$ac_link"
5188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_link") 2>&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5196 { (case "(($ac_try" in
5197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5198 *) ac_try_echo
=$ac_try;;
5200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201 (eval "$ac_try") 2>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; }; then
5207 echo "$as_me: program exited with status $ac_status" >&5
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.
$ac_ext >&5
5214 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5221 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5222 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5225 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
5227 # -pthread, if available, provides the right #defines
5228 # and linker options to make pthread_create available
5229 # Some compilers won't report that they do not support -pthread,
5230 # so we need to run a program to see whether it really made the
5231 # function available.
5232 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5233 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5234 if test "${ac_cv_thread+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 if test "$cross_compiling" = yes; then
5242 cat >conftest.
$ac_ext <<_ACEOF
5245 cat confdefs.h
>>conftest.
$ac_ext
5246 cat >>conftest.
$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5249 #include <pthread.h>
5251 void* routine(void* p){return NULL;}
5255 if(pthread_create(&p,NULL,routine,NULL)!=0)
5257 (void)pthread_detach(p);
5262 rm -f conftest
$ac_exeext
5263 if { (ac_try
="$ac_link"
5265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269 (eval "$ac_link") 2>&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5275 *) ac_try_echo
=$ac_try;;
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5284 echo "$as_me: program exited with status $ac_status" >&5
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.
$ac_ext >&5
5291 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5298 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5299 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5302 # If we have set a CC compiler flag for thread support then
5303 # check if it works for CXX, too.
5307 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5308 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5311 if test "$ac_cv_kpthread" = "yes"
5313 CXX
="$CXX -Kpthread"
5314 ac_cv_cxx_thread
=yes
5315 elif test "$ac_cv_kthread" = "yes"
5318 ac_cv_cxx_thread
=yes
5319 elif test "$ac_cv_pthread" = "yes"
5322 ac_cv_cxx_thread
=yes
5325 if test $ac_cv_cxx_thread = yes
5327 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
5328 $CXX -c conftest.
$ac_ext 2>&5
5329 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
5330 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
5332 ac_cv_cxx_thread
=yes
5338 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5339 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5344 # checks for header files
5345 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5346 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5347 if test "${ac_cv_header_stdc+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 cat >conftest.
$ac_ext <<_ACEOF
5353 cat confdefs.h
>>conftest.
$ac_ext
5354 cat >>conftest.
$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5369 rm -f conftest.
$ac_objext
5370 if { (ac_try
="$ac_compile"
5372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_compile") 2>conftest.er1
5378 grep -v '^ *+' conftest.er1 >conftest.err
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } && {
5383 test -z "$ac_c_werror_flag" ||
5384 test ! -s conftest.err
5385 } && test -s conftest.$ac_objext; then
5386 ac_cv_header_stdc=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_cv_header_stdc=no
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 if test $ac_cv_header_stdc = yes; then
5397 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5408 $EGREP "memchr" >/dev/null 2>&1; then
5411 ac_cv_header_stdc=no
5417 if test $ac_cv_header_stdc = yes; then
5418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5429 $EGREP "free" >/dev/null 2>&1; then
5432 ac_cv_header_stdc=no
5438 if test $ac_cv_header_stdc = yes; then
5439 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5440 if test "$cross_compiling" = yes; then
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5451 #if ((' ' & 0x0FF) == 0x020)
5452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5455 # define ISLOWER(c) \
5456 (('a' <= (c) && (c) <= 'i') \
5457 || ('j' <= (c) && (c) <= 'r') \
5458 || ('s' <= (c) && (c) <= 'z'))
5459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5467 for (i = 0; i < 256; i++)
5468 if (XOR (islower (i), ISLOWER (i))
5469 || toupper (i) != TOUPPER (i))
5474 rm -f conftest$ac_exeext
5475 if { (ac_try="$ac_link"
5477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5478 *) ac_try_echo
=$ac_try;;
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_link") 2>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5485 { (case "(($ac_try" in
5486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_try") 2>&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5496 echo "$as_me: program exited with status $ac_status" >&5
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5501 ac_cv_header_stdc=no
5503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5509 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5510 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5511 if test $ac_cv_header_stdc = yes; then
5513 cat >>confdefs.h <<\_ACEOF
5514 #define STDC_HEADERS 1
5519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5530 inttypes.h stdint.h unistd.h
5532 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 cat >conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 $ac_includes_default
5546 #include <$ac_header>
5548 rm -f conftest.$ac_objext
5549 if { (ac_try="$ac_compile"
5551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5552 *) ac_try_echo
=$ac_try;;
5554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_compile") 2>conftest.er1
5557 grep -v '^ *+' conftest.er1
>conftest.err
5559 cat conftest.err
>&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && {
5562 test -z "$ac_c_werror_flag" ||
5563 test ! -s conftest.err
5564 } && test -s conftest.
$ac_objext; then
5565 eval "$as_ac_Header=yes"
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.
$ac_ext >&5
5570 eval "$as_ac_Header=no"
5573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5575 ac_res
=`eval echo '${'$as_ac_Header'}'`
5576 { echo "$as_me:$LINENO: result: $ac_res" >&5
5577 echo "${ECHO_T}$ac_res" >&6; }
5578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5579 cat >>confdefs.h
<<_ACEOF
5580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5644 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5645 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5647 sys
/audioio.h sys
/bsdtty.h sys
/epoll.h sys
/event.h sys
/file.h sys
/loadavg.h \
5648 sys
/lock.h sys
/mkdev.h sys
/modem.h \
5649 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
5650 sys
/termio.h sys
/time.h \
5651 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
5652 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
5653 bluetooth
/bluetooth.h linux
/tipc.h
5655 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5656 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5659 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 ac_res
=`eval echo '${'$as_ac_Header'}'`
5663 { echo "$as_me:$LINENO: result: $ac_res" >&5
5664 echo "${ECHO_T}$ac_res" >&6; }
5666 # Is the header compilable?
5667 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5669 cat >conftest.
$ac_ext <<_ACEOF
5672 cat confdefs.h
>>conftest.
$ac_ext
5673 cat >>conftest.
$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 $ac_includes_default
5676 #include <$ac_header>
5678 rm -f conftest.
$ac_objext
5679 if { (ac_try
="$ac_compile"
5681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && {
5692 test -z "$ac_c_werror_flag" ||
5693 test ! -s conftest.err
5694 } && test -s conftest.$ac_objext; then
5695 ac_header_compiler=yes
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700 ac_header_compiler=no
5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5705 echo "${ECHO_T}$ac_header_compiler" >&6; }
5707 # Is the header present?
5708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5710 cat >conftest.$ac_ext <<_ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #include <$ac_header>
5718 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5721 *) ac_try_echo
=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1
>conftest.err
5728 cat conftest.err
>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } >/dev
/null
&& {
5731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5734 ac_header_preproc
=yes
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.
$ac_ext >&5
5739 ac_header_preproc
=no
5742 rm -f conftest.err conftest.
$ac_ext
5743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5744 echo "${ECHO_T}$ac_header_preproc" >&6; }
5746 # So? What about this header?
5747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5753 ac_header_preproc
=yes
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5769 ## -------------------------------------- ##
5770 ## Report this to http://bugs.python.org/ ##
5771 ## -------------------------------------- ##
5773 ) |
sed "s/^/$as_me: WARNING: /" >&2
5776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5778 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 eval "$as_ac_Header=\$ac_header_preproc"
5783 ac_res
=`eval echo '${'$as_ac_Header'}'`
5784 { echo "$as_me:$LINENO: result: $ac_res" >&5
5785 echo "${ECHO_T}$ac_res" >&6; }
5788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5789 cat >>confdefs.h
<<_ACEOF
5790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5803 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5804 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5805 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5806 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5807 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 cat >conftest.
$ac_ext <<_ACEOF
5813 cat confdefs.h
>>conftest.
$ac_ext
5814 cat >>conftest.
$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 #include <sys/types.h>
5828 rm -f conftest.
$ac_objext
5829 if { (ac_try
="$ac_compile"
5831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_compile") 2>conftest.er1
5837 grep -v '^ *+' conftest.er1 >conftest.err
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest.$ac_objext; then
5845 eval "$as_ac_Header=yes"
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 eval "$as_ac_Header=no"
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_res=`eval echo '${'$as_ac_Header'}'`
5856 { echo "$as_me:$LINENO: result: $ac_res" >&5
5857 echo "${ECHO_T}$ac_res" >&6; }
5858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5859 cat >>confdefs.h <<_ACEOF
5860 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
5863 ac_header_dirent=$ac_hdr; break
5867 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5868 if test $ac_header_dirent = dirent.h; then
5869 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5871 if test "${ac_cv_search_opendir+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 ac_func_search_save_LIBS=$LIBS
5875 cat >conftest.$ac_ext <<_ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5882 /* Override any GCC internal prototype to avoid an error.
5883 Use char because int might match the return type of a GCC
5884 builtin and then its argument prototype would still apply. */
5897 for ac_lib in '' dir; do
5898 if test -z "$ac_lib"; then
5899 ac_res="none required"
5902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5904 rm -f conftest.$ac_objext conftest$ac_exeext
5905 if { (ac_try="$ac_link"
5907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5908 *) ac_try_echo
=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_link") 2>conftest.er1
5913 grep -v '^ *+' conftest.er1
>conftest.err
5915 cat conftest.err
>&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } && {
5918 test -z "$ac_c_werror_flag" ||
5919 test ! -s conftest.err
5920 } && test -s conftest
$ac_exeext &&
5921 $as_test_x conftest
$ac_exeext; then
5922 ac_cv_search_opendir
=$ac_res
5924 echo "$as_me: failed program was:" >&5
5925 sed 's/^/| /' conftest.
$ac_ext >&5
5930 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5932 if test "${ac_cv_search_opendir+set}" = set; then
5936 if test "${ac_cv_search_opendir+set}" = set; then
5939 ac_cv_search_opendir
=no
5942 LIBS
=$ac_func_search_save_LIBS
5944 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5945 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5946 ac_res
=$ac_cv_search_opendir
5947 if test "$ac_res" != no
; then
5948 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5953 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5954 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5955 if test "${ac_cv_search_opendir+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 ac_func_search_save_LIBS
=$LIBS
5959 cat >conftest.
$ac_ext <<_ACEOF
5962 cat confdefs.h
>>conftest.
$ac_ext
5963 cat >>conftest.
$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5966 /* Override any GCC internal prototype to avoid an error.
5967 Use char because int might match the return type of a GCC
5968 builtin and then its argument prototype would still apply. */
5981 for ac_lib
in '' x
; do
5982 if test -z "$ac_lib"; then
5983 ac_res
="none required"
5986 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5988 rm -f conftest.
$ac_objext conftest
$ac_exeext
5989 if { (ac_try
="$ac_link"
5991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_link") 2>conftest.er1
5997 grep -v '^ *+' conftest.er1 >conftest.err
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } && {
6002 test -z "$ac_c_werror_flag" ||
6003 test ! -s conftest.err
6004 } && test -s conftest$ac_exeext &&
6005 $as_test_x conftest$ac_exeext; then
6006 ac_cv_search_opendir=$ac_res
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6016 if test "${ac_cv_search_opendir+set}" = set; then
6020 if test "${ac_cv_search_opendir+set}" = set; then
6023 ac_cv_search_opendir=no
6026 LIBS=$ac_func_search_save_LIBS
6028 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6029 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6030 ac_res=$ac_cv_search_opendir
6031 if test "$ac_res" != no; then
6032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6038 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6039 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6040 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 cat >conftest.$ac_ext <<_ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <sys/types.h>
6053 return makedev(0, 0);
6058 rm -f conftest.$ac_objext conftest$ac_exeext
6059 if { (ac_try="$ac_link"
6061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6062 *) ac_try_echo
=$ac_try;;
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_link") 2>conftest.er1
6067 grep -v '^ *+' conftest.er1
>conftest.err
6069 cat conftest.err
>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest
$ac_exeext &&
6075 $as_test_x conftest
$ac_exeext; then
6076 ac_cv_header_sys_types_h_makedev
=yes
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.
$ac_ext >&5
6081 ac_cv_header_sys_types_h_makedev
=no
6084 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6085 conftest
$ac_exeext conftest.
$ac_ext
6088 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6089 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6091 if test $ac_cv_header_sys_types_h_makedev = no
; then
6092 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6093 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6094 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6095 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6099 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6101 # Is the header compilable?
6102 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6103 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6104 cat >conftest.
$ac_ext <<_ACEOF
6107 cat confdefs.h
>>conftest.
$ac_ext
6108 cat >>conftest.
$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6111 #include <sys/mkdev.h>
6113 rm -f conftest.
$ac_objext
6114 if { (ac_try
="$ac_compile"
6116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_compile") 2>conftest.er1
6122 grep -v '^ *+' conftest.er1 >conftest.err
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } && {
6127 test -z "$ac_c_werror_flag" ||
6128 test ! -s conftest.err
6129 } && test -s conftest.$ac_objext; then
6130 ac_header_compiler=yes
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6135 ac_header_compiler=no
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6140 echo "${ECHO_T}$ac_header_compiler" >&6; }
6142 # Is the header present?
6143 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6144 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <sys/mkdev.h>
6153 if { (ac_try="$ac_cpp conftest.$ac_ext"
6155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6156 *) ac_try_echo
=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6161 grep -v '^ *+' conftest.er1
>conftest.err
6163 cat conftest.err
>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } >/dev
/null
&& {
6166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6169 ac_header_preproc
=yes
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.
$ac_ext >&5
6174 ac_header_preproc
=no
6177 rm -f conftest.err conftest.
$ac_ext
6178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6179 echo "${ECHO_T}$ac_header_preproc" >&6; }
6181 # So? What about this header?
6182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6184 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6185 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6187 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6188 ac_header_preproc
=yes
6191 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6192 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6194 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6196 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6198 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6200 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6202 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6204 ## -------------------------------------- ##
6205 ## Report this to http://bugs.python.org/ ##
6206 ## -------------------------------------- ##
6208 ) |
sed "s/^/$as_me: WARNING: /" >&2
6211 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6212 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6213 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
6218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6219 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6222 if test $ac_cv_header_sys_mkdev_h = yes; then
6224 cat >>confdefs.h
<<\_ACEOF
6225 #define MAJOR_IN_MKDEV 1
6232 if test $ac_cv_header_sys_mkdev_h = no
; then
6233 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6234 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6235 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6236 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6240 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6242 # Is the header compilable?
6243 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6244 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6245 cat >conftest.
$ac_ext <<_ACEOF
6248 cat confdefs.h
>>conftest.
$ac_ext
6249 cat >>conftest.
$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251 $ac_includes_default
6252 #include <sys/sysmacros.h>
6254 rm -f conftest.
$ac_objext
6255 if { (ac_try
="$ac_compile"
6257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_compile") 2>conftest.er1
6263 grep -v '^ *+' conftest.er1 >conftest.err
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } && {
6268 test -z "$ac_c_werror_flag" ||
6269 test ! -s conftest.err
6270 } && test -s conftest.$ac_objext; then
6271 ac_header_compiler=yes
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6276 ac_header_compiler=no
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6281 echo "${ECHO_T}$ac_header_compiler" >&6; }
6283 # Is the header present?
6284 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6285 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 #include <sys/sysmacros.h>
6294 if { (ac_try="$ac_cpp conftest.$ac_ext"
6296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6297 *) ac_try_echo
=$ac_try;;
6299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6302 grep -v '^ *+' conftest.er1
>conftest.err
6304 cat conftest.err
>&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } >/dev
/null
&& {
6307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6310 ac_header_preproc
=yes
6312 echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.
$ac_ext >&5
6315 ac_header_preproc
=no
6318 rm -f conftest.err conftest.
$ac_ext
6319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6320 echo "${ECHO_T}$ac_header_preproc" >&6; }
6322 # So? What about this header?
6323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6325 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6326 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6328 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6329 ac_header_preproc
=yes
6332 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6333 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6335 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6337 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6339 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6341 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6343 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6345 ## -------------------------------------- ##
6346 ## Report this to http://bugs.python.org/ ##
6347 ## -------------------------------------- ##
6349 ) |
sed "s/^/$as_me: WARNING: /" >&2
6352 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6353 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6354 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
6359 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6360 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6363 if test $ac_cv_header_sys_sysmacros_h = yes; then
6365 cat >>confdefs.h
<<\_ACEOF
6366 #define MAJOR_IN_SYSMACROS 1
6376 # On Solaris, term.h requires curses.h
6378 for ac_header
in term.h
6380 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6383 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.
$ac_ext <<_ACEOF
6389 cat confdefs.h
>>conftest.
$ac_ext
6390 cat >>conftest.
$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6393 #ifdef HAVE_CURSES_H
6398 #include <$ac_header>
6400 rm -f conftest.
$ac_objext
6401 if { (ac_try
="$ac_compile"
6403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compile") 2>conftest.er1
6409 grep -v '^ *+' conftest.er1 >conftest.err
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && {
6414 test -z "$ac_c_werror_flag" ||
6415 test ! -s conftest.err
6416 } && test -s conftest.$ac_objext; then
6417 eval "$as_ac_Header=yes"
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 eval "$as_ac_Header=no"
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 ac_res=`eval echo '${'$as_ac_Header'}'`
6428 { echo "$as_me:$LINENO: result: $ac_res" >&5
6429 echo "${ECHO_T}$ac_res" >&6; }
6430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6431 cat >>confdefs.h <<_ACEOF
6432 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6440 # On Linux, netlink.h requires asm/types.h
6442 for ac_header in linux/netlink.h
6444 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 cat >conftest.$ac_ext <<_ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6457 #ifdef HAVE_ASM_TYPES_H
6458 #include <asm/types.h>
6460 #ifdef HAVE_SYS_SOCKET_H
6461 #include <sys/socket.h>
6465 #include <$ac_header>
6467 rm -f conftest.$ac_objext
6468 if { (ac_try="$ac_compile"
6470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6471 *) ac_try_echo
=$ac_try;;
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_compile") 2>conftest.er1
6476 grep -v '^ *+' conftest.er1
>conftest.err
6478 cat conftest.err
>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } && {
6481 test -z "$ac_c_werror_flag" ||
6482 test ! -s conftest.err
6483 } && test -s conftest.
$ac_objext; then
6484 eval "$as_ac_Header=yes"
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.
$ac_ext >&5
6489 eval "$as_ac_Header=no"
6492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6494 ac_res
=`eval echo '${'$as_ac_Header'}'`
6495 { echo "$as_me:$LINENO: result: $ac_res" >&5
6496 echo "${ECHO_T}$ac_res" >&6; }
6497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6498 cat >>confdefs.h
<<_ACEOF
6499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 # checks for typedefs
6509 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6510 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6511 cat >conftest.
$ac_ext <<_ACEOF
6514 cat confdefs.h
>>conftest.
$ac_ext
6515 cat >>conftest.
$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6521 $EGREP "clock_t" >/dev
/null
2>&1; then
6526 cat >>confdefs.h
<<\_ACEOF
6527 #define clock_t long
6534 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6535 echo "${ECHO_T}$was_it_defined" >&6; }
6537 # Check whether using makedev requires defining _OSF_SOURCE
6538 { echo "$as_me:$LINENO: checking for makedev" >&5
6539 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6540 cat >conftest.
$ac_ext <<_ACEOF
6543 cat confdefs.h
>>conftest.
$ac_ext
6544 cat >>conftest.
$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #include <sys/types.h>
6555 rm -f conftest.
$ac_objext conftest
$ac_exeext
6556 if { (ac_try
="$ac_link"
6558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6559 *) ac_try_echo=$ac_try;;
6561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6562 (eval "$ac_link") 2>conftest.er1
6564 grep -v '^ *+' conftest.er1 >conftest.err
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && {
6569 test -z "$ac_c_werror_flag" ||
6570 test ! -s conftest.err
6571 } && test -s conftest$ac_exeext &&
6572 $as_test_x conftest$ac_exeext; then
6573 ac_cv_has_makedev=yes
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_cv_has_makedev=no
6581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6582 conftest$ac_exeext conftest.$ac_ext
6583 if test "$ac_cv_has_makedev" = "no"; then
6584 # we didn't link, try if _OSF_SOURCE will allow us to link
6585 cat >conftest.$ac_ext <<_ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h. */
6592 #define _OSF_SOURCE 1
6593 #include <sys/types.h>
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6607 *) ac_try_echo
=$ac_try;;
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_link") 2>conftest.er1
6612 grep -v '^ *+' conftest.er1
>conftest.err
6614 cat conftest.err
>&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest
$ac_exeext &&
6620 $as_test_x conftest
$ac_exeext; then
6621 ac_cv_has_makedev
=yes
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.
$ac_ext >&5
6626 ac_cv_has_makedev
=no
6629 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6630 conftest
$ac_exeext conftest.
$ac_ext
6631 if test "$ac_cv_has_makedev" = "yes"; then
6633 cat >>confdefs.h
<<\_ACEOF
6634 #define _OSF_SOURCE 1
6639 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6640 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6641 if test "$ac_cv_has_makedev" = "yes"; then
6643 cat >>confdefs.h
<<\_ACEOF
6644 #define HAVE_MAKEDEV 1
6649 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6650 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6651 # defined, but the compiler does not support pragma redefine_extname,
6652 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6653 # structures (such as rlimit64) without declaring them. As a
6654 # work-around, disable LFS on such configurations
6657 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6658 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6659 cat >conftest.
$ac_ext <<_ACEOF
6662 cat confdefs.h
>>conftest.
$ac_ext
6663 cat >>conftest.
$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6666 #define _LARGEFILE_SOURCE 1
6667 #define _FILE_OFFSET_BITS 64
6668 #include <sys/resource.h>
6678 rm -f conftest.
$ac_objext
6679 if { (ac_try
="$ac_compile"
6681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_compile") 2>conftest.er1
6687 grep -v '^ *+' conftest.er1 >conftest.err
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && {
6692 test -z "$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6694 } && test -s conftest.$ac_objext; then
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6705 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6706 if test "$sol_lfs_bug" = "yes"; then
6710 if test "$use_lfs" = "yes"; then
6711 # Two defines needed to enable largefile support on various platforms
6712 # These may affect some typedefs
6714 cat >>confdefs.h <<\_ACEOF
6715 #define _LARGEFILE_SOURCE 1
6719 cat >>confdefs.h <<\_ACEOF
6720 #define _FILE_OFFSET_BITS 64
6725 # Add some code to confdefs.h so that the test for off_t works on SCO
6726 cat >> confdefs.h <<\EOF
6732 # Type availability checks
6733 { echo "$as_me:$LINENO: checking for mode_t" >&5
6734 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6735 if test "${ac_cv_type_mode_t+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 cat >conftest.$ac_ext <<_ACEOF
6741 cat confdefs.h >>conftest.$ac_ext
6742 cat >>conftest.$ac_ext <<_ACEOF
6743 /* end confdefs.h. */
6744 $ac_includes_default
6745 typedef mode_t ac__type_new_;
6749 if ((ac__type_new_ *) 0)
6751 if (sizeof (ac__type_new_))
6757 rm -f conftest.$ac_objext
6758 if { (ac_try="$ac_compile"
6760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6761 *) ac_try_echo
=$ac_try;;
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6766 grep -v '^ *+' conftest.er1
>conftest.err
6768 cat conftest.err
>&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } && {
6771 test -z "$ac_c_werror_flag" ||
6772 test ! -s conftest.err
6773 } && test -s conftest.
$ac_objext; then
6774 ac_cv_type_mode_t
=yes
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.
$ac_ext >&5
6779 ac_cv_type_mode_t
=no
6782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6784 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6785 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6786 if test $ac_cv_type_mode_t = yes; then
6790 cat >>confdefs.h
<<_ACEOF
6796 { echo "$as_me:$LINENO: checking for off_t" >&5
6797 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6798 if test "${ac_cv_type_off_t+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 cat >conftest.
$ac_ext <<_ACEOF
6804 cat confdefs.h
>>conftest.
$ac_ext
6805 cat >>conftest.
$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 typedef off_t ac__type_new_;
6812 if ((ac__type_new_ *) 0)
6814 if (sizeof (ac__type_new_))
6820 rm -f conftest.
$ac_objext
6821 if { (ac_try
="$ac_compile"
6823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6824 *) ac_try_echo=$ac_try;;
6826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6827 (eval "$ac_compile") 2>conftest.er1
6829 grep -v '^ *+' conftest.er1 >conftest.err
6831 cat conftest.err >&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } && {
6834 test -z "$ac_c_werror_flag" ||
6835 test ! -s conftest.err
6836 } && test -s conftest.$ac_objext; then
6837 ac_cv_type_off_t=yes
6839 echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6848 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6849 if test $ac_cv_type_off_t = yes; then
6853 cat >>confdefs.h <<_ACEOF
6854 #define off_t long int
6859 { echo "$as_me:$LINENO: checking for pid_t" >&5
6860 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6861 if test "${ac_cv_type_pid_t+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 $ac_includes_default
6871 typedef pid_t ac__type_new_;
6875 if ((ac__type_new_ *) 0)
6877 if (sizeof (ac__type_new_))
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6887 *) ac_try_echo
=$ac_try;;
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.
$ac_objext; then
6900 ac_cv_type_pid_t
=yes
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.
$ac_ext >&5
6908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6910 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6911 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6912 if test $ac_cv_type_pid_t = yes; then
6916 cat >>confdefs.h
<<_ACEOF
6922 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6923 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6924 if test "${ac_cv_type_signal+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 cat >conftest.
$ac_ext <<_ACEOF
6930 cat confdefs.h
>>conftest.
$ac_ext
6931 cat >>conftest.
$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 #include <sys/types.h>
6939 return *(signal (0, 0)) (0) == 1;
6944 rm -f conftest.
$ac_objext
6945 if { (ac_try
="$ac_compile"
6947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6953 grep -v '^ *+' conftest.er1 >conftest.err
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6961 ac_cv_type_signal=int
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 ac_cv_type_signal=void
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6972 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6974 cat >>confdefs.h <<_ACEOF
6975 #define RETSIGTYPE $ac_cv_type_signal
6979 { echo "$as_me:$LINENO: checking for size_t" >&5
6980 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6981 if test "${ac_cv_type_size_t+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 cat >conftest.$ac_ext <<_ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6990 $ac_includes_default
6991 typedef size_t ac__type_new_;
6995 if ((ac__type_new_ *) 0)
6997 if (sizeof (ac__type_new_))
7003 rm -f conftest.$ac_objext
7004 if { (ac_try="$ac_compile"
7006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7007 *) ac_try_echo
=$ac_try;;
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010 (eval "$ac_compile") 2>conftest.er1
7012 grep -v '^ *+' conftest.er1
>conftest.err
7014 cat conftest.err
>&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } && {
7017 test -z "$ac_c_werror_flag" ||
7018 test ! -s conftest.err
7019 } && test -s conftest.
$ac_objext; then
7020 ac_cv_type_size_t
=yes
7022 echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.
$ac_ext >&5
7025 ac_cv_type_size_t
=no
7028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7030 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7031 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7032 if test $ac_cv_type_size_t = yes; then
7036 cat >>confdefs.h
<<_ACEOF
7037 #define size_t unsigned int
7042 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7043 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7044 if test "${ac_cv_type_uid_t+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 cat >conftest.
$ac_ext <<_ACEOF
7050 cat confdefs.h
>>conftest.
$ac_ext
7051 cat >>conftest.
$ac_ext <<_ACEOF
7052 /* end confdefs.h. */
7053 #include <sys/types.h>
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057 $EGREP "uid_t" >/dev
/null
2>&1; then
7058 ac_cv_type_uid_t
=yes
7065 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7066 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7067 if test $ac_cv_type_uid_t = no
; then
7069 cat >>confdefs.h
<<\_ACEOF
7074 cat >>confdefs.h
<<\_ACEOF
7081 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7082 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7083 if test "${ac_cv_c_uint32_t+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 for ac_type
in 'uint32_t' 'unsigned int' 'unsigned long int' \
7088 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7089 cat >conftest.
$ac_ext <<_ACEOF
7092 cat confdefs.h
>>conftest.
$ac_ext
7093 cat >>conftest.
$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095 $ac_includes_default
7099 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7106 rm -f conftest.
$ac_objext
7107 if { (ac_try
="$ac_compile"
7109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113 (eval "$ac_compile") 2>conftest.er1
7115 grep -v '^ *+' conftest.er1 >conftest.err
7117 cat conftest.err >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } && {
7120 test -z "$ac_c_werror_flag" ||
7121 test ! -s conftest.err
7122 } && test -s conftest.$ac_objext; then
7124 uint32_t) ac_cv_c_uint32_t=yes ;;
7125 *) ac_cv_c_uint32_t=$ac_type ;;
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 test "$ac_cv_c_uint32_t" != no && break
7139 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7140 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7141 case $ac_cv_c_uint32_t in #(
7145 cat >>confdefs.h <<\_ACEOF
7150 cat >>confdefs.h <<_ACEOF
7151 #define uint32_t $ac_cv_c_uint32_t
7157 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7158 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7159 if test "${ac_cv_c_uint64_t+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7164 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7165 cat >conftest.$ac_ext <<_ACEOF
7168 cat confdefs.h >>conftest.$ac_ext
7169 cat >>conftest.$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 $ac_includes_default
7175 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7182 rm -f conftest.$ac_objext
7183 if { (ac_try="$ac_compile"
7185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7186 *) ac_try_echo
=$ac_try;;
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_compile") 2>conftest.er1
7191 grep -v '^ *+' conftest.er1
>conftest.err
7193 cat conftest.err
>&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } && {
7196 test -z "$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7198 } && test -s conftest.
$ac_objext; then
7200 uint64_t
) ac_cv_c_uint64_t
=yes ;;
7201 *) ac_cv_c_uint64_t
=$ac_type ;;
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.
$ac_ext >&5
7211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7212 test "$ac_cv_c_uint64_t" != no
&& break
7215 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7216 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7217 case $ac_cv_c_uint64_t in #(
7221 cat >>confdefs.h
<<\_ACEOF
7226 cat >>confdefs.h
<<_ACEOF
7227 #define uint64_t $ac_cv_c_uint64_t
7233 { echo "$as_me:$LINENO: checking for int32_t" >&5
7234 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7235 if test "${ac_cv_c_int32_t+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 for ac_type
in 'int32_t' 'int' 'long int' \
7240 'long long int' 'short int' 'signed char'; do
7241 cat >conftest.
$ac_ext <<_ACEOF
7244 cat confdefs.h
>>conftest.
$ac_ext
7245 cat >>conftest.
$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7251 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7258 rm -f conftest.
$ac_objext
7259 if { (ac_try
="$ac_compile"
7261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 cat >conftest.$ac_ext <<_ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 $ac_includes_default
7285 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7286 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7297 *) ac_try_echo
=$ac_try;;
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7302 grep -v '^ *+' conftest.er1
>conftest.err
7304 cat conftest.err
>&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.
$ac_objext; then
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.
$ac_ext >&5
7316 int32_t
) ac_cv_c_int32_t
=yes ;;
7317 *) ac_cv_c_int32_t
=$ac_type ;;
7322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.
$ac_ext >&5
7330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7331 test "$ac_cv_c_int32_t" != no
&& break
7334 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7335 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7336 case $ac_cv_c_int32_t in #(
7340 cat >>confdefs.h
<<_ACEOF
7341 #define int32_t $ac_cv_c_int32_t
7347 { echo "$as_me:$LINENO: checking for int64_t" >&5
7348 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7349 if test "${ac_cv_c_int64_t+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 for ac_type
in 'int64_t' 'int' 'long int' \
7354 'long long int' 'short int' 'signed char'; do
7355 cat >conftest.
$ac_ext <<_ACEOF
7358 cat confdefs.h
>>conftest.
$ac_ext
7359 cat >>conftest.
$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 $ac_includes_default
7365 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7372 rm -f conftest.
$ac_objext
7373 if { (ac_try
="$ac_compile"
7375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7376 *) ac_try_echo=$ac_try;;
7378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7379 (eval "$ac_compile") 2>conftest.er1
7381 grep -v '^ *+' conftest.er1 >conftest.err
7383 cat conftest.err >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } && {
7386 test -z "$ac_c_werror_flag" ||
7387 test ! -s conftest.err
7388 } && test -s conftest.$ac_objext; then
7389 cat >conftest.$ac_ext <<_ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 $ac_includes_default
7399 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7400 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7407 rm -f conftest.$ac_objext
7408 if { (ac_try="$ac_compile"
7410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7411 *) ac_try_echo
=$ac_try;;
7413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7416 grep -v '^ *+' conftest.er1
>conftest.err
7418 cat conftest.err
>&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.
$ac_objext; then
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.
$ac_ext >&5
7430 int64_t
) ac_cv_c_int64_t
=yes ;;
7431 *) ac_cv_c_int64_t
=$ac_type ;;
7436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.
$ac_ext >&5
7444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7445 test "$ac_cv_c_int64_t" != no
&& break
7448 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7449 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7450 case $ac_cv_c_int64_t in #(
7454 cat >>confdefs.h
<<_ACEOF
7455 #define int64_t $ac_cv_c_int64_t
7460 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7461 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7462 if test "${ac_cv_type_ssize_t+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 cat >conftest.
$ac_ext <<_ACEOF
7468 cat confdefs.h
>>conftest.
$ac_ext
7469 cat >>conftest.
$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 $ac_includes_default
7472 typedef ssize_t ac__type_new_;
7476 if ((ac__type_new_ *) 0)
7478 if (sizeof (ac__type_new_))
7484 rm -f conftest.
$ac_objext
7485 if { (ac_try
="$ac_compile"
7487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7488 *) ac_try_echo=$ac_try;;
7490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7491 (eval "$ac_compile") 2>conftest.er1
7493 grep -v '^ *+' conftest.er1 >conftest.err
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest.$ac_objext; then
7501 ac_cv_type_ssize_t=yes
7503 echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7506 ac_cv_type_ssize_t=no
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7512 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7513 if test $ac_cv_type_ssize_t = yes; then
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_SSIZE_T 1
7522 # Sizes of various common basic types
7523 # ANSI C requires sizeof(char) == 1, so no need to check it
7524 { echo "$as_me:$LINENO: checking for int" >&5
7525 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7526 if test "${ac_cv_type_int+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 cat >conftest.$ac_ext <<_ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 $ac_includes_default
7536 typedef int ac__type_new_;
7540 if ((ac__type_new_ *) 0)
7542 if (sizeof (ac__type_new_))
7548 rm -f conftest.$ac_objext
7549 if { (ac_try="$ac_compile"
7551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7552 *) ac_try_echo
=$ac_try;;
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_compile") 2>conftest.er1
7557 grep -v '^ *+' conftest.er1
>conftest.err
7559 cat conftest.err
>&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && {
7562 test -z "$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 } && test -s conftest.
$ac_objext; then
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.
$ac_ext >&5
7573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7575 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7576 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7578 # The cast to long int works around a bug in the HP C Compiler
7579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7581 # This bug is HP SR number 8606223364.
7582 { echo "$as_me:$LINENO: checking size of int" >&5
7583 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7584 if test "${ac_cv_sizeof_int+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 if test "$cross_compiling" = yes; then
7588 # Depending upon the size, compute the lo and hi bounds.
7589 cat >conftest.
$ac_ext <<_ACEOF
7592 cat confdefs.h
>>conftest.
$ac_ext
7593 cat >>conftest.
$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7596 typedef int ac__type_sizeof_;
7600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7607 rm -f conftest.
$ac_objext
7608 if { (ac_try
="$ac_compile"
7610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_compile") 2>conftest.er1
7616 grep -v '^ *+' conftest.er1 >conftest.err
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_c_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest.$ac_objext; then
7626 cat >conftest.$ac_ext <<_ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h. */
7632 $ac_includes_default
7633 typedef int ac__type_sizeof_;
7637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7644 rm -f conftest.$ac_objext
7645 if { (ac_try="$ac_compile"
7647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7648 *) ac_try_echo
=$ac_try;;
7650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_compile") 2>conftest.er1
7653 grep -v '^ *+' conftest.er1
>conftest.err
7655 cat conftest.err
>&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest.
$ac_objext; then
7661 ac_hi
=$ac_mid; break
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.
$ac_ext >&5
7666 ac_lo
=`expr $ac_mid + 1`
7667 if test $ac_lo -le $ac_mid; then
7671 ac_mid
=`expr 2 '*' $ac_mid + 1`
7674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.
$ac_ext >&5
7680 cat >conftest.
$ac_ext <<_ACEOF
7683 cat confdefs.h
>>conftest.
$ac_ext
7684 cat >>conftest.
$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7686 $ac_includes_default
7687 typedef int ac__type_sizeof_;
7691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7698 rm -f conftest.
$ac_objext
7699 if { (ac_try
="$ac_compile"
7701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_compile") 2>conftest.er1
7707 grep -v '^ *+' conftest.er1 >conftest.err
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest.$ac_objext; then
7717 cat >conftest.$ac_ext <<_ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 $ac_includes_default
7724 typedef int ac__type_sizeof_;
7728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7735 rm -f conftest.$ac_objext
7736 if { (ac_try="$ac_compile"
7738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7739 *) ac_try_echo
=$ac_try;;
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_compile") 2>conftest.er1
7744 grep -v '^ *+' conftest.er1
>conftest.err
7746 cat conftest.err
>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_c_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest.
$ac_objext; then
7752 ac_lo
=$ac_mid; break
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.
$ac_ext >&5
7757 ac_hi
=`expr '(' $ac_mid ')' - 1`
7758 if test $ac_mid -le $ac_hi; then
7762 ac_mid
=`expr 2 '*' $ac_mid`
7765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.
$ac_ext >&5
7774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7778 # Binary search between lo and hi bounds.
7779 while test "x$ac_lo" != "x$ac_hi"; do
7780 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7781 cat >conftest.
$ac_ext <<_ACEOF
7784 cat confdefs.h
>>conftest.
$ac_ext
7785 cat >>conftest.
$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787 $ac_includes_default
7788 typedef int ac__type_sizeof_;
7792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7799 rm -f conftest.
$ac_objext
7800 if { (ac_try
="$ac_compile"
7802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compile") 2>conftest.er1
7808 grep -v '^ *+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7821 ac_lo=`expr '(' $ac_mid ')' + 1`
7824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 ?*) ac_cv_sizeof_int=$ac_lo;;
7828 '') if test "$ac_cv_type_int" = yes; then
7829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7830 See \`config.log
' for more details." >&5
7831 echo "$as_me: error: cannot compute sizeof (int)
7832 See \`config.log' for more details.
" >&2;}
7833 { (exit 77); exit 77; }; }
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 $ac_includes_default
7846 typedef int ac__type_sizeof_;
7847 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7848 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7855 FILE *f = fopen ("conftest.val
", "w
");
7858 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7860 long int i = longval ();
7861 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7863 fprintf (f, "%ld
\n", i);
7867 unsigned long int i = ulongval ();
7868 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7870 fprintf (f, "%lu
\n", i);
7872 return ferror (f) || fclose (f) != 0;
7878 rm -f conftest$ac_exeext
7879 if { (ac_try="$ac_link"
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7885 (eval "$ac_link") 2>&5
7887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7889 { (case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_try") 2>&5
7896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7897 (exit $ac_status); }; }; then
7898 ac_cv_sizeof_int=`cat conftest.val`
7900 echo "$as_me: program exited with status
$ac_status" >&5
7901 echo "$as_me: failed program was
:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7905 if test "$ac_cv_type_int" = yes; then
7906 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
7907 See \
`config.log' for more details." >&5
7908 echo "$as_me: error: cannot compute sizeof (int)
7909 See \`config.log
' for more details." >&2;}
7910 { (exit 77); exit 77; }; }
7915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7919 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7920 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7924 cat >>confdefs.h <<_ACEOF
7925 #define SIZEOF_INT $ac_cv_sizeof_int
7929 { echo "$as_me:$LINENO: checking for long" >&5
7930 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7931 if test "${ac_cv_type_long+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 cat >conftest.$ac_ext <<_ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7941 typedef long ac__type_new_;
7945 if ((ac__type_new_ *) 0)
7947 if (sizeof (ac__type_new_))
7953 rm -f conftest.$ac_objext
7954 if { (ac_try="$ac_compile"
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960 (eval "$ac_compile") 2>conftest.er1
7962 grep -v '^
*+' conftest.er1 >conftest.err
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } && {
7967 test -z "$ac_c_werror_flag" ||
7968 test ! -s conftest.err
7969 } && test -s conftest.$ac_objext; then
7972 echo "$as_me: failed program was:" >&5
7973 sed 's
/^
/|
/' conftest.$ac_ext >&5
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7980 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7981 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7983 # The cast to long int works around a bug in the HP C Compiler
7984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7986 # This bug is HP SR number 8606223364.
7987 { echo "$as_me:$LINENO: checking size of long" >&5
7988 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7989 if test "${ac_cv_sizeof_long+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 if test "$cross_compiling" = yes; then
7993 # Depending upon the size, compute the lo and hi bounds.
7994 cat >conftest.
$ac_ext <<_ACEOF
7997 cat confdefs.h
>>conftest.
$ac_ext
7998 cat >>conftest.
$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 $ac_includes_default
8001 typedef long ac__type_sizeof_;
8005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8012 rm -f conftest.
$ac_objext
8013 if { (ac_try
="$ac_compile"
8015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 $ac_includes_default
8038 typedef long ac__type_sizeof_;
8042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8053 *) ac_try_echo
=$ac_try;;
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8058 grep -v '^ *+' conftest.er1
>conftest.err
8060 cat conftest.err
>&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest.
$ac_objext; then
8066 ac_hi
=$ac_mid; break
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.
$ac_ext >&5
8071 ac_lo
=`expr $ac_mid + 1`
8072 if test $ac_lo -le $ac_mid; then
8076 ac_mid
=`expr 2 '*' $ac_mid + 1`
8079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8082 echo "$as_me: failed program was:" >&5
8083 sed 's/^/| /' conftest.
$ac_ext >&5
8085 cat >conftest.
$ac_ext <<_ACEOF
8088 cat confdefs.h
>>conftest.
$ac_ext
8089 cat >>conftest.
$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 $ac_includes_default
8092 typedef long ac__type_sizeof_;
8096 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8103 rm -f conftest.
$ac_objext
8104 if { (ac_try
="$ac_compile"
8106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.$ac_objext; then
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8129 typedef long ac__type_sizeof_;
8133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8144 *) ac_try_echo
=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8149 grep -v '^ *+' conftest.er1
>conftest.err
8151 cat conftest.err
>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.
$ac_objext; then
8157 ac_lo
=$ac_mid; break
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.
$ac_ext >&5
8162 ac_hi
=`expr '(' $ac_mid ')' - 1`
8163 if test $ac_mid -le $ac_hi; then
8167 ac_mid
=`expr 2 '*' $ac_mid`
8170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.
$ac_ext >&5
8179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8183 # Binary search between lo and hi bounds.
8184 while test "x$ac_lo" != "x$ac_hi"; do
8185 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8186 cat >conftest.
$ac_ext <<_ACEOF
8189 cat confdefs.h
>>conftest.
$ac_ext
8190 cat >>conftest.
$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 $ac_includes_default
8193 typedef long ac__type_sizeof_;
8197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8204 rm -f conftest.
$ac_objext
8205 if { (ac_try
="$ac_compile"
8207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8213 grep -v '^ *+' conftest.er1 >conftest.err
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_lo=`expr '(' $ac_mid ')' + 1`
8229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 ?*) ac_cv_sizeof_long=$ac_lo;;
8233 '') if test "$ac_cv_type_long" = yes; then
8234 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8235 See \`config.log
' for more details." >&5
8236 echo "$as_me: error: cannot compute sizeof (long)
8237 See \`config.log' for more details.
" >&2;}
8238 { (exit 77); exit 77; }; }
8244 cat >conftest.$ac_ext <<_ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 $ac_includes_default
8251 typedef long ac__type_sizeof_;
8252 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8253 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8260 FILE *f = fopen ("conftest.val
", "w
");
8263 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8265 long int i = longval ();
8266 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8268 fprintf (f, "%ld
\n", i);
8272 unsigned long int i = ulongval ();
8273 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8275 fprintf (f, "%lu
\n", i);
8277 return ferror (f) || fclose (f) != 0;
8283 rm -f conftest$ac_exeext
8284 if { (ac_try="$ac_link"
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_link") 2>&5
8292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8294 { (case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_try") 2>&5
8301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8302 (exit $ac_status); }; }; then
8303 ac_cv_sizeof_long=`cat conftest.val`
8305 echo "$as_me: program exited with status
$ac_status" >&5
8306 echo "$as_me: failed program was
:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8310 if test "$ac_cv_type_long" = yes; then
8311 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8312 See \
`config.log' for more details." >&5
8313 echo "$as_me: error: cannot compute sizeof (long)
8314 See \`config.log
' for more details." >&2;}
8315 { (exit 77); exit 77; }; }
8320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8324 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8325 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8329 cat >>confdefs.h <<_ACEOF
8330 #define SIZEOF_LONG $ac_cv_sizeof_long
8334 { echo "$as_me:$LINENO: checking for void *" >&5
8335 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8336 if test "${ac_cv_type_void_p+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 cat >conftest.$ac_ext <<_ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8346 typedef void * ac__type_new_;
8350 if ((ac__type_new_ *) 0)
8352 if (sizeof (ac__type_new_))
8358 rm -f conftest.$ac_objext
8359 if { (ac_try="$ac_compile"
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_compile") 2>conftest.er1
8367 grep -v '^
*+' conftest.er1 >conftest.err
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && {
8372 test -z "$ac_c_werror_flag" ||
8373 test ! -s conftest.err
8374 } && test -s conftest.$ac_objext; then
8375 ac_cv_type_void_p=yes
8377 echo "$as_me: failed program was:" >&5
8378 sed 's
/^
/|
/' conftest.$ac_ext >&5
8380 ac_cv_type_void_p=no
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8386 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8388 # The cast to long int works around a bug in the HP C Compiler
8389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8391 # This bug is HP SR number 8606223364.
8392 { echo "$as_me:$LINENO: checking size of void *" >&5
8393 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8394 if test "${ac_cv_sizeof_void_p+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 if test "$cross_compiling" = yes; then
8398 # Depending upon the size, compute the lo and hi bounds.
8399 cat >conftest.
$ac_ext <<_ACEOF
8402 cat confdefs.h
>>conftest.
$ac_ext
8403 cat >>conftest.
$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 typedef void * ac__type_sizeof_;
8410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8417 rm -f conftest.
$ac_objext
8418 if { (ac_try
="$ac_compile"
8420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_compile") 2>conftest.er1
8426 grep -v '^ *+' conftest.er1 >conftest.err
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && {
8431 test -z "$ac_c_werror_flag" ||
8432 test ! -s conftest.err
8433 } && test -s conftest.$ac_objext; then
8436 cat >conftest.$ac_ext <<_ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8443 typedef void * ac__type_sizeof_;
8447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8454 rm -f conftest.$ac_objext
8455 if { (ac_try="$ac_compile"
8457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8458 *) ac_try_echo
=$ac_try;;
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_compile") 2>conftest.er1
8463 grep -v '^ *+' conftest.er1
>conftest.err
8465 cat conftest.err
>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_c_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest.
$ac_objext; then
8471 ac_hi
=$ac_mid; break
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.
$ac_ext >&5
8476 ac_lo
=`expr $ac_mid + 1`
8477 if test $ac_lo -le $ac_mid; then
8481 ac_mid
=`expr 2 '*' $ac_mid + 1`
8484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.
$ac_ext >&5
8490 cat >conftest.
$ac_ext <<_ACEOF
8493 cat confdefs.h
>>conftest.
$ac_ext
8494 cat >>conftest.
$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 $ac_includes_default
8497 typedef void * ac__type_sizeof_;
8501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8508 rm -f conftest.
$ac_objext
8509 if { (ac_try
="$ac_compile"
8511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8517 grep -v '^ *+' conftest.er1 >conftest.err
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.$ac_objext; then
8527 cat >conftest.$ac_ext <<_ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533 $ac_includes_default
8534 typedef void * ac__type_sizeof_;
8538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8545 rm -f conftest.$ac_objext
8546 if { (ac_try="$ac_compile"
8548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8549 *) ac_try_echo
=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1
>conftest.err
8556 cat conftest.err
>&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.
$ac_objext; then
8562 ac_lo
=$ac_mid; break
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.
$ac_ext >&5
8567 ac_hi
=`expr '(' $ac_mid ')' - 1`
8568 if test $ac_mid -le $ac_hi; then
8572 ac_mid
=`expr 2 '*' $ac_mid`
8575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.
$ac_ext >&5
8584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8588 # Binary search between lo and hi bounds.
8589 while test "x$ac_lo" != "x$ac_hi"; do
8590 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8591 cat >conftest.
$ac_ext <<_ACEOF
8594 cat confdefs.h
>>conftest.
$ac_ext
8595 cat >>conftest.
$ac_ext <<_ACEOF
8596 /* end confdefs.h. */
8597 $ac_includes_default
8598 typedef void * ac__type_sizeof_;
8602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8609 rm -f conftest.
$ac_objext
8610 if { (ac_try
="$ac_compile"
8612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_lo=`expr '(' $ac_mid ')' + 1`
8634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8638 '') if test "$ac_cv_type_void_p" = yes; then
8639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8640 See \`config.log
' for more details." >&5
8641 echo "$as_me: error: cannot compute sizeof (void *)
8642 See \`config.log' for more details.
" >&2;}
8643 { (exit 77); exit 77; }; }
8645 ac_cv_sizeof_void_p=0
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 $ac_includes_default
8656 typedef void * ac__type_sizeof_;
8657 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8658 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8665 FILE *f = fopen ("conftest.val
", "w
");
8668 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8670 long int i = longval ();
8671 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8673 fprintf (f, "%ld
\n", i);
8677 unsigned long int i = ulongval ();
8678 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8680 fprintf (f, "%lu
\n", i);
8682 return ferror (f) || fclose (f) != 0;
8688 rm -f conftest$ac_exeext
8689 if { (ac_try="$ac_link"
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_link") 2>&5
8697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8699 { (case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_try") 2>&5
8706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 ac_cv_sizeof_void_p=`cat conftest.val`
8710 echo "$as_me: program exited with status
$ac_status" >&5
8711 echo "$as_me: failed program was
:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8715 if test "$ac_cv_type_void_p" = yes; then
8716 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8717 See \
`config.log' for more details." >&5
8718 echo "$as_me: error: cannot compute sizeof (void *)
8719 See \`config.log
' for more details." >&2;}
8720 { (exit 77); exit 77; }; }
8722 ac_cv_sizeof_void_p=0
8725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8729 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8730 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8734 cat >>confdefs.h <<_ACEOF
8735 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8739 { echo "$as_me:$LINENO: checking for short" >&5
8740 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8741 if test "${ac_cv_type_short+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 cat >conftest.$ac_ext <<_ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 typedef short ac__type_new_;
8755 if ((ac__type_new_ *) 0)
8757 if (sizeof (ac__type_new_))
8763 rm -f conftest.$ac_objext
8764 if { (ac_try="$ac_compile"
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_compile") 2>conftest.er1
8772 grep -v '^
*+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest.$ac_objext; then
8780 ac_cv_type_short=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's
/^
/|
/' conftest.$ac_ext >&5
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8791 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8793 # The cast to long int works around a bug in the HP C Compiler
8794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8796 # This bug is HP SR number 8606223364.
8797 { echo "$as_me:$LINENO: checking size of short" >&5
8798 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8799 if test "${ac_cv_sizeof_short+set}" = set; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8802 if test "$cross_compiling" = yes; then
8803 # Depending upon the size, compute the lo and hi bounds.
8804 cat >conftest.
$ac_ext <<_ACEOF
8807 cat confdefs.h
>>conftest.
$ac_ext
8808 cat >>conftest.
$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 $ac_includes_default
8811 typedef short ac__type_sizeof_;
8815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8822 rm -f conftest.
$ac_objext
8823 if { (ac_try
="$ac_compile"
8825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8831 grep -v '^ *+' conftest.er1 >conftest.err
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 $ac_includes_default
8848 typedef short ac__type_sizeof_;
8852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8859 rm -f conftest.$ac_objext
8860 if { (ac_try="$ac_compile"
8862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8863 *) ac_try_echo
=$ac_try;;
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_compile") 2>conftest.er1
8868 grep -v '^ *+' conftest.er1
>conftest.err
8870 cat conftest.err
>&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } && {
8873 test -z "$ac_c_werror_flag" ||
8874 test ! -s conftest.err
8875 } && test -s conftest.
$ac_objext; then
8876 ac_hi
=$ac_mid; break
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.
$ac_ext >&5
8881 ac_lo
=`expr $ac_mid + 1`
8882 if test $ac_lo -le $ac_mid; then
8886 ac_mid
=`expr 2 '*' $ac_mid + 1`
8889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.
$ac_ext >&5
8895 cat >conftest.
$ac_ext <<_ACEOF
8898 cat confdefs.h
>>conftest.
$ac_ext
8899 cat >>conftest.
$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 $ac_includes_default
8902 typedef short ac__type_sizeof_;
8906 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8913 rm -f conftest.
$ac_objext
8914 if { (ac_try
="$ac_compile"
8916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1 >conftest.err
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.$ac_objext; then
8932 cat >conftest.$ac_ext <<_ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h. */
8938 $ac_includes_default
8939 typedef short ac__type_sizeof_;
8943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8950 rm -f conftest.$ac_objext
8951 if { (ac_try="$ac_compile"
8953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8954 *) ac_try_echo
=$ac_try;;
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_compile") 2>conftest.er1
8959 grep -v '^ *+' conftest.er1
>conftest.err
8961 cat conftest.err
>&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } && {
8964 test -z "$ac_c_werror_flag" ||
8965 test ! -s conftest.err
8966 } && test -s conftest.
$ac_objext; then
8967 ac_lo
=$ac_mid; break
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.
$ac_ext >&5
8972 ac_hi
=`expr '(' $ac_mid ')' - 1`
8973 if test $ac_mid -le $ac_hi; then
8977 ac_mid
=`expr 2 '*' $ac_mid`
8980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.
$ac_ext >&5
8989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8993 # Binary search between lo and hi bounds.
8994 while test "x$ac_lo" != "x$ac_hi"; do
8995 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8996 cat >conftest.
$ac_ext <<_ACEOF
8999 cat confdefs.h
>>conftest.
$ac_ext
9000 cat >>conftest.
$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9002 $ac_includes_default
9003 typedef short ac__type_sizeof_;
9007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9014 rm -f conftest.
$ac_objext
9015 if { (ac_try
="$ac_compile"
9017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9018 *) ac_try_echo=$ac_try;;
9020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9021 (eval "$ac_compile") 2>conftest.er1
9023 grep -v '^ *+' conftest.er1 >conftest.err
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && {
9028 test -z "$ac_c_werror_flag" ||
9029 test ! -s conftest.err
9030 } && test -s conftest.$ac_objext; then
9033 echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9036 ac_lo=`expr '(' $ac_mid ')' + 1`
9039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 ?*) ac_cv_sizeof_short=$ac_lo;;
9043 '') if test "$ac_cv_type_short" = yes; then
9044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9045 See \`config.log
' for more details." >&5
9046 echo "$as_me: error: cannot compute sizeof (short)
9047 See \`config.log' for more details.
" >&2;}
9048 { (exit 77); exit 77; }; }
9050 ac_cv_sizeof_short=0
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 typedef short ac__type_sizeof_;
9062 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9063 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9070 FILE *f = fopen ("conftest.val
", "w
");
9073 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9075 long int i = longval ();
9076 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9078 fprintf (f, "%ld
\n", i);
9082 unsigned long int i = ulongval ();
9083 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9085 fprintf (f, "%lu
\n", i);
9087 return ferror (f) || fclose (f) != 0;
9093 rm -f conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_link") 2>&5
9102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9104 { (case "(($ac_try" in
9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106 *) ac_try_echo=$ac_try;;
9108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9109 (eval "$ac_try") 2>&5
9111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_cv_sizeof_short=`cat conftest.val`
9115 echo "$as_me: program exited with status
$ac_status" >&5
9116 echo "$as_me: failed program was
:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9120 if test "$ac_cv_type_short" = yes; then
9121 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9122 See \
`config.log' for more details." >&5
9123 echo "$as_me: error: cannot compute sizeof (short)
9124 See \`config.log
' for more details." >&2;}
9125 { (exit 77); exit 77; }; }
9127 ac_cv_sizeof_short=0
9130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9134 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9135 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9139 cat >>confdefs.h <<_ACEOF
9140 #define SIZEOF_SHORT $ac_cv_sizeof_short
9144 { echo "$as_me:$LINENO: checking for float" >&5
9145 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9146 if test "${ac_cv_type_float+set}" = set; then
9147 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 cat >conftest.$ac_ext <<_ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 $ac_includes_default
9156 typedef float ac__type_new_;
9160 if ((ac__type_new_ *) 0)
9162 if (sizeof (ac__type_new_))
9168 rm -f conftest.$ac_objext
9169 if { (ac_try="$ac_compile"
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9177 grep -v '^
*+' conftest.er1 >conftest.err
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest.$ac_objext; then
9185 ac_cv_type_float=yes
9187 echo "$as_me: failed program was:" >&5
9188 sed 's
/^
/|
/' conftest.$ac_ext >&5
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9196 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9198 # The cast to long int works around a bug in the HP C Compiler
9199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9201 # This bug is HP SR number 8606223364.
9202 { echo "$as_me:$LINENO: checking size of float" >&5
9203 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9204 if test "${ac_cv_sizeof_float+set}" = set; then
9205 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 if test "$cross_compiling" = yes; then
9208 # Depending upon the size, compute the lo and hi bounds.
9209 cat >conftest.
$ac_ext <<_ACEOF
9212 cat confdefs.h
>>conftest.
$ac_ext
9213 cat >>conftest.
$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 $ac_includes_default
9216 typedef float ac__type_sizeof_;
9220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9227 rm -f conftest.
$ac_objext
9228 if { (ac_try
="$ac_compile"
9230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9246 cat >conftest.$ac_ext <<_ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 $ac_includes_default
9253 typedef float ac__type_sizeof_;
9257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9264 rm -f conftest.$ac_objext
9265 if { (ac_try="$ac_compile"
9267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9268 *) ac_try_echo
=$ac_try;;
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_compile") 2>conftest.er1
9273 grep -v '^ *+' conftest.er1
>conftest.err
9275 cat conftest.err
>&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_c_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest.
$ac_objext; then
9281 ac_hi
=$ac_mid; break
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.
$ac_ext >&5
9286 ac_lo
=`expr $ac_mid + 1`
9287 if test $ac_lo -le $ac_mid; then
9291 ac_mid
=`expr 2 '*' $ac_mid + 1`
9294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.
$ac_ext >&5
9300 cat >conftest.
$ac_ext <<_ACEOF
9303 cat confdefs.h
>>conftest.
$ac_ext
9304 cat >>conftest.
$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9306 $ac_includes_default
9307 typedef float ac__type_sizeof_;
9311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9318 rm -f conftest.
$ac_objext
9319 if { (ac_try
="$ac_compile"
9321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9322 *) ac_try_echo=$ac_try;;
9324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9325 (eval "$ac_compile") 2>conftest.er1
9327 grep -v '^ *+' conftest.er1 >conftest.err
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } && {
9332 test -z "$ac_c_werror_flag" ||
9333 test ! -s conftest.err
9334 } && test -s conftest.$ac_objext; then
9337 cat >conftest.$ac_ext <<_ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 $ac_includes_default
9344 typedef float ac__type_sizeof_;
9348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9355 rm -f conftest.$ac_objext
9356 if { (ac_try="$ac_compile"
9358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9359 *) ac_try_echo
=$ac_try;;
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_compile") 2>conftest.er1
9364 grep -v '^ *+' conftest.er1
>conftest.err
9366 cat conftest.err
>&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } && {
9369 test -z "$ac_c_werror_flag" ||
9370 test ! -s conftest.err
9371 } && test -s conftest.
$ac_objext; then
9372 ac_lo
=$ac_mid; break
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.
$ac_ext >&5
9377 ac_hi
=`expr '(' $ac_mid ')' - 1`
9378 if test $ac_mid -le $ac_hi; then
9382 ac_mid
=`expr 2 '*' $ac_mid`
9385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.
$ac_ext >&5
9394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9398 # Binary search between lo and hi bounds.
9399 while test "x$ac_lo" != "x$ac_hi"; do
9400 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9401 cat >conftest.
$ac_ext <<_ACEOF
9404 cat confdefs.h
>>conftest.
$ac_ext
9405 cat >>conftest.
$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 $ac_includes_default
9408 typedef float ac__type_sizeof_;
9412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9419 rm -f conftest.
$ac_objext
9420 if { (ac_try
="$ac_compile"
9422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_compile") 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } && {
9433 test -z "$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9435 } && test -s conftest.$ac_objext; then
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_lo=`expr '(' $ac_mid ')' + 1`
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 ?*) ac_cv_sizeof_float=$ac_lo;;
9448 '') if test "$ac_cv_type_float" = yes; then
9449 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9450 See \`config.log
' for more details." >&5
9451 echo "$as_me: error: cannot compute sizeof (float)
9452 See \`config.log' for more details.
" >&2;}
9453 { (exit 77); exit 77; }; }
9455 ac_cv_sizeof_float=0
9459 cat >conftest.$ac_ext <<_ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 $ac_includes_default
9466 typedef float ac__type_sizeof_;
9467 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9468 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9475 FILE *f = fopen ("conftest.val
", "w
");
9478 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9480 long int i = longval ();
9481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9483 fprintf (f, "%ld
\n", i);
9487 unsigned long int i = ulongval ();
9488 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9490 fprintf (f, "%lu
\n", i);
9492 return ferror (f) || fclose (f) != 0;
9498 rm -f conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_link") 2>&5
9507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9509 { (case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_try") 2>&5
9516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_cv_sizeof_float=`cat conftest.val`
9520 echo "$as_me: program exited with status
$ac_status" >&5
9521 echo "$as_me: failed program was
:" >&5
9522 sed 's/^/| /' conftest.$ac_ext >&5
9525 if test "$ac_cv_type_float" = yes; then
9526 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9527 See \
`config.log' for more details." >&5
9528 echo "$as_me: error: cannot compute sizeof (float)
9529 See \`config.log
' for more details." >&2;}
9530 { (exit 77); exit 77; }; }
9532 ac_cv_sizeof_float=0
9535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9539 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9540 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9544 cat >>confdefs.h <<_ACEOF
9545 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9549 { echo "$as_me:$LINENO: checking for double" >&5
9550 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9551 if test "${ac_cv_type_double+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 cat >conftest.$ac_ext <<_ACEOF
9557 cat confdefs.h >>conftest.$ac_ext
9558 cat >>conftest.$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9560 $ac_includes_default
9561 typedef double ac__type_new_;
9565 if ((ac__type_new_ *) 0)
9567 if (sizeof (ac__type_new_))
9573 rm -f conftest.$ac_objext
9574 if { (ac_try="$ac_compile"
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_compile") 2>conftest.er1
9582 grep -v '^
*+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } && {
9587 test -z "$ac_c_werror_flag" ||
9588 test ! -s conftest.err
9589 } && test -s conftest.$ac_objext; then
9590 ac_cv_type_double=yes
9592 echo "$as_me: failed program was:" >&5
9593 sed 's
/^
/|
/' conftest.$ac_ext >&5
9595 ac_cv_type_double=no
9598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9601 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9603 # The cast to long int works around a bug in the HP C Compiler
9604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9606 # This bug is HP SR number 8606223364.
9607 { echo "$as_me:$LINENO: checking size of double" >&5
9608 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9609 if test "${ac_cv_sizeof_double+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 if test "$cross_compiling" = yes; then
9613 # Depending upon the size, compute the lo and hi bounds.
9614 cat >conftest.
$ac_ext <<_ACEOF
9617 cat confdefs.h
>>conftest.
$ac_ext
9618 cat >>conftest.
$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 $ac_includes_default
9621 typedef double ac__type_sizeof_;
9625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9632 rm -f conftest.
$ac_objext
9633 if { (ac_try
="$ac_compile"
9635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_compile") 2>conftest.er1
9641 grep -v '^ *+' conftest.er1 >conftest.err
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && {
9646 test -z "$ac_c_werror_flag" ||
9647 test ! -s conftest.err
9648 } && test -s conftest.$ac_objext; then
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 $ac_includes_default
9658 typedef double ac__type_sizeof_;
9662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9669 rm -f conftest.$ac_objext
9670 if { (ac_try="$ac_compile"
9672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9673 *) ac_try_echo
=$ac_try;;
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_compile") 2>conftest.er1
9678 grep -v '^ *+' conftest.er1
>conftest.err
9680 cat conftest.err
>&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_c_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest.
$ac_objext; then
9686 ac_hi
=$ac_mid; break
9688 echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.
$ac_ext >&5
9691 ac_lo
=`expr $ac_mid + 1`
9692 if test $ac_lo -le $ac_mid; then
9696 ac_mid
=`expr 2 '*' $ac_mid + 1`
9699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.
$ac_ext >&5
9705 cat >conftest.
$ac_ext <<_ACEOF
9708 cat confdefs.h
>>conftest.
$ac_ext
9709 cat >>conftest.
$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9711 $ac_includes_default
9712 typedef double ac__type_sizeof_;
9716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9723 rm -f conftest.
$ac_objext
9724 if { (ac_try
="$ac_compile"
9726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_compile") 2>conftest.er1
9732 grep -v '^ *+' conftest.er1 >conftest.err
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } && {
9737 test -z "$ac_c_werror_flag" ||
9738 test ! -s conftest.err
9739 } && test -s conftest.$ac_objext; then
9742 cat >conftest.$ac_ext <<_ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 $ac_includes_default
9749 typedef double ac__type_sizeof_;
9753 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9760 rm -f conftest.$ac_objext
9761 if { (ac_try="$ac_compile"
9763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9764 *) ac_try_echo
=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_compile") 2>conftest.er1
9769 grep -v '^ *+' conftest.er1
>conftest.err
9771 cat conftest.err
>&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest.
$ac_objext; then
9777 ac_lo
=$ac_mid; break
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.
$ac_ext >&5
9782 ac_hi
=`expr '(' $ac_mid ')' - 1`
9783 if test $ac_mid -le $ac_hi; then
9787 ac_mid
=`expr 2 '*' $ac_mid`
9790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.
$ac_ext >&5
9799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9803 # Binary search between lo and hi bounds.
9804 while test "x$ac_lo" != "x$ac_hi"; do
9805 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9806 cat >conftest.
$ac_ext <<_ACEOF
9809 cat confdefs.h
>>conftest.
$ac_ext
9810 cat >>conftest.
$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 $ac_includes_default
9813 typedef double ac__type_sizeof_;
9817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9824 rm -f conftest.
$ac_objext
9825 if { (ac_try
="$ac_compile"
9827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_compile") 2>conftest.er1
9833 grep -v '^ *+' conftest.er1 >conftest.err
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_c_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest.$ac_objext; then
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_lo=`expr '(' $ac_mid ')' + 1`
9849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852 ?*) ac_cv_sizeof_double=$ac_lo;;
9853 '') if test "$ac_cv_type_double" = yes; then
9854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9855 See \`config.log
' for more details." >&5
9856 echo "$as_me: error: cannot compute sizeof (double)
9857 See \`config.log' for more details.
" >&2;}
9858 { (exit 77); exit 77; }; }
9860 ac_cv_sizeof_double=0
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 $ac_includes_default
9871 typedef double ac__type_sizeof_;
9872 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9873 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9880 FILE *f = fopen ("conftest.val
", "w
");
9883 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9885 long int i = longval ();
9886 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9888 fprintf (f, "%ld
\n", i);
9892 unsigned long int i = ulongval ();
9893 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9895 fprintf (f, "%lu
\n", i);
9897 return ferror (f) || fclose (f) != 0;
9903 rm -f conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907 *) ac_try_echo=$ac_try;;
9909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>&5
9912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9914 { (case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_try") 2>&5
9921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_sizeof_double=`cat conftest.val`
9925 echo "$as_me: program exited with status
$ac_status" >&5
9926 echo "$as_me: failed program was
:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9930 if test "$ac_cv_type_double" = yes; then
9931 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9932 See \
`config.log' for more details." >&5
9933 echo "$as_me: error: cannot compute sizeof (double)
9934 See \`config.log
' for more details." >&2;}
9935 { (exit 77); exit 77; }; }
9937 ac_cv_sizeof_double=0
9940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9944 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9945 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9949 cat >>confdefs.h <<_ACEOF
9950 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9954 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9955 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9956 if test "${ac_cv_type_fpos_t+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 cat >conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 $ac_includes_default
9966 typedef fpos_t ac__type_new_;
9970 if ((ac__type_new_ *) 0)
9972 if (sizeof (ac__type_new_))
9978 rm -f conftest.$ac_objext
9979 if { (ac_try="$ac_compile"
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_compile") 2>conftest.er1
9987 grep -v '^
*+' conftest.er1 >conftest.err
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest.$ac_objext; then
9995 ac_cv_type_fpos_t=yes
9997 echo "$as_me: failed program was:" >&5
9998 sed 's
/^
/|
/' conftest.$ac_ext >&5
10000 ac_cv_type_fpos_t=no
10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10006 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10008 # The cast to long int works around a bug in the HP C Compiler
10009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10011 # This bug is HP SR number 8606223364.
10012 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10013 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10014 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 if test "$cross_compiling" = yes; then
10018 # Depending upon the size, compute the lo and hi bounds.
10019 cat >conftest.
$ac_ext <<_ACEOF
10022 cat confdefs.h
>>conftest.
$ac_ext
10023 cat >>conftest.
$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 $ac_includes_default
10026 typedef fpos_t ac__type_sizeof_;
10030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10037 rm -f conftest.
$ac_objext
10038 if { (ac_try
="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1 >conftest.err
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10056 cat >conftest.$ac_ext <<_ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 $ac_includes_default
10063 typedef fpos_t ac__type_sizeof_;
10067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10074 rm -f conftest.$ac_objext
10075 if { (ac_try="$ac_compile"
10076 case "(($ac_try" in
10077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10078 *) ac_try_echo
=$ac_try;;
10080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_compile") 2>conftest.er1
10083 grep -v '^ *+' conftest.er1
>conftest.err
10085 cat conftest.err
>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } && {
10088 test -z "$ac_c_werror_flag" ||
10089 test ! -s conftest.err
10090 } && test -s conftest.
$ac_objext; then
10091 ac_hi
=$ac_mid; break
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.
$ac_ext >&5
10096 ac_lo
=`expr $ac_mid + 1`
10097 if test $ac_lo -le $ac_mid; then
10101 ac_mid
=`expr 2 '*' $ac_mid + 1`
10104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10107 echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.
$ac_ext >&5
10110 cat >conftest.
$ac_ext <<_ACEOF
10113 cat confdefs.h
>>conftest.
$ac_ext
10114 cat >>conftest.
$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10116 $ac_includes_default
10117 typedef fpos_t ac__type_sizeof_;
10121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10128 rm -f conftest.
$ac_objext
10129 if { (ac_try
="$ac_compile"
10130 case "(($ac_try" in
10131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_compile") 2>conftest.er1
10137 grep -v '^ *+' conftest.er1 >conftest.err
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } && {
10142 test -z "$ac_c_werror_flag" ||
10143 test ! -s conftest.err
10144 } && test -s conftest.$ac_objext; then
10147 cat >conftest.$ac_ext <<_ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153 $ac_includes_default
10154 typedef fpos_t ac__type_sizeof_;
10158 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10165 rm -f conftest.$ac_objext
10166 if { (ac_try="$ac_compile"
10167 case "(($ac_try" in
10168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10169 *) ac_try_echo
=$ac_try;;
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_compile") 2>conftest.er1
10174 grep -v '^ *+' conftest.er1
>conftest.err
10176 cat conftest.err
>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && {
10179 test -z "$ac_c_werror_flag" ||
10180 test ! -s conftest.err
10181 } && test -s conftest.
$ac_objext; then
10182 ac_lo
=$ac_mid; break
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.
$ac_ext >&5
10187 ac_hi
=`expr '(' $ac_mid ')' - 1`
10188 if test $ac_mid -le $ac_hi; then
10192 ac_mid
=`expr 2 '*' $ac_mid`
10195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.
$ac_ext >&5
10204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10208 # Binary search between lo and hi bounds.
10209 while test "x$ac_lo" != "x$ac_hi"; do
10210 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10211 cat >conftest.
$ac_ext <<_ACEOF
10214 cat confdefs.h
>>conftest.
$ac_ext
10215 cat >>conftest.
$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10217 $ac_includes_default
10218 typedef fpos_t ac__type_sizeof_;
10222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10229 rm -f conftest.
$ac_objext
10230 if { (ac_try
="$ac_compile"
10231 case "(($ac_try" in
10232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10233 *) ac_try_echo=$ac_try;;
10235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236 (eval "$ac_compile") 2>conftest.er1
10238 grep -v '^ *+' conftest.er1 >conftest.err
10240 cat conftest.err >&5
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && {
10243 test -z "$ac_c_werror_flag" ||
10244 test ! -s conftest.err
10245 } && test -s conftest.$ac_objext; then
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10251 ac_lo=`expr '(' $ac_mid ')' + 1`
10254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10258 '') if test "$ac_cv_type_fpos_t" = yes; then
10259 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10260 See \`config.log
' for more details." >&5
10261 echo "$as_me: error: cannot compute sizeof (fpos_t)
10262 See \`config.log' for more details.
" >&2;}
10263 { (exit 77); exit 77; }; }
10265 ac_cv_sizeof_fpos_t=0
10269 cat >conftest.$ac_ext <<_ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 $ac_includes_default
10276 typedef fpos_t ac__type_sizeof_;
10277 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10278 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10280 #include <stdlib.h>
10285 FILE *f = fopen ("conftest.val
", "w
");
10288 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10290 long int i = longval ();
10291 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10293 fprintf (f, "%ld
\n", i);
10297 unsigned long int i = ulongval ();
10298 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10300 fprintf (f, "%lu
\n", i);
10302 return ferror (f) || fclose (f) != 0;
10308 rm -f conftest$ac_exeext
10309 if { (ac_try="$ac_link"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_link") 2>&5
10317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10319 { (case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_try") 2>&5
10326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10327 (exit $ac_status); }; }; then
10328 ac_cv_sizeof_fpos_t=`cat conftest.val`
10330 echo "$as_me: program exited with status
$ac_status" >&5
10331 echo "$as_me: failed program was
:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ( exit $ac_status )
10335 if test "$ac_cv_type_fpos_t" = yes; then
10336 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10337 See \
`config.log' for more details." >&5
10338 echo "$as_me: error: cannot compute sizeof (fpos_t)
10339 See \`config.log
' for more details." >&2;}
10340 { (exit 77); exit 77; }; }
10342 ac_cv_sizeof_fpos_t=0
10345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10349 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10350 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10354 cat >>confdefs.h <<_ACEOF
10355 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10359 { echo "$as_me:$LINENO: checking for size_t" >&5
10360 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10361 if test "${ac_cv_type_size_t+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 cat >conftest.$ac_ext <<_ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10370 $ac_includes_default
10371 typedef size_t ac__type_new_;
10375 if ((ac__type_new_ *) 0)
10377 if (sizeof (ac__type_new_))
10383 rm -f conftest.$ac_objext
10384 if { (ac_try="$ac_compile"
10385 case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_compile") 2>conftest.er1
10392 grep -v '^
*+' conftest.er1 >conftest.err
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest.$ac_objext; then
10400 ac_cv_type_size_t=yes
10402 echo "$as_me: failed program was:" >&5
10403 sed 's
/^
/|
/' conftest.$ac_ext >&5
10405 ac_cv_type_size_t=no
10408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10411 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10413 # The cast to long int works around a bug in the HP C Compiler
10414 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10415 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10416 # This bug is HP SR number 8606223364.
10417 { echo "$as_me:$LINENO: checking size of size_t" >&5
10418 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10419 if test "${ac_cv_sizeof_size_t+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 if test "$cross_compiling" = yes; then
10423 # Depending upon the size, compute the lo and hi bounds.
10424 cat >conftest.
$ac_ext <<_ACEOF
10427 cat confdefs.h
>>conftest.
$ac_ext
10428 cat >>conftest.
$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 $ac_includes_default
10431 typedef size_t ac__type_sizeof_;
10435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10442 rm -f conftest.
$ac_objext
10443 if { (ac_try
="$ac_compile"
10444 case "(($ac_try" in
10445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_compile") 2>conftest.er1
10451 grep -v '^ *+' conftest.er1 >conftest.err
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && {
10456 test -z "$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 } && test -s conftest.$ac_objext; then
10461 cat >conftest.$ac_ext <<_ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467 $ac_includes_default
10468 typedef size_t ac__type_sizeof_;
10472 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10479 rm -f conftest.$ac_objext
10480 if { (ac_try="$ac_compile"
10481 case "(($ac_try" in
10482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10483 *) ac_try_echo
=$ac_try;;
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_compile") 2>conftest.er1
10488 grep -v '^ *+' conftest.er1
>conftest.err
10490 cat conftest.err
>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest.
$ac_objext; then
10496 ac_hi
=$ac_mid; break
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.
$ac_ext >&5
10501 ac_lo
=`expr $ac_mid + 1`
10502 if test $ac_lo -le $ac_mid; then
10506 ac_mid
=`expr 2 '*' $ac_mid + 1`
10509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.
$ac_ext >&5
10515 cat >conftest.
$ac_ext <<_ACEOF
10518 cat confdefs.h
>>conftest.
$ac_ext
10519 cat >>conftest.
$ac_ext <<_ACEOF
10520 /* end confdefs.h. */
10521 $ac_includes_default
10522 typedef size_t ac__type_sizeof_;
10526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10533 rm -f conftest.
$ac_objext
10534 if { (ac_try
="$ac_compile"
10535 case "(($ac_try" in
10536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_compile") 2>conftest.er1
10542 grep -v '^ *+' conftest.er1 >conftest.err
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } && {
10547 test -z "$ac_c_werror_flag" ||
10548 test ! -s conftest.err
10549 } && test -s conftest.$ac_objext; then
10552 cat >conftest.$ac_ext <<_ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10558 $ac_includes_default
10559 typedef size_t ac__type_sizeof_;
10563 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10570 rm -f conftest.$ac_objext
10571 if { (ac_try="$ac_compile"
10572 case "(($ac_try" in
10573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10574 *) ac_try_echo
=$ac_try;;
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_compile") 2>conftest.er1
10579 grep -v '^ *+' conftest.er1
>conftest.err
10581 cat conftest.err
>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest.
$ac_objext; then
10587 ac_lo
=$ac_mid; break
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.
$ac_ext >&5
10592 ac_hi
=`expr '(' $ac_mid ')' - 1`
10593 if test $ac_mid -le $ac_hi; then
10597 ac_mid
=`expr 2 '*' $ac_mid`
10600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.
$ac_ext >&5
10609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10613 # Binary search between lo and hi bounds.
10614 while test "x$ac_lo" != "x$ac_hi"; do
10615 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10616 cat >conftest.
$ac_ext <<_ACEOF
10619 cat confdefs.h
>>conftest.
$ac_ext
10620 cat >>conftest.
$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 $ac_includes_default
10623 typedef size_t ac__type_sizeof_;
10627 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10634 rm -f conftest.
$ac_objext
10635 if { (ac_try
="$ac_compile"
10636 case "(($ac_try" in
10637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_compile") 2>conftest.er1
10643 grep -v '^ *+' conftest.er1 >conftest.err
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && {
10648 test -z "$ac_c_werror_flag" ||
10649 test ! -s conftest.err
10650 } && test -s conftest.$ac_objext; then
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ac_lo=`expr '(' $ac_mid ')' + 1`
10659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10663 '') if test "$ac_cv_type_size_t" = yes; then
10664 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10665 See \`config.log
' for more details." >&5
10666 echo "$as_me: error: cannot compute sizeof (size_t)
10667 See \`config.log' for more details.
" >&2;}
10668 { (exit 77); exit 77; }; }
10670 ac_cv_sizeof_size_t=0
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 $ac_includes_default
10681 typedef size_t ac__type_sizeof_;
10682 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10683 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10685 #include <stdlib.h>
10690 FILE *f = fopen ("conftest.val
", "w
");
10693 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10695 long int i = longval ();
10696 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10698 fprintf (f, "%ld
\n", i);
10702 unsigned long int i = ulongval ();
10703 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10705 fprintf (f, "%lu
\n", i);
10707 return ferror (f) || fclose (f) != 0;
10713 rm -f conftest$ac_exeext
10714 if { (ac_try="$ac_link"
10715 case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_link") 2>&5
10722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10724 { (case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_try") 2>&5
10731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10732 (exit $ac_status); }; }; then
10733 ac_cv_sizeof_size_t=`cat conftest.val`
10735 echo "$as_me: program exited with status
$ac_status" >&5
10736 echo "$as_me: failed program was
:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ( exit $ac_status )
10740 if test "$ac_cv_type_size_t" = yes; then
10741 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10742 See \
`config.log' for more details." >&5
10743 echo "$as_me: error: cannot compute sizeof (size_t)
10744 See \`config.log
' for more details." >&2;}
10745 { (exit 77); exit 77; }; }
10747 ac_cv_sizeof_size_t=0
10750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10754 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10755 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10759 cat >>confdefs.h <<_ACEOF
10760 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10764 { echo "$as_me:$LINENO: checking for pid_t" >&5
10765 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10766 if test "${ac_cv_type_pid_t+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 $ac_includes_default
10776 typedef pid_t ac__type_new_;
10780 if ((ac__type_new_ *) 0)
10782 if (sizeof (ac__type_new_))
10788 rm -f conftest.$ac_objext
10789 if { (ac_try="$ac_compile"
10790 case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_compile") 2>conftest.er1
10797 grep -v '^
*+' conftest.er1 >conftest.err
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest.$ac_objext; then
10805 ac_cv_type_pid_t=yes
10807 echo "$as_me: failed program was:" >&5
10808 sed 's
/^
/|
/' conftest.$ac_ext >&5
10810 ac_cv_type_pid_t=no
10813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10816 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10818 # The cast to long int works around a bug in the HP C Compiler
10819 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10820 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10821 # This bug is HP SR number 8606223364.
10822 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10823 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10824 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10827 if test "$cross_compiling" = yes; then
10828 # Depending upon the size, compute the lo and hi bounds.
10829 cat >conftest.
$ac_ext <<_ACEOF
10832 cat confdefs.h
>>conftest.
$ac_ext
10833 cat >>conftest.
$ac_ext <<_ACEOF
10834 /* end confdefs.h. */
10835 $ac_includes_default
10836 typedef pid_t ac__type_sizeof_;
10840 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10847 rm -f conftest.
$ac_objext
10848 if { (ac_try
="$ac_compile"
10849 case "(($ac_try" in
10850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_compile") 2>conftest.er1
10856 grep -v '^ *+' conftest.er1 >conftest.err
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } && {
10861 test -z "$ac_c_werror_flag" ||
10862 test ! -s conftest.err
10863 } && test -s conftest.$ac_objext; then
10866 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10872 $ac_includes_default
10873 typedef pid_t ac__type_sizeof_;
10877 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10884 rm -f conftest.$ac_objext
10885 if { (ac_try="$ac_compile"
10886 case "(($ac_try" in
10887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10888 *) ac_try_echo
=$ac_try;;
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_compile") 2>conftest.er1
10893 grep -v '^ *+' conftest.er1
>conftest.err
10895 cat conftest.err
>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && {
10898 test -z "$ac_c_werror_flag" ||
10899 test ! -s conftest.err
10900 } && test -s conftest.
$ac_objext; then
10901 ac_hi
=$ac_mid; break
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.
$ac_ext >&5
10906 ac_lo
=`expr $ac_mid + 1`
10907 if test $ac_lo -le $ac_mid; then
10911 ac_mid
=`expr 2 '*' $ac_mid + 1`
10914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.
$ac_ext >&5
10920 cat >conftest.
$ac_ext <<_ACEOF
10923 cat confdefs.h
>>conftest.
$ac_ext
10924 cat >>conftest.
$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 $ac_includes_default
10927 typedef pid_t ac__type_sizeof_;
10931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10938 rm -f conftest.
$ac_objext
10939 if { (ac_try
="$ac_compile"
10940 case "(($ac_try" in
10941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_compile") 2>conftest.er1
10947 grep -v '^ *+' conftest.er1 >conftest.err
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } && {
10952 test -z "$ac_c_werror_flag" ||
10953 test ! -s conftest.err
10954 } && test -s conftest.$ac_objext; then
10957 cat >conftest.$ac_ext <<_ACEOF
10960 cat confdefs.h >>conftest.$ac_ext
10961 cat >>conftest.$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10963 $ac_includes_default
10964 typedef pid_t ac__type_sizeof_;
10968 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10975 rm -f conftest.$ac_objext
10976 if { (ac_try="$ac_compile"
10977 case "(($ac_try" in
10978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10979 *) ac_try_echo
=$ac_try;;
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_compile") 2>conftest.er1
10984 grep -v '^ *+' conftest.er1
>conftest.err
10986 cat conftest.err
>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } && {
10989 test -z "$ac_c_werror_flag" ||
10990 test ! -s conftest.err
10991 } && test -s conftest.
$ac_objext; then
10992 ac_lo
=$ac_mid; break
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.
$ac_ext >&5
10997 ac_hi
=`expr '(' $ac_mid ')' - 1`
10998 if test $ac_mid -le $ac_hi; then
11002 ac_mid
=`expr 2 '*' $ac_mid`
11005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.
$ac_ext >&5
11014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11018 # Binary search between lo and hi bounds.
11019 while test "x$ac_lo" != "x$ac_hi"; do
11020 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11021 cat >conftest.
$ac_ext <<_ACEOF
11024 cat confdefs.h
>>conftest.
$ac_ext
11025 cat >>conftest.
$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027 $ac_includes_default
11028 typedef pid_t ac__type_sizeof_;
11032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11039 rm -f conftest.
$ac_objext
11040 if { (ac_try
="$ac_compile"
11041 case "(($ac_try" in
11042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_compile") 2>conftest.er1
11048 grep -v '^ *+' conftest.er1 >conftest.err
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } && {
11053 test -z "$ac_c_werror_flag" ||
11054 test ! -s conftest.err
11055 } && test -s conftest.$ac_objext; then
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 ac_lo=`expr '(' $ac_mid ')' + 1`
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11068 '') if test "$ac_cv_type_pid_t" = yes; then
11069 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11070 See \`config.log
' for more details." >&5
11071 echo "$as_me: error: cannot compute sizeof (pid_t)
11072 See \`config.log' for more details.
" >&2;}
11073 { (exit 77); exit 77; }; }
11075 ac_cv_sizeof_pid_t=0
11079 cat >conftest.$ac_ext <<_ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 $ac_includes_default
11086 typedef pid_t ac__type_sizeof_;
11087 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11088 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11090 #include <stdlib.h>
11095 FILE *f = fopen ("conftest.val
", "w
");
11098 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11100 long int i = longval ();
11101 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11103 fprintf (f, "%ld
\n", i);
11107 unsigned long int i = ulongval ();
11108 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11110 fprintf (f, "%lu
\n", i);
11112 return ferror (f) || fclose (f) != 0;
11118 rm -f conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_link") 2>&5
11127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11137 (exit $ac_status); }; }; then
11138 ac_cv_sizeof_pid_t=`cat conftest.val`
11140 echo "$as_me: program exited with status
$ac_status" >&5
11141 echo "$as_me: failed program was
:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 ( exit $ac_status )
11145 if test "$ac_cv_type_pid_t" = yes; then
11146 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11147 See \
`config.log' for more details." >&5
11148 echo "$as_me: error: cannot compute sizeof (pid_t)
11149 See \`config.log
' for more details." >&2;}
11150 { (exit 77); exit 77; }; }
11152 ac_cv_sizeof_pid_t=0
11155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11160 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11164 cat >>confdefs.h <<_ACEOF
11165 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11170 { echo "$as_me:$LINENO: checking for long long support" >&5
11171 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11173 cat >conftest.$ac_ext <<_ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11183 long long x; x = (long long)0;
11188 rm -f conftest.$ac_objext
11189 if { (ac_try="$ac_compile"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_compile") 2>conftest.er1
11197 grep -v '^
*+' conftest.er1 >conftest.err
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest.$ac_objext; then
11207 cat >>confdefs.h <<\_ACEOF
11208 #define HAVE_LONG_LONG 1
11214 echo "$as_me: failed program was:" >&5
11215 sed 's
/^
/|
/' conftest.$ac_ext >&5
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11222 echo "${ECHO_T}$have_long_long" >&6; }
11223 if test "$have_long_long" = yes ; then
11224 { echo "$as_me:$LINENO: checking for long long" >&5
11225 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11226 if test "${ac_cv_type_long_long+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 cat >conftest.$ac_ext <<_ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 $ac_includes_default
11236 typedef long long ac__type_new_;
11240 if ((ac__type_new_ *) 0)
11242 if (sizeof (ac__type_new_))
11248 rm -f conftest.$ac_objext
11249 if { (ac_try="$ac_compile"
11250 case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_compile") 2>conftest.er1
11257 grep -v '^
*+' conftest.er1 >conftest.err
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest.$ac_objext; then
11265 ac_cv_type_long_long=yes
11267 echo "$as_me: failed program was:" >&5
11268 sed 's
/^
/|
/' conftest.$ac_ext >&5
11270 ac_cv_type_long_long=no
11273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11275 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11276 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11278 # The cast to long int works around a bug in the HP C Compiler
11279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11281 # This bug is HP SR number 8606223364.
11282 { echo "$as_me:$LINENO: checking size of long long" >&5
11283 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11284 if test "${ac_cv_sizeof_long_long+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 if test "$cross_compiling" = yes; then
11288 # Depending upon the size, compute the lo and hi bounds.
11289 cat >conftest.
$ac_ext <<_ACEOF
11292 cat confdefs.h
>>conftest.
$ac_ext
11293 cat >>conftest.
$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 $ac_includes_default
11296 typedef long long ac__type_sizeof_;
11300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11307 rm -f conftest.
$ac_objext
11308 if { (ac_try
="$ac_compile"
11309 case "(($ac_try" in
11310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_compile") 2>conftest.er1
11316 grep -v '^ *+' conftest.er1 >conftest.err
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } && {
11321 test -z "$ac_c_werror_flag" ||
11322 test ! -s conftest.err
11323 } && test -s conftest.$ac_objext; then
11326 cat >conftest.$ac_ext <<_ACEOF
11329 cat confdefs.h >>conftest.$ac_ext
11330 cat >>conftest.$ac_ext <<_ACEOF
11331 /* end confdefs.h. */
11332 $ac_includes_default
11333 typedef long long ac__type_sizeof_;
11337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11344 rm -f conftest.$ac_objext
11345 if { (ac_try="$ac_compile"
11346 case "(($ac_try" in
11347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11348 *) ac_try_echo
=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_compile") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1
>conftest.err
11355 cat conftest.err
>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && {
11358 test -z "$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11360 } && test -s conftest.
$ac_objext; then
11361 ac_hi
=$ac_mid; break
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.
$ac_ext >&5
11366 ac_lo
=`expr $ac_mid + 1`
11367 if test $ac_lo -le $ac_mid; then
11371 ac_mid
=`expr 2 '*' $ac_mid + 1`
11374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.
$ac_ext >&5
11380 cat >conftest.
$ac_ext <<_ACEOF
11383 cat confdefs.h
>>conftest.
$ac_ext
11384 cat >>conftest.
$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 $ac_includes_default
11387 typedef long long ac__type_sizeof_;
11391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11398 rm -f conftest.
$ac_objext
11399 if { (ac_try
="$ac_compile"
11400 case "(($ac_try" in
11401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_compile") 2>conftest.er1
11407 grep -v '^ *+' conftest.er1 >conftest.err
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } && {
11412 test -z "$ac_c_werror_flag" ||
11413 test ! -s conftest.err
11414 } && test -s conftest.$ac_objext; then
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11423 $ac_includes_default
11424 typedef long long ac__type_sizeof_;
11428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11435 rm -f conftest.$ac_objext
11436 if { (ac_try="$ac_compile"
11437 case "(($ac_try" in
11438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11439 *) ac_try_echo
=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_compile") 2>conftest.er1
11444 grep -v '^ *+' conftest.er1
>conftest.err
11446 cat conftest.err
>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest.
$ac_objext; then
11452 ac_lo
=$ac_mid; break
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.
$ac_ext >&5
11457 ac_hi
=`expr '(' $ac_mid ')' - 1`
11458 if test $ac_mid -le $ac_hi; then
11462 ac_mid
=`expr 2 '*' $ac_mid`
11465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.
$ac_ext >&5
11474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11478 # Binary search between lo and hi bounds.
11479 while test "x$ac_lo" != "x$ac_hi"; do
11480 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11481 cat >conftest.
$ac_ext <<_ACEOF
11484 cat confdefs.h
>>conftest.
$ac_ext
11485 cat >>conftest.
$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 $ac_includes_default
11488 typedef long long ac__type_sizeof_;
11492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11499 rm -f conftest.
$ac_objext
11500 if { (ac_try
="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.$ac_objext; then
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_lo=`expr '(' $ac_mid ')' + 1`
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11528 '') if test "$ac_cv_type_long_long" = yes; then
11529 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11530 See \`config.log
' for more details." >&5
11531 echo "$as_me: error: cannot compute sizeof (long long)
11532 See \`config.log' for more details.
" >&2;}
11533 { (exit 77); exit 77; }; }
11535 ac_cv_sizeof_long_long=0
11539 cat >conftest.$ac_ext <<_ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 $ac_includes_default
11546 typedef long long ac__type_sizeof_;
11547 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11548 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11550 #include <stdlib.h>
11555 FILE *f = fopen ("conftest.val
", "w
");
11558 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11560 long int i = longval ();
11561 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11563 fprintf (f, "%ld
\n", i);
11567 unsigned long int i = ulongval ();
11568 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11570 fprintf (f, "%lu
\n", i);
11572 return ferror (f) || fclose (f) != 0;
11578 rm -f conftest$ac_exeext
11579 if { (ac_try="$ac_link"
11580 case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_link") 2>&5
11587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11589 { (case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11593 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11594 (eval "$ac_try") 2>&5
11596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 ac_cv_sizeof_long_long=`cat conftest.val`
11600 echo "$as_me: program exited with status
$ac_status" >&5
11601 echo "$as_me: failed program was
:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11604 ( exit $ac_status )
11605 if test "$ac_cv_type_long_long" = yes; then
11606 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11607 See \
`config.log' for more details." >&5
11608 echo "$as_me: error: cannot compute sizeof (long long)
11609 See \`config.log
' for more details." >&2;}
11610 { (exit 77); exit 77; }; }
11612 ac_cv_sizeof_long_long=0
11615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11619 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11620 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11624 cat >>confdefs.h <<_ACEOF
11625 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11631 { echo "$as_me:$LINENO: checking for long double support" >&5
11632 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11633 have_long_double=no
11634 cat >conftest.$ac_ext <<_ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11644 long double x; x = (long double)0.;
11649 rm -f conftest.$ac_objext
11650 if { (ac_try="$ac_compile"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656 (eval "$ac_compile") 2>conftest.er1
11658 grep -v '^
*+' conftest.er1 >conftest.err
11660 cat conftest.err >&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); } && {
11663 test -z "$ac_c_werror_flag" ||
11664 test ! -s conftest.err
11665 } && test -s conftest.$ac_objext; then
11668 cat >>confdefs.h <<\_ACEOF
11669 #define HAVE_LONG_DOUBLE 1
11672 have_long_double=yes
11675 echo "$as_me: failed program was:" >&5
11676 sed 's
/^
/|
/' conftest.$ac_ext >&5
11681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11683 echo "${ECHO_T}$have_long_double" >&6; }
11684 if test "$have_long_double" = yes ; then
11685 { echo "$as_me:$LINENO: checking for long double" >&5
11686 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11687 if test "${ac_cv_type_long_double+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 cat >conftest.$ac_ext <<_ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 $ac_includes_default
11697 typedef long double ac__type_new_;
11701 if ((ac__type_new_ *) 0)
11703 if (sizeof (ac__type_new_))
11709 rm -f conftest.$ac_objext
11710 if { (ac_try="$ac_compile"
11711 case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_compile") 2>conftest.er1
11718 grep -v '^
*+' conftest.er1 >conftest.err
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } && {
11723 test -z "$ac_c_werror_flag" ||
11724 test ! -s conftest.err
11725 } && test -s conftest.$ac_objext; then
11726 ac_cv_type_long_double=yes
11728 echo "$as_me: failed program was:" >&5
11729 sed 's
/^
/|
/' conftest.$ac_ext >&5
11731 ac_cv_type_long_double=no
11734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11737 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11739 # The cast to long int works around a bug in the HP C Compiler
11740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11742 # This bug is HP SR number 8606223364.
11743 { echo "$as_me:$LINENO: checking size of long double" >&5
11744 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11745 if test "${ac_cv_sizeof_long_double+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 if test "$cross_compiling" = yes; then
11749 # Depending upon the size, compute the lo and hi bounds.
11750 cat >conftest.
$ac_ext <<_ACEOF
11753 cat confdefs.h
>>conftest.
$ac_ext
11754 cat >>conftest.
$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11756 $ac_includes_default
11757 typedef long double ac__type_sizeof_;
11761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11768 rm -f conftest.
$ac_objext
11769 if { (ac_try
="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11787 cat >conftest.$ac_ext <<_ACEOF
11790 cat confdefs.h >>conftest.$ac_ext
11791 cat >>conftest.$ac_ext <<_ACEOF
11792 /* end confdefs.h. */
11793 $ac_includes_default
11794 typedef long double ac__type_sizeof_;
11798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11805 rm -f conftest.$ac_objext
11806 if { (ac_try="$ac_compile"
11807 case "(($ac_try" in
11808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11809 *) ac_try_echo
=$ac_try;;
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_compile") 2>conftest.er1
11814 grep -v '^ *+' conftest.er1
>conftest.err
11816 cat conftest.err
>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } && {
11819 test -z "$ac_c_werror_flag" ||
11820 test ! -s conftest.err
11821 } && test -s conftest.
$ac_objext; then
11822 ac_hi
=$ac_mid; break
11824 echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.
$ac_ext >&5
11827 ac_lo
=`expr $ac_mid + 1`
11828 if test $ac_lo -le $ac_mid; then
11832 ac_mid
=`expr 2 '*' $ac_mid + 1`
11835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.
$ac_ext >&5
11841 cat >conftest.
$ac_ext <<_ACEOF
11844 cat confdefs.h
>>conftest.
$ac_ext
11845 cat >>conftest.
$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 $ac_includes_default
11848 typedef long double ac__type_sizeof_;
11852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11859 rm -f conftest.
$ac_objext
11860 if { (ac_try
="$ac_compile"
11861 case "(($ac_try" in
11862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_compile") 2>conftest.er1
11868 grep -v '^ *+' conftest.er1 >conftest.err
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } && {
11873 test -z "$ac_c_werror_flag" ||
11874 test ! -s conftest.err
11875 } && test -s conftest.$ac_objext; then
11878 cat >conftest.$ac_ext <<_ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884 $ac_includes_default
11885 typedef long double ac__type_sizeof_;
11889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11896 rm -f conftest.$ac_objext
11897 if { (ac_try="$ac_compile"
11898 case "(($ac_try" in
11899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11900 *) ac_try_echo
=$ac_try;;
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_compile") 2>conftest.er1
11905 grep -v '^ *+' conftest.er1
>conftest.err
11907 cat conftest.err
>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && {
11910 test -z "$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 } && test -s conftest.
$ac_objext; then
11913 ac_lo
=$ac_mid; break
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.
$ac_ext >&5
11918 ac_hi
=`expr '(' $ac_mid ')' - 1`
11919 if test $ac_mid -le $ac_hi; then
11923 ac_mid
=`expr 2 '*' $ac_mid`
11926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.
$ac_ext >&5
11935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11939 # Binary search between lo and hi bounds.
11940 while test "x$ac_lo" != "x$ac_hi"; do
11941 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11942 cat >conftest.
$ac_ext <<_ACEOF
11945 cat confdefs.h
>>conftest.
$ac_ext
11946 cat >>conftest.
$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 $ac_includes_default
11949 typedef long double ac__type_sizeof_;
11953 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11960 rm -f conftest.
$ac_objext
11961 if { (ac_try
="$ac_compile"
11962 case "(($ac_try" in
11963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11964 *) ac_try_echo=$ac_try;;
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_compile") 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } && {
11974 test -z "$ac_c_werror_flag" ||
11975 test ! -s conftest.err
11976 } && test -s conftest.$ac_objext; then
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ac_lo=`expr '(' $ac_mid ')' + 1`
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11989 '') if test "$ac_cv_type_long_double" = yes; then
11990 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11991 See \`config.log
' for more details." >&5
11992 echo "$as_me: error: cannot compute sizeof (long double)
11993 See \`config.log' for more details.
" >&2;}
11994 { (exit 77); exit 77; }; }
11996 ac_cv_sizeof_long_double=0
12000 cat >conftest.$ac_ext <<_ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12006 $ac_includes_default
12007 typedef long double ac__type_sizeof_;
12008 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12009 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12011 #include <stdlib.h>
12016 FILE *f = fopen ("conftest.val
", "w
");
12019 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12021 long int i = longval ();
12022 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12024 fprintf (f, "%ld
\n", i);
12028 unsigned long int i = ulongval ();
12029 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12031 fprintf (f, "%lu
\n", i);
12033 return ferror (f) || fclose (f) != 0;
12039 rm -f conftest$ac_exeext
12040 if { (ac_try="$ac_link"
12041 case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_link") 2>&5
12048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12050 { (case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_try") 2>&5
12057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_cv_sizeof_long_double=`cat conftest.val`
12061 echo "$as_me: program exited with status
$ac_status" >&5
12062 echo "$as_me: failed program was
:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 ( exit $ac_status )
12066 if test "$ac_cv_type_long_double" = yes; then
12067 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12068 See \
`config.log' for more details." >&5
12069 echo "$as_me: error: cannot compute sizeof (long double)
12070 See \`config.log
' for more details." >&2;}
12071 { (exit 77); exit 77; }; }
12073 ac_cv_sizeof_long_double=0
12076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12080 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12081 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12085 cat >>confdefs.h <<_ACEOF
12086 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12092 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12093 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12095 cat >conftest.$ac_ext <<_ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12105 _Bool x; x = (_Bool)0;
12110 rm -f conftest.$ac_objext
12111 if { (ac_try="$ac_compile"
12112 case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_compile") 2>conftest.er1
12119 grep -v '^
*+' conftest.er1 >conftest.err
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } && {
12124 test -z "$ac_c_werror_flag" ||
12125 test ! -s conftest.err
12126 } && test -s conftest.$ac_objext; then
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_C99_BOOL 1
12136 echo "$as_me: failed program was:" >&5
12137 sed 's
/^
/|
/' conftest.$ac_ext >&5
12142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12143 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12144 echo "${ECHO_T}$have_c99_bool" >&6; }
12145 if test "$have_c99_bool" = yes ; then
12146 { echo "$as_me:$LINENO: checking for _Bool" >&5
12147 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12148 if test "${ac_cv_type__Bool+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 cat >conftest.$ac_ext <<_ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157 $ac_includes_default
12158 typedef _Bool ac__type_new_;
12162 if ((ac__type_new_ *) 0)
12164 if (sizeof (ac__type_new_))
12170 rm -f conftest.$ac_objext
12171 if { (ac_try="$ac_compile"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_compile") 2>conftest.er1
12179 grep -v '^
*+' conftest.er1 >conftest.err
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && {
12184 test -z "$ac_c_werror_flag" ||
12185 test ! -s conftest.err
12186 } && test -s conftest.$ac_objext; then
12187 ac_cv_type__Bool=yes
12189 echo "$as_me: failed program was:" >&5
12190 sed 's
/^
/|
/' conftest.$ac_ext >&5
12192 ac_cv_type__Bool=no
12195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12197 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12198 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12200 # The cast to long int works around a bug in the HP C Compiler
12201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12203 # This bug is HP SR number 8606223364.
12204 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12205 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12206 if test "${ac_cv_sizeof__Bool+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12209 if test "$cross_compiling" = yes; then
12210 # Depending upon the size, compute the lo and hi bounds.
12211 cat >conftest.
$ac_ext <<_ACEOF
12214 cat confdefs.h
>>conftest.
$ac_ext
12215 cat >>conftest.
$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 $ac_includes_default
12218 typedef _Bool ac__type_sizeof_;
12222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12229 rm -f conftest.
$ac_objext
12230 if { (ac_try
="$ac_compile"
12231 case "(($ac_try" in
12232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_compile") 2>conftest.er1
12238 grep -v '^ *+' conftest.er1 >conftest.err
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest.$ac_objext; then
12248 cat >conftest.$ac_ext <<_ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 $ac_includes_default
12255 typedef _Bool ac__type_sizeof_;
12259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12266 rm -f conftest.$ac_objext
12267 if { (ac_try="$ac_compile"
12268 case "(($ac_try" in
12269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12270 *) ac_try_echo
=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_compile") 2>conftest.er1
12275 grep -v '^ *+' conftest.er1
>conftest.err
12277 cat conftest.err
>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest.
$ac_objext; then
12283 ac_hi
=$ac_mid; break
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.
$ac_ext >&5
12288 ac_lo
=`expr $ac_mid + 1`
12289 if test $ac_lo -le $ac_mid; then
12293 ac_mid
=`expr 2 '*' $ac_mid + 1`
12296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.
$ac_ext >&5
12302 cat >conftest.
$ac_ext <<_ACEOF
12305 cat confdefs.h
>>conftest.
$ac_ext
12306 cat >>conftest.
$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 $ac_includes_default
12309 typedef _Bool ac__type_sizeof_;
12313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12320 rm -f conftest.
$ac_objext
12321 if { (ac_try
="$ac_compile"
12322 case "(($ac_try" in
12323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12324 *) ac_try_echo=$ac_try;;
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327 (eval "$ac_compile") 2>conftest.er1
12329 grep -v '^ *+' conftest.er1 >conftest.err
12331 cat conftest.err >&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } && {
12334 test -z "$ac_c_werror_flag" ||
12335 test ! -s conftest.err
12336 } && test -s conftest.$ac_objext; then
12339 cat >conftest.$ac_ext <<_ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 $ac_includes_default
12346 typedef _Bool ac__type_sizeof_;
12350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12357 rm -f conftest.$ac_objext
12358 if { (ac_try="$ac_compile"
12359 case "(($ac_try" in
12360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12361 *) ac_try_echo
=$ac_try;;
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12366 grep -v '^ *+' conftest.er1
>conftest.err
12368 cat conftest.err
>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.
$ac_objext; then
12374 ac_lo
=$ac_mid; break
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.
$ac_ext >&5
12379 ac_hi
=`expr '(' $ac_mid ')' - 1`
12380 if test $ac_mid -le $ac_hi; then
12384 ac_mid
=`expr 2 '*' $ac_mid`
12387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.
$ac_ext >&5
12396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12400 # Binary search between lo and hi bounds.
12401 while test "x$ac_lo" != "x$ac_hi"; do
12402 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12403 cat >conftest.
$ac_ext <<_ACEOF
12406 cat confdefs.h
>>conftest.
$ac_ext
12407 cat >>conftest.
$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 $ac_includes_default
12410 typedef _Bool ac__type_sizeof_;
12414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12421 rm -f conftest.
$ac_objext
12422 if { (ac_try
="$ac_compile"
12423 case "(($ac_try" in
12424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compile") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest.$ac_objext; then
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_lo=`expr '(' $ac_mid ')' + 1`
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12450 '') if test "$ac_cv_type__Bool" = yes; then
12451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12452 See \`config.log
' for more details." >&5
12453 echo "$as_me: error: cannot compute sizeof (_Bool)
12454 See \`config.log' for more details.
" >&2;}
12455 { (exit 77); exit 77; }; }
12457 ac_cv_sizeof__Bool=0
12461 cat >conftest.$ac_ext <<_ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12467 $ac_includes_default
12468 typedef _Bool ac__type_sizeof_;
12469 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12470 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12472 #include <stdlib.h>
12477 FILE *f = fopen ("conftest.val
", "w
");
12480 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12482 long int i = longval ();
12483 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12485 fprintf (f, "%ld
\n", i);
12489 unsigned long int i = ulongval ();
12490 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12492 fprintf (f, "%lu
\n", i);
12494 return ferror (f) || fclose (f) != 0;
12500 rm -f conftest$ac_exeext
12501 if { (ac_try="$ac_link"
12502 case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_link") 2>&5
12509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12511 { (case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_try") 2>&5
12518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12519 (exit $ac_status); }; }; then
12520 ac_cv_sizeof__Bool=`cat conftest.val`
12522 echo "$as_me: program exited with status
$ac_status" >&5
12523 echo "$as_me: failed program was
:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 ( exit $ac_status )
12527 if test "$ac_cv_type__Bool" = yes; then
12528 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12529 See \
`config.log' for more details." >&5
12530 echo "$as_me: error: cannot compute sizeof (_Bool)
12531 See \`config.log
' for more details." >&2;}
12532 { (exit 77); exit 77; }; }
12534 ac_cv_sizeof__Bool=0
12537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12541 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12542 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12546 cat >>confdefs.h <<_ACEOF
12547 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12553 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12554 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12555 if test "${ac_cv_type_uintptr_t+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 cat >conftest.$ac_ext <<_ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 #ifdef HAVE_STDINT_H
12565 #include <stdint.h>
12568 typedef uintptr_t ac__type_new_;
12572 if ((ac__type_new_ *) 0)
12574 if (sizeof (ac__type_new_))
12580 rm -f conftest.$ac_objext
12581 if { (ac_try="$ac_compile"
12582 case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_compile") 2>conftest.er1
12589 grep -v '^
*+' conftest.er1 >conftest.err
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } && {
12594 test -z "$ac_c_werror_flag" ||
12595 test ! -s conftest.err
12596 } && test -s conftest.$ac_objext; then
12597 ac_cv_type_uintptr_t=yes
12599 echo "$as_me: failed program was:" >&5
12600 sed 's
/^
/|
/' conftest.$ac_ext >&5
12602 ac_cv_type_uintptr_t=no
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12608 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12609 if test $ac_cv_type_uintptr_t = yes; then
12611 cat >>confdefs.h <<_ACEOF
12612 #define HAVE_UINTPTR_T 1
12615 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12616 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12617 if test "${ac_cv_type_uintptr_t+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 cat >conftest.$ac_ext <<_ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 $ac_includes_default
12627 typedef uintptr_t ac__type_new_;
12631 if ((ac__type_new_ *) 0)
12633 if (sizeof (ac__type_new_))
12639 rm -f conftest.$ac_objext
12640 if { (ac_try="$ac_compile"
12641 case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_compile") 2>conftest.er1
12648 grep -v '^
*+' conftest.er1 >conftest.err
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest.$ac_objext; then
12656 ac_cv_type_uintptr_t=yes
12658 echo "$as_me: failed program was:" >&5
12659 sed 's
/^
/|
/' conftest.$ac_ext >&5
12661 ac_cv_type_uintptr_t=no
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12667 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12669 # The cast to long int works around a bug in the HP C Compiler
12670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12672 # This bug is HP SR number 8606223364.
12673 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12674 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12675 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12678 if test "$cross_compiling" = yes; then
12679 # Depending upon the size, compute the lo and hi bounds.
12680 cat >conftest.
$ac_ext <<_ACEOF
12683 cat confdefs.h
>>conftest.
$ac_ext
12684 cat >>conftest.
$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12686 $ac_includes_default
12687 typedef uintptr_t ac__type_sizeof_;
12691 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12698 rm -f conftest.
$ac_objext
12699 if { (ac_try
="$ac_compile"
12700 case "(($ac_try" in
12701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_compile") 2>conftest.er1
12707 grep -v '^ *+' conftest.er1 >conftest.err
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest.$ac_objext; then
12717 cat >conftest.$ac_ext <<_ACEOF
12720 cat confdefs.h >>conftest.$ac_ext
12721 cat >>conftest.$ac_ext <<_ACEOF
12722 /* end confdefs.h. */
12723 $ac_includes_default
12724 typedef uintptr_t ac__type_sizeof_;
12728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12735 rm -f conftest.$ac_objext
12736 if { (ac_try="$ac_compile"
12737 case "(($ac_try" in
12738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12739 *) ac_try_echo
=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_compile") 2>conftest.er1
12744 grep -v '^ *+' conftest.er1
>conftest.err
12746 cat conftest.err
>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest.
$ac_objext; then
12752 ac_hi
=$ac_mid; break
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.
$ac_ext >&5
12757 ac_lo
=`expr $ac_mid + 1`
12758 if test $ac_lo -le $ac_mid; then
12762 ac_mid
=`expr 2 '*' $ac_mid + 1`
12765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12768 echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.
$ac_ext >&5
12771 cat >conftest.
$ac_ext <<_ACEOF
12774 cat confdefs.h
>>conftest.
$ac_ext
12775 cat >>conftest.
$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12777 $ac_includes_default
12778 typedef uintptr_t ac__type_sizeof_;
12782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12789 rm -f conftest.
$ac_objext
12790 if { (ac_try
="$ac_compile"
12791 case "(($ac_try" in
12792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_compile") 2>conftest.er1
12798 grep -v '^ *+' conftest.er1 >conftest.err
12800 cat conftest.err >&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } && {
12803 test -z "$ac_c_werror_flag" ||
12804 test ! -s conftest.err
12805 } && test -s conftest.$ac_objext; then
12808 cat >conftest.$ac_ext <<_ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 $ac_includes_default
12815 typedef uintptr_t ac__type_sizeof_;
12819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12826 rm -f conftest.$ac_objext
12827 if { (ac_try="$ac_compile"
12828 case "(($ac_try" in
12829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12830 *) ac_try_echo
=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_compile") 2>conftest.er1
12835 grep -v '^ *+' conftest.er1
>conftest.err
12837 cat conftest.err
>&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest.
$ac_objext; then
12843 ac_lo
=$ac_mid; break
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.
$ac_ext >&5
12848 ac_hi
=`expr '(' $ac_mid ')' - 1`
12849 if test $ac_mid -le $ac_hi; then
12853 ac_mid
=`expr 2 '*' $ac_mid`
12856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.
$ac_ext >&5
12865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12869 # Binary search between lo and hi bounds.
12870 while test "x$ac_lo" != "x$ac_hi"; do
12871 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12872 cat >conftest.
$ac_ext <<_ACEOF
12875 cat confdefs.h
>>conftest.
$ac_ext
12876 cat >>conftest.
$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 $ac_includes_default
12879 typedef uintptr_t ac__type_sizeof_;
12883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12890 rm -f conftest.
$ac_objext
12891 if { (ac_try
="$ac_compile"
12892 case "(($ac_try" in
12893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_compile") 2>conftest.er1
12899 grep -v '^ *+' conftest.er1 >conftest.err
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } && {
12904 test -z "$ac_c_werror_flag" ||
12905 test ! -s conftest.err
12906 } && test -s conftest.$ac_objext; then
12909 echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12912 ac_lo=`expr '(' $ac_mid ')' + 1`
12915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12919 '') if test "$ac_cv_type_uintptr_t" = yes; then
12920 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12921 See \`config.log
' for more details." >&5
12922 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12923 See \`config.log' for more details.
" >&2;}
12924 { (exit 77); exit 77; }; }
12926 ac_cv_sizeof_uintptr_t=0
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 $ac_includes_default
12937 typedef uintptr_t ac__type_sizeof_;
12938 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12939 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12941 #include <stdlib.h>
12946 FILE *f = fopen ("conftest.val
", "w
");
12949 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12951 long int i = longval ();
12952 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12954 fprintf (f, "%ld
\n", i);
12958 unsigned long int i = ulongval ();
12959 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12961 fprintf (f, "%lu
\n", i);
12963 return ferror (f) || fclose (f) != 0;
12969 rm -f conftest$ac_exeext
12970 if { (ac_try="$ac_link"
12971 case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_link") 2>&5
12978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12980 { (case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_try") 2>&5
12987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12988 (exit $ac_status); }; }; then
12989 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12991 echo "$as_me: program exited with status
$ac_status" >&5
12992 echo "$as_me: failed program was
:" >&5
12993 sed 's/^/| /' conftest.$ac_ext >&5
12995 ( exit $ac_status )
12996 if test "$ac_cv_type_uintptr_t" = yes; then
12997 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12998 See \
`config.log' for more details." >&5
12999 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13000 See \`config.log
' for more details." >&2;}
13001 { (exit 77); exit 77; }; }
13003 ac_cv_sizeof_uintptr_t=0
13006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13010 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13011 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13015 cat >>confdefs.h <<_ACEOF
13016 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13023 { echo "$as_me:$LINENO: checking for off_t" >&5
13024 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13025 if test "${ac_cv_type_off_t+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 cat >conftest.$ac_ext <<_ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13035 #ifdef HAVE_SYS_TYPES_H
13036 #include <sys/types.h>
13040 typedef off_t ac__type_new_;
13044 if ((ac__type_new_ *) 0)
13046 if (sizeof (ac__type_new_))
13052 rm -f conftest.$ac_objext
13053 if { (ac_try="$ac_compile"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_compile") 2>conftest.er1
13061 grep -v '^
*+' conftest.er1 >conftest.err
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest.$ac_objext; then
13069 ac_cv_type_off_t=yes
13071 echo "$as_me: failed program was:" >&5
13072 sed 's
/^
/|
/' conftest.$ac_ext >&5
13074 ac_cv_type_off_t=no
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13079 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13080 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13082 # The cast to long int works around a bug in the HP C Compiler
13083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13085 # This bug is HP SR number 8606223364.
13086 { echo "$as_me:$LINENO: checking size of off_t" >&5
13087 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13088 if test "${ac_cv_sizeof_off_t+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 if test "$cross_compiling" = yes; then
13092 # Depending upon the size, compute the lo and hi bounds.
13093 cat >conftest.
$ac_ext <<_ACEOF
13096 cat confdefs.h
>>conftest.
$ac_ext
13097 cat >>conftest.
$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13100 #ifdef HAVE_SYS_TYPES_H
13101 #include <sys/types.h>
13105 typedef off_t ac__type_sizeof_;
13109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13116 rm -f conftest.
$ac_objext
13117 if { (ac_try
="$ac_compile"
13118 case "(($ac_try" in
13119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13120 *) ac_try_echo=$ac_try;;
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123 (eval "$ac_compile") 2>conftest.er1
13125 grep -v '^ *+' conftest.er1 >conftest.err
13127 cat conftest.err >&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } && {
13130 test -z "$ac_c_werror_flag" ||
13131 test ! -s conftest.err
13132 } && test -s conftest.$ac_objext; then
13135 cat >conftest.$ac_ext <<_ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13142 #ifdef HAVE_SYS_TYPES_H
13143 #include <sys/types.h>
13147 typedef off_t ac__type_sizeof_;
13151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13158 rm -f conftest.$ac_objext
13159 if { (ac_try="$ac_compile"
13160 case "(($ac_try" in
13161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13162 *) ac_try_echo
=$ac_try;;
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165 (eval "$ac_compile") 2>conftest.er1
13167 grep -v '^ *+' conftest.er1
>conftest.err
13169 cat conftest.err
>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } && {
13172 test -z "$ac_c_werror_flag" ||
13173 test ! -s conftest.err
13174 } && test -s conftest.
$ac_objext; then
13175 ac_hi
=$ac_mid; break
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.
$ac_ext >&5
13180 ac_lo
=`expr $ac_mid + 1`
13181 if test $ac_lo -le $ac_mid; then
13185 ac_mid
=`expr 2 '*' $ac_mid + 1`
13188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.
$ac_ext >&5
13194 cat >conftest.
$ac_ext <<_ACEOF
13197 cat confdefs.h
>>conftest.
$ac_ext
13198 cat >>conftest.
$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 #ifdef HAVE_SYS_TYPES_H
13202 #include <sys/types.h>
13206 typedef off_t ac__type_sizeof_;
13210 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13217 rm -f conftest.
$ac_objext
13218 if { (ac_try
="$ac_compile"
13219 case "(($ac_try" in
13220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_compile") 2>conftest.er1
13226 grep -v '^ *+' conftest.er1 >conftest.err
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest.$ac_objext; then
13236 cat >conftest.$ac_ext <<_ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13243 #ifdef HAVE_SYS_TYPES_H
13244 #include <sys/types.h>
13248 typedef off_t ac__type_sizeof_;
13252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13259 rm -f conftest.$ac_objext
13260 if { (ac_try="$ac_compile"
13261 case "(($ac_try" in
13262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13263 *) ac_try_echo
=$ac_try;;
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compile") 2>conftest.er1
13268 grep -v '^ *+' conftest.er1
>conftest.err
13270 cat conftest.err
>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest.
$ac_objext; then
13276 ac_lo
=$ac_mid; break
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.
$ac_ext >&5
13281 ac_hi
=`expr '(' $ac_mid ')' - 1`
13282 if test $ac_mid -le $ac_hi; then
13286 ac_mid
=`expr 2 '*' $ac_mid`
13289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.
$ac_ext >&5
13298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13302 # Binary search between lo and hi bounds.
13303 while test "x$ac_lo" != "x$ac_hi"; do
13304 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13305 cat >conftest.
$ac_ext <<_ACEOF
13308 cat confdefs.h
>>conftest.
$ac_ext
13309 cat >>conftest.
$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13312 #ifdef HAVE_SYS_TYPES_H
13313 #include <sys/types.h>
13317 typedef off_t ac__type_sizeof_;
13321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13328 rm -f conftest.
$ac_objext
13329 if { (ac_try
="$ac_compile"
13330 case "(($ac_try" in
13331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_compile") 2>conftest.er1
13337 grep -v '^ *+' conftest.er1 >conftest.err
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } && {
13342 test -z "$ac_c_werror_flag" ||
13343 test ! -s conftest.err
13344 } && test -s conftest.$ac_objext; then
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13350 ac_lo=`expr '(' $ac_mid ')' + 1`
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13357 '') if test "$ac_cv_type_off_t" = yes; then
13358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13359 See \`config.log
' for more details." >&5
13360 echo "$as_me: error: cannot compute sizeof (off_t)
13361 See \`config.log' for more details.
" >&2;}
13362 { (exit 77); exit 77; }; }
13364 ac_cv_sizeof_off_t=0
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13375 #ifdef HAVE_SYS_TYPES_H
13376 #include <sys/types.h>
13380 typedef off_t ac__type_sizeof_;
13381 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13382 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13384 #include <stdlib.h>
13389 FILE *f = fopen ("conftest.val
", "w
");
13392 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13394 long int i = longval ();
13395 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13397 fprintf (f, "%ld
\n", i);
13401 unsigned long int i = ulongval ();
13402 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13404 fprintf (f, "%lu
\n", i);
13406 return ferror (f) || fclose (f) != 0;
13412 rm -f conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>&5
13421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13431 (exit $ac_status); }; }; then
13432 ac_cv_sizeof_off_t=`cat conftest.val`
13434 echo "$as_me: program exited with status
$ac_status" >&5
13435 echo "$as_me: failed program was
:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 ( exit $ac_status )
13439 if test "$ac_cv_type_off_t" = yes; then
13440 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
13441 See \
`config.log' for more details." >&5
13442 echo "$as_me: error: cannot compute sizeof (off_t)
13443 See \`config.log
' for more details." >&2;}
13444 { (exit 77); exit 77; }; }
13446 ac_cv_sizeof_off_t=0
13449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13453 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13454 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13458 cat >>confdefs.h <<_ACEOF
13459 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13464 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13465 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13466 if test "$have_long_long" = yes -a \
13467 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13468 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13470 cat >>confdefs.h <<\_ACEOF
13471 #define HAVE_LARGEFILE_SUPPORT 1
13474 { echo "$as_me:$LINENO: result: yes" >&5
13475 echo "${ECHO_T}yes" >&6; }
13477 { echo "$as_me:$LINENO: result: no" >&5
13478 echo "${ECHO_T}no" >&6; }
13481 { echo "$as_me:$LINENO: checking for time_t" >&5
13482 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13483 if test "${ac_cv_type_time_t+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 cat >conftest.$ac_ext <<_ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13493 #ifdef HAVE_SYS_TYPES_H
13494 #include <sys/types.h>
13501 typedef time_t ac__type_new_;
13505 if ((ac__type_new_ *) 0)
13507 if (sizeof (ac__type_new_))
13513 rm -f conftest.$ac_objext
13514 if { (ac_try="$ac_compile"
13515 case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520 (eval "$ac_compile") 2>conftest.er1
13522 grep -v '^
*+' conftest.er1 >conftest.err
13524 cat conftest.err >&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && {
13527 test -z "$ac_c_werror_flag" ||
13528 test ! -s conftest.err
13529 } && test -s conftest.$ac_objext; then
13530 ac_cv_type_time_t=yes
13532 echo "$as_me: failed program was:" >&5
13533 sed 's
/^
/|
/' conftest.$ac_ext >&5
13535 ac_cv_type_time_t=no
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13541 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13543 # The cast to long int works around a bug in the HP C Compiler
13544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13546 # This bug is HP SR number 8606223364.
13547 { echo "$as_me:$LINENO: checking size of time_t" >&5
13548 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13549 if test "${ac_cv_sizeof_time_t+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 if test "$cross_compiling" = yes; then
13553 # Depending upon the size, compute the lo and hi bounds.
13554 cat >conftest.
$ac_ext <<_ACEOF
13557 cat confdefs.h
>>conftest.
$ac_ext
13558 cat >>conftest.
$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13561 #ifdef HAVE_SYS_TYPES_H
13562 #include <sys/types.h>
13569 typedef time_t ac__type_sizeof_;
13573 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13580 rm -f conftest.
$ac_objext
13581 if { (ac_try
="$ac_compile"
13582 case "(($ac_try" in
13583 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_compile") 2>conftest.er1
13589 grep -v '^ *+' conftest.er1 >conftest.err
13591 cat conftest.err >&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } && {
13594 test -z "$ac_c_werror_flag" ||
13595 test ! -s conftest.err
13596 } && test -s conftest.$ac_objext; then
13599 cat >conftest.$ac_ext <<_ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13606 #ifdef HAVE_SYS_TYPES_H
13607 #include <sys/types.h>
13614 typedef time_t ac__type_sizeof_;
13618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13625 rm -f conftest.$ac_objext
13626 if { (ac_try="$ac_compile"
13627 case "(($ac_try" in
13628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13629 *) ac_try_echo
=$ac_try;;
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_compile") 2>conftest.er1
13634 grep -v '^ *+' conftest.er1
>conftest.err
13636 cat conftest.err
>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } && {
13639 test -z "$ac_c_werror_flag" ||
13640 test ! -s conftest.err
13641 } && test -s conftest.
$ac_objext; then
13642 ac_hi
=$ac_mid; break
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.
$ac_ext >&5
13647 ac_lo
=`expr $ac_mid + 1`
13648 if test $ac_lo -le $ac_mid; then
13652 ac_mid
=`expr 2 '*' $ac_mid + 1`
13655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.
$ac_ext >&5
13661 cat >conftest.
$ac_ext <<_ACEOF
13664 cat confdefs.h
>>conftest.
$ac_ext
13665 cat >>conftest.
$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13668 #ifdef HAVE_SYS_TYPES_H
13669 #include <sys/types.h>
13676 typedef time_t ac__type_sizeof_;
13680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13687 rm -f conftest.
$ac_objext
13688 if { (ac_try
="$ac_compile"
13689 case "(($ac_try" in
13690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && {
13701 test -z "$ac_c_werror_flag" ||
13702 test ! -s conftest.err
13703 } && test -s conftest.$ac_objext; then
13706 cat >conftest.$ac_ext <<_ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13713 #ifdef HAVE_SYS_TYPES_H
13714 #include <sys/types.h>
13721 typedef time_t ac__type_sizeof_;
13725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13732 rm -f conftest.$ac_objext
13733 if { (ac_try="$ac_compile"
13734 case "(($ac_try" in
13735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13736 *) ac_try_echo
=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_compile") 2>conftest.er1
13741 grep -v '^ *+' conftest.er1
>conftest.err
13743 cat conftest.err
>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } && {
13746 test -z "$ac_c_werror_flag" ||
13747 test ! -s conftest.err
13748 } && test -s conftest.
$ac_objext; then
13749 ac_lo
=$ac_mid; break
13751 echo "$as_me: failed program was:" >&5
13752 sed 's/^/| /' conftest.
$ac_ext >&5
13754 ac_hi
=`expr '(' $ac_mid ')' - 1`
13755 if test $ac_mid -le $ac_hi; then
13759 ac_mid
=`expr 2 '*' $ac_mid`
13762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.
$ac_ext >&5
13771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13775 # Binary search between lo and hi bounds.
13776 while test "x$ac_lo" != "x$ac_hi"; do
13777 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13778 cat >conftest.
$ac_ext <<_ACEOF
13781 cat confdefs.h
>>conftest.
$ac_ext
13782 cat >>conftest.
$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13785 #ifdef HAVE_SYS_TYPES_H
13786 #include <sys/types.h>
13793 typedef time_t ac__type_sizeof_;
13797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13804 rm -f conftest.
$ac_objext
13805 if { (ac_try
="$ac_compile"
13806 case "(($ac_try" in
13807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_compile") 2>conftest.er1
13813 grep -v '^ *+' conftest.er1 >conftest.err
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } && {
13818 test -z "$ac_c_werror_flag" ||
13819 test ! -s conftest.err
13820 } && test -s conftest.$ac_objext; then
13823 echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_lo=`expr '(' $ac_mid ')' + 1`
13829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13832 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13833 '') if test "$ac_cv_type_time_t" = yes; then
13834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13835 See \`config.log
' for more details." >&5
13836 echo "$as_me: error: cannot compute sizeof (time_t)
13837 See \`config.log' for more details.
" >&2;}
13838 { (exit 77); exit 77; }; }
13840 ac_cv_sizeof_time_t=0
13844 cat >conftest.$ac_ext <<_ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13851 #ifdef HAVE_SYS_TYPES_H
13852 #include <sys/types.h>
13859 typedef time_t ac__type_sizeof_;
13860 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13861 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13863 #include <stdlib.h>
13868 FILE *f = fopen ("conftest.val
", "w
");
13871 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13873 long int i = longval ();
13874 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13876 fprintf (f, "%ld
\n", i);
13880 unsigned long int i = ulongval ();
13881 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13883 fprintf (f, "%lu
\n", i);
13885 return ferror (f) || fclose (f) != 0;
13891 rm -f conftest$ac_exeext
13892 if { (ac_try="$ac_link"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_link") 2>&5
13900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
13909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_cv_sizeof_time_t=`cat conftest.val`
13913 echo "$as_me: program exited with status
$ac_status" >&5
13914 echo "$as_me: failed program was
:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13917 ( exit $ac_status )
13918 if test "$ac_cv_type_time_t" = yes; then
13919 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(time_t
)
13920 See \
`config.log' for more details." >&5
13921 echo "$as_me: error: cannot compute sizeof (time_t)
13922 See \`config.log
' for more details." >&2;}
13923 { (exit 77); exit 77; }; }
13925 ac_cv_sizeof_time_t=0
13928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13932 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13933 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13937 cat >>confdefs.h <<_ACEOF
13938 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13943 # if have pthread_t then define SIZEOF_PTHREAD_T
13945 if test "$ac_cv_kpthread" = "yes"
13946 then CC="$CC -Kpthread"
13947 elif test "$ac_cv_kthread" = "yes"
13948 then CC="$CC -Kthread"
13949 elif test "$ac_cv_pthread" = "yes"
13950 then CC="$CC -pthread"
13952 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13953 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13955 cat >conftest.$ac_ext <<_ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 #include <pthread.h>
13965 pthread_t x; x = *(pthread_t*)0;
13970 rm -f conftest.$ac_objext
13971 if { (ac_try="$ac_compile"
13972 case "(($ac_try" in
13973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974 *) ac_try_echo=$ac_try;;
13976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13977 (eval "$ac_compile") 2>conftest.er1
13979 grep -v '^
*+' conftest.er1 >conftest.err
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } && {
13984 test -z "$ac_c_werror_flag" ||
13985 test ! -s conftest.err
13986 } && test -s conftest.$ac_objext; then
13989 echo "$as_me: failed program was:" >&5
13990 sed 's
/^
/|
/' conftest.$ac_ext >&5
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13996 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13997 echo "${ECHO_T}$have_pthread_t" >&6; }
13998 if test "$have_pthread_t" = yes ; then
13999 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14000 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14001 if test "${ac_cv_type_pthread_t+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 cat >conftest.$ac_ext <<_ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14011 #ifdef HAVE_PTHREAD_H
14012 #include <pthread.h>
14016 typedef pthread_t ac__type_new_;
14020 if ((ac__type_new_ *) 0)
14022 if (sizeof (ac__type_new_))
14028 rm -f conftest.$ac_objext
14029 if { (ac_try="$ac_compile"
14030 case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_compile") 2>conftest.er1
14037 grep -v '^
*+' conftest.er1 >conftest.err
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } && {
14042 test -z "$ac_c_werror_flag" ||
14043 test ! -s conftest.err
14044 } && test -s conftest.$ac_objext; then
14045 ac_cv_type_pthread_t=yes
14047 echo "$as_me: failed program was:" >&5
14048 sed 's
/^
/|
/' conftest.$ac_ext >&5
14050 ac_cv_type_pthread_t=no
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14056 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14058 # The cast to long int works around a bug in the HP C Compiler
14059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14061 # This bug is HP SR number 8606223364.
14062 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14063 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14064 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 if test "$cross_compiling" = yes; then
14068 # Depending upon the size, compute the lo and hi bounds.
14069 cat >conftest.
$ac_ext <<_ACEOF
14072 cat confdefs.h
>>conftest.
$ac_ext
14073 cat >>conftest.
$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14076 #ifdef HAVE_PTHREAD_H
14077 #include <pthread.h>
14081 typedef pthread_t ac__type_sizeof_;
14085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14092 rm -f conftest.
$ac_objext
14093 if { (ac_try
="$ac_compile"
14094 case "(($ac_try" in
14095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_compile") 2>conftest.er1
14101 grep -v '^ *+' conftest.er1 >conftest.err
14103 cat conftest.err >&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } && {
14106 test -z "$ac_c_werror_flag" ||
14107 test ! -s conftest.err
14108 } && test -s conftest.$ac_objext; then
14111 cat >conftest.$ac_ext <<_ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14118 #ifdef HAVE_PTHREAD_H
14119 #include <pthread.h>
14123 typedef pthread_t ac__type_sizeof_;
14127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14134 rm -f conftest.$ac_objext
14135 if { (ac_try="$ac_compile"
14136 case "(($ac_try" in
14137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14138 *) ac_try_echo
=$ac_try;;
14140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14141 (eval "$ac_compile") 2>conftest.er1
14143 grep -v '^ *+' conftest.er1
>conftest.err
14145 cat conftest.err
>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } && {
14148 test -z "$ac_c_werror_flag" ||
14149 test ! -s conftest.err
14150 } && test -s conftest.
$ac_objext; then
14151 ac_hi
=$ac_mid; break
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.
$ac_ext >&5
14156 ac_lo
=`expr $ac_mid + 1`
14157 if test $ac_lo -le $ac_mid; then
14161 ac_mid
=`expr 2 '*' $ac_mid + 1`
14164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.
$ac_ext >&5
14170 cat >conftest.
$ac_ext <<_ACEOF
14173 cat confdefs.h
>>conftest.
$ac_ext
14174 cat >>conftest.
$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14177 #ifdef HAVE_PTHREAD_H
14178 #include <pthread.h>
14182 typedef pthread_t ac__type_sizeof_;
14186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14193 rm -f conftest.
$ac_objext
14194 if { (ac_try
="$ac_compile"
14195 case "(($ac_try" in
14196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_compile") 2>conftest.er1
14202 grep -v '^ *+' conftest.er1 >conftest.err
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest.$ac_objext; then
14212 cat >conftest.$ac_ext <<_ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14219 #ifdef HAVE_PTHREAD_H
14220 #include <pthread.h>
14224 typedef pthread_t ac__type_sizeof_;
14228 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14239 *) ac_try_echo
=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_compile") 2>conftest.er1
14244 grep -v '^ *+' conftest.er1
>conftest.err
14246 cat conftest.err
>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } && {
14249 test -z "$ac_c_werror_flag" ||
14250 test ! -s conftest.err
14251 } && test -s conftest.
$ac_objext; then
14252 ac_lo
=$ac_mid; break
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.
$ac_ext >&5
14257 ac_hi
=`expr '(' $ac_mid ')' - 1`
14258 if test $ac_mid -le $ac_hi; then
14262 ac_mid
=`expr 2 '*' $ac_mid`
14265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.
$ac_ext >&5
14274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14278 # Binary search between lo and hi bounds.
14279 while test "x$ac_lo" != "x$ac_hi"; do
14280 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14281 cat >conftest.
$ac_ext <<_ACEOF
14284 cat confdefs.h
>>conftest.
$ac_ext
14285 cat >>conftest.
$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14288 #ifdef HAVE_PTHREAD_H
14289 #include <pthread.h>
14293 typedef pthread_t ac__type_sizeof_;
14297 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14304 rm -f conftest.
$ac_objext
14305 if { (ac_try
="$ac_compile"
14306 case "(($ac_try" in
14307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_compile") 2>conftest.er1
14313 grep -v '^ *+' conftest.er1 >conftest.err
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } && {
14318 test -z "$ac_c_werror_flag" ||
14319 test ! -s conftest.err
14320 } && test -s conftest.$ac_objext; then
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 ac_lo=`expr '(' $ac_mid ')' + 1`
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14332 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14333 '') if test "$ac_cv_type_pthread_t" = yes; then
14334 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14335 See \`config.log
' for more details." >&5
14336 echo "$as_me: error: cannot compute sizeof (pthread_t)
14337 See \`config.log' for more details.
" >&2;}
14338 { (exit 77); exit 77; }; }
14340 ac_cv_sizeof_pthread_t=0
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14351 #ifdef HAVE_PTHREAD_H
14352 #include <pthread.h>
14356 typedef pthread_t ac__type_sizeof_;
14357 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14358 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14360 #include <stdlib.h>
14365 FILE *f = fopen ("conftest.val
", "w
");
14368 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14370 long int i = longval ();
14371 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14373 fprintf (f, "%ld
\n", i);
14377 unsigned long int i = ulongval ();
14378 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14380 fprintf (f, "%lu
\n", i);
14382 return ferror (f) || fclose (f) != 0;
14388 rm -f conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_link") 2>&5
14397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
14406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14407 (exit $ac_status); }; }; then
14408 ac_cv_sizeof_pthread_t=`cat conftest.val`
14410 echo "$as_me: program exited with status
$ac_status" >&5
14411 echo "$as_me: failed program was
:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 ( exit $ac_status )
14415 if test "$ac_cv_type_pthread_t" = yes; then
14416 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pthread_t
)
14417 See \
`config.log' for more details." >&5
14418 echo "$as_me: error: cannot compute sizeof (pthread_t)
14419 See \`config.log
' for more details." >&2;}
14420 { (exit 77); exit 77; }; }
14422 ac_cv_sizeof_pthread_t=0
14425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14429 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14430 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14434 cat >>confdefs.h <<_ACEOF
14435 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14442 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14443 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14444 # Check whether --enable-toolbox-glue was given.
14445 if test "${enable_toolbox_glue+set}" = set; then
14446 enableval=$enable_toolbox_glue;
14450 if test -z "$enable_toolbox_glue"
14452 case $ac_sys_system/$ac_sys_release in
14454 enable_toolbox_glue="yes";;
14456 enable_toolbox_glue="no";;
14459 case "$enable_toolbox_glue" in
14461 extra_machdep_objs="Python/mactoolboxglue.o"
14462 extra_undefs="-u _PyMac_Error"
14464 cat >>confdefs.h <<\_ACEOF
14465 #define USE_TOOLBOX_OBJECT_GLUE 1
14470 extra_machdep_objs=""
14474 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14475 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14479 case $ac_sys_system/$ac_sys_release in
14480 Darwin/[01567]\..*)
14481 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14484 OTHER_LIBTOOL_OPT=""
14491 case $ac_sys_system/$ac_sys_release in
14492 Darwin/[01567]\..*)
14493 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14494 if test "${enable_universalsdk}"; then
14497 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14499 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14500 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14502 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14503 if test ${gcc_version} '<' 4.0
14505 LIBTOOL_CRUFT="-lcc_dynamic"
14509 if test "$cross_compiling" = yes; then
14512 cat >conftest.$ac_ext <<_ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14519 #include <unistd.h>
14520 int main(int argc, char*argv[])
14522 if (sizeof(long) == 4) {
14530 rm -f conftest$ac_exeext
14531 if { (ac_try="$ac_link"
14532 case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_link") 2>&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
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_try") 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; }; then
14552 echo "$as_me: program exited with status $ac_status" >&5
14553 echo "$as_me: failed program was:" >&5
14554 sed 's
/^
/|
/' conftest.$ac_ext >&5
14556 ( exit $ac_status )
14559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14564 if test "${ac_osx_32bit}" = "yes"; then
14567 MACOSX_DEFAULT_ARCH="i386"
14570 MACOSX_DEFAULT_ARCH="ppc"
14573 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14574 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14575 { (exit 1); exit 1; }; }
14581 MACOSX_DEFAULT_ARCH="x86_64"
14584 MACOSX_DEFAULT_ARCH="ppc64"
14587 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14588 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14589 { (exit 1); exit 1; }; }
14593 #ARCH_RUN_32BIT="true"
14596 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14597 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14598 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14601 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14602 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14603 if test "$enable_framework"
14605 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14606 # -F. is needed to allow linking to the framework while
14607 # in the build location.
14609 cat >>confdefs.h <<\_ACEOF
14610 #define WITH_NEXT_FRAMEWORK 1
14613 { echo "$as_me:$LINENO: result: yes" >&5
14614 echo "${ECHO_T}yes" >&6; }
14615 if test $enable_shared = "yes"
14617 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14618 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14619 { (exit 1); exit 1; }; }
14622 { echo "$as_me:$LINENO: result: no" >&5
14623 echo "${ECHO_T}no" >&6; }
14626 { echo "$as_me:$LINENO: checking for dyld" >&5
14627 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14628 case $ac_sys_system/$ac_sys_release in
14631 cat >>confdefs.h <<\_ACEOF
14632 #define WITH_DYLD 1
14635 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14636 echo "${ECHO_T}always on for Darwin" >&6; }
14639 { echo "$as_me:$LINENO: result: no" >&5
14640 echo "${ECHO_T}no" >&6; }
14644 # Set info about shared libraries.
14650 # SO is the extension of shared libraries `(including the dot!)
14651 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14652 { echo "$as_me:$LINENO: checking SO" >&5
14653 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14656 case $ac_sys_system in
14667 # this might also be a termcap variable, see #610332
14669 echo '====================================================================='
14671 echo '+ WARNING
: You have
set SO
in your environment.
+'
14672 echo '+ Do you really mean to change the extension
for shared libraries?
+'
14673 echo '+ Continuing
in 10 seconds to
let you to ponder.
+'
14675 echo '====================================================================='
14678 { echo "$as_me:$LINENO: result: $SO" >&5
14679 echo "${ECHO_T}$SO" >&6; }
14682 cat >>confdefs.h <<_ACEOF
14683 #define SHLIB_EXT "$SO"
14686 # LDSHARED is the ld *command* used to create shared library
14687 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14688 # (Shared libraries in this instance are shared modules to be loaded into
14689 # Python, as opposed to building Python itself as a shared library.)
14690 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14691 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14692 if test -z "$LDSHARED"
14694 case $ac_sys_system/$ac_sys_release in
14696 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14697 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14700 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14701 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14703 IRIX/5*) LDSHARED="ld -shared";;
14704 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14706 if test "$GCC" = "yes"
14707 then LDSHARED='$
(CC
) -shared'
14708 else LDSHARED='$
(CC
) -G';
14711 if test "$GCC" = "yes"
14712 then LDSHARED='$
(CC
) -shared'
14713 else LDSHARED='ld
-b';
14715 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14717 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14718 if test "$enable_framework" ; then
14719 # Link against the framework. All externals should be defined.
14720 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14721 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14723 # No framework. Ignore undefined symbols, assuming they come from Python
14724 LDSHARED="$LDSHARED -undefined suppress"
14726 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14727 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14728 if test "$enable_framework" ; then
14729 # Link against the framework. All externals should be defined.
14730 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14731 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14733 # No framework, use the Python app as bundle-loader
14734 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14735 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14738 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14739 # This allows an extension to be used in any Python
14741 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14743 if test "${enable_universalsdk}"; then
14744 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14746 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle -undefined dynamic_lookup
'
14747 BLDSHARED="$LDSHARED"
14749 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14750 if test "$enable_framework" ; then
14751 # Link against the framework. All externals should be defined.
14752 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14753 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14755 # No framework, use the Python app as bundle-loader
14756 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14757 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14761 Linux*|GNU*|QNX*) LDSHARED='$
(CC
) -shared';;
14762 BSD/OS*/4*) LDSHARED="gcc -shared";;
14764 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14766 LDSHARED="$CC -shared ${LDFLAGS}"
14768 LDSHARED="ld -Bshareable ${LDFLAGS}"
14771 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14773 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14776 [01].* | 2.[0-7] | 2.[0-7].*)
14777 LDSHARED="ld -Bshareable ${LDFLAGS}"
14780 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14784 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14785 OpenUNIX*|UnixWare*)
14786 if test "$GCC" = "yes"
14787 then LDSHARED='$
(CC
) -shared'
14788 else LDSHARED='$
(CC
) -G'
14790 SCO_SV*) LDSHARED='$
(CC
) -Wl,-G,-Bexport';;
14791 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14792 atheos*) LDSHARED="gcc -shared";;
14796 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14797 echo "${ECHO_T}$LDSHARED" >&6; }
14798 BLDSHARED=${BLDSHARED-$LDSHARED}
14799 # CCSHARED are the C *flags* used to create objects to go into a shared
14800 # library (module) -- this is only needed for a few systems
14801 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14802 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14803 if test -z "$CCSHARED"
14805 case $ac_sys_system/$ac_sys_release in
14806 SunOS*) if test "$GCC" = yes;
14807 then CCSHARED="-fPIC";
14808 elif test `uname -p` = sparc;
14809 then CCSHARED="-xcode=pic32";
14810 else CCSHARED="-Kpic";
14812 hp*|HP*) if test "$GCC" = yes;
14813 then CCSHARED="-fPIC";
14814 else CCSHARED="+z";
14816 Linux*|GNU*) CCSHARED="-fPIC";;
14817 BSD/OS*/4*) CCSHARED="-fpic";;
14818 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14819 OpenUNIX*|UnixWare*)
14820 if test "$GCC" = "yes"
14821 then CCSHARED="-fPIC"
14822 else CCSHARED="-KPIC"
14825 if test "$GCC" = "yes"
14826 then CCSHARED="-fPIC"
14827 else CCSHARED="-Kpic -belf"
14829 IRIX*/6*) case $CC in
14830 *gcc*) CCSHARED="-shared";;
14833 atheos*) CCSHARED="-fPIC";;
14836 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14837 echo "${ECHO_T}$CCSHARED" >&6; }
14838 # LINKFORSHARED are the flags passed to the $(CC) command that links
14839 # the python executable -- this is only needed for a few systems
14840 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14841 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14842 if test -z "$LINKFORSHARED"
14844 case $ac_sys_system/$ac_sys_release in
14845 AIX*) LINKFORSHARED='-Wl,-bE:Modules
/python.exp
-lld';;
14847 LINKFORSHARED="-Wl,-E -Wl,+s";;
14848 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14849 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14850 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14851 # -u libsys_s pulls in all symbols in libsys
14853 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14855 # not used by the core itself but which needs to be in the core so
14856 # that dynamically loaded extension modules have access to it.
14857 # -prebind is no longer used, because it actually seems to give a
14858 # slowdown in stead of a speedup, maybe due to the large number of
14859 # dynamic loads Python does.
14861 LINKFORSHARED="$extra_undefs"
14862 if test "$enable_framework"
14864 LINKFORSHARED="$LINKFORSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14866 LINKFORSHARED="$LINKFORSHARED";;
14867 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14868 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14869 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14870 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14871 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14873 LINKFORSHARED="-Wl,--export-dynamic"
14875 SunOS/5*) case $CC in
14877 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14879 LINKFORSHARED="-Xlinker --export-dynamic"
14883 if test $enable_shared = "no"
14885 LINKFORSHARED='-Wl,--out-implib=$
(LDLIBRARY
)'
14888 # -Wl,-E causes the symbols to be added to the dynamic
14889 # symbol table so that they can be found when a module
14890 # is loaded. -N 2048K causes the stack size to be set
14891 # to 2048 kilobytes so that the stack doesn't overflow
14892 # when running test_compile.py.
14893 LINKFORSHARED
='-Wl,-E -N 2048K';;
14896 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14897 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14901 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14902 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14903 if test ! "$LIBRARY" = "$LDLIBRARY"
14905 case $ac_sys_system in
14907 # Cygwin needs CCSHARED when building extension DLLs
14908 # but not when building the interpreter DLL.
14909 CFLAGSFORSHARED
='';;
14911 CFLAGSFORSHARED
='$(CCSHARED)'
14914 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14915 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14917 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14918 # library (with --enable-shared).
14919 # For platforms on which shared libraries are not allowed to have unresolved
14920 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14921 # if it is not required, since it creates a dependency of the shared library
14922 # to LIBS. This, in turn, means that applications linking the shared libpython
14923 # don't need to link LIBS explicitly. The default should be only changed
14924 # on systems where this approach causes problems.
14926 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14927 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14928 case "$ac_sys_system" in
14932 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14933 echo "${ECHO_T}$SHLIBS" >&6; }
14936 # checks for libraries
14938 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14939 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14940 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 ac_check_lib_save_LIBS
=$LIBS
14945 cat >conftest.
$ac_ext <<_ACEOF
14948 cat confdefs.h
>>conftest.
$ac_ext
14949 cat >>conftest.
$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14967 rm -f conftest.
$ac_objext conftest
$ac_exeext
14968 if { (ac_try
="$ac_link"
14969 case "(($ac_try" in
14970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_link") 2>conftest.er1
14976 grep -v '^ *+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } && {
14981 test -z "$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest$ac_exeext &&
14984 $as_test_x conftest$ac_exeext; then
14985 ac_cv_lib_dl_dlopen=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_dl_dlopen=no
14993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14994 conftest$ac_exeext conftest.$ac_ext
14995 LIBS=$ac_check_lib_save_LIBS
14997 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14998 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14999 if test $ac_cv_lib_dl_dlopen = yes; then
15000 cat >>confdefs.h <<_ACEOF
15001 #define HAVE_LIBDL 1
15007 # Dynamic linking for SunOS/Solaris and SYSV
15009 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15010 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15011 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 ac_check_lib_save_LIBS=$LIBS
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15023 /* Override any GCC internal prototype to avoid an error.
15024 Use char because int might match the return type of a GCC
15025 builtin and then its argument prototype would still apply. */
15033 return shl_load ();
15038 rm -f conftest.$ac_objext conftest$ac_exeext
15039 if { (ac_try="$ac_link"
15040 case "(($ac_try" in
15041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15042 *) ac_try_echo
=$ac_try;;
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_link") 2>conftest.er1
15047 grep -v '^ *+' conftest.er1
>conftest.err
15049 cat conftest.err
>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } && {
15052 test -z "$ac_c_werror_flag" ||
15053 test ! -s conftest.err
15054 } && test -s conftest
$ac_exeext &&
15055 $as_test_x conftest
$ac_exeext; then
15056 ac_cv_lib_dld_shl_load
=yes
15058 echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.
$ac_ext >&5
15061 ac_cv_lib_dld_shl_load
=no
15064 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15065 conftest
$ac_exeext conftest.
$ac_ext
15066 LIBS
=$ac_check_lib_save_LIBS
15068 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15069 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15070 if test $ac_cv_lib_dld_shl_load = yes; then
15071 cat >>confdefs.h
<<_ACEOF
15072 #define HAVE_LIBDLD 1
15078 # Dynamic linking for HP-UX
15080 # only check for sem_init if thread support is requested
15081 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15082 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15083 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15084 if test "${ac_cv_search_sem_init+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 ac_func_search_save_LIBS
=$LIBS
15088 cat >conftest.
$ac_ext <<_ACEOF
15091 cat confdefs.h
>>conftest.
$ac_ext
15092 cat >>conftest.
$ac_ext <<_ACEOF
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15105 return sem_init ();
15110 for ac_lib
in '' pthread rt posix4
; do
15111 if test -z "$ac_lib"; then
15112 ac_res
="none required"
15115 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15117 rm -f conftest.
$ac_objext conftest
$ac_exeext
15118 if { (ac_try
="$ac_link"
15119 case "(($ac_try" in
15120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_link") 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest$ac_exeext &&
15134 $as_test_x conftest$ac_exeext; then
15135 ac_cv_search_sem_init=$ac_res
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15145 if test "${ac_cv_search_sem_init+set}" = set; then
15149 if test "${ac_cv_search_sem_init+set}" = set; then
15152 ac_cv_search_sem_init=no
15154 rm conftest.$ac_ext
15155 LIBS=$ac_func_search_save_LIBS
15157 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15158 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15159 ac_res=$ac_cv_search_sem_init
15160 if test "$ac_res" != no; then
15161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15164 # 'Real Time' functions on Solaris
15165 # posix4 on Solaris 2.6
15166 # pthread (first!) on Linux
15169 # check if we need libintl for locale functions
15170 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15171 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15172 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_check_lib_save_LIBS=$LIBS
15176 LIBS="-lintl $LIBS"
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15184 /* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15190 char textdomain ();
15194 return textdomain ();
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (ac_try="$ac_link"
15201 case "(($ac_try" in
15202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15203 *) ac_try_echo
=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15208 grep -v '^ *+' conftest.er1
>conftest.err
15210 cat conftest.err
>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && {
15213 test -z "$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 } && test -s conftest
$ac_exeext &&
15216 $as_test_x conftest
$ac_exeext; then
15217 ac_cv_lib_intl_textdomain
=yes
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.
$ac_ext >&5
15222 ac_cv_lib_intl_textdomain
=no
15225 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15226 conftest
$ac_exeext conftest.
$ac_ext
15227 LIBS
=$ac_check_lib_save_LIBS
15229 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15230 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15231 if test $ac_cv_lib_intl_textdomain = yes; then
15233 cat >>confdefs.h
<<\_ACEOF
15234 #define WITH_LIBINTL 1
15240 # checks for system dependent C++ extensions support
15241 case "$ac_sys_system" in
15242 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15243 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15244 cat >conftest.
$ac_ext <<_ACEOF
15247 cat confdefs.h
>>conftest.
$ac_ext
15248 cat >>conftest.
$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 #include "/usr/lpp/xlC/include/load.h"
15254 loadAndInit("", 0, "")
15259 rm -f conftest.
$ac_objext conftest
$ac_exeext
15260 if { (ac_try
="$ac_link"
15261 case "(($ac_try" in
15262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_link") 2>conftest.er1
15268 grep -v '^ *+' conftest.er1 >conftest.err
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } && {
15273 test -z "$ac_c_werror_flag" ||
15274 test ! -s conftest.err
15275 } && test -s conftest$ac_exeext &&
15276 $as_test_x conftest$ac_exeext; then
15278 cat >>confdefs.h <<\_ACEOF
15279 #define AIX_GENUINE_CPLUSPLUS 1
15282 { echo "$as_me:$LINENO: result: yes" >&5
15283 echo "${ECHO_T}yes" >&6; }
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 { echo "$as_me:$LINENO: result: no" >&5
15289 echo "${ECHO_T}no" >&6; }
15292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15293 conftest$ac_exeext conftest.$ac_ext;;
15297 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15298 # BeOS' sockets are stashed in libnet.
15299 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15300 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15301 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 ac_check_lib_save_LIBS=$LIBS
15306 cat >conftest.$ac_ext <<_ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15313 /* Override any GCC internal prototype to avoid an error.
15314 Use char because int might match the return type of a GCC
15315 builtin and then its argument prototype would still apply. */
15328 rm -f conftest.$ac_objext conftest$ac_exeext
15329 if { (ac_try="$ac_link"
15330 case "(($ac_try" in
15331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15332 *) ac_try_echo
=$ac_try;;
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335 (eval "$ac_link") 2>conftest.er1
15337 grep -v '^ *+' conftest.er1
>conftest.err
15339 cat conftest.err
>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); } && {
15342 test -z "$ac_c_werror_flag" ||
15343 test ! -s conftest.err
15344 } && test -s conftest
$ac_exeext &&
15345 $as_test_x conftest
$ac_exeext; then
15346 ac_cv_lib_nsl_t_open
=yes
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.
$ac_ext >&5
15351 ac_cv_lib_nsl_t_open
=no
15354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15355 conftest
$ac_exeext conftest.
$ac_ext
15356 LIBS
=$ac_check_lib_save_LIBS
15358 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15359 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15360 if test $ac_cv_lib_nsl_t_open = yes; then
15364 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15365 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15366 if test "${ac_cv_lib_socket_socket+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 ac_check_lib_save_LIBS
=$LIBS
15370 LIBS
="-lsocket $LIBS $LIBS"
15371 cat >conftest.
$ac_ext <<_ACEOF
15374 cat confdefs.h
>>conftest.
$ac_ext
15375 cat >>conftest.
$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15378 /* Override any GCC internal prototype to avoid an error.
15379 Use char because int might match the return type of a GCC
15380 builtin and then its argument prototype would still apply. */
15393 rm -f conftest.
$ac_objext conftest
$ac_exeext
15394 if { (ac_try
="$ac_link"
15395 case "(($ac_try" in
15396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15397 *) ac_try_echo=$ac_try;;
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400 (eval "$ac_link") 2>conftest.er1
15402 grep -v '^ *+' conftest.er1 >conftest.err
15404 cat conftest.err >&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); } && {
15407 test -z "$ac_c_werror_flag" ||
15408 test ! -s conftest.err
15409 } && test -s conftest$ac_exeext &&
15410 $as_test_x conftest$ac_exeext; then
15411 ac_cv_lib_socket_socket=yes
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15416 ac_cv_lib_socket_socket=no
15419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS
15423 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15424 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15425 if test $ac_cv_lib_socket_socket = yes; then
15426 LIBS="-lsocket $LIBS"
15430 case "$ac_sys_system" in
15432 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15433 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15434 if test "${ac_cv_lib_net_socket+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 ac_check_lib_save_LIBS=$LIBS
15438 LIBS="-lnet $LIBS $LIBS"
15439 cat >conftest.$ac_ext <<_ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h. */
15446 /* Override any GCC internal prototype to avoid an error.
15447 Use char because int might match the return type of a GCC
15448 builtin and then its argument prototype would still apply. */
15461 rm -f conftest.$ac_objext conftest$ac_exeext
15462 if { (ac_try="$ac_link"
15463 case "(($ac_try" in
15464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15465 *) ac_try_echo
=$ac_try;;
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_link") 2>conftest.er1
15470 grep -v '^ *+' conftest.er1
>conftest.err
15472 cat conftest.err
>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } && {
15475 test -z "$ac_c_werror_flag" ||
15476 test ! -s conftest.err
15477 } && test -s conftest
$ac_exeext &&
15478 $as_test_x conftest
$ac_exeext; then
15479 ac_cv_lib_net_socket
=yes
15481 echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.
$ac_ext >&5
15484 ac_cv_lib_net_socket
=no
15487 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15488 conftest
$ac_exeext conftest.
$ac_ext
15489 LIBS
=$ac_check_lib_save_LIBS
15491 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15492 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15493 if test $ac_cv_lib_net_socket = yes; then
15500 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15501 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15503 # Check whether --with-libs was given.
15504 if test "${with_libs+set}" = set; then
15505 withval
=$with_libs;
15506 { echo "$as_me:$LINENO: result: $withval" >&5
15507 echo "${ECHO_T}$withval" >&6; }
15508 LIBS
="$withval $LIBS"
15511 { echo "$as_me:$LINENO: result: no" >&5
15512 echo "${ECHO_T}no" >&6; }
15516 # Check for use of the system libffi library
15517 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15518 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15520 # Check whether --with-system_ffi was given.
15521 if test "${with_system_ffi+set}" = set; then
15522 withval
=$with_system_ffi;
15526 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15527 echo "${ECHO_T}$with_system_ffi" >&6; }
15529 # Check for --with-dbmliborder
15530 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15531 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15533 # Check whether --with-dbmliborder was given.
15534 if test "${with_dbmliborder+set}" = set; then
15535 withval
=$with_dbmliborder;
15536 if test x
$with_dbmliborder = xyes
15538 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15539 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15540 { (exit 1); exit 1; }; }
15542 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15543 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
15545 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15546 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15547 { (exit 1); exit 1; }; }
15553 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15554 echo "${ECHO_T}$with_dbmliborder" >&6; }
15556 # Determine if signalmodule should be used.
15559 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15560 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15562 # Check whether --with-signal-module was given.
15563 if test "${with_signal_module+set}" = set; then
15564 withval
=$with_signal_module;
15568 if test -z "$with_signal_module"
15569 then with_signal_module
="yes"
15571 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15572 echo "${ECHO_T}$with_signal_module" >&6; }
15574 if test "${with_signal_module}" = "yes"; then
15575 USE_SIGNAL_MODULE
=""
15578 USE_SIGNAL_MODULE
="#"
15579 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
15582 # This is used to generate Setup.config
15584 USE_THREAD_MODULE
=""
15586 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15587 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15590 # Check whether --with-dec-threads was given.
15591 if test "${with_dec_threads+set}" = set; then
15592 withval
=$with_dec_threads;
15593 { echo "$as_me:$LINENO: result: $withval" >&5
15594 echo "${ECHO_T}$withval" >&6; }
15596 if test "${with_thread+set}" != set; then
15597 with_thread
="$withval";
15600 { echo "$as_me:$LINENO: result: no" >&5
15601 echo "${ECHO_T}no" >&6; }
15605 # Templates for things AC_DEFINEd more than once.
15606 # For a single AC_DEFINE, no template is needed.
15614 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15615 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15617 # Check whether --with-threads was given.
15618 if test "${with_threads+set}" = set; then
15619 withval
=$with_threads;
15623 # --with-thread is deprecated, but check for it anyway
15625 # Check whether --with-thread was given.
15626 if test "${with_thread+set}" = set; then
15627 withval
=$with_thread; with_threads
=$with_thread
15631 if test -z "$with_threads"
15632 then with_threads
="yes"
15634 { echo "$as_me:$LINENO: result: $with_threads" >&5
15635 echo "${ECHO_T}$with_threads" >&6; }
15638 if test "$with_threads" = "no"
15640 USE_THREAD_MODULE
="#"
15641 elif test "$ac_cv_pthread_is_default" = yes
15643 cat >>confdefs.h
<<\_ACEOF
15644 #define WITH_THREAD 1
15647 # Defining _REENTRANT on system with POSIX threads should not hurt.
15648 cat >>confdefs.h
<<\_ACEOF
15649 #define _REENTRANT 1
15653 THREADOBJ
="Python/thread.o"
15654 elif test "$ac_cv_kpthread" = "yes"
15657 if test "$ac_cv_cxx_thread" = "yes"; then
15658 CXX
="$CXX -Kpthread"
15660 cat >>confdefs.h
<<\_ACEOF
15661 #define WITH_THREAD 1
15665 THREADOBJ
="Python/thread.o"
15666 elif test "$ac_cv_kthread" = "yes"
15669 if test "$ac_cv_cxx_thread" = "yes"; then
15670 CXX
="$CXX -Kthread"
15672 cat >>confdefs.h
<<\_ACEOF
15673 #define WITH_THREAD 1
15677 THREADOBJ
="Python/thread.o"
15678 elif test "$ac_cv_pthread" = "yes"
15681 if test "$ac_cv_cxx_thread" = "yes"; then
15682 CXX
="$CXX -pthread"
15684 cat >>confdefs.h
<<\_ACEOF
15685 #define WITH_THREAD 1
15689 THREADOBJ
="Python/thread.o"
15691 if test ! -z "$with_threads" -a -d "$with_threads"
15692 then LDFLAGS
="$LDFLAGS -L$with_threads"
15694 if test ! -z "$withval" -a -d "$withval"
15695 then LDFLAGS
="$LDFLAGS -L$withval"
15698 # According to the POSIX spec, a pthreads implementation must
15699 # define _POSIX_THREADS in unistd.h. Some apparently don't
15700 # (e.g. gnu pth with pthread emulation)
15701 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15702 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15703 cat >conftest.
$ac_ext <<_ACEOF
15706 cat confdefs.h
>>conftest.
$ac_ext
15707 cat >>conftest.
$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15710 #include <unistd.h>
15711 #ifdef _POSIX_THREADS
15716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15717 $EGREP "yes" >/dev
/null
2>&1; then
15718 unistd_defines_pthreads
=yes
15720 unistd_defines_pthreads
=no
15724 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15725 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15727 cat >>confdefs.h
<<\_ACEOF
15728 #define _REENTRANT 1
15731 if test "${ac_cv_header_cthreads_h+set}" = set; then
15732 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15733 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15734 if test "${ac_cv_header_cthreads_h+set}" = set; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15737 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15738 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15740 # Is the header compilable?
15741 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15742 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15743 cat >conftest.
$ac_ext <<_ACEOF
15746 cat confdefs.h
>>conftest.
$ac_ext
15747 cat >>conftest.
$ac_ext <<_ACEOF
15748 /* end confdefs.h. */
15749 $ac_includes_default
15750 #include <cthreads.h>
15752 rm -f conftest.
$ac_objext
15753 if { (ac_try
="$ac_compile"
15754 case "(($ac_try" in
15755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_compile") 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } && {
15766 test -z "$ac_c_werror_flag" ||
15767 test ! -s conftest.err
15768 } && test -s conftest.$ac_objext; then
15769 ac_header_compiler=yes
15771 echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_header_compiler=no
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15779 echo "${ECHO_T}$ac_header_compiler" >&6; }
15781 # Is the header present?
15782 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15783 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15784 cat >conftest.$ac_ext <<_ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15790 #include <cthreads.h>
15792 if { (ac_try="$ac_cpp conftest.$ac_ext"
15793 case "(($ac_try" in
15794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15795 *) ac_try_echo
=$ac_try;;
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15800 grep -v '^ *+' conftest.er1
>conftest.err
15802 cat conftest.err
>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } >/dev
/null
&& {
15805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15806 test ! -s conftest.err
15808 ac_header_preproc
=yes
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.
$ac_ext >&5
15813 ac_header_preproc
=no
15816 rm -f conftest.err conftest.
$ac_ext
15817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15818 echo "${ECHO_T}$ac_header_preproc" >&6; }
15820 # So? What about this header?
15821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15823 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15824 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15825 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15826 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15827 ac_header_preproc
=yes
15830 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15831 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15833 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15835 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15837 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15839 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15841 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15843 ## -------------------------------------- ##
15844 ## Report this to http://bugs.python.org/ ##
15845 ## -------------------------------------- ##
15847 ) |
sed "s/^/$as_me: WARNING: /" >&2
15850 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15851 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15852 if test "${ac_cv_header_cthreads_h+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 ac_cv_header_cthreads_h
=$ac_header_preproc
15857 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15858 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15861 if test $ac_cv_header_cthreads_h = yes; then
15862 cat >>confdefs.h
<<\_ACEOF
15863 #define WITH_THREAD 1
15866 cat >>confdefs.h
<<\_ACEOF
15867 #define C_THREADS 1
15871 cat >>confdefs.h
<<\_ACEOF
15872 #define HURD_C_THREADS 1
15875 LIBS
="$LIBS -lthreads"
15876 THREADOBJ
="Python/thread.o"
15879 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15880 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15881 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15882 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15886 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15888 # Is the header compilable?
15889 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15890 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15891 cat >conftest.
$ac_ext <<_ACEOF
15894 cat confdefs.h
>>conftest.
$ac_ext
15895 cat >>conftest.
$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 $ac_includes_default
15898 #include <mach/cthreads.h>
15900 rm -f conftest.
$ac_objext
15901 if { (ac_try
="$ac_compile"
15902 case "(($ac_try" in
15903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_compile") 2>conftest.er1
15909 grep -v '^ *+' conftest.er1 >conftest.err
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && {
15914 test -z "$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15916 } && test -s conftest.$ac_objext; then
15917 ac_header_compiler=yes
15919 echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15922 ac_header_compiler=no
15925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15927 echo "${ECHO_T}$ac_header_compiler" >&6; }
15929 # Is the header present?
15930 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15931 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15932 cat >conftest.$ac_ext <<_ACEOF
15935 cat confdefs.h >>conftest.$ac_ext
15936 cat >>conftest.$ac_ext <<_ACEOF
15937 /* end confdefs.h. */
15938 #include <mach/cthreads.h>
15940 if { (ac_try="$ac_cpp conftest.$ac_ext"
15941 case "(($ac_try" in
15942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15943 *) ac_try_echo
=$ac_try;;
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15948 grep -v '^ *+' conftest.er1
>conftest.err
15950 cat conftest.err
>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } >/dev
/null
&& {
15953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15954 test ! -s conftest.err
15956 ac_header_preproc
=yes
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.
$ac_ext >&5
15961 ac_header_preproc
=no
15964 rm -f conftest.err conftest.
$ac_ext
15965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15966 echo "${ECHO_T}$ac_header_preproc" >&6; }
15968 # So? What about this header?
15969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15971 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15972 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15974 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15975 ac_header_preproc
=yes
15978 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15979 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15981 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15983 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15985 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15987 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15989 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15991 ## -------------------------------------- ##
15992 ## Report this to http://bugs.python.org/ ##
15993 ## -------------------------------------- ##
15995 ) |
sed "s/^/$as_me: WARNING: /" >&2
15998 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15999 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16000 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
16005 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16006 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16009 if test $ac_cv_header_mach_cthreads_h = yes; then
16010 cat >>confdefs.h
<<\_ACEOF
16011 #define WITH_THREAD 1
16014 cat >>confdefs.h
<<\_ACEOF
16015 #define C_THREADS 1
16019 cat >>confdefs.h
<<\_ACEOF
16020 #define MACH_C_THREADS 1
16023 THREADOBJ
="Python/thread.o"
16026 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16027 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16029 # Check whether --with-pth was given.
16030 if test "${with_pth+set}" = set; then
16031 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16032 echo "${ECHO_T}$withval" >&6; }
16033 cat >>confdefs.h
<<\_ACEOF
16034 #define WITH_THREAD 1
16038 cat >>confdefs.h
<<\_ACEOF
16043 THREADOBJ
="Python/thread.o"
16045 { echo "$as_me:$LINENO: result: no" >&5
16046 echo "${ECHO_T}no" >&6; }
16048 # Just looking for pthread_create in libpthread is not enough:
16049 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16050 # So we really have to include pthread.h, and then link.
16052 LIBS
="$LIBS -lpthread"
16053 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16054 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16055 cat >conftest.
$ac_ext <<_ACEOF
16058 cat confdefs.h
>>conftest.
$ac_ext
16059 cat >>conftest.
$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 #include <pthread.h>
16063 void * start_routine (void *arg) { exit (0); }
16068 pthread_create (NULL, NULL, start_routine, NULL)
16073 rm -f conftest.
$ac_objext conftest
$ac_exeext
16074 if { (ac_try
="$ac_link"
16075 case "(($ac_try" in
16076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_link") 2>conftest.er1
16082 grep -v '^ *+' conftest.er1 >conftest.err
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } && {
16087 test -z "$ac_c_werror_flag" ||
16088 test ! -s conftest.err
16089 } && test -s conftest$ac_exeext &&
16090 $as_test_x conftest$ac_exeext; then
16092 { echo "$as_me:$LINENO: result: yes" >&5
16093 echo "${ECHO_T}yes" >&6; }
16094 cat >>confdefs.h <<\_ACEOF
16095 #define WITH_THREAD 1
16099 THREADOBJ="Python/thread.o"
16101 echo "$as_me: failed program was:" >&5
16102 sed 's/^/| /' conftest.$ac_ext >&5
16106 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16107 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16108 if test "${ac_cv_func_pthread_detach+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16119 #define pthread_detach innocuous_pthread_detach
16121 /* System header to define __stub macros and hopefully few prototypes,
16122 which can conflict with char pthread_detach (); below.
16123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16124 <limits.h> exists even on freestanding compilers. */
16127 # include <limits.h>
16129 # include <assert.h>
16132 #undef pthread_detach
16134 /* Override any GCC internal prototype to avoid an error.
16135 Use char because int might match the return type of a GCC
16136 builtin and then its argument prototype would still apply. */
16140 char pthread_detach ();
16141 /* The GNU C library defines this for functions which it implements
16142 to always fail with ENOSYS. Some functions are actually named
16143 something starting with __ and the normal name is an alias. */
16144 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16151 return pthread_detach ();
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (ac_try="$ac_link"
16158 case "(($ac_try" in
16159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16160 *) ac_try_echo
=$ac_try;;
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163 (eval "$ac_link") 2>conftest.er1
16165 grep -v '^ *+' conftest.er1
>conftest.err
16167 cat conftest.err
>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } && {
16170 test -z "$ac_c_werror_flag" ||
16171 test ! -s conftest.err
16172 } && test -s conftest
$ac_exeext &&
16173 $as_test_x conftest
$ac_exeext; then
16174 ac_cv_func_pthread_detach
=yes
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.
$ac_ext >&5
16179 ac_cv_func_pthread_detach
=no
16182 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16183 conftest
$ac_exeext conftest.
$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16186 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16187 if test $ac_cv_func_pthread_detach = yes; then
16188 cat >>confdefs.h
<<\_ACEOF
16189 #define WITH_THREAD 1
16193 THREADOBJ
="Python/thread.o"
16196 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16197 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16198 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16199 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16203 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16205 # Is the header compilable?
16206 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16207 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16208 cat >conftest.
$ac_ext <<_ACEOF
16211 cat confdefs.h
>>conftest.
$ac_ext
16212 cat >>conftest.
$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16214 $ac_includes_default
16215 #include <atheos/threads.h>
16217 rm -f conftest.
$ac_objext
16218 if { (ac_try
="$ac_compile"
16219 case "(($ac_try" in
16220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_compile") 2>conftest.er1
16226 grep -v '^ *+' conftest.er1 >conftest.err
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } && {
16231 test -z "$ac_c_werror_flag" ||
16232 test ! -s conftest.err
16233 } && test -s conftest.$ac_objext; then
16234 ac_header_compiler=yes
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ac_header_compiler=no
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16244 echo "${ECHO_T}$ac_header_compiler" >&6; }
16246 # Is the header present?
16247 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16248 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 #include <atheos/threads.h>
16257 if { (ac_try="$ac_cpp conftest.$ac_ext"
16258 case "(($ac_try" in
16259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16260 *) ac_try_echo
=$ac_try;;
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16265 grep -v '^ *+' conftest.er1
>conftest.err
16267 cat conftest.err
>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } >/dev
/null
&& {
16270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16271 test ! -s conftest.err
16273 ac_header_preproc
=yes
16275 echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.
$ac_ext >&5
16278 ac_header_preproc
=no
16281 rm -f conftest.err conftest.
$ac_ext
16282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16283 echo "${ECHO_T}$ac_header_preproc" >&6; }
16285 # So? What about this header?
16286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16288 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16289 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16290 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16291 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16292 ac_header_preproc
=yes
16295 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16296 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16298 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16300 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16302 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16304 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16306 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16308 ## -------------------------------------- ##
16309 ## Report this to http://bugs.python.org/ ##
16310 ## -------------------------------------- ##
16312 ) |
sed "s/^/$as_me: WARNING: /" >&2
16315 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16316 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16317 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 ac_cv_header_atheos_threads_h
=$ac_header_preproc
16322 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16323 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16326 if test $ac_cv_header_atheos_threads_h = yes; then
16327 cat >>confdefs.h
<<\_ACEOF
16328 #define WITH_THREAD 1
16332 cat >>confdefs.h
<<\_ACEOF
16333 #define ATHEOS_THREADS 1
16336 THREADOBJ
="Python/thread.o"
16339 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16340 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16341 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16342 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16346 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16348 # Is the header compilable?
16349 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16350 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16351 cat >conftest.
$ac_ext <<_ACEOF
16354 cat confdefs.h
>>conftest.
$ac_ext
16355 cat >>conftest.
$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 $ac_includes_default
16358 #include <kernel/OS.h>
16360 rm -f conftest.
$ac_objext
16361 if { (ac_try
="$ac_compile"
16362 case "(($ac_try" in
16363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_compile") 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest.$ac_objext; then
16377 ac_header_compiler=yes
16379 echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 ac_header_compiler=no
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16387 echo "${ECHO_T}$ac_header_compiler" >&6; }
16389 # Is the header present?
16390 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16391 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16392 cat >conftest.$ac_ext <<_ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 #include <kernel/OS.h>
16400 if { (ac_try="$ac_cpp conftest.$ac_ext"
16401 case "(($ac_try" in
16402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16403 *) ac_try_echo
=$ac_try;;
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16408 grep -v '^ *+' conftest.er1
>conftest.err
16410 cat conftest.err
>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } >/dev
/null
&& {
16413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16414 test ! -s conftest.err
16416 ac_header_preproc
=yes
16418 echo "$as_me: failed program was:" >&5
16419 sed 's/^/| /' conftest.
$ac_ext >&5
16421 ac_header_preproc
=no
16424 rm -f conftest.err conftest.
$ac_ext
16425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16426 echo "${ECHO_T}$ac_header_preproc" >&6; }
16428 # So? What about this header?
16429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16431 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16432 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16434 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16435 ac_header_preproc
=yes
16438 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16439 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16441 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16443 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16445 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16447 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16449 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16451 ## -------------------------------------- ##
16452 ## Report this to http://bugs.python.org/ ##
16453 ## -------------------------------------- ##
16455 ) |
sed "s/^/$as_me: WARNING: /" >&2
16458 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16459 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16460 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16463 ac_cv_header_kernel_OS_h
=$ac_header_preproc
16465 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16466 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16469 if test $ac_cv_header_kernel_OS_h = yes; then
16470 cat >>confdefs.h
<<\_ACEOF
16471 #define WITH_THREAD 1
16475 cat >>confdefs.h
<<\_ACEOF
16476 #define BEOS_THREADS 1
16479 THREADOBJ
="Python/thread.o"
16482 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16483 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16484 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 ac_check_lib_save_LIBS
=$LIBS
16488 LIBS
="-lpthreads $LIBS"
16489 cat >conftest.
$ac_ext <<_ACEOF
16492 cat confdefs.h
>>conftest.
$ac_ext
16493 cat >>conftest.
$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16502 char pthread_create ();
16506 return pthread_create ();
16511 rm -f conftest.
$ac_objext conftest
$ac_exeext
16512 if { (ac_try
="$ac_link"
16513 case "(($ac_try" in
16514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } && {
16525 test -z "$ac_c_werror_flag" ||
16526 test ! -s conftest.err
16527 } && test -s conftest$ac_exeext &&
16528 $as_test_x conftest$ac_exeext; then
16529 ac_cv_lib_pthreads_pthread_create=yes
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 ac_cv_lib_pthreads_pthread_create=no
16537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16538 conftest$ac_exeext conftest.$ac_ext
16539 LIBS=$ac_check_lib_save_LIBS
16541 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16542 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16543 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16544 cat >>confdefs.h <<\_ACEOF
16545 #define WITH_THREAD 1
16549 LIBS="$LIBS -lpthreads"
16550 THREADOBJ="Python/thread.o"
16553 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16554 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16555 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16558 ac_check_lib_save_LIBS=$LIBS
16560 cat >conftest.$ac_ext <<_ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16567 /* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16573 char pthread_create ();
16577 return pthread_create ();
16582 rm -f conftest.$ac_objext conftest$ac_exeext
16583 if { (ac_try="$ac_link"
16584 case "(($ac_try" in
16585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16586 *) ac_try_echo
=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_link") 2>conftest.er1
16591 grep -v '^ *+' conftest.er1
>conftest.err
16593 cat conftest.err
>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest
$ac_exeext &&
16599 $as_test_x conftest
$ac_exeext; then
16600 ac_cv_lib_c_r_pthread_create
=yes
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.
$ac_ext >&5
16605 ac_cv_lib_c_r_pthread_create
=no
16608 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16609 conftest
$ac_exeext conftest.
$ac_ext
16610 LIBS
=$ac_check_lib_save_LIBS
16612 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16613 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16614 if test $ac_cv_lib_c_r_pthread_create = yes; then
16615 cat >>confdefs.h
<<\_ACEOF
16616 #define WITH_THREAD 1
16621 THREADOBJ
="Python/thread.o"
16624 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16625 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16626 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16629 ac_check_lib_save_LIBS
=$LIBS
16630 LIBS
="-lpthread $LIBS"
16631 cat >conftest.
$ac_ext <<_ACEOF
16634 cat confdefs.h
>>conftest.
$ac_ext
16635 cat >>conftest.
$ac_ext <<_ACEOF
16636 /* end confdefs.h. */
16638 /* Override any GCC internal prototype to avoid an error.
16639 Use char because int might match the return type of a GCC
16640 builtin and then its argument prototype would still apply. */
16644 char __pthread_create_system ();
16648 return __pthread_create_system ();
16653 rm -f conftest.
$ac_objext conftest
$ac_exeext
16654 if { (ac_try
="$ac_link"
16655 case "(($ac_try" in
16656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_link") 2>conftest.er1
16662 grep -v '^ *+' conftest.er1 >conftest.err
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } && {
16667 test -z "$ac_c_werror_flag" ||
16668 test ! -s conftest.err
16669 } && test -s conftest$ac_exeext &&
16670 $as_test_x conftest$ac_exeext; then
16671 ac_cv_lib_pthread___pthread_create_system=yes
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 ac_cv_lib_pthread___pthread_create_system=no
16679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16680 conftest$ac_exeext conftest.$ac_ext
16681 LIBS=$ac_check_lib_save_LIBS
16683 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16684 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16685 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define WITH_THREAD 1
16691 LIBS="$LIBS -lpthread"
16692 THREADOBJ="Python/thread.o"
16695 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16696 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16697 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 ac_check_lib_save_LIBS=$LIBS
16702 cat >conftest.$ac_ext <<_ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16709 /* Override any GCC internal prototype to avoid an error.
16710 Use char because int might match the return type of a GCC
16711 builtin and then its argument prototype would still apply. */
16715 char pthread_create ();
16719 return pthread_create ();
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (ac_try="$ac_link"
16726 case "(($ac_try" in
16727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16728 *) ac_try_echo
=$ac_try;;
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_link") 2>conftest.er1
16733 grep -v '^ *+' conftest.er1
>conftest.err
16735 cat conftest.err
>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } && {
16738 test -z "$ac_c_werror_flag" ||
16739 test ! -s conftest.err
16740 } && test -s conftest
$ac_exeext &&
16741 $as_test_x conftest
$ac_exeext; then
16742 ac_cv_lib_cma_pthread_create
=yes
16744 echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.
$ac_ext >&5
16747 ac_cv_lib_cma_pthread_create
=no
16750 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16751 conftest
$ac_exeext conftest.
$ac_ext
16752 LIBS
=$ac_check_lib_save_LIBS
16754 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16755 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16756 if test $ac_cv_lib_cma_pthread_create = yes; then
16757 cat >>confdefs.h
<<\_ACEOF
16758 #define WITH_THREAD 1
16763 THREADOBJ
="Python/thread.o"
16766 USE_THREAD_MODULE
="#"
16786 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16787 conftest
$ac_exeext conftest.
$ac_ext
16797 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16798 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16799 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 ac_check_lib_save_LIBS
=$LIBS
16804 cat >conftest.
$ac_ext <<_ACEOF
16807 cat confdefs.h
>>conftest.
$ac_ext
16808 cat >>conftest.
$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16811 /* Override any GCC internal prototype to avoid an error.
16812 Use char because int might match the return type of a GCC
16813 builtin and then its argument prototype would still apply. */
16821 return usconfig ();
16826 rm -f conftest.
$ac_objext conftest
$ac_exeext
16827 if { (ac_try
="$ac_link"
16828 case "(($ac_try" in
16829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_link") 2>conftest.er1
16835 grep -v '^ *+' conftest.er1 >conftest.err
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } && {
16840 test -z "$ac_c_werror_flag" ||
16841 test ! -s conftest.err
16842 } && test -s conftest$ac_exeext &&
16843 $as_test_x conftest$ac_exeext; then
16844 ac_cv_lib_mpc_usconfig=yes
16846 echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16849 ac_cv_lib_mpc_usconfig=no
16852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16853 conftest$ac_exeext conftest.$ac_ext
16854 LIBS=$ac_check_lib_save_LIBS
16856 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16857 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16858 if test $ac_cv_lib_mpc_usconfig = yes; then
16859 cat >>confdefs.h <<\_ACEOF
16860 #define WITH_THREAD 1
16864 THREADOBJ="Python/thread.o"
16865 USE_THREAD_MODULE=""
16869 if test "$posix_threads" != "yes"; then
16870 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16871 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16872 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 ac_check_lib_save_LIBS=$LIBS
16876 LIBS="-lthread $LIBS"
16877 cat >conftest.$ac_ext <<_ACEOF
16880 cat confdefs.h >>conftest.$ac_ext
16881 cat >>conftest.$ac_ext <<_ACEOF
16882 /* end confdefs.h. */
16884 /* Override any GCC internal prototype to avoid an error.
16885 Use char because int might match the return type of a GCC
16886 builtin and then its argument prototype would still apply. */
16890 char thr_create ();
16894 return thr_create ();
16899 rm -f conftest.$ac_objext conftest$ac_exeext
16900 if { (ac_try="$ac_link"
16901 case "(($ac_try" in
16902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16903 *) ac_try_echo
=$ac_try;;
16905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906 (eval "$ac_link") 2>conftest.er1
16908 grep -v '^ *+' conftest.er1
>conftest.err
16910 cat conftest.err
>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } && {
16913 test -z "$ac_c_werror_flag" ||
16914 test ! -s conftest.err
16915 } && test -s conftest
$ac_exeext &&
16916 $as_test_x conftest
$ac_exeext; then
16917 ac_cv_lib_thread_thr_create
=yes
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.
$ac_ext >&5
16922 ac_cv_lib_thread_thr_create
=no
16925 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16926 conftest
$ac_exeext conftest.
$ac_ext
16927 LIBS
=$ac_check_lib_save_LIBS
16929 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16930 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16931 if test $ac_cv_lib_thread_thr_create = yes; then
16932 cat >>confdefs.h
<<\_ACEOF
16933 #define WITH_THREAD 1
16936 LIBS
="$LIBS -lthread"
16937 THREADOBJ
="Python/thread.o"
16938 USE_THREAD_MODULE
=""
16943 if test "$USE_THREAD_MODULE" != "#"
16945 # If the above checks didn't disable threads, (at least) OSF1
16946 # needs this '-threads' argument during linking.
16947 case $ac_sys_system in
16948 OSF1
) LDLAST
=-threads;;
16953 if test "$posix_threads" = "yes"; then
16954 if test "$unistd_defines_pthreads" = "no"; then
16956 cat >>confdefs.h
<<\_ACEOF
16957 #define _POSIX_THREADS 1
16962 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16963 case $ac_sys_system/$ac_sys_release in
16965 cat >>confdefs.h
<<\_ACEOF
16966 #define HAVE_PTHREAD_DESTRUCTOR 1
16971 cat >>confdefs.h
<<\_ACEOF
16972 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16977 cat >>confdefs.h
<<\_ACEOF
16978 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16984 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16985 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16986 if test "${ac_cv_pthread_system_supported+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 if test "$cross_compiling" = yes; then
16990 ac_cv_pthread_system_supported
=no
16992 cat >conftest.
$ac_ext <<_ACEOF
16995 cat confdefs.h
>>conftest.
$ac_ext
16996 cat >>conftest.
$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 #include <pthread.h>
16999 void *foo(void *parm) {
17003 pthread_attr_t attr;
17005 if (pthread_attr_init(&attr)) exit(-1);
17006 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17007 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17011 rm -f conftest
$ac_exeext
17012 if { (ac_try
="$ac_link"
17013 case "(($ac_try" in
17014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17022 { (case "(($ac_try" in
17023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17024 *) ac_try_echo
=$ac_try;;
17026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_try") 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 ac_cv_pthread_system_supported
=yes
17033 echo "$as_me: program exited with status $ac_status" >&5
17034 echo "$as_me: failed program was:" >&5
17035 sed 's/^/| /' conftest.
$ac_ext >&5
17037 ( exit $ac_status )
17038 ac_cv_pthread_system_supported
=no
17040 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17047 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17048 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17049 if test "$ac_cv_pthread_system_supported" = "yes"; then
17051 cat >>confdefs.h
<<\_ACEOF
17052 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17057 for ac_func
in pthread_sigmask
17059 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17062 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17065 cat >conftest.
$ac_ext <<_ACEOF
17068 cat confdefs.h
>>conftest.
$ac_ext
17069 cat >>conftest.
$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17073 #define $ac_func innocuous_$ac_func
17075 /* System header to define __stub macros and hopefully few prototypes,
17076 which can conflict with char $ac_func (); below.
17077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17078 <limits.h> exists even on freestanding compilers. */
17081 # include <limits.h>
17083 # include <assert.h>
17088 /* Override any GCC internal prototype to avoid an error.
17089 Use char because int might match the return type of a GCC
17090 builtin and then its argument prototype would still apply. */
17095 /* The GNU C library defines this for functions which it implements
17096 to always fail with ENOSYS. Some functions are actually named
17097 something starting with __ and the normal name is an alias. */
17098 #if defined __stub_$ac_func || defined __stub___$ac_func
17105 return $ac_func ();
17110 rm -f conftest.
$ac_objext conftest
$ac_exeext
17111 if { (ac_try
="$ac_link"
17112 case "(($ac_try" in
17113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_link") 2>conftest.er1
17119 grep -v '^ *+' conftest.er1 >conftest.err
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest$ac_exeext &&
17127 $as_test_x conftest$ac_exeext; then
17128 eval "$as_ac_var=yes"
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 eval "$as_ac_var=no"
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137 conftest$ac_exeext conftest.$ac_ext
17139 ac_res=`eval echo '${'$as_ac_var'}'`
17140 { echo "$as_me:$LINENO: result: $ac_res" >&5
17141 echo "${ECHO_T}$ac_res" >&6; }
17142 if test `eval echo '${'$as_ac_var'}'` = yes; then
17143 cat >>confdefs.h <<_ACEOF
17144 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17146 case $ac_sys_system in
17149 cat >>confdefs.h <<\_ACEOF
17150 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17161 # Check for enable-ipv6
17164 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17165 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17166 # Check whether --enable-ipv6 was given.
17167 if test "${enable_ipv6+set}" = set; then
17168 enableval=$enable_ipv6; case "$enableval" in
17170 { echo "$as_me:$LINENO: result: no" >&5
17171 echo "${ECHO_T}no" >&6; }
17174 *) { echo "$as_me:$LINENO: result: yes" >&5
17175 echo "${ECHO_T}yes" >&6; }
17176 cat >>confdefs.h <<\_ACEOF
17177 #define ENABLE_IPV6 1
17185 if test "$cross_compiling" = yes; then
17186 { echo "$as_me:$LINENO: result: no" >&5
17187 echo "${ECHO_T}no" >&6; }
17191 cat >conftest.$ac_ext <<_ACEOF
17194 cat confdefs.h >>conftest.$ac_ext
17195 cat >>conftest.$ac_ext <<_ACEOF
17196 /* end confdefs.h. */
17197 /* AF_INET6 available check */
17198 #include <sys/types.h>
17199 #include <sys/socket.h>
17202 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17209 rm -f conftest$ac_exeext
17210 if { (ac_try="$ac_link"
17211 case "(($ac_try" in
17212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17213 *) ac_try_echo
=$ac_try;;
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_link") 2>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17220 { (case "(($ac_try" in
17221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17225 (eval "$ac_try") 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 { echo "$as_me:$LINENO: result: yes" >&5
17230 echo "${ECHO_T}yes" >&6; }
17233 echo "$as_me: program exited with status $ac_status" >&5
17234 echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17237 ( exit $ac_status )
17238 { echo "$as_me:$LINENO: result: no" >&5
17239 echo "${ECHO_T}no" >&6; }
17242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17247 if test "$ipv6" = "yes"; then
17248 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17249 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17250 cat >conftest.$ac_ext <<_ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 #include <sys/types.h>
17257 #include <netinet/in.h>
17261 struct sockaddr_in6 x;
17267 rm -f conftest.$ac_objext
17268 if { (ac_try="$ac_compile"
17269 case "(($ac_try" in
17270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17271 *) ac_try_echo
=$ac_try;;
17273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_compile") 2>conftest.er1
17276 grep -v '^ *+' conftest.er1
>conftest.err
17278 cat conftest.err
>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } && {
17281 test -z "$ac_c_werror_flag" ||
17282 test ! -s conftest.err
17283 } && test -s conftest.
$ac_objext; then
17284 { echo "$as_me:$LINENO: result: yes" >&5
17285 echo "${ECHO_T}yes" >&6; }
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.
$ac_ext >&5
17291 { echo "$as_me:$LINENO: result: no" >&5
17292 echo "${ECHO_T}no" >&6; }
17296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17299 if test "$ipv6" = "yes"; then
17300 cat >>confdefs.h
<<\_ACEOF
17301 #define ENABLE_IPV6 1
17313 if test "$ipv6" = "yes"; then
17314 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17315 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17316 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
17320 cat >conftest.
$ac_ext <<_ACEOF
17323 cat confdefs.h
>>conftest.
$ac_ext
17324 cat >>conftest.
$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17327 #include <netinet/in.h>
17328 #ifdef IPV6_INRIA_VERSION
17332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17333 $EGREP "yes" >/dev
/null
2>&1; then
17340 cat >conftest.
$ac_ext <<_ACEOF
17343 cat confdefs.h
>>conftest.
$ac_ext
17344 cat >>conftest.
$ac_ext <<_ACEOF
17345 /* end confdefs.h. */
17347 #include <netinet/in.h>
17352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17353 $EGREP "yes" >/dev
/null
2>&1; then
17356 ipv6libdir
=/usr
/local
/v
6/lib
17363 cat >conftest.
$ac_ext <<_ACEOF
17366 cat confdefs.h
>>conftest.
$ac_ext
17367 cat >>conftest.
$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17370 #include <features.h>
17371 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17376 $EGREP "yes" >/dev
/null
2>&1; then
17384 if test -d /usr
/inet6
; then
17387 ipv6libdir
=/usr
/inet
6/lib
17388 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
17392 if test -f /etc
/netconfig
; then
17393 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
17400 cat >conftest.
$ac_ext <<_ACEOF
17403 cat confdefs.h
>>conftest.
$ac_ext
17404 cat >>conftest.
$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17407 #include <sys/param.h>
17408 #ifdef _TOSHIBA_INET6
17412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17413 $EGREP "yes" >/dev
/null
2>&1; then
17416 ipv6libdir
=/usr
/local
/v
6/lib
17422 cat >conftest.
$ac_ext <<_ACEOF
17425 cat confdefs.h
>>conftest.
$ac_ext
17426 cat >>conftest.
$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17429 #include </usr/local/v6/include/sys/v6config.h>
17434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17435 $EGREP "yes" >/dev
/null
2>&1; then
17438 ipv6libdir
=/usr
/local
/v
6/lib
;
17439 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
17445 cat >conftest.
$ac_ext <<_ACEOF
17448 cat confdefs.h
>>conftest.
$ac_ext
17449 cat >>conftest.
$ac_ext <<_ACEOF
17450 /* end confdefs.h. */
17452 #include <sys/param.h>
17453 #ifdef _ZETA_MINAMI_INET6
17457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17458 $EGREP "yes" >/dev
/null
2>&1; then
17461 ipv6libdir
=/usr
/local
/v
6/lib
17467 if test "$ipv6type" != "unknown"; then
17471 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17472 echo "${ECHO_T}$ipv6type" >&6; }
17475 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17476 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
17477 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
17478 echo "using lib$ipv6lib"
17480 if test $ipv6trylibc = "yes"; then
17483 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17484 echo "You need to fetch lib$ipv6lib.a from appropriate"
17485 echo 'ipv6 kit and compile beforehand.'
17491 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17492 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17493 cat >conftest.
$ac_ext <<_ACEOF
17496 cat confdefs.h
>>conftest.
$ac_ext
17497 cat >>conftest.
$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17499 #include <Carbon/Carbon.h>
17503 FSIORefNum fRef = 0
17508 rm -f conftest.
$ac_objext
17509 if { (ac_try
="$ac_compile"
17510 case "(($ac_try" in
17511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17517 grep -v '^ *+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); } && {
17522 test -z "$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 } && test -s conftest.$ac_objext; then
17526 cat >>confdefs.h <<\_ACEOF
17527 #define HAVE_OSX105_SDK 1
17530 { echo "$as_me:$LINENO: result: yes" >&5
17531 echo "${ECHO_T}yes" >&6; }
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 { echo "$as_me:$LINENO: result: no" >&5
17537 echo "${ECHO_T}no" >&6; }
17541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543 # Check for --with-doc-strings
17544 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17545 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17547 # Check whether --with-doc-strings was given.
17548 if test "${with_doc_strings+set}" = set; then
17549 withval=$with_doc_strings;
17553 if test -z "$with_doc_strings"
17554 then with_doc_strings="yes"
17556 if test "$with_doc_strings" != "no"
17559 cat >>confdefs.h <<\_ACEOF
17560 #define WITH_DOC_STRINGS 1
17564 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17565 echo "${ECHO_T}$with_doc_strings" >&6; }
17567 # Check for Python-specific malloc support
17568 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17569 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17571 # Check whether --with-tsc was given.
17572 if test "${with_tsc+set}" = set; then
17574 if test "$withval" != no
17577 cat >>confdefs.h <<\_ACEOF
17581 { echo "$as_me:$LINENO: result: yes" >&5
17582 echo "${ECHO_T}yes" >&6; }
17583 else { echo "$as_me:$LINENO: result: no" >&5
17584 echo "${ECHO_T}no" >&6; }
17587 { echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6; }
17592 # Check for Python-specific malloc support
17593 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17594 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17596 # Check whether --with-pymalloc was given.
17597 if test "${with_pymalloc+set}" = set; then
17598 withval=$with_pymalloc;
17602 if test -z "$with_pymalloc"
17603 then with_pymalloc="yes"
17605 if test "$with_pymalloc" != "no"
17608 cat >>confdefs.h <<\_ACEOF
17609 #define WITH_PYMALLOC 1
17613 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17614 echo "${ECHO_T}$with_pymalloc" >&6; }
17616 # Check for Valgrind support
17617 { echo "$as_me:$LINENO: checking for --with-valgrind" >&5
17618 echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; }
17620 # Check whether --with-valgrind was given.
17621 if test "${with_valgrind+set}" = set; then
17622 withval=$with_valgrind;
17627 { echo "$as_me:$LINENO: result: $with_valgrind" >&5
17628 echo "${ECHO_T}$with_valgrind" >&6; }
17629 if test "$with_valgrind" != no; then
17630 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17631 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17632 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17633 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17637 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17639 # Is the header compilable?
17640 { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5
17641 echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; }
17642 cat >conftest.$ac_ext <<_ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h. */
17648 $ac_includes_default
17649 #include <valgrind/valgrind.h>
17651 rm -f conftest.$ac_objext
17652 if { (ac_try="$ac_compile"
17653 case "(($ac_try" in
17654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17655 *) ac_try_echo
=$ac_try;;
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658 (eval "$ac_compile") 2>conftest.er1
17660 grep -v '^ *+' conftest.er1
>conftest.err
17662 cat conftest.err
>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } && {
17665 test -z "$ac_c_werror_flag" ||
17666 test ! -s conftest.err
17667 } && test -s conftest.
$ac_objext; then
17668 ac_header_compiler
=yes
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.
$ac_ext >&5
17673 ac_header_compiler
=no
17676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17678 echo "${ECHO_T}$ac_header_compiler" >&6; }
17680 # Is the header present?
17681 { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5
17682 echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; }
17683 cat >conftest.
$ac_ext <<_ACEOF
17686 cat confdefs.h
>>conftest.
$ac_ext
17687 cat >>conftest.
$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 #include <valgrind/valgrind.h>
17691 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17692 case "(($ac_try" in
17693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17699 grep -v '^ *+' conftest.er1 >conftest.err
17701 cat conftest.err >&5
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); } >/dev/null && {
17704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17705 test ! -s conftest.err
17707 ac_header_preproc=yes
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 ac_header_preproc=no
17715 rm -f conftest.err conftest.$ac_ext
17716 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17717 echo "${ECHO_T}$ac_header_preproc" >&6; }
17719 # So? What about this header?
17720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17722 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
17723 echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17724 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5
17725 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;}
17726 ac_header_preproc=yes
17729 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5
17730 echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;}
17731 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5
17732 echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;}
17733 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5
17734 echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;}
17735 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
17736 echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
17737 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5
17738 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5
17740 echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;}
17742 ## -------------------------------------- ##
17743 ## Report this to http://bugs.python.org/ ##
17744 ## -------------------------------------- ##
17746 ) | sed "s/^/$as_me: WARNING: /" >&2
17749 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17750 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17751 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17752 echo $ECHO_N "(cached) $ECHO_C" >&6
17754 ac_cv_header_valgrind_valgrind_h=$ac_header_preproc
17756 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17757 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17760 if test $ac_cv_header_valgrind_valgrind_h = yes; then
17762 cat >>confdefs.h <<\_ACEOF
17763 #define WITH_VALGRIND 1
17767 { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5
17768 echo "$as_me: error: Valgrind support requested but headers not available" >&2;}
17769 { (exit 1); exit 1; }; }
17776 # Check for --with-wctype-functions
17777 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17778 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17780 # Check whether --with-wctype-functions was given.
17781 if test "${with_wctype_functions+set}" = set; then
17782 withval=$with_wctype_functions;
17783 if test "$withval" != no
17786 cat >>confdefs.h <<\_ACEOF
17787 #define WANT_WCTYPE_FUNCTIONS 1
17790 { echo "$as_me:$LINENO: result: yes" >&5
17791 echo "${ECHO_T}yes" >&6; }
17792 else { echo "$as_me:$LINENO: result: no" >&5
17793 echo "${ECHO_T}no" >&6; }
17796 { echo "$as_me:$LINENO: result: no" >&5
17797 echo "${ECHO_T}no" >&6; }
17801 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17805 # the dlopen() function means we might want to use dynload_shlib.o. some
17806 # platforms, such as AIX, have dlopen(), but don't want to use it.
17808 for ac_func in dlopen
17810 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 cat >conftest.$ac_ext <<_ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17824 #define $ac_func innocuous_$ac_func
17826 /* System header to define __stub macros and hopefully few prototypes,
17827 which can conflict with char $ac_func (); below.
17828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17829 <limits.h> exists even on freestanding compilers. */
17832 # include <limits.h>
17834 # include <assert.h>
17839 /* Override any GCC internal prototype to avoid an error.
17840 Use char because int might match the return type of a GCC
17841 builtin and then its argument prototype would still apply. */
17846 /* The GNU C library defines this for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
17849 #if defined __stub_$ac_func || defined __stub___$ac_func
17856 return $ac_func ();
17861 rm -f conftest.$ac_objext conftest$ac_exeext
17862 if { (ac_try="$ac_link"
17863 case "(($ac_try" in
17864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17865 *) ac_try_echo
=$ac_try;;
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_link") 2>conftest.er1
17870 grep -v '^ *+' conftest.er1
>conftest.err
17872 cat conftest.err
>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } && {
17875 test -z "$ac_c_werror_flag" ||
17876 test ! -s conftest.err
17877 } && test -s conftest
$ac_exeext &&
17878 $as_test_x conftest
$ac_exeext; then
17879 eval "$as_ac_var=yes"
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.
$ac_ext >&5
17884 eval "$as_ac_var=no"
17887 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17888 conftest
$ac_exeext conftest.
$ac_ext
17890 ac_res
=`eval echo '${'$as_ac_var'}'`
17891 { echo "$as_me:$LINENO: result: $ac_res" >&5
17892 echo "${ECHO_T}$ac_res" >&6; }
17893 if test `eval echo '${'$as_ac_var'}'` = yes; then
17894 cat >>confdefs.h
<<_ACEOF
17895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17902 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17903 # loading of modules.
17905 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17906 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17907 if test -z "$DYNLOADFILE"
17909 case $ac_sys_system/$ac_sys_release in
17910 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17911 if test "$ac_cv_func_dlopen" = yes
17912 then DYNLOADFILE
="dynload_shlib.o"
17913 else DYNLOADFILE
="dynload_aix.o"
17916 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
17917 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
17918 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17919 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
17920 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
17922 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17923 # out any dynamic loading
17924 if test "$ac_cv_func_dlopen" = yes
17925 then DYNLOADFILE
="dynload_shlib.o"
17926 else DYNLOADFILE
="dynload_stub.o"
17931 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17932 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17933 if test "$DYNLOADFILE" != "dynload_stub.o"
17936 cat >>confdefs.h
<<\_ACEOF
17937 #define HAVE_DYNAMIC_LOADING 1
17942 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17945 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17946 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17947 if test -z "$MACHDEP_OBJS"
17949 MACHDEP_OBJS
=$extra_machdep_objs
17951 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
17953 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17954 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17956 # checks for library functions
18056 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
18057 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
18058 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
18059 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
18060 initgroups
kill killpg lchmod lchown lstat
mkfifo mknod mktime \
18061 mremap nice pathconf pause plock poll pthread_init \
18062 putenv readlink realpath \
18063 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
18065 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
18066 setlocale setregid setreuid setresuid setresgid \
18067 setsid setpgid setpgrp setuid setvbuf snprintf \
18068 sigaction siginterrupt sigrelse strftime \
18069 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
18070 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
18072 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18075 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18078 cat >conftest.
$ac_ext <<_ACEOF
18081 cat confdefs.h
>>conftest.
$ac_ext
18082 cat >>conftest.
$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18086 #define $ac_func innocuous_$ac_func
18088 /* System header to define __stub macros and hopefully few prototypes,
18089 which can conflict with char $ac_func (); below.
18090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18091 <limits.h> exists even on freestanding compilers. */
18094 # include <limits.h>
18096 # include <assert.h>
18101 /* Override any GCC internal prototype to avoid an error.
18102 Use char because int might match the return type of a GCC
18103 builtin and then its argument prototype would still apply. */
18108 /* The GNU C library defines this for functions which it implements
18109 to always fail with ENOSYS. Some functions are actually named
18110 something starting with __ and the normal name is an alias. */
18111 #if defined __stub_$ac_func || defined __stub___$ac_func
18118 return $ac_func ();
18123 rm -f conftest.
$ac_objext conftest
$ac_exeext
18124 if { (ac_try
="$ac_link"
18125 case "(($ac_try" in
18126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest$ac_exeext &&
18140 $as_test_x conftest$ac_exeext; then
18141 eval "$as_ac_var=yes"
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 eval "$as_ac_var=no"
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150 conftest$ac_exeext conftest.$ac_ext
18152 ac_res=`eval echo '${'$as_ac_var'}'`
18153 { echo "$as_me:$LINENO: result: $ac_res" >&5
18154 echo "${ECHO_T}$ac_res" >&6; }
18155 if test `eval echo '${'$as_ac_var'}'` = yes; then
18156 cat >>confdefs.h <<_ACEOF
18157 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18164 # For some functions, having a definition is not sufficient, since
18165 # we want to take their address.
18166 { echo "$as_me:$LINENO: checking for chroot" >&5
18167 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 #include <unistd.h>
18183 rm -f conftest.$ac_objext
18184 if { (ac_try="$ac_compile"
18185 case "(($ac_try" in
18186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18187 *) ac_try_echo
=$ac_try;;
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_compile") 2>conftest.er1
18192 grep -v '^ *+' conftest.er1
>conftest.err
18194 cat conftest.err
>&5
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); } && {
18197 test -z "$ac_c_werror_flag" ||
18198 test ! -s conftest.err
18199 } && test -s conftest.
$ac_objext; then
18201 cat >>confdefs.h
<<\_ACEOF
18202 #define HAVE_CHROOT 1
18205 { echo "$as_me:$LINENO: result: yes" >&5
18206 echo "${ECHO_T}yes" >&6; }
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.
$ac_ext >&5
18211 { echo "$as_me:$LINENO: result: no" >&5
18212 echo "${ECHO_T}no" >&6; }
18216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18217 { echo "$as_me:$LINENO: checking for link" >&5
18218 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18219 cat >conftest.
$ac_ext <<_ACEOF
18222 cat confdefs.h
>>conftest.
$ac_ext
18223 cat >>conftest.
$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18225 #include <unistd.h>
18234 rm -f conftest.
$ac_objext
18235 if { (ac_try
="$ac_compile"
18236 case "(($ac_try" in
18237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_compile") 2>conftest.er1
18243 grep -v '^ *+' conftest.er1 >conftest.err
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_c_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest.$ac_objext; then
18252 cat >>confdefs.h <<\_ACEOF
18253 #define HAVE_LINK 1
18256 { echo "$as_me:$LINENO: result: yes" >&5
18257 echo "${ECHO_T}yes" >&6; }
18259 echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18262 { echo "$as_me:$LINENO: result: no" >&5
18263 echo "${ECHO_T}no" >&6; }
18267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268 { echo "$as_me:$LINENO: checking for symlink" >&5
18269 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18270 cat >conftest.$ac_ext <<_ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276 #include <unistd.h>
18285 rm -f conftest.$ac_objext
18286 if { (ac_try="$ac_compile"
18287 case "(($ac_try" in
18288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18289 *) ac_try_echo
=$ac_try;;
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_compile") 2>conftest.er1
18294 grep -v '^ *+' conftest.er1
>conftest.err
18296 cat conftest.err
>&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } && {
18299 test -z "$ac_c_werror_flag" ||
18300 test ! -s conftest.err
18301 } && test -s conftest.
$ac_objext; then
18303 cat >>confdefs.h
<<\_ACEOF
18304 #define HAVE_SYMLINK 1
18307 { echo "$as_me:$LINENO: result: yes" >&5
18308 echo "${ECHO_T}yes" >&6; }
18310 echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.
$ac_ext >&5
18313 { echo "$as_me:$LINENO: result: no" >&5
18314 echo "${ECHO_T}no" >&6; }
18318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18319 { echo "$as_me:$LINENO: checking for fchdir" >&5
18320 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18321 cat >conftest.
$ac_ext <<_ACEOF
18324 cat confdefs.h
>>conftest.
$ac_ext
18325 cat >>conftest.
$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18327 #include <unistd.h>
18336 rm -f conftest.
$ac_objext
18337 if { (ac_try
="$ac_compile"
18338 case "(($ac_try" in
18339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_compile") 2>conftest.er1
18345 grep -v '^ *+' conftest.er1 >conftest.err
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } && {
18350 test -z "$ac_c_werror_flag" ||
18351 test ! -s conftest.err
18352 } && test -s conftest.$ac_objext; then
18354 cat >>confdefs.h <<\_ACEOF
18355 #define HAVE_FCHDIR 1
18358 { echo "$as_me:$LINENO: result: yes" >&5
18359 echo "${ECHO_T}yes" >&6; }
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 { echo "$as_me:$LINENO: result: no" >&5
18365 echo "${ECHO_T}no" >&6; }
18369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370 { echo "$as_me:$LINENO: checking for fsync" >&5
18371 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 #include <unistd.h>
18387 rm -f conftest.$ac_objext
18388 if { (ac_try="$ac_compile"
18389 case "(($ac_try" in
18390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18391 *) ac_try_echo
=$ac_try;;
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_compile") 2>conftest.er1
18396 grep -v '^ *+' conftest.er1
>conftest.err
18398 cat conftest.err
>&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } && {
18401 test -z "$ac_c_werror_flag" ||
18402 test ! -s conftest.err
18403 } && test -s conftest.
$ac_objext; then
18405 cat >>confdefs.h
<<\_ACEOF
18406 #define HAVE_FSYNC 1
18409 { echo "$as_me:$LINENO: result: yes" >&5
18410 echo "${ECHO_T}yes" >&6; }
18412 echo "$as_me: failed program was:" >&5
18413 sed 's/^/| /' conftest.
$ac_ext >&5
18415 { echo "$as_me:$LINENO: result: no" >&5
18416 echo "${ECHO_T}no" >&6; }
18420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18421 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18422 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18423 cat >conftest.
$ac_ext <<_ACEOF
18426 cat confdefs.h
>>conftest.
$ac_ext
18427 cat >>conftest.
$ac_ext <<_ACEOF
18428 /* end confdefs.h. */
18429 #include <unistd.h>
18438 rm -f conftest.
$ac_objext
18439 if { (ac_try
="$ac_compile"
18440 case "(($ac_try" in
18441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_compile") 2>conftest.er1
18447 grep -v '^ *+' conftest.er1 >conftest.err
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } && {
18452 test -z "$ac_c_werror_flag" ||
18453 test ! -s conftest.err
18454 } && test -s conftest.$ac_objext; then
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_FDATASYNC 1
18460 { echo "$as_me:$LINENO: result: yes" >&5
18461 echo "${ECHO_T}yes" >&6; }
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 { echo "$as_me:$LINENO: result: no" >&5
18467 echo "${ECHO_T}no" >&6; }
18471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472 { echo "$as_me:$LINENO: checking for epoll" >&5
18473 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18474 cat >conftest.$ac_ext <<_ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18480 #include <sys/epoll.h>
18484 void *x=epoll_create
18489 rm -f conftest.$ac_objext
18490 if { (ac_try="$ac_compile"
18491 case "(($ac_try" in
18492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18493 *) ac_try_echo
=$ac_try;;
18495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18496 (eval "$ac_compile") 2>conftest.er1
18498 grep -v '^ *+' conftest.er1
>conftest.err
18500 cat conftest.err
>&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } && {
18503 test -z "$ac_c_werror_flag" ||
18504 test ! -s conftest.err
18505 } && test -s conftest.
$ac_objext; then
18507 cat >>confdefs.h
<<\_ACEOF
18508 #define HAVE_EPOLL 1
18511 { echo "$as_me:$LINENO: result: yes" >&5
18512 echo "${ECHO_T}yes" >&6; }
18514 echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.
$ac_ext >&5
18517 { echo "$as_me:$LINENO: result: no" >&5
18518 echo "${ECHO_T}no" >&6; }
18522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18523 { echo "$as_me:$LINENO: checking for kqueue" >&5
18524 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18525 cat >conftest.
$ac_ext <<_ACEOF
18528 cat confdefs.h
>>conftest.
$ac_ext
18529 cat >>conftest.
$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18532 #include <sys/types.h>
18533 #include <sys/event.h>
18543 rm -f conftest.
$ac_objext
18544 if { (ac_try
="$ac_compile"
18545 case "(($ac_try" in
18546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_compile") 2>conftest.er1
18552 grep -v '^ *+' conftest.er1 >conftest.err
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } && {
18557 test -z "$ac_c_werror_flag" ||
18558 test ! -s conftest.err
18559 } && test -s conftest.$ac_objext; then
18561 cat >>confdefs.h <<\_ACEOF
18562 #define HAVE_KQUEUE 1
18565 { echo "$as_me:$LINENO: result: yes" >&5
18566 echo "${ECHO_T}yes" >&6; }
18568 echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18571 { echo "$as_me:$LINENO: result: no" >&5
18572 echo "${ECHO_T}no" >&6; }
18576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18577 # On some systems (eg. FreeBSD 5), we would find a definition of the
18578 # functions ctermid_r, setgroups in the library, but no prototype
18579 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18580 # address to avoid compiler warnings and potential miscompilations
18581 # because of the missing prototypes.
18583 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18584 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18585 cat >conftest.$ac_ext <<_ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18592 #include "confdefs.h"
18598 void* p = ctermid_r
18603 rm -f conftest.$ac_objext
18604 if { (ac_try="$ac_compile"
18605 case "(($ac_try" in
18606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18607 *) ac_try_echo
=$ac_try;;
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_compile") 2>conftest.er1
18612 grep -v '^ *+' conftest.er1
>conftest.err
18614 cat conftest.err
>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest.
$ac_objext; then
18621 cat >>confdefs.h
<<\_ACEOF
18622 #define HAVE_CTERMID_R 1
18625 { echo "$as_me:$LINENO: result: yes" >&5
18626 echo "${ECHO_T}yes" >&6; }
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.
$ac_ext >&5
18631 { echo "$as_me:$LINENO: result: no" >&5
18632 echo "${ECHO_T}no" >&6; }
18636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18638 { echo "$as_me:$LINENO: checking for flock" >&5
18639 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18640 cat >conftest.
$ac_ext <<_ACEOF
18643 cat confdefs.h
>>conftest.
$ac_ext
18644 cat >>conftest.
$ac_ext <<_ACEOF
18645 /* end confdefs.h. */
18647 #include "confdefs.h"
18648 #include <sys/file.h>
18658 rm -f conftest.
$ac_objext
18659 if { (ac_try
="$ac_compile"
18660 case "(($ac_try" in
18661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_compile") 2>conftest.er1
18667 grep -v '^ *+' conftest.er1 >conftest.err
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } && {
18672 test -z "$ac_c_werror_flag" ||
18673 test ! -s conftest.err
18674 } && test -s conftest.$ac_objext; then
18676 cat >>confdefs.h <<\_ACEOF
18677 #define HAVE_FLOCK 1
18680 { echo "$as_me:$LINENO: result: yes" >&5
18681 echo "${ECHO_T}yes" >&6; }
18683 echo "$as_me: failed program was:" >&5
18684 sed 's/^/| /' conftest.$ac_ext >&5
18686 { echo "$as_me:$LINENO: result: no" >&5
18687 echo "${ECHO_T}no" >&6; }
18691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18693 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18694 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18695 cat >conftest.$ac_ext <<_ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18702 #include "confdefs.h"
18703 #include <unistd.h>
18708 void* p = getpagesize
18713 rm -f conftest.$ac_objext
18714 if { (ac_try="$ac_compile"
18715 case "(($ac_try" in
18716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18717 *) ac_try_echo
=$ac_try;;
18719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_compile") 2>conftest.er1
18722 grep -v '^ *+' conftest.er1
>conftest.err
18724 cat conftest.err
>&5
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } && {
18727 test -z "$ac_c_werror_flag" ||
18728 test ! -s conftest.err
18729 } && test -s conftest.
$ac_objext; then
18731 cat >>confdefs.h
<<\_ACEOF
18732 #define HAVE_GETPAGESIZE 1
18735 { echo "$as_me:$LINENO: result: yes" >&5
18736 echo "${ECHO_T}yes" >&6; }
18738 echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.
$ac_ext >&5
18741 { echo "$as_me:$LINENO: result: no" >&5
18742 echo "${ECHO_T}no" >&6; }
18746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18748 for ac_prog
in true
18750 # Extract the first word of "$ac_prog", so it can be a program name with args.
18751 set dummy
$ac_prog; ac_word
=$2
18752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18754 if test "${ac_cv_prog_TRUE+set}" = set; then
18755 echo $ECHO_N "(cached) $ECHO_C" >&6
18757 if test -n "$TRUE"; then
18758 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
18760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18761 for as_dir
in $PATH
18764 test -z "$as_dir" && as_dir
=.
18765 for ac_exec_ext
in '' $ac_executable_extensions; do
18766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18767 ac_cv_prog_TRUE
="$ac_prog"
18768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18777 TRUE
=$ac_cv_prog_TRUE
18778 if test -n "$TRUE"; then
18779 { echo "$as_me:$LINENO: result: $TRUE" >&5
18780 echo "${ECHO_T}$TRUE" >&6; }
18782 { echo "$as_me:$LINENO: result: no" >&5
18783 echo "${ECHO_T}no" >&6; }
18787 test -n "$TRUE" && break
18789 test -n "$TRUE" || TRUE
="/bin/true"
18792 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18793 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18794 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18795 echo $ECHO_N "(cached) $ECHO_C" >&6
18797 ac_check_lib_save_LIBS
=$LIBS
18799 cat >conftest.
$ac_ext <<_ACEOF
18802 cat confdefs.h
>>conftest.
$ac_ext
18803 cat >>conftest.
$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18806 /* Override any GCC internal prototype to avoid an error.
18807 Use char because int might match the return type of a GCC
18808 builtin and then its argument prototype would still apply. */
18816 return inet_aton ();
18821 rm -f conftest.
$ac_objext conftest
$ac_exeext
18822 if { (ac_try
="$ac_link"
18823 case "(($ac_try" in
18824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_link") 2>conftest.er1
18830 grep -v '^ *+' conftest.er1 >conftest.err
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest$ac_exeext &&
18838 $as_test_x conftest$ac_exeext; then
18839 ac_cv_lib_c_inet_aton=yes
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18844 ac_cv_lib_c_inet_aton=no
18847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848 conftest$ac_exeext conftest.$ac_ext
18849 LIBS=$ac_check_lib_save_LIBS
18851 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18852 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18853 if test $ac_cv_lib_c_inet_aton = yes; then
18857 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18858 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18859 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18860 echo $ECHO_N "(cached) $ECHO_C" >&6
18862 ac_check_lib_save_LIBS=$LIBS
18863 LIBS="-lresolv $LIBS"
18864 cat >conftest.$ac_ext <<_ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18871 /* Override any GCC internal prototype to avoid an error.
18872 Use char because int might match the return type of a GCC
18873 builtin and then its argument prototype would still apply. */
18881 return inet_aton ();
18886 rm -f conftest.$ac_objext conftest$ac_exeext
18887 if { (ac_try="$ac_link"
18888 case "(($ac_try" in
18889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18890 *) ac_try_echo
=$ac_try;;
18892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18893 (eval "$ac_link") 2>conftest.er1
18895 grep -v '^ *+' conftest.er1
>conftest.err
18897 cat conftest.err
>&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } && {
18900 test -z "$ac_c_werror_flag" ||
18901 test ! -s conftest.err
18902 } && test -s conftest
$ac_exeext &&
18903 $as_test_x conftest
$ac_exeext; then
18904 ac_cv_lib_resolv_inet_aton
=yes
18906 echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.
$ac_ext >&5
18909 ac_cv_lib_resolv_inet_aton
=no
18912 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18913 conftest
$ac_exeext conftest.
$ac_ext
18914 LIBS
=$ac_check_lib_save_LIBS
18916 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18917 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18918 if test $ac_cv_lib_resolv_inet_aton = yes; then
18919 cat >>confdefs.h
<<_ACEOF
18920 #define HAVE_LIBRESOLV 1
18923 LIBS
="-lresolv $LIBS"
18931 # On Tru64, chflags seems to be present, but calling it will
18933 { echo "$as_me:$LINENO: checking for chflags" >&5
18934 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18935 if test "${ac_cv_have_chflags+set}" = set; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18938 if test "$cross_compiling" = yes; then
18939 ac_cv_have_chflags
=cross
18941 cat >conftest.
$ac_ext <<_ACEOF
18944 cat confdefs.h
>>conftest.
$ac_ext
18945 cat >>conftest.
$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18948 #include <sys/stat.h>
18949 #include <unistd.h>
18950 int main(int argc, char*argv[])
18952 if(chflags(argv[0], 0) != 0)
18958 rm -f conftest
$ac_exeext
18959 if { (ac_try
="$ac_link"
18960 case "(($ac_try" in
18961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965 (eval "$ac_link") 2>&5
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18969 { (case "(($ac_try" in
18970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18971 *) ac_try_echo
=$ac_try;;
18973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974 (eval "$ac_try") 2>&5
18976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977 (exit $ac_status); }; }; then
18978 ac_cv_have_chflags
=yes
18980 echo "$as_me: program exited with status $ac_status" >&5
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.
$ac_ext >&5
18984 ( exit $ac_status )
18985 ac_cv_have_chflags
=no
18987 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18993 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18994 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18995 if test "$ac_cv_have_chflags" = cross
; then
18996 { echo "$as_me:$LINENO: checking for chflags" >&5
18997 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18998 if test "${ac_cv_func_chflags+set}" = set; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 cat >conftest.
$ac_ext <<_ACEOF
19004 cat confdefs.h
>>conftest.
$ac_ext
19005 cat >>conftest.
$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
19008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19009 #define chflags innocuous_chflags
19011 /* System header to define __stub macros and hopefully few prototypes,
19012 which can conflict with char chflags (); below.
19013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19014 <limits.h> exists even on freestanding compilers. */
19017 # include <limits.h>
19019 # include <assert.h>
19024 /* Override any GCC internal prototype to avoid an error.
19025 Use char because int might match the return type of a GCC
19026 builtin and then its argument prototype would still apply. */
19031 /* The GNU C library defines this for functions which it implements
19032 to always fail with ENOSYS. Some functions are actually named
19033 something starting with __ and the normal name is an alias. */
19034 #if defined __stub_chflags || defined __stub___chflags
19046 rm -f conftest.
$ac_objext conftest
$ac_exeext
19047 if { (ac_try
="$ac_link"
19048 case "(($ac_try" in
19049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_link") 2>conftest.er1
19055 grep -v '^ *+' conftest.er1 >conftest.err
19057 cat conftest.err >&5
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } && {
19060 test -z "$ac_c_werror_flag" ||
19061 test ! -s conftest.err
19062 } && test -s conftest$ac_exeext &&
19063 $as_test_x conftest$ac_exeext; then
19064 ac_cv_func_chflags=yes
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_cv_func_chflags=no
19072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19073 conftest$ac_exeext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
19076 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
19077 if test $ac_cv_func_chflags = yes; then
19078 ac_cv_have_chflags="yes"
19080 ac_cv_have_chflags="no"
19084 if test "$ac_cv_have_chflags" = yes ; then
19086 cat >>confdefs.h <<\_ACEOF
19087 #define HAVE_CHFLAGS 1
19092 { echo "$as_me:$LINENO: checking for lchflags" >&5
19093 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19094 if test "${ac_cv_have_lchflags+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19097 if test "$cross_compiling" = yes; then
19098 ac_cv_have_lchflags=cross
19100 cat >conftest.$ac_ext <<_ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h. */
19107 #include <sys/stat.h>
19108 #include <unistd.h>
19109 int main(int argc, char*argv[])
19111 if(lchflags(argv[0], 0) != 0)
19117 rm -f conftest$ac_exeext
19118 if { (ac_try="$ac_link"
19119 case "(($ac_try" in
19120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19121 *) ac_try_echo
=$ac_try;;
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_link") 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19128 { (case "(($ac_try" in
19129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_try") 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; }; then
19137 ac_cv_have_lchflags=yes
19139 echo "$as_me: program exited with status $ac_status" >&5
19140 echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19143 ( exit $ac_status )
19144 ac_cv_have_lchflags=no
19146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19152 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
19153 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
19154 if test "$ac_cv_have_lchflags" = cross ; then
19155 { echo "$as_me:$LINENO: checking for lchflags" >&5
19156 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19157 if test "${ac_cv_func_lchflags+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 cat >conftest.$ac_ext <<_ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
19167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19168 #define lchflags innocuous_lchflags
19170 /* System header to define __stub macros and hopefully few prototypes,
19171 which can conflict with char lchflags (); below.
19172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19173 <limits.h> exists even on freestanding compilers. */
19176 # include <limits.h>
19178 # include <assert.h>
19183 /* Override any GCC internal prototype to avoid an error.
19184 Use char because int might match the return type of a GCC
19185 builtin and then its argument prototype would still apply. */
19190 /* The GNU C library defines this for functions which it implements
19191 to always fail with ENOSYS. Some functions are actually named
19192 something starting with __ and the normal name is an alias. */
19193 #if defined __stub_lchflags || defined __stub___lchflags
19200 return lchflags ();
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (ac_try="$ac_link"
19207 case "(($ac_try" in
19208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19209 *) ac_try_echo
=$ac_try;;
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_link") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1
>conftest.err
19216 cat conftest.err
>&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest
$ac_exeext &&
19222 $as_test_x conftest
$ac_exeext; then
19223 ac_cv_func_lchflags
=yes
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.
$ac_ext >&5
19228 ac_cv_func_lchflags
=no
19231 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19232 conftest
$ac_exeext conftest.
$ac_ext
19234 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
19235 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
19236 if test $ac_cv_func_lchflags = yes; then
19237 ac_cv_have_lchflags
="yes"
19239 ac_cv_have_lchflags
="no"
19243 if test "$ac_cv_have_lchflags" = yes ; then
19245 cat >>confdefs.h
<<\_ACEOF
19246 #define HAVE_LCHFLAGS 1
19251 case $ac_sys_system/$ac_sys_release in
19253 _CUR_CFLAGS
="${CFLAGS}"
19254 _CUR_LDFLAGS
="${LDFLAGS}"
19255 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
19256 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
19260 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
19261 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
19262 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
19263 echo $ECHO_N "(cached) $ECHO_C" >&6
19265 ac_check_lib_save_LIBS
=$LIBS
19267 cat >conftest.
$ac_ext <<_ACEOF
19270 cat confdefs.h
>>conftest.
$ac_ext
19271 cat >>conftest.
$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19274 /* Override any GCC internal prototype to avoid an error.
19275 Use char because int might match the return type of a GCC
19276 builtin and then its argument prototype would still apply. */
19280 char inflateCopy ();
19284 return inflateCopy ();
19289 rm -f conftest.
$ac_objext conftest
$ac_exeext
19290 if { (ac_try
="$ac_link"
19291 case "(($ac_try" in
19292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19298 grep -v '^ *+' conftest.er1 >conftest.err
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && {
19303 test -z "$ac_c_werror_flag" ||
19304 test ! -s conftest.err
19305 } && test -s conftest$ac_exeext &&
19306 $as_test_x conftest$ac_exeext; then
19307 ac_cv_lib_z_inflateCopy=yes
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_cv_lib_z_inflateCopy=no
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19319 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
19320 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
19321 if test $ac_cv_lib_z_inflateCopy = yes; then
19323 cat >>confdefs.h <<\_ACEOF
19324 #define HAVE_ZLIB_COPY 1
19330 case $ac_sys_system/$ac_sys_release in
19332 CFLAGS="${_CUR_CFLAGS}"
19333 LDFLAGS="${_CUR_LDFLAGS}"
19337 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19338 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 #include "confdefs.h"
19352 void* p = hstrerror; hstrerror(0)
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (ac_try="$ac_link"
19359 case "(($ac_try" in
19360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19361 *) ac_try_echo
=$ac_try;;
19363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364 (eval "$ac_link") 2>conftest.er1
19366 grep -v '^ *+' conftest.er1
>conftest.err
19368 cat conftest.err
>&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } && {
19371 test -z "$ac_c_werror_flag" ||
19372 test ! -s conftest.err
19373 } && test -s conftest
$ac_exeext &&
19374 $as_test_x conftest
$ac_exeext; then
19376 cat >>confdefs.h
<<\_ACEOF
19377 #define HAVE_HSTRERROR 1
19380 { echo "$as_me:$LINENO: result: yes" >&5
19381 echo "${ECHO_T}yes" >&6; }
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.
$ac_ext >&5
19386 { echo "$as_me:$LINENO: result: no" >&5
19387 echo "${ECHO_T}no" >&6; }
19391 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19392 conftest
$ac_exeext conftest.
$ac_ext
19394 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19395 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19396 cat >conftest.
$ac_ext <<_ACEOF
19399 cat confdefs.h
>>conftest.
$ac_ext
19400 cat >>conftest.
$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19403 #include "confdefs.h"
19404 #include <sys/types.h>
19405 #include <sys/socket.h>
19406 #include <netinet/in.h>
19407 #include <arpa/inet.h>
19412 void* p = inet_aton;inet_aton(0,0)
19417 rm -f conftest.
$ac_objext conftest
$ac_exeext
19418 if { (ac_try
="$ac_link"
19419 case "(($ac_try" in
19420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_link") 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } && {
19431 test -z "$ac_c_werror_flag" ||
19432 test ! -s conftest.err
19433 } && test -s conftest$ac_exeext &&
19434 $as_test_x conftest$ac_exeext; then
19436 cat >>confdefs.h <<\_ACEOF
19437 #define HAVE_INET_ATON 1
19440 { echo "$as_me:$LINENO: result: yes" >&5
19441 echo "${ECHO_T}yes" >&6; }
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 { echo "$as_me:$LINENO: result: no" >&5
19447 echo "${ECHO_T}no" >&6; }
19451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19452 conftest$ac_exeext conftest.$ac_ext
19454 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19455 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19456 cat >conftest.$ac_ext <<_ACEOF
19459 cat confdefs.h >>conftest.$ac_ext
19460 cat >>conftest.$ac_ext <<_ACEOF
19461 /* end confdefs.h. */
19463 #include "confdefs.h"
19464 #include <sys/types.h>
19465 #include <sys/socket.h>
19466 #include <netinet/in.h>
19467 #include <arpa/inet.h>
19472 void* p = inet_pton
19477 rm -f conftest.$ac_objext
19478 if { (ac_try="$ac_compile"
19479 case "(($ac_try" in
19480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19481 *) ac_try_echo
=$ac_try;;
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_compile") 2>conftest.er1
19486 grep -v '^ *+' conftest.er1
>conftest.err
19488 cat conftest.err
>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && {
19491 test -z "$ac_c_werror_flag" ||
19492 test ! -s conftest.err
19493 } && test -s conftest.
$ac_objext; then
19495 cat >>confdefs.h
<<\_ACEOF
19496 #define HAVE_INET_PTON 1
19499 { echo "$as_me:$LINENO: result: yes" >&5
19500 echo "${ECHO_T}yes" >&6; }
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.
$ac_ext >&5
19505 { echo "$as_me:$LINENO: result: no" >&5
19506 echo "${ECHO_T}no" >&6; }
19510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19512 # On some systems, setgroups is in unistd.h, on others, in grp.h
19513 { echo "$as_me:$LINENO: checking for setgroups" >&5
19514 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19515 cat >conftest.
$ac_ext <<_ACEOF
19518 cat confdefs.h
>>conftest.
$ac_ext
19519 cat >>conftest.
$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 #include "confdefs.h"
19523 #include <unistd.h>
19531 void* p = setgroups
19536 rm -f conftest.
$ac_objext
19537 if { (ac_try
="$ac_compile"
19538 case "(($ac_try" in
19539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_compile") 2>conftest.er1
19545 grep -v '^ *+' conftest.er1 >conftest.err
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } && {
19550 test -z "$ac_c_werror_flag" ||
19551 test ! -s conftest.err
19552 } && test -s conftest.$ac_objext; then
19554 cat >>confdefs.h <<\_ACEOF
19555 #define HAVE_SETGROUPS 1
19558 { echo "$as_me:$LINENO: result: yes" >&5
19559 echo "${ECHO_T}yes" >&6; }
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 { echo "$as_me:$LINENO: result: no" >&5
19565 echo "${ECHO_T}no" >&6; }
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 # check for openpty and forkpty
19574 for ac_func in openpty
19576 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 cat >conftest.$ac_ext <<_ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19590 #define $ac_func innocuous_$ac_func
19592 /* System header to define __stub macros and hopefully few prototypes,
19593 which can conflict with char $ac_func (); below.
19594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19595 <limits.h> exists even on freestanding compilers. */
19598 # include <limits.h>
19600 # include <assert.h>
19605 /* Override any GCC internal prototype to avoid an error.
19606 Use char because int might match the return type of a GCC
19607 builtin and then its argument prototype would still apply. */
19612 /* The GNU C library defines this for functions which it implements
19613 to always fail with ENOSYS. Some functions are actually named
19614 something starting with __ and the normal name is an alias. */
19615 #if defined __stub_$ac_func || defined __stub___$ac_func
19622 return $ac_func ();
19627 rm -f conftest.$ac_objext conftest$ac_exeext
19628 if { (ac_try="$ac_link"
19629 case "(($ac_try" in
19630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19631 *) ac_try_echo
=$ac_try;;
19633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19634 (eval "$ac_link") 2>conftest.er1
19636 grep -v '^ *+' conftest.er1
>conftest.err
19638 cat conftest.err
>&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } && {
19641 test -z "$ac_c_werror_flag" ||
19642 test ! -s conftest.err
19643 } && test -s conftest
$ac_exeext &&
19644 $as_test_x conftest
$ac_exeext; then
19645 eval "$as_ac_var=yes"
19647 echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.
$ac_ext >&5
19650 eval "$as_ac_var=no"
19653 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19654 conftest
$ac_exeext conftest.
$ac_ext
19656 ac_res
=`eval echo '${'$as_ac_var'}'`
19657 { echo "$as_me:$LINENO: result: $ac_res" >&5
19658 echo "${ECHO_T}$ac_res" >&6; }
19659 if test `eval echo '${'$as_ac_var'}'` = yes; then
19660 cat >>confdefs.h
<<_ACEOF
19661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19665 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19666 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19667 if test "${ac_cv_lib_util_openpty+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19670 ac_check_lib_save_LIBS
=$LIBS
19671 LIBS
="-lutil $LIBS"
19672 cat >conftest.
$ac_ext <<_ACEOF
19675 cat confdefs.h
>>conftest.
$ac_ext
19676 cat >>conftest.
$ac_ext <<_ACEOF
19677 /* end confdefs.h. */
19679 /* Override any GCC internal prototype to avoid an error.
19680 Use char because int might match the return type of a GCC
19681 builtin and then its argument prototype would still apply. */
19694 rm -f conftest.
$ac_objext conftest
$ac_exeext
19695 if { (ac_try
="$ac_link"
19696 case "(($ac_try" in
19697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_link") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest$ac_exeext &&
19711 $as_test_x conftest$ac_exeext; then
19712 ac_cv_lib_util_openpty=yes
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 ac_cv_lib_util_openpty=no
19720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19724 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19725 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19726 if test $ac_cv_lib_util_openpty = yes; then
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_OPENPTY 1
19730 LIBS="$LIBS -lutil"
19732 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19733 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19734 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19735 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 ac_check_lib_save_LIBS=$LIBS
19739 cat >conftest.$ac_ext <<_ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19746 /* Override any GCC internal prototype to avoid an error.
19747 Use char because int might match the return type of a GCC
19748 builtin and then its argument prototype would still apply. */
19761 rm -f conftest.$ac_objext conftest$ac_exeext
19762 if { (ac_try="$ac_link"
19763 case "(($ac_try" in
19764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19765 *) ac_try_echo
=$ac_try;;
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_link") 2>conftest.er1
19770 grep -v '^ *+' conftest.er1
>conftest.err
19772 cat conftest.err
>&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } && {
19775 test -z "$ac_c_werror_flag" ||
19776 test ! -s conftest.err
19777 } && test -s conftest
$ac_exeext &&
19778 $as_test_x conftest
$ac_exeext; then
19779 ac_cv_lib_bsd_openpty
=yes
19781 echo "$as_me: failed program was:" >&5
19782 sed 's/^/| /' conftest.
$ac_ext >&5
19784 ac_cv_lib_bsd_openpty
=no
19787 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19788 conftest
$ac_exeext conftest.
$ac_ext
19789 LIBS
=$ac_check_lib_save_LIBS
19791 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19792 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19793 if test $ac_cv_lib_bsd_openpty = yes; then
19794 cat >>confdefs.h
<<\_ACEOF
19795 #define HAVE_OPENPTY 1
19808 for ac_func
in forkpty
19810 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19811 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19813 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19816 cat >conftest.
$ac_ext <<_ACEOF
19819 cat confdefs.h
>>conftest.
$ac_ext
19820 cat >>conftest.
$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19824 #define $ac_func innocuous_$ac_func
19826 /* System header to define __stub macros and hopefully few prototypes,
19827 which can conflict with char $ac_func (); below.
19828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19829 <limits.h> exists even on freestanding compilers. */
19832 # include <limits.h>
19834 # include <assert.h>
19839 /* Override any GCC internal prototype to avoid an error.
19840 Use char because int might match the return type of a GCC
19841 builtin and then its argument prototype would still apply. */
19846 /* The GNU C library defines this for functions which it implements
19847 to always fail with ENOSYS. Some functions are actually named
19848 something starting with __ and the normal name is an alias. */
19849 #if defined __stub_$ac_func || defined __stub___$ac_func
19856 return $ac_func ();
19861 rm -f conftest.
$ac_objext conftest
$ac_exeext
19862 if { (ac_try
="$ac_link"
19863 case "(($ac_try" in
19864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_link") 2>conftest.er1
19870 grep -v '^ *+' conftest.er1 >conftest.err
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } && {
19875 test -z "$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19877 } && test -s conftest$ac_exeext &&
19878 $as_test_x conftest$ac_exeext; then
19879 eval "$as_ac_var=yes"
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 eval "$as_ac_var=no"
19887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19888 conftest$ac_exeext conftest.$ac_ext
19890 ac_res=`eval echo '${'$as_ac_var'}'`
19891 { echo "$as_me:$LINENO: result: $ac_res" >&5
19892 echo "${ECHO_T}$ac_res" >&6; }
19893 if test `eval echo '${'$as_ac_var'}'` = yes; then
19894 cat >>confdefs.h <<_ACEOF
19895 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19899 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19900 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19901 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 ac_check_lib_save_LIBS=$LIBS
19905 LIBS="-lutil $LIBS"
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19913 /* Override any GCC internal prototype to avoid an error.
19914 Use char because int might match the return type of a GCC
19915 builtin and then its argument prototype would still apply. */
19928 rm -f conftest.$ac_objext conftest$ac_exeext
19929 if { (ac_try="$ac_link"
19930 case "(($ac_try" in
19931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19932 *) ac_try_echo
=$ac_try;;
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_link") 2>conftest.er1
19937 grep -v '^ *+' conftest.er1
>conftest.err
19939 cat conftest.err
>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest
$ac_exeext &&
19945 $as_test_x conftest
$ac_exeext; then
19946 ac_cv_lib_util_forkpty
=yes
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.
$ac_ext >&5
19951 ac_cv_lib_util_forkpty
=no
19954 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19955 conftest
$ac_exeext conftest.
$ac_ext
19956 LIBS
=$ac_check_lib_save_LIBS
19958 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19959 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19960 if test $ac_cv_lib_util_forkpty = yes; then
19961 cat >>confdefs.h
<<\_ACEOF
19962 #define HAVE_FORKPTY 1
19964 LIBS
="$LIBS -lutil"
19966 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19967 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19968 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19971 ac_check_lib_save_LIBS
=$LIBS
19973 cat >conftest.
$ac_ext <<_ACEOF
19976 cat confdefs.h
>>conftest.
$ac_ext
19977 cat >>conftest.
$ac_ext <<_ACEOF
19978 /* end confdefs.h. */
19980 /* Override any GCC internal prototype to avoid an error.
19981 Use char because int might match the return type of a GCC
19982 builtin and then its argument prototype would still apply. */
19995 rm -f conftest.
$ac_objext conftest
$ac_exeext
19996 if { (ac_try
="$ac_link"
19997 case "(($ac_try" in
19998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19999 *) ac_try_echo=$ac_try;;
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002 (eval "$ac_link") 2>conftest.er1
20004 grep -v '^ *+' conftest.er1 >conftest.err
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } && {
20009 test -z "$ac_c_werror_flag" ||
20010 test ! -s conftest.err
20011 } && test -s conftest$ac_exeext &&
20012 $as_test_x conftest$ac_exeext; then
20013 ac_cv_lib_bsd_forkpty=yes
20015 echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20018 ac_cv_lib_bsd_forkpty=no
20021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20022 conftest$ac_exeext conftest.$ac_ext
20023 LIBS=$ac_check_lib_save_LIBS
20025 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
20026 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
20027 if test $ac_cv_lib_bsd_forkpty = yes; then
20028 cat >>confdefs.h <<\_ACEOF
20029 #define HAVE_FORKPTY 1
20044 for ac_func in memmove
20046 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20060 #define $ac_func innocuous_$ac_func
20062 /* System header to define __stub macros and hopefully few prototypes,
20063 which can conflict with char $ac_func (); below.
20064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20065 <limits.h> exists even on freestanding compilers. */
20068 # include <limits.h>
20070 # include <assert.h>
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20082 /* The GNU C library defines this for functions which it implements
20083 to always fail with ENOSYS. Some functions are actually named
20084 something starting with __ and the normal name is an alias. */
20085 #if defined __stub_$ac_func || defined __stub___$ac_func
20092 return $ac_func ();
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20101 *) ac_try_echo
=$ac_try;;
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_link") 2>conftest.er1
20106 grep -v '^ *+' conftest.er1
>conftest.err
20108 cat conftest.err
>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } && {
20111 test -z "$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 } && test -s conftest
$ac_exeext &&
20114 $as_test_x conftest
$ac_exeext; then
20115 eval "$as_ac_var=yes"
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.
$ac_ext >&5
20120 eval "$as_ac_var=no"
20123 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20124 conftest
$ac_exeext conftest.
$ac_ext
20126 ac_res
=`eval echo '${'$as_ac_var'}'`
20127 { echo "$as_me:$LINENO: result: $ac_res" >&5
20128 echo "${ECHO_T}$ac_res" >&6; }
20129 if test `eval echo '${'$as_ac_var'}'` = yes; then
20130 cat >>confdefs.h
<<_ACEOF
20131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20138 # check for long file support functions
20145 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
20147 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20150 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20153 cat >conftest.
$ac_ext <<_ACEOF
20156 cat confdefs.h
>>conftest.
$ac_ext
20157 cat >>conftest.
$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20161 #define $ac_func innocuous_$ac_func
20163 /* System header to define __stub macros and hopefully few prototypes,
20164 which can conflict with char $ac_func (); below.
20165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20166 <limits.h> exists even on freestanding compilers. */
20169 # include <limits.h>
20171 # include <assert.h>
20176 /* Override any GCC internal prototype to avoid an error.
20177 Use char because int might match the return type of a GCC
20178 builtin and then its argument prototype would still apply. */
20183 /* The GNU C library defines this for functions which it implements
20184 to always fail with ENOSYS. Some functions are actually named
20185 something starting with __ and the normal name is an alias. */
20186 #if defined __stub_$ac_func || defined __stub___$ac_func
20193 return $ac_func ();
20198 rm -f conftest.
$ac_objext conftest
$ac_exeext
20199 if { (ac_try
="$ac_link"
20200 case "(($ac_try" in
20201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_link") 2>conftest.er1
20207 grep -v '^ *+' conftest.er1 >conftest.err
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } && {
20212 test -z "$ac_c_werror_flag" ||
20213 test ! -s conftest.err
20214 } && test -s conftest$ac_exeext &&
20215 $as_test_x conftest$ac_exeext; then
20216 eval "$as_ac_var=yes"
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20221 eval "$as_ac_var=no"
20224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20225 conftest$ac_exeext conftest.$ac_ext
20227 ac_res=`eval echo '${'$as_ac_var'}'`
20228 { echo "$as_me:$LINENO: result: $ac_res" >&5
20229 echo "${ECHO_T}$ac_res" >&6; }
20230 if test `eval echo '${'$as_ac_var'}'` = yes; then
20231 cat >>confdefs.h <<_ACEOF
20232 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20242 for ac_func in dup2 getcwd strdup
20244 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20250 cat >conftest.$ac_ext <<_ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20258 #define $ac_func innocuous_$ac_func
20260 /* System header to define __stub macros and hopefully few prototypes,
20261 which can conflict with char $ac_func (); below.
20262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20263 <limits.h> exists even on freestanding compilers. */
20266 # include <limits.h>
20268 # include <assert.h>
20273 /* Override any GCC internal prototype to avoid an error.
20274 Use char because int might match the return type of a GCC
20275 builtin and then its argument prototype would still apply. */
20280 /* The GNU C library defines this for functions which it implements
20281 to always fail with ENOSYS. Some functions are actually named
20282 something starting with __ and the normal name is an alias. */
20283 #if defined __stub_$ac_func || defined __stub___$ac_func
20290 return $ac_func ();
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (ac_try="$ac_link"
20297 case "(($ac_try" in
20298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20299 *) ac_try_echo
=$ac_try;;
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_link") 2>conftest.er1
20304 grep -v '^ *+' conftest.er1
>conftest.err
20306 cat conftest.err
>&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && {
20309 test -z "$ac_c_werror_flag" ||
20310 test ! -s conftest.err
20311 } && test -s conftest
$ac_exeext &&
20312 $as_test_x conftest
$ac_exeext; then
20313 eval "$as_ac_var=yes"
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.
$ac_ext >&5
20318 eval "$as_ac_var=no"
20321 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20322 conftest
$ac_exeext conftest.
$ac_ext
20324 ac_res
=`eval echo '${'$as_ac_var'}'`
20325 { echo "$as_me:$LINENO: result: $ac_res" >&5
20326 echo "${ECHO_T}$ac_res" >&6; }
20327 if test `eval echo '${'$as_ac_var'}'` = yes; then
20328 cat >>confdefs.h
<<_ACEOF
20329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20333 case " $LIBOBJS " in
20334 *" $ac_func.$ac_objext "* ) ;;
20335 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20344 for ac_func
in getpgrp
20346 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20349 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 cat >conftest.
$ac_ext <<_ACEOF
20355 cat confdefs.h
>>conftest.
$ac_ext
20356 cat >>conftest.
$ac_ext <<_ACEOF
20357 /* end confdefs.h. */
20358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20360 #define $ac_func innocuous_$ac_func
20362 /* System header to define __stub macros and hopefully few prototypes,
20363 which can conflict with char $ac_func (); below.
20364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20365 <limits.h> exists even on freestanding compilers. */
20368 # include <limits.h>
20370 # include <assert.h>
20375 /* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20382 /* The GNU C library defines this for functions which it implements
20383 to always fail with ENOSYS. Some functions are actually named
20384 something starting with __ and the normal name is an alias. */
20385 #if defined __stub_$ac_func || defined __stub___$ac_func
20392 return $ac_func ();
20397 rm -f conftest.
$ac_objext conftest
$ac_exeext
20398 if { (ac_try
="$ac_link"
20399 case "(($ac_try" in
20400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20401 *) ac_try_echo=$ac_try;;
20403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20404 (eval "$ac_link") 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } && {
20411 test -z "$ac_c_werror_flag" ||
20412 test ! -s conftest.err
20413 } && test -s conftest$ac_exeext &&
20414 $as_test_x conftest$ac_exeext; then
20415 eval "$as_ac_var=yes"
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20420 eval "$as_ac_var=no"
20423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20424 conftest$ac_exeext conftest.$ac_ext
20426 ac_res=`eval echo '${'$as_ac_var'}'`
20427 { echo "$as_me:$LINENO: result: $ac_res" >&5
20428 echo "${ECHO_T}$ac_res" >&6; }
20429 if test `eval echo '${'$as_ac_var'}'` = yes; then
20430 cat >>confdefs.h <<_ACEOF
20431 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20433 cat >conftest.$ac_ext <<_ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20439 #include <unistd.h>
20448 rm -f conftest.$ac_objext
20449 if { (ac_try="$ac_compile"
20450 case "(($ac_try" in
20451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20452 *) ac_try_echo
=$ac_try;;
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_compile") 2>conftest.er1
20457 grep -v '^ *+' conftest.er1
>conftest.err
20459 cat conftest.err
>&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest.
$ac_objext; then
20466 cat >>confdefs.h
<<\_ACEOF
20467 #define GETPGRP_HAVE_ARG 1
20472 echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.
$ac_ext >&5
20478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20484 for ac_func
in setpgrp
20486 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20489 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 cat >conftest.
$ac_ext <<_ACEOF
20495 cat confdefs.h
>>conftest.
$ac_ext
20496 cat >>conftest.
$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20500 #define $ac_func innocuous_$ac_func
20502 /* System header to define __stub macros and hopefully few prototypes,
20503 which can conflict with char $ac_func (); below.
20504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20505 <limits.h> exists even on freestanding compilers. */
20508 # include <limits.h>
20510 # include <assert.h>
20515 /* Override any GCC internal prototype to avoid an error.
20516 Use char because int might match the return type of a GCC
20517 builtin and then its argument prototype would still apply. */
20522 /* The GNU C library defines this for functions which it implements
20523 to always fail with ENOSYS. Some functions are actually named
20524 something starting with __ and the normal name is an alias. */
20525 #if defined __stub_$ac_func || defined __stub___$ac_func
20532 return $ac_func ();
20537 rm -f conftest.
$ac_objext conftest
$ac_exeext
20538 if { (ac_try
="$ac_link"
20539 case "(($ac_try" in
20540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_link") 2>conftest.er1
20546 grep -v '^ *+' conftest.er1 >conftest.err
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && {
20551 test -z "$ac_c_werror_flag" ||
20552 test ! -s conftest.err
20553 } && test -s conftest$ac_exeext &&
20554 $as_test_x conftest$ac_exeext; then
20555 eval "$as_ac_var=yes"
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 eval "$as_ac_var=no"
20563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20564 conftest$ac_exeext conftest.$ac_ext
20566 ac_res=`eval echo '${'$as_ac_var'}'`
20567 { echo "$as_me:$LINENO: result: $ac_res" >&5
20568 echo "${ECHO_T}$ac_res" >&6; }
20569 if test `eval echo '${'$as_ac_var'}'` = yes; then
20570 cat >>confdefs.h <<_ACEOF
20571 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20573 cat >conftest.$ac_ext <<_ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 #include <unistd.h>
20588 rm -f conftest.$ac_objext
20589 if { (ac_try="$ac_compile"
20590 case "(($ac_try" in
20591 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20592 *) ac_try_echo
=$ac_try;;
20594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20595 (eval "$ac_compile") 2>conftest.er1
20597 grep -v '^ *+' conftest.er1
>conftest.err
20599 cat conftest.err
>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } && {
20602 test -z "$ac_c_werror_flag" ||
20603 test ! -s conftest.err
20604 } && test -s conftest.
$ac_objext; then
20606 cat >>confdefs.h
<<\_ACEOF
20607 #define SETPGRP_HAVE_ARG 1
20612 echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.
$ac_ext >&5
20618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20624 for ac_func
in gettimeofday
20626 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20629 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20632 cat >conftest.
$ac_ext <<_ACEOF
20635 cat confdefs.h
>>conftest.
$ac_ext
20636 cat >>conftest.
$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20640 #define $ac_func innocuous_$ac_func
20642 /* System header to define __stub macros and hopefully few prototypes,
20643 which can conflict with char $ac_func (); below.
20644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20645 <limits.h> exists even on freestanding compilers. */
20648 # include <limits.h>
20650 # include <assert.h>
20655 /* Override any GCC internal prototype to avoid an error.
20656 Use char because int might match the return type of a GCC
20657 builtin and then its argument prototype would still apply. */
20662 /* The GNU C library defines this for functions which it implements
20663 to always fail with ENOSYS. Some functions are actually named
20664 something starting with __ and the normal name is an alias. */
20665 #if defined __stub_$ac_func || defined __stub___$ac_func
20672 return $ac_func ();
20677 rm -f conftest.
$ac_objext conftest
$ac_exeext
20678 if { (ac_try
="$ac_link"
20679 case "(($ac_try" in
20680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20684 (eval "$ac_link") 2>conftest.er1
20686 grep -v '^ *+' conftest.er1 >conftest.err
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && {
20691 test -z "$ac_c_werror_flag" ||
20692 test ! -s conftest.err
20693 } && test -s conftest$ac_exeext &&
20694 $as_test_x conftest$ac_exeext; then
20695 eval "$as_ac_var=yes"
20697 echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20700 eval "$as_ac_var=no"
20703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20704 conftest$ac_exeext conftest.$ac_ext
20706 ac_res=`eval echo '${'$as_ac_var'}'`
20707 { echo "$as_me:$LINENO: result: $ac_res" >&5
20708 echo "${ECHO_T}$ac_res" >&6; }
20709 if test `eval echo '${'$as_ac_var'}'` = yes; then
20710 cat >>confdefs.h <<_ACEOF
20711 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20713 cat >conftest.$ac_ext <<_ACEOF
20716 cat confdefs.h >>conftest.$ac_ext
20717 cat >>conftest.$ac_ext <<_ACEOF
20718 /* end confdefs.h. */
20719 #include <sys/time.h>
20723 gettimeofday((struct timeval*)0,(struct timezone*)0);
20728 rm -f conftest.$ac_objext
20729 if { (ac_try="$ac_compile"
20730 case "(($ac_try" in
20731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20732 *) ac_try_echo
=$ac_try;;
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_compile") 2>conftest.er1
20737 grep -v '^ *+' conftest.er1
>conftest.err
20739 cat conftest.err
>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } && {
20742 test -z "$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20744 } && test -s conftest.
$ac_objext; then
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.
$ac_ext >&5
20751 cat >>confdefs.h
<<\_ACEOF
20752 #define GETTIMEOFDAY_NO_TZ 1
20758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20764 { echo "$as_me:$LINENO: checking for major" >&5
20765 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20766 cat >conftest.
$ac_ext <<_ACEOF
20769 cat confdefs.h
>>conftest.
$ac_ext
20770 cat >>conftest.
$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20773 #if defined(MAJOR_IN_MKDEV)
20774 #include <sys/mkdev.h>
20775 #elif defined(MAJOR_IN_SYSMACROS)
20776 #include <sys/sysmacros.h>
20778 #include <sys/types.h>
20785 makedev(major(0),minor(0));
20791 rm -f conftest.
$ac_objext conftest
$ac_exeext
20792 if { (ac_try
="$ac_link"
20793 case "(($ac_try" in
20794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>conftest.er1
20800 grep -v '^ *+' conftest.er1 >conftest.err
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } && {
20805 test -z "$ac_c_werror_flag" ||
20806 test ! -s conftest.err
20807 } && test -s conftest$ac_exeext &&
20808 $as_test_x conftest$ac_exeext; then
20811 cat >>confdefs.h <<\_ACEOF
20812 #define HAVE_DEVICE_MACROS 1
20815 { echo "$as_me:$LINENO: result: yes" >&5
20816 echo "${ECHO_T}yes" >&6; }
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20823 { echo "$as_me:$LINENO: result: no" >&5
20824 echo "${ECHO_T}no" >&6; }
20828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20829 conftest$ac_exeext conftest.$ac_ext
20831 # On OSF/1 V5.1, getaddrinfo is available, but a define
20832 # for [no]getaddrinfo in netdb.h.
20833 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20834 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20835 cat >conftest.$ac_ext <<_ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20842 #include <sys/types.h>
20843 #include <sys/socket.h>
20850 getaddrinfo(NULL, NULL, NULL, NULL);
20855 rm -f conftest.$ac_objext conftest$ac_exeext
20856 if { (ac_try="$ac_link"
20857 case "(($ac_try" in
20858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20859 *) ac_try_echo
=$ac_try;;
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862 (eval "$ac_link") 2>conftest.er1
20864 grep -v '^ *+' conftest.er1
>conftest.err
20866 cat conftest.err
>&5
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); } && {
20869 test -z "$ac_c_werror_flag" ||
20870 test ! -s conftest.err
20871 } && test -s conftest
$ac_exeext &&
20872 $as_test_x conftest
$ac_exeext; then
20873 have_getaddrinfo
=yes
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.
$ac_ext >&5
20878 have_getaddrinfo
=no
20881 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20882 conftest
$ac_exeext conftest.
$ac_ext
20883 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20884 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20885 if test $have_getaddrinfo = yes
20887 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20888 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20889 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 if test "$cross_compiling" = yes; then
20893 ac_cv_buggy_getaddrinfo
=yes
20895 cat >conftest.
$ac_ext <<_ACEOF
20898 cat confdefs.h
>>conftest.
$ac_ext
20899 cat >>conftest.
$ac_ext <<_ACEOF
20900 /* end confdefs.h. */
20902 #include <sys/types.h>
20904 #include <string.h>
20905 #include <sys/socket.h>
20906 #include <netinet/in.h>
20910 int passive, gaierr, inet4 = 0, inet6 = 0;
20911 struct addrinfo hints, *ai, *aitop;
20912 char straddr[INET6_ADDRSTRLEN], strport[16];
20914 for (passive = 0; passive <= 1; passive++) {
20915 memset(&hints, 0, sizeof(hints));
20916 hints.ai_family = AF_UNSPEC;
20917 hints.ai_flags = passive ? AI_PASSIVE : 0;
20918 hints.ai_socktype = SOCK_STREAM;
20919 hints.ai_protocol = IPPROTO_TCP;
20920 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20921 (void)gai_strerror(gaierr);
20924 for (ai = aitop; ai; ai = ai->ai_next) {
20925 if (ai->ai_addr == NULL ||
20926 ai->ai_addrlen == 0 ||
20927 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20928 straddr, sizeof(straddr), strport, sizeof(strport),
20929 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20932 switch (ai->ai_family) {
20934 if (strcmp(strport, "54321") != 0) {
20938 if (strcmp(straddr, "0.0.0.0") != 0) {
20942 if (strcmp(straddr, "127.0.0.1") != 0) {
20949 if (strcmp(strport, "54321") != 0) {
20953 if (strcmp(straddr, "::") != 0) {
20957 if (strcmp(straddr, "::1") != 0) {
20967 /* another family support? */
20973 if (!(inet4 == 0 || inet4 == 2))
20975 if (!(inet6 == 0 || inet6 == 2))
20979 freeaddrinfo(aitop);
20984 freeaddrinfo(aitop);
20989 rm -f conftest
$ac_exeext
20990 if { (ac_try
="$ac_link"
20991 case "(($ac_try" in
20992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_link") 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21002 *) ac_try_echo
=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 ac_cv_buggy_getaddrinfo
=no
21011 echo "$as_me: program exited with status $ac_status" >&5
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.
$ac_ext >&5
21015 ( exit $ac_status )
21016 ac_cv_buggy_getaddrinfo
=yes
21018 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21026 if test $have_getaddrinfo = no
-o $ac_cv_buggy_getaddrinfo = yes
21028 if test $ipv6 = yes
21030 echo 'Fatal: You must get working getaddrinfo() function.'
21031 echo ' or you can specify "--disable-ipv6"'.
21036 cat >>confdefs.h
<<\_ACEOF
21037 #define HAVE_GETADDRINFO 1
21042 for ac_func
in getnameinfo
21044 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21047 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21048 echo $ECHO_N "(cached) $ECHO_C" >&6
21050 cat >conftest.
$ac_ext <<_ACEOF
21053 cat confdefs.h
>>conftest.
$ac_ext
21054 cat >>conftest.
$ac_ext <<_ACEOF
21055 /* end confdefs.h. */
21056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21058 #define $ac_func innocuous_$ac_func
21060 /* System header to define __stub macros and hopefully few prototypes,
21061 which can conflict with char $ac_func (); below.
21062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21063 <limits.h> exists even on freestanding compilers. */
21066 # include <limits.h>
21068 # include <assert.h>
21073 /* Override any GCC internal prototype to avoid an error.
21074 Use char because int might match the return type of a GCC
21075 builtin and then its argument prototype would still apply. */
21080 /* The GNU C library defines this for functions which it implements
21081 to always fail with ENOSYS. Some functions are actually named
21082 something starting with __ and the normal name is an alias. */
21083 #if defined __stub_$ac_func || defined __stub___$ac_func
21090 return $ac_func ();
21095 rm -f conftest.
$ac_objext conftest
$ac_exeext
21096 if { (ac_try
="$ac_link"
21097 case "(($ac_try" in
21098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_link") 2>conftest.er1
21104 grep -v '^ *+' conftest.er1 >conftest.err
21106 cat conftest.err >&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } && {
21109 test -z "$ac_c_werror_flag" ||
21110 test ! -s conftest.err
21111 } && test -s conftest$ac_exeext &&
21112 $as_test_x conftest$ac_exeext; then
21113 eval "$as_ac_var=yes"
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 eval "$as_ac_var=no"
21121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21122 conftest$ac_exeext conftest.$ac_ext
21124 ac_res=`eval echo '${'$as_ac_var'}'`
21125 { echo "$as_me:$LINENO: result: $ac_res" >&5
21126 echo "${ECHO_T}$ac_res" >&6; }
21127 if test `eval echo '${'$as_ac_var'}'` = yes; then
21128 cat >>confdefs.h <<_ACEOF
21129 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21136 # checks for structures
21137 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21138 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21139 if test "${ac_cv_header_time+set}" = set; then
21140 echo $ECHO_N "(cached) $ECHO_C" >&6
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21148 #include <sys/types.h>
21149 #include <sys/time.h>
21155 if ((struct tm *) 0)
21161 rm -f conftest.$ac_objext
21162 if { (ac_try="$ac_compile"
21163 case "(($ac_try" in
21164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21165 *) ac_try_echo
=$ac_try;;
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_compile") 2>conftest.er1
21170 grep -v '^ *+' conftest.er1
>conftest.err
21172 cat conftest.err
>&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest.
$ac_objext; then
21178 ac_cv_header_time
=yes
21180 echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.
$ac_ext >&5
21183 ac_cv_header_time
=no
21186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21188 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21189 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21190 if test $ac_cv_header_time = yes; then
21192 cat >>confdefs.h
<<\_ACEOF
21193 #define TIME_WITH_SYS_TIME 1
21198 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21199 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21200 if test "${ac_cv_struct_tm+set}" = set; then
21201 echo $ECHO_N "(cached) $ECHO_C" >&6
21203 cat >conftest.
$ac_ext <<_ACEOF
21206 cat confdefs.h
>>conftest.
$ac_ext
21207 cat >>conftest.
$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 #include <sys/types.h>
21216 int *p = &tm.tm_sec;
21222 rm -f conftest.
$ac_objext
21223 if { (ac_try
="$ac_compile"
21224 case "(($ac_try" in
21225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_compile") 2>conftest.er1
21231 grep -v '^ *+' conftest.er1 >conftest.err
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest.$ac_objext; then
21239 ac_cv_struct_tm=time.h
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_cv_struct_tm=sys/time.h
21247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21249 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21250 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21251 if test $ac_cv_struct_tm = sys/time.h; then
21253 cat >>confdefs.h <<\_ACEOF
21254 #define TM_IN_SYS_TIME 1
21259 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21260 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21261 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21264 cat >conftest.$ac_ext <<_ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 #include <sys/types.h>
21271 #include <$ac_cv_struct_tm>
21277 static struct tm ac_aggr;
21278 if (ac_aggr.tm_zone)
21284 rm -f conftest.$ac_objext
21285 if { (ac_try="$ac_compile"
21286 case "(($ac_try" in
21287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21288 *) ac_try_echo
=$ac_try;;
21290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291 (eval "$ac_compile") 2>conftest.er1
21293 grep -v '^ *+' conftest.er1
>conftest.err
21295 cat conftest.err
>&5
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } && {
21298 test -z "$ac_c_werror_flag" ||
21299 test ! -s conftest.err
21300 } && test -s conftest.
$ac_objext; then
21301 ac_cv_member_struct_tm_tm_zone
=yes
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.
$ac_ext >&5
21306 cat >conftest.
$ac_ext <<_ACEOF
21309 cat confdefs.h
>>conftest.
$ac_ext
21310 cat >>conftest.
$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21312 #include <sys/types.h>
21313 #include <$ac_cv_struct_tm>
21319 static struct tm ac_aggr;
21320 if (sizeof ac_aggr.tm_zone)
21326 rm -f conftest.
$ac_objext
21327 if { (ac_try
="$ac_compile"
21328 case "(($ac_try" in
21329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21330 *) ac_try_echo=$ac_try;;
21332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21333 (eval "$ac_compile") 2>conftest.er1
21335 grep -v '^ *+' conftest.er1 >conftest.err
21337 cat conftest.err >&5
21338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339 (exit $ac_status); } && {
21340 test -z "$ac_c_werror_flag" ||
21341 test ! -s conftest.err
21342 } && test -s conftest.$ac_objext; then
21343 ac_cv_member_struct_tm_tm_zone=yes
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21348 ac_cv_member_struct_tm_tm_zone=no
21351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21357 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21358 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21360 cat >>confdefs.h <<_ACEOF
21361 #define HAVE_STRUCT_TM_TM_ZONE 1
21367 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21369 cat >>confdefs.h <<\_ACEOF
21370 #define HAVE_TM_ZONE 1
21374 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21375 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21376 if test "${ac_cv_have_decl_tzname+set}" = set; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21379 cat >conftest.$ac_ext <<_ACEOF
21382 cat confdefs.h >>conftest.$ac_ext
21383 cat >>conftest.$ac_ext <<_ACEOF
21384 /* end confdefs.h. */
21398 rm -f conftest.$ac_objext
21399 if { (ac_try="$ac_compile"
21400 case "(($ac_try" in
21401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21402 *) ac_try_echo
=$ac_try;;
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405 (eval "$ac_compile") 2>conftest.er1
21407 grep -v '^ *+' conftest.er1
>conftest.err
21409 cat conftest.err
>&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } && {
21412 test -z "$ac_c_werror_flag" ||
21413 test ! -s conftest.err
21414 } && test -s conftest.
$ac_objext; then
21415 ac_cv_have_decl_tzname
=yes
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.
$ac_ext >&5
21420 ac_cv_have_decl_tzname
=no
21423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21425 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21426 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21427 if test $ac_cv_have_decl_tzname = yes; then
21429 cat >>confdefs.h
<<_ACEOF
21430 #define HAVE_DECL_TZNAME 1
21435 cat >>confdefs.h
<<_ACEOF
21436 #define HAVE_DECL_TZNAME 0
21443 { echo "$as_me:$LINENO: checking for tzname" >&5
21444 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21445 if test "${ac_cv_var_tzname+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21448 cat >conftest.
$ac_ext <<_ACEOF
21451 cat confdefs.h
>>conftest.
$ac_ext
21452 cat >>conftest.
$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21455 #if !HAVE_DECL_TZNAME
21456 extern char *tzname[];
21462 return tzname[0][0];
21467 rm -f conftest.
$ac_objext conftest
$ac_exeext
21468 if { (ac_try
="$ac_link"
21469 case "(($ac_try" in
21470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21471 *) ac_try_echo=$ac_try;;
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474 (eval "$ac_link") 2>conftest.er1
21476 grep -v '^ *+' conftest.er1 >conftest.err
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } && {
21481 test -z "$ac_c_werror_flag" ||
21482 test ! -s conftest.err
21483 } && test -s conftest$ac_exeext &&
21484 $as_test_x conftest$ac_exeext; then
21485 ac_cv_var_tzname=yes
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 ac_cv_var_tzname=no
21493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21494 conftest$ac_exeext conftest.$ac_ext
21496 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21497 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21498 if test $ac_cv_var_tzname = yes; then
21500 cat >>confdefs.h <<\_ACEOF
21501 #define HAVE_TZNAME 1
21507 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21508 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21509 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21512 cat >conftest.$ac_ext <<_ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21522 static struct stat ac_aggr;
21523 if (ac_aggr.st_rdev)
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_member_struct_stat_st_rdev
=yes
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.
$ac_ext >&5
21551 cat >conftest.
$ac_ext <<_ACEOF
21554 cat confdefs.h
>>conftest.
$ac_ext
21555 cat >>conftest.
$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21557 $ac_includes_default
21561 static struct stat ac_aggr;
21562 if (sizeof ac_aggr.st_rdev)
21568 rm -f conftest.
$ac_objext
21569 if { (ac_try
="$ac_compile"
21570 case "(($ac_try" in
21571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21572 *) ac_try_echo=$ac_try;;
21574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21575 (eval "$ac_compile") 2>conftest.er1
21577 grep -v '^ *+' conftest.er1 >conftest.err
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } && {
21582 test -z "$ac_c_werror_flag" ||
21583 test ! -s conftest.err
21584 } && test -s conftest.$ac_objext; then
21585 ac_cv_member_struct_stat_st_rdev=yes
21587 echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21590 ac_cv_member_struct_stat_st_rdev=no
21593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21599 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21600 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21602 cat >>confdefs.h <<_ACEOF
21603 #define HAVE_STRUCT_STAT_ST_RDEV 1
21609 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21610 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21611 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 cat >conftest.$ac_ext <<_ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h. */
21620 $ac_includes_default
21624 static struct stat ac_aggr;
21625 if (ac_aggr.st_blksize)
21631 rm -f conftest.$ac_objext
21632 if { (ac_try="$ac_compile"
21633 case "(($ac_try" in
21634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21635 *) ac_try_echo
=$ac_try;;
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638 (eval "$ac_compile") 2>conftest.er1
21640 grep -v '^ *+' conftest.er1
>conftest.err
21642 cat conftest.err
>&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } && {
21645 test -z "$ac_c_werror_flag" ||
21646 test ! -s conftest.err
21647 } && test -s conftest.
$ac_objext; then
21648 ac_cv_member_struct_stat_st_blksize
=yes
21650 echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.
$ac_ext >&5
21653 cat >conftest.
$ac_ext <<_ACEOF
21656 cat confdefs.h
>>conftest.
$ac_ext
21657 cat >>conftest.
$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21659 $ac_includes_default
21663 static struct stat ac_aggr;
21664 if (sizeof ac_aggr.st_blksize)
21670 rm -f conftest.
$ac_objext
21671 if { (ac_try
="$ac_compile"
21672 case "(($ac_try" in
21673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21674 *) ac_try_echo=$ac_try;;
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677 (eval "$ac_compile") 2>conftest.er1
21679 grep -v '^ *+' conftest.er1 >conftest.err
21681 cat conftest.err >&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); } && {
21684 test -z "$ac_c_werror_flag" ||
21685 test ! -s conftest.err
21686 } && test -s conftest.$ac_objext; then
21687 ac_cv_member_struct_stat_st_blksize=yes
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 ac_cv_member_struct_stat_st_blksize=no
21695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21701 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21702 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21704 cat >>confdefs.h <<_ACEOF
21705 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21711 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21712 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21713 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21716 cat >conftest.$ac_ext <<_ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h. */
21722 $ac_includes_default
21726 static struct stat ac_aggr;
21727 if (ac_aggr.st_flags)
21733 rm -f conftest.$ac_objext
21734 if { (ac_try="$ac_compile"
21735 case "(($ac_try" in
21736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21737 *) ac_try_echo
=$ac_try;;
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_compile") 2>conftest.er1
21742 grep -v '^ *+' conftest.er1
>conftest.err
21744 cat conftest.err
>&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest.
$ac_objext; then
21750 ac_cv_member_struct_stat_st_flags
=yes
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.
$ac_ext >&5
21755 cat >conftest.
$ac_ext <<_ACEOF
21758 cat confdefs.h
>>conftest.
$ac_ext
21759 cat >>conftest.
$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21761 $ac_includes_default
21765 static struct stat ac_aggr;
21766 if (sizeof ac_aggr.st_flags)
21772 rm -f conftest.
$ac_objext
21773 if { (ac_try
="$ac_compile"
21774 case "(($ac_try" in
21775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21776 *) ac_try_echo=$ac_try;;
21778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21779 (eval "$ac_compile") 2>conftest.er1
21781 grep -v '^ *+' conftest.er1 >conftest.err
21783 cat conftest.err >&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } && {
21786 test -z "$ac_c_werror_flag" ||
21787 test ! -s conftest.err
21788 } && test -s conftest.$ac_objext; then
21789 ac_cv_member_struct_stat_st_flags=yes
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21794 ac_cv_member_struct_stat_st_flags=no
21797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21802 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21803 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21804 if test $ac_cv_member_struct_stat_st_flags = yes; then
21806 cat >>confdefs.h <<_ACEOF
21807 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21813 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21814 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21815 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21828 static struct stat ac_aggr;
21829 if (ac_aggr.st_gen)
21835 rm -f conftest.$ac_objext
21836 if { (ac_try="$ac_compile"
21837 case "(($ac_try" in
21838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21839 *) ac_try_echo
=$ac_try;;
21841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21842 (eval "$ac_compile") 2>conftest.er1
21844 grep -v '^ *+' conftest.er1
>conftest.err
21846 cat conftest.err
>&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); } && {
21849 test -z "$ac_c_werror_flag" ||
21850 test ! -s conftest.err
21851 } && test -s conftest.
$ac_objext; then
21852 ac_cv_member_struct_stat_st_gen
=yes
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.
$ac_ext >&5
21857 cat >conftest.
$ac_ext <<_ACEOF
21860 cat confdefs.h
>>conftest.
$ac_ext
21861 cat >>conftest.
$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 $ac_includes_default
21867 static struct stat ac_aggr;
21868 if (sizeof ac_aggr.st_gen)
21874 rm -f conftest.
$ac_objext
21875 if { (ac_try
="$ac_compile"
21876 case "(($ac_try" in
21877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_compile") 2>conftest.er1
21883 grep -v '^ *+' conftest.er1 >conftest.err
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && {
21888 test -z "$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21890 } && test -s conftest.$ac_objext; then
21891 ac_cv_member_struct_stat_st_gen=yes
21893 echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21896 ac_cv_member_struct_stat_st_gen=no
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21904 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21905 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21906 if test $ac_cv_member_struct_stat_st_gen = yes; then
21908 cat >>confdefs.h <<_ACEOF
21909 #define HAVE_STRUCT_STAT_ST_GEN 1
21915 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21916 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21917 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21920 cat >conftest.$ac_ext <<_ACEOF
21923 cat confdefs.h >>conftest.$ac_ext
21924 cat >>conftest.$ac_ext <<_ACEOF
21925 /* end confdefs.h. */
21926 $ac_includes_default
21930 static struct stat ac_aggr;
21931 if (ac_aggr.st_birthtime)
21937 rm -f conftest.$ac_objext
21938 if { (ac_try="$ac_compile"
21939 case "(($ac_try" in
21940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21941 *) ac_try_echo
=$ac_try;;
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_compile") 2>conftest.er1
21946 grep -v '^ *+' conftest.er1
>conftest.err
21948 cat conftest.err
>&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } && {
21951 test -z "$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21953 } && test -s conftest.
$ac_objext; then
21954 ac_cv_member_struct_stat_st_birthtime
=yes
21956 echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.
$ac_ext >&5
21959 cat >conftest.
$ac_ext <<_ACEOF
21962 cat confdefs.h
>>conftest.
$ac_ext
21963 cat >>conftest.
$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 $ac_includes_default
21969 static struct stat ac_aggr;
21970 if (sizeof ac_aggr.st_birthtime)
21976 rm -f conftest.
$ac_objext
21977 if { (ac_try
="$ac_compile"
21978 case "(($ac_try" in
21979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_compile") 2>conftest.er1
21985 grep -v '^ *+' conftest.er1 >conftest.err
21987 cat conftest.err >&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); } && {
21990 test -z "$ac_c_werror_flag" ||
21991 test ! -s conftest.err
21992 } && test -s conftest.$ac_objext; then
21993 ac_cv_member_struct_stat_st_birthtime=yes
21995 echo "$as_me: failed program was:" >&5
21996 sed 's/^/| /' conftest.$ac_ext >&5
21998 ac_cv_member_struct_stat_st_birthtime=no
22001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
22007 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
22008 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
22010 cat >>confdefs.h <<_ACEOF
22011 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
22017 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22018 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22019 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22022 cat >conftest.$ac_ext <<_ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22028 $ac_includes_default
22032 static struct stat ac_aggr;
22033 if (ac_aggr.st_blocks)
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22043 *) ac_try_echo
=$ac_try;;
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_compile") 2>conftest.er1
22048 grep -v '^ *+' conftest.er1
>conftest.err
22050 cat conftest.err
>&5
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && {
22053 test -z "$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22055 } && test -s conftest.
$ac_objext; then
22056 ac_cv_member_struct_stat_st_blocks
=yes
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.
$ac_ext >&5
22061 cat >conftest.
$ac_ext <<_ACEOF
22064 cat confdefs.h
>>conftest.
$ac_ext
22065 cat >>conftest.
$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 $ac_includes_default
22071 static struct stat ac_aggr;
22072 if (sizeof ac_aggr.st_blocks)
22078 rm -f conftest.
$ac_objext
22079 if { (ac_try
="$ac_compile"
22080 case "(($ac_try" in
22081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_compile") 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest.$ac_objext; then
22095 ac_cv_member_struct_stat_st_blocks=yes
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ac_cv_member_struct_stat_st_blocks=no
22103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22109 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22110 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22112 cat >>confdefs.h <<_ACEOF
22113 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22117 cat >>confdefs.h <<\_ACEOF
22118 #define HAVE_ST_BLOCKS 1
22122 case " $LIBOBJS " in
22123 *" fileblocks.$ac_objext "* ) ;;
22124 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22132 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22133 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
22134 if test "${ac_cv_header_time_altzone+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22152 rm -f conftest.$ac_objext
22153 if { (ac_try="$ac_compile"
22154 case "(($ac_try" in
22155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22156 *) ac_try_echo
=$ac_try;;
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159 (eval "$ac_compile") 2>conftest.er1
22161 grep -v '^ *+' conftest.er1
>conftest.err
22163 cat conftest.err
>&5
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); } && {
22166 test -z "$ac_c_werror_flag" ||
22167 test ! -s conftest.err
22168 } && test -s conftest.
$ac_objext; then
22169 ac_cv_header_time_altzone
=yes
22171 echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.
$ac_ext >&5
22174 ac_cv_header_time_altzone
=no
22177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22180 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22181 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22182 if test $ac_cv_header_time_altzone = yes; then
22184 cat >>confdefs.h
<<\_ACEOF
22185 #define HAVE_ALTZONE 1
22191 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22192 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22193 cat >conftest.
$ac_ext <<_ACEOF
22196 cat confdefs.h
>>conftest.
$ac_ext
22197 cat >>conftest.
$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22200 #include <sys/types.h>
22201 #include <sys/select.h>
22202 #include <sys/time.h>
22212 rm -f conftest.
$ac_objext
22213 if { (ac_try
="$ac_compile"
22214 case "(($ac_try" in
22215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219 (eval "$ac_compile") 2>conftest.er1
22221 grep -v '^ *+' conftest.er1 >conftest.err
22223 cat conftest.err >&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && {
22226 test -z "$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22228 } && test -s conftest.$ac_objext; then
22231 cat >>confdefs.h <<\_ACEOF
22232 #define SYS_SELECT_WITH_SYS_TIME 1
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22245 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
22246 echo "${ECHO_T}$was_it_defined" >&6; }
22248 { echo "$as_me:$LINENO: checking for addrinfo" >&5
22249 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22250 if test "${ac_cv_struct_addrinfo+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22260 # include <netdb.h>
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22273 *) ac_try_echo
=$ac_try;;
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276 (eval "$ac_compile") 2>conftest.er1
22278 grep -v '^ *+' conftest.er1
>conftest.err
22280 cat conftest.err
>&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && {
22283 test -z "$ac_c_werror_flag" ||
22284 test ! -s conftest.err
22285 } && test -s conftest.
$ac_objext; then
22286 ac_cv_struct_addrinfo
=yes
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.
$ac_ext >&5
22291 ac_cv_struct_addrinfo
=no
22294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22297 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22298 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22299 if test $ac_cv_struct_addrinfo = yes; then
22301 cat >>confdefs.h
<<\_ACEOF
22302 #define HAVE_ADDRINFO 1
22307 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22308 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22309 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 cat >conftest.
$ac_ext <<_ACEOF
22315 cat confdefs.h
>>conftest.
$ac_ext
22316 cat >>conftest.
$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22319 # include <sys/types.h>
22320 # include <sys/socket.h>
22324 struct sockaddr_storage s
22329 rm -f conftest.
$ac_objext
22330 if { (ac_try
="$ac_compile"
22331 case "(($ac_try" in
22332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_compile") 2>conftest.er1
22338 grep -v '^ *+' conftest.er1 >conftest.err
22340 cat conftest.err >&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } && {
22343 test -z "$ac_c_werror_flag" ||
22344 test ! -s conftest.err
22345 } && test -s conftest.$ac_objext; then
22346 ac_cv_struct_sockaddr_storage=yes
22348 echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22351 ac_cv_struct_sockaddr_storage=no
22354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22358 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22359 if test $ac_cv_struct_sockaddr_storage = yes; then
22361 cat >>confdefs.h <<\_ACEOF
22362 #define HAVE_SOCKADDR_STORAGE 1
22367 # checks for compiler characteristics
22370 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22371 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22372 if test "${ac_cv_c_char_unsigned+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22375 cat >conftest.$ac_ext <<_ACEOF
22378 cat confdefs.h >>conftest.$ac_ext
22379 cat >>conftest.$ac_ext <<_ACEOF
22380 /* end confdefs.h. */
22381 $ac_includes_default
22385 static int test_array [1 - 2 * !(((char) -1) < 0)];
22392 rm -f conftest.$ac_objext
22393 if { (ac_try="$ac_compile"
22394 case "(($ac_try" in
22395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22396 *) ac_try_echo
=$ac_try;;
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_compile") 2>conftest.er1
22401 grep -v '^ *+' conftest.er1
>conftest.err
22403 cat conftest.err
>&5
22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } && {
22406 test -z "$ac_c_werror_flag" ||
22407 test ! -s conftest.err
22408 } && test -s conftest.
$ac_objext; then
22409 ac_cv_c_char_unsigned
=no
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.
$ac_ext >&5
22414 ac_cv_c_char_unsigned
=yes
22417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22419 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22420 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22421 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22422 cat >>confdefs.h
<<\_ACEOF
22423 #define __CHAR_UNSIGNED__ 1
22428 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22429 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22430 if test "${ac_cv_c_const+set}" = set; then
22431 echo $ECHO_N "(cached) $ECHO_C" >&6
22433 cat >conftest.
$ac_ext <<_ACEOF
22436 cat confdefs.h
>>conftest.
$ac_ext
22437 cat >>conftest.
$ac_ext <<_ACEOF
22438 /* end confdefs.h. */
22443 /* FIXME: Include the comments suggested by Paul. */
22444 #ifndef __cplusplus
22445 /* Ultrix mips cc rejects this. */
22446 typedef int charset[2];
22448 /* SunOS 4.1.1 cc rejects this. */
22449 char const *const *pcpcc;
22451 /* NEC SVR4.0.2 mips cc rejects this. */
22452 struct point {int x, y;};
22453 static struct point const zero = {0,0};
22454 /* AIX XL C 1.02.0.0 rejects this.
22455 It does not let you subtract one const X* pointer from another in
22456 an arm of an if-expression whose if-part is not a constant
22458 const char *g = "string";
22459 pcpcc = &g + (g ? g-g : 0);
22460 /* HPUX 7.0 cc rejects these. */
22462 ppc = (char**) pcpcc;
22463 pcpcc = (char const *const *) ppc;
22464 { /* SCO 3.2v4 cc rejects this. */
22466 char const *s = 0 ? (char *) 0 : (char const *) 0;
22471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22472 int x[] = {25, 17};
22473 const int *foo = &x[0];
22476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22477 typedef const int *iptr;
22481 { /* AIX XL C 1.02.0.0 rejects this saying
22482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22483 struct s { int j; const int *ap[3]; };
22484 struct s *b; b->j = 5;
22486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22487 const int foo = 10;
22488 if (!foo) return 0;
22490 return !cs[0] && !zero.x;
22497 rm -f conftest.
$ac_objext
22498 if { (ac_try
="$ac_compile"
22499 case "(($ac_try" in
22500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504 (eval "$ac_compile") 2>conftest.er1
22506 grep -v '^ *+' conftest.er1 >conftest.err
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); } && {
22511 test -z "$ac_c_werror_flag" ||
22512 test ! -s conftest.err
22513 } && test -s conftest.$ac_objext; then
22516 echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22525 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22526 if test $ac_cv_c_const = no; then
22528 cat >>confdefs.h <<\_ACEOF
22536 { echo "$as_me:$LINENO: checking for working volatile" >&5
22537 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22548 volatile int x; x = 0;
22553 rm -f conftest.$ac_objext
22554 if { (ac_try="$ac_compile"
22555 case "(($ac_try" in
22556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22557 *) ac_try_echo
=$ac_try;;
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_compile") 2>conftest.er1
22562 grep -v '^ *+' conftest.er1
>conftest.err
22564 cat conftest.err
>&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest.
$ac_objext; then
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.
$ac_ext >&5
22576 cat >>confdefs.h
<<\_ACEOF
22583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22584 { echo "$as_me:$LINENO: result: $works" >&5
22585 echo "${ECHO_T}$works" >&6; }
22588 { echo "$as_me:$LINENO: checking for working signed char" >&5
22589 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22590 cat >conftest.
$ac_ext <<_ACEOF
22593 cat confdefs.h
>>conftest.
$ac_ext
22594 cat >>conftest.
$ac_ext <<_ACEOF
22595 /* end confdefs.h. */
22605 rm -f conftest.
$ac_objext
22606 if { (ac_try
="$ac_compile"
22607 case "(($ac_try" in
22608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22609 *) ac_try_echo=$ac_try;;
22611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22612 (eval "$ac_compile") 2>conftest.er1
22614 grep -v '^ *+' conftest.er1 >conftest.err
22616 cat conftest.err >&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); } && {
22619 test -z "$ac_c_werror_flag" ||
22620 test ! -s conftest.err
22621 } && test -s conftest.$ac_objext; then
22624 echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22628 cat >>confdefs.h <<\_ACEOF
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 { echo "$as_me:$LINENO: result: $works" >&5
22637 echo "${ECHO_T}$works" >&6; }
22640 { echo "$as_me:$LINENO: checking for prototypes" >&5
22641 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22642 cat >conftest.$ac_ext <<_ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h. */
22648 int foo(int x) { return 0; }
22657 rm -f conftest.$ac_objext
22658 if { (ac_try="$ac_compile"
22659 case "(($ac_try" in
22660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22661 *) ac_try_echo
=$ac_try;;
22663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22664 (eval "$ac_compile") 2>conftest.er1
22666 grep -v '^ *+' conftest.er1
>conftest.err
22668 cat conftest.err
>&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } && {
22671 test -z "$ac_c_werror_flag" ||
22672 test ! -s conftest.err
22673 } && test -s conftest.
$ac_objext; then
22676 cat >>confdefs.h
<<\_ACEOF
22677 #define HAVE_PROTOTYPES 1
22680 have_prototypes
=yes
22683 echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.
$ac_ext >&5
22689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22690 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22691 echo "${ECHO_T}$have_prototypes" >&6; }
22694 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22695 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22696 cat >conftest.
$ac_ext <<_ACEOF
22699 cat confdefs.h
>>conftest.
$ac_ext
22700 cat >>conftest.
$ac_ext <<_ACEOF
22701 /* end confdefs.h. */
22703 #include <stdarg.h>
22704 int foo(int x, ...) {
22708 va_arg(va, char *);
22709 va_arg(va, double);
22716 return foo(10, "", 3.14);
22721 rm -f conftest.
$ac_objext
22722 if { (ac_try
="$ac_compile"
22723 case "(($ac_try" in
22724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728 (eval "$ac_compile") 2>conftest.er1
22730 grep -v '^ *+' conftest.er1 >conftest.err
22732 cat conftest.err >&5
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } && {
22735 test -z "$ac_c_werror_flag" ||
22736 test ! -s conftest.err
22737 } && test -s conftest.$ac_objext; then
22740 cat >>confdefs.h <<\_ACEOF
22741 #define HAVE_STDARG_PROTOTYPES 1
22747 echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754 { echo "$as_me:$LINENO: result: $works" >&5
22755 echo "${ECHO_T}$works" >&6; }
22757 # check for socketpair
22758 { echo "$as_me:$LINENO: checking for socketpair" >&5
22759 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22760 cat >conftest.$ac_ext <<_ACEOF
22763 cat confdefs.h >>conftest.$ac_ext
22764 cat >>conftest.$ac_ext <<_ACEOF
22765 /* end confdefs.h. */
22767 #include <sys/types.h>
22768 #include <sys/socket.h>
22778 rm -f conftest.$ac_objext
22779 if { (ac_try="$ac_compile"
22780 case "(($ac_try" in
22781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22782 *) ac_try_echo
=$ac_try;;
22784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22785 (eval "$ac_compile") 2>conftest.er1
22787 grep -v '^ *+' conftest.er1
>conftest.err
22789 cat conftest.err
>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } && {
22792 test -z "$ac_c_werror_flag" ||
22793 test ! -s conftest.err
22794 } && test -s conftest.
$ac_objext; then
22796 cat >>confdefs.h
<<\_ACEOF
22797 #define HAVE_SOCKETPAIR 1
22800 { echo "$as_me:$LINENO: result: yes" >&5
22801 echo "${ECHO_T}yes" >&6; }
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.
$ac_ext >&5
22806 { echo "$as_me:$LINENO: result: no" >&5
22807 echo "${ECHO_T}no" >&6; }
22811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22813 # check if sockaddr has sa_len member
22814 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22815 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22816 cat >conftest.
$ac_ext <<_ACEOF
22819 cat confdefs.h
>>conftest.
$ac_ext
22820 cat >>conftest.
$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22822 #include <sys/types.h>
22823 #include <sys/socket.h>
22833 rm -f conftest.
$ac_objext
22834 if { (ac_try
="$ac_compile"
22835 case "(($ac_try" in
22836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22842 grep -v '^ *+' conftest.er1 >conftest.err
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22850 { echo "$as_me:$LINENO: result: yes" >&5
22851 echo "${ECHO_T}yes" >&6; }
22853 cat >>confdefs.h <<\_ACEOF
22854 #define HAVE_SOCKADDR_SA_LEN 1
22858 echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22861 { echo "$as_me:$LINENO: result: no" >&5
22862 echo "${ECHO_T}no" >&6; }
22865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 va_list_is_array=no
22868 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22869 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22870 cat >conftest.$ac_ext <<_ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h. */
22877 #ifdef HAVE_STDARG_PROTOTYPES
22878 #include <stdarg.h>
22880 #include <varargs.h>
22886 va_list list1, list2; list1 = list2;
22891 rm -f conftest.$ac_objext
22892 if { (ac_try="$ac_compile"
22893 case "(($ac_try" in
22894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22895 *) ac_try_echo
=$ac_try;;
22897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22898 (eval "$ac_compile") 2>conftest.er1
22900 grep -v '^ *+' conftest.er1
>conftest.err
22902 cat conftest.err
>&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } && {
22905 test -z "$ac_c_werror_flag" ||
22906 test ! -s conftest.err
22907 } && test -s conftest.
$ac_objext; then
22910 echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.
$ac_ext >&5
22915 cat >>confdefs.h
<<\_ACEOF
22916 #define VA_LIST_IS_ARRAY 1
22919 va_list_is_array
=yes
22923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22924 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22925 echo "${ECHO_T}$va_list_is_array" >&6; }
22927 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22931 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22932 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22933 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22936 cat >conftest.
$ac_ext <<_ACEOF
22939 cat confdefs.h
>>conftest.
$ac_ext
22940 cat >>conftest.
$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22942 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22944 #define gethostbyname_r innocuous_gethostbyname_r
22946 /* System header to define __stub macros and hopefully few prototypes,
22947 which can conflict with char gethostbyname_r (); below.
22948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22949 <limits.h> exists even on freestanding compilers. */
22952 # include <limits.h>
22954 # include <assert.h>
22957 #undef gethostbyname_r
22959 /* Override any GCC internal prototype to avoid an error.
22960 Use char because int might match the return type of a GCC
22961 builtin and then its argument prototype would still apply. */
22965 char gethostbyname_r ();
22966 /* The GNU C library defines this for functions which it implements
22967 to always fail with ENOSYS. Some functions are actually named
22968 something starting with __ and the normal name is an alias. */
22969 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22976 return gethostbyname_r ();
22981 rm -f conftest.
$ac_objext conftest
$ac_exeext
22982 if { (ac_try
="$ac_link"
22983 case "(($ac_try" in
22984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_link") 2>conftest.er1
22990 grep -v '^ *+' conftest.er1 >conftest.err
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } && {
22995 test -z "$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 } && test -s conftest$ac_exeext &&
22998 $as_test_x conftest$ac_exeext; then
22999 ac_cv_func_gethostbyname_r=yes
23001 echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23004 ac_cv_func_gethostbyname_r=no
23007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23008 conftest$ac_exeext conftest.$ac_ext
23010 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
23011 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
23012 if test $ac_cv_func_gethostbyname_r = yes; then
23014 cat >>confdefs.h <<\_ACEOF
23015 #define HAVE_GETHOSTBYNAME_R 1
23018 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
23019 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
23021 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23022 cat >conftest.$ac_ext <<_ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23029 # include <netdb.h>
23036 struct hostent *he, *res;
23041 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23047 rm -f conftest.$ac_objext
23048 if { (ac_try="$ac_compile"
23049 case "(($ac_try" in
23050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23051 *) ac_try_echo
=$ac_try;;
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_compile") 2>conftest.er1
23056 grep -v '^ *+' conftest.er1
>conftest.err
23058 cat conftest.err
>&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } && {
23061 test -z "$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23063 } && test -s conftest.
$ac_objext; then
23065 cat >>confdefs.h
<<\_ACEOF
23066 #define HAVE_GETHOSTBYNAME_R 1
23070 cat >>confdefs.h
<<\_ACEOF
23071 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
23074 { echo "$as_me:$LINENO: result: yes" >&5
23075 echo "${ECHO_T}yes" >&6; }
23078 echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.
$ac_ext >&5
23082 { echo "$as_me:$LINENO: result: no" >&5
23083 echo "${ECHO_T}no" >&6; }
23084 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
23085 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
23086 cat >conftest.
$ac_ext <<_ACEOF
23089 cat confdefs.h
>>conftest.
$ac_ext
23090 cat >>conftest.
$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23093 # include <netdb.h>
23100 struct hostent *he;
23105 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23111 rm -f conftest.
$ac_objext
23112 if { (ac_try
="$ac_compile"
23113 case "(($ac_try" in
23114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118 (eval "$ac_compile") 2>conftest.er1
23120 grep -v '^ *+' conftest.er1 >conftest.err
23122 cat conftest.err >&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } && {
23125 test -z "$ac_c_werror_flag" ||
23126 test ! -s conftest.err
23127 } && test -s conftest.$ac_objext; then
23129 cat >>confdefs.h <<\_ACEOF
23130 #define HAVE_GETHOSTBYNAME_R 1
23134 cat >>confdefs.h <<\_ACEOF
23135 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
23138 { echo "$as_me:$LINENO: result: yes" >&5
23139 echo "${ECHO_T}yes" >&6; }
23142 echo "$as_me: failed program was:" >&5
23143 sed 's/^/| /' conftest.$ac_ext >&5
23146 { echo "$as_me:$LINENO: result: no" >&5
23147 echo "${ECHO_T}no" >&6; }
23148 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23149 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
23150 cat >conftest.$ac_ext <<_ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h. */
23157 # include <netdb.h>
23164 struct hostent *he;
23165 struct hostent_data data;
23167 (void) gethostbyname_r(name, he, &data);
23173 rm -f conftest.$ac_objext
23174 if { (ac_try="$ac_compile"
23175 case "(($ac_try" in
23176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23177 *) ac_try_echo
=$ac_try;;
23179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23180 (eval "$ac_compile") 2>conftest.er1
23182 grep -v '^ *+' conftest.er1
>conftest.err
23184 cat conftest.err
>&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); } && {
23187 test -z "$ac_c_werror_flag" ||
23188 test ! -s conftest.err
23189 } && test -s conftest.
$ac_objext; then
23191 cat >>confdefs.h
<<\_ACEOF
23192 #define HAVE_GETHOSTBYNAME_R 1
23196 cat >>confdefs.h
<<\_ACEOF
23197 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
23200 { echo "$as_me:$LINENO: result: yes" >&5
23201 echo "${ECHO_T}yes" >&6; }
23204 echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.
$ac_ext >&5
23208 { echo "$as_me:$LINENO: result: no" >&5
23209 echo "${ECHO_T}no" >&6; }
23213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23227 for ac_func
in gethostbyname
23229 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23232 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23235 cat >conftest.
$ac_ext <<_ACEOF
23238 cat confdefs.h
>>conftest.
$ac_ext
23239 cat >>conftest.
$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23243 #define $ac_func innocuous_$ac_func
23245 /* System header to define __stub macros and hopefully few prototypes,
23246 which can conflict with char $ac_func (); below.
23247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23248 <limits.h> exists even on freestanding compilers. */
23251 # include <limits.h>
23253 # include <assert.h>
23258 /* Override any GCC internal prototype to avoid an error.
23259 Use char because int might match the return type of a GCC
23260 builtin and then its argument prototype would still apply. */
23265 /* The GNU C library defines this for functions which it implements
23266 to always fail with ENOSYS. Some functions are actually named
23267 something starting with __ and the normal name is an alias. */
23268 #if defined __stub_$ac_func || defined __stub___$ac_func
23275 return $ac_func ();
23280 rm -f conftest.
$ac_objext conftest
$ac_exeext
23281 if { (ac_try
="$ac_link"
23282 case "(($ac_try" in
23283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23284 *) ac_try_echo=$ac_try;;
23286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 (eval "$ac_link") 2>conftest.er1
23289 grep -v '^ *+' conftest.er1 >conftest.err
23291 cat conftest.err >&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); } && {
23294 test -z "$ac_c_werror_flag" ||
23295 test ! -s conftest.err
23296 } && test -s conftest$ac_exeext &&
23297 $as_test_x conftest$ac_exeext; then
23298 eval "$as_ac_var=yes"
23300 echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23303 eval "$as_ac_var=no"
23306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23307 conftest$ac_exeext conftest.$ac_ext
23309 ac_res=`eval echo '${'$as_ac_var'}'`
23310 { echo "$as_me:$LINENO: result: $ac_res" >&5
23311 echo "${ECHO_T}$ac_res" >&6; }
23312 if test `eval echo '${'$as_ac_var'}'` = yes; then
23313 cat >>confdefs.h <<_ACEOF
23314 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23329 # checks for system services
23332 # Linux requires this for correct f.p. operations
23333 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
23334 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
23335 if test "${ac_cv_func___fpu_control+set}" = set; then
23336 echo $ECHO_N "(cached) $ECHO_C" >&6
23338 cat >conftest.$ac_ext <<_ACEOF
23341 cat confdefs.h >>conftest.$ac_ext
23342 cat >>conftest.$ac_ext <<_ACEOF
23343 /* end confdefs.h. */
23344 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23346 #define __fpu_control innocuous___fpu_control
23348 /* System header to define __stub macros and hopefully few prototypes,
23349 which can conflict with char __fpu_control (); below.
23350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23351 <limits.h> exists even on freestanding compilers. */
23354 # include <limits.h>
23356 # include <assert.h>
23359 #undef __fpu_control
23361 /* Override any GCC internal prototype to avoid an error.
23362 Use char because int might match the return type of a GCC
23363 builtin and then its argument prototype would still apply. */
23367 char __fpu_control ();
23368 /* The GNU C library defines this for functions which it implements
23369 to always fail with ENOSYS. Some functions are actually named
23370 something starting with __ and the normal name is an alias. */
23371 #if defined __stub___fpu_control || defined __stub_____fpu_control
23378 return __fpu_control ();
23383 rm -f conftest.$ac_objext conftest$ac_exeext
23384 if { (ac_try="$ac_link"
23385 case "(($ac_try" in
23386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23387 *) ac_try_echo
=$ac_try;;
23389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23390 (eval "$ac_link") 2>conftest.er1
23392 grep -v '^ *+' conftest.er1
>conftest.err
23394 cat conftest.err
>&5
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } && {
23397 test -z "$ac_c_werror_flag" ||
23398 test ! -s conftest.err
23399 } && test -s conftest
$ac_exeext &&
23400 $as_test_x conftest
$ac_exeext; then
23401 ac_cv_func___fpu_control
=yes
23403 echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.
$ac_ext >&5
23406 ac_cv_func___fpu_control
=no
23409 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23410 conftest
$ac_exeext conftest.
$ac_ext
23412 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23413 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23414 if test $ac_cv_func___fpu_control = yes; then
23418 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23419 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23420 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 ac_check_lib_save_LIBS
=$LIBS
23424 LIBS
="-lieee $LIBS"
23425 cat >conftest.
$ac_ext <<_ACEOF
23428 cat confdefs.h
>>conftest.
$ac_ext
23429 cat >>conftest.
$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23432 /* Override any GCC internal prototype to avoid an error.
23433 Use char because int might match the return type of a GCC
23434 builtin and then its argument prototype would still apply. */
23438 char __fpu_control ();
23442 return __fpu_control ();
23447 rm -f conftest.
$ac_objext conftest
$ac_exeext
23448 if { (ac_try
="$ac_link"
23449 case "(($ac_try" in
23450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23451 *) ac_try_echo=$ac_try;;
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454 (eval "$ac_link") 2>conftest.er1
23456 grep -v '^ *+' conftest.er1 >conftest.err
23458 cat conftest.err >&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && {
23461 test -z "$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23463 } && test -s conftest$ac_exeext &&
23464 $as_test_x conftest$ac_exeext; then
23465 ac_cv_lib_ieee___fpu_control=yes
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ac_cv_lib_ieee___fpu_control=no
23473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23474 conftest$ac_exeext conftest.$ac_ext
23475 LIBS=$ac_check_lib_save_LIBS
23477 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23478 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23479 if test $ac_cv_lib_ieee___fpu_control = yes; then
23480 cat >>confdefs.h <<_ACEOF
23481 #define HAVE_LIBIEEE 1
23484 LIBS="-lieee $LIBS"
23492 # Check for --with-fpectl
23493 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23494 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23496 # Check whether --with-fpectl was given.
23497 if test "${with_fpectl+set}" = set; then
23498 withval=$with_fpectl;
23499 if test "$withval" != no
23502 cat >>confdefs.h <<\_ACEOF
23503 #define WANT_SIGFPE_HANDLER 1
23506 { echo "$as_me:$LINENO: result: yes" >&5
23507 echo "${ECHO_T}yes" >&6; }
23508 else { echo "$as_me:$LINENO: result: no" >&5
23509 echo "${ECHO_T}no" >&6; }
23512 { echo "$as_me:$LINENO: result: no" >&5
23513 echo "${ECHO_T}no" >&6; }
23517 # check for --with-libm=...
23519 case $ac_sys_system in
23524 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23525 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23527 # Check whether --with-libm was given.
23528 if test "${with_libm+set}" = set; then
23529 withval=$with_libm;
23530 if test "$withval" = no
23532 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23533 echo "${ECHO_T}force LIBM empty" >&6; }
23534 elif test "$withval" != yes
23536 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23537 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23538 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23539 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23540 { (exit 1); exit 1; }; }
23543 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23544 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23548 # check for --with-libc=...
23550 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23551 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23553 # Check whether --with-libc was given.
23554 if test "${with_libc+set}" = set; then
23555 withval=$with_libc;
23556 if test "$withval" = no
23558 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23559 echo "${ECHO_T}force LIBC empty" >&6; }
23560 elif test "$withval" != yes
23562 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23563 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23564 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23565 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23566 { (exit 1); exit 1; }; }
23569 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23570 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23574 # **************************************************
23575 # * Check for various properties of floating point *
23576 # **************************************************
23578 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
23579 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
23580 if test "${ac_cv_little_endian_double+set}" = set; then
23581 echo $ECHO_N "(cached) $ECHO_C" >&6
23584 if test "$cross_compiling" = yes; then
23585 ac_cv_little_endian_double=no
23587 cat >conftest.$ac_ext <<_ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23594 #include <string.h>
23596 double x = 9006104071832581.0;
23597 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
23604 rm -f conftest$ac_exeext
23605 if { (ac_try="$ac_link"
23606 case "(($ac_try" in
23607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23608 *) ac_try_echo
=$ac_try;;
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_link") 2>&5
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23615 { (case "(($ac_try" in
23616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_try") 2>&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
23624 ac_cv_little_endian_double=yes
23626 echo "$as_me: program exited with status $ac_status" >&5
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23630 ( exit $ac_status )
23631 ac_cv_little_endian_double=no
23633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23639 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
23640 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
23641 if test "$ac_cv_little_endian_double" = yes
23644 cat >>confdefs.h <<\_ACEOF
23645 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
23650 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
23651 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
23652 if test "${ac_cv_big_endian_double+set}" = set; then
23653 echo $ECHO_N "(cached) $ECHO_C" >&6
23656 if test "$cross_compiling" = yes; then
23657 ac_cv_big_endian_double=no
23659 cat >conftest.$ac_ext <<_ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23666 #include <string.h>
23668 double x = 9006104071832581.0;
23669 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
23676 rm -f conftest$ac_exeext
23677 if { (ac_try="$ac_link"
23678 case "(($ac_try" in
23679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23680 *) ac_try_echo
=$ac_try;;
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_link") 2>&5
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23687 { (case "(($ac_try" in
23688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_try") 2>&5
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; }; then
23696 ac_cv_big_endian_double=yes
23698 echo "$as_me: program exited with status $ac_status" >&5
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 ( exit $ac_status )
23703 ac_cv_big_endian_double=no
23705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23711 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
23712 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
23713 if test "$ac_cv_big_endian_double" = yes
23716 cat >>confdefs.h <<\_ACEOF
23717 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
23722 # Some ARM platforms use a mixed-endian representation for doubles.
23723 # While Python doesn't currently have full support for these platforms
23724 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23725 # conversions work.
23726 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
23727 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
23728 if test "${ac_cv_mixed_endian_double+set}" = set; then
23729 echo $ECHO_N "(cached) $ECHO_C" >&6
23732 if test "$cross_compiling" = yes; then
23733 ac_cv_mixed_endian_double=no
23735 cat >conftest.$ac_ext <<_ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23742 #include <string.h>
23744 double x = 9006104071832581.0;
23745 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
23752 rm -f conftest$ac_exeext
23753 if { (ac_try="$ac_link"
23754 case "(($ac_try" in
23755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23756 *) ac_try_echo
=$ac_try;;
23758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23759 (eval "$ac_link") 2>&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23763 { (case "(($ac_try" in
23764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23765 *) ac_try_echo=$ac_try;;
23767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23768 (eval "$ac_try") 2>&5
23770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 (exit $ac_status); }; }; then
23772 ac_cv_mixed_endian_double=yes
23774 echo "$as_me: program exited with status $ac_status" >&5
23775 echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23778 ( exit $ac_status )
23779 ac_cv_mixed_endian_double=no
23781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23787 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
23788 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
23789 if test "$ac_cv_mixed_endian_double" = yes
23792 cat >>confdefs.h <<\_ACEOF
23793 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
23798 # The short float repr introduced in Python 3.1 requires the
23799 # correctly-rounded string <-> double conversion functions from
23800 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23801 # rounding; this is a problem on x86, where the x87 FPU has a default
23802 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23803 # using inline assembler to get and set the x87 FPU control word.
23805 # This inline assembler syntax may also work for suncc and icc,
23806 # so we try it on all platforms.
23808 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23809 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23810 cat >conftest.$ac_ext <<_ACEOF
23813 cat confdefs.h >>conftest.$ac_ext
23814 cat >>conftest.$ac_ext <<_ACEOF
23815 /* end confdefs.h. */
23822 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23823 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23829 rm -f conftest.$ac_objext
23830 if { (ac_try="$ac_compile"
23831 case "(($ac_try" in
23832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23833 *) ac_try_echo
=$ac_try;;
23835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_compile") 2>conftest.er1
23838 grep -v '^ *+' conftest.er1
>conftest.err
23840 cat conftest.err
>&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest.
$ac_objext; then
23846 have_gcc_asm_for_x87
=yes
23848 echo "$as_me: failed program was:" >&5
23849 sed 's/^/| /' conftest.
$ac_ext >&5
23851 have_gcc_asm_for_x87
=no
23854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23855 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23856 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23857 if test "$have_gcc_asm_for_x87" = yes
23860 cat >>confdefs.h
<<\_ACEOF
23861 #define HAVE_GCC_ASM_FOR_X87 1
23866 # Detect whether system arithmetic is subject to x87-style double
23867 # rounding issues. The result of this test has little meaning on non
23868 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23869 # mode is round-to-nearest and double rounding issues are present, and
23870 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23871 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23872 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23873 # $BASECFLAGS may affect the result
23875 CC
="$CC $BASECFLAGS"
23876 if test "$cross_compiling" = yes; then
23877 ac_cv_x87_double_rounding
=no
23879 cat >conftest.
$ac_ext <<_ACEOF
23882 cat confdefs.h
>>conftest.
$ac_ext
23883 cat >>conftest.
$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23886 #include <stdlib.h>
23889 volatile double x, y, z;
23890 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23891 x = 0.99999999999999989; /* 1-2**-53 */
23895 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23901 /* both tests show evidence of double rounding */
23906 rm -f conftest
$ac_exeext
23907 if { (ac_try
="$ac_link"
23908 case "(($ac_try" in
23909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23910 *) ac_try_echo=$ac_try;;
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913 (eval "$ac_link") 2>&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23917 { (case "(($ac_try" in
23918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23919 *) ac_try_echo
=$ac_try;;
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922 (eval "$ac_try") 2>&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); }; }; then
23926 ac_cv_x87_double_rounding
=no
23928 echo "$as_me: program exited with status $ac_status" >&5
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.
$ac_ext >&5
23932 ( exit $ac_status )
23933 ac_cv_x87_double_rounding
=yes
23935 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23940 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23941 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23942 if test "$ac_cv_x87_double_rounding" = yes
23945 cat >>confdefs.h
<<\_ACEOF
23946 #define X87_DOUBLE_ROUNDING 1
23951 # ************************************
23952 # * Check for mathematical functions *
23953 # ************************************
23958 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23959 # -0. on some architectures.
23960 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23961 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23962 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23963 echo $ECHO_N "(cached) $ECHO_C" >&6
23966 if test "$cross_compiling" = yes; then
23967 ac_cv_tanh_preserves_zero_sign
=no
23969 cat >conftest.
$ac_ext <<_ACEOF
23972 cat confdefs.h
>>conftest.
$ac_ext
23973 cat >>conftest.
$ac_ext <<_ACEOF
23974 /* end confdefs.h. */
23977 #include <stdlib.h>
23979 /* return 0 if either negative zeros don't exist
23980 on this platform or if negative zeros exist
23981 and tanh(-0.) == -0. */
23982 if (atan2(0., -1.) == atan2(-0., -1.) ||
23983 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23988 rm -f conftest
$ac_exeext
23989 if { (ac_try
="$ac_link"
23990 case "(($ac_try" in
23991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23992 *) ac_try_echo=$ac_try;;
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995 (eval "$ac_link") 2>&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23999 { (case "(($ac_try" in
24000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24001 *) ac_try_echo
=$ac_try;;
24003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24004 (eval "$ac_try") 2>&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; }; then
24008 ac_cv_tanh_preserves_zero_sign
=yes
24010 echo "$as_me: program exited with status $ac_status" >&5
24011 echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.
$ac_ext >&5
24014 ( exit $ac_status )
24015 ac_cv_tanh_preserves_zero_sign
=no
24017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24023 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
24024 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
24025 if test "$ac_cv_tanh_preserves_zero_sign" = yes
24028 cat >>confdefs.h
<<\_ACEOF
24029 #define TANH_PRESERVES_ZERO_SIGN 1
24043 for ac_func
in acosh asinh atanh copysign erf erfc expm1 finite gamma
24045 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24048 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24051 cat >conftest.
$ac_ext <<_ACEOF
24054 cat confdefs.h
>>conftest.
$ac_ext
24055 cat >>conftest.
$ac_ext <<_ACEOF
24056 /* end confdefs.h. */
24057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24059 #define $ac_func innocuous_$ac_func
24061 /* System header to define __stub macros and hopefully few prototypes,
24062 which can conflict with char $ac_func (); below.
24063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24064 <limits.h> exists even on freestanding compilers. */
24067 # include <limits.h>
24069 # include <assert.h>
24074 /* Override any GCC internal prototype to avoid an error.
24075 Use char because int might match the return type of a GCC
24076 builtin and then its argument prototype would still apply. */
24081 /* The GNU C library defines this for functions which it implements
24082 to always fail with ENOSYS. Some functions are actually named
24083 something starting with __ and the normal name is an alias. */
24084 #if defined __stub_$ac_func || defined __stub___$ac_func
24091 return $ac_func ();
24096 rm -f conftest.
$ac_objext conftest
$ac_exeext
24097 if { (ac_try
="$ac_link"
24098 case "(($ac_try" in
24099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_link") 2>conftest.er1
24105 grep -v '^ *+' conftest.er1 >conftest.err
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest$ac_exeext &&
24113 $as_test_x conftest$ac_exeext; then
24114 eval "$as_ac_var=yes"
24116 echo "$as_me: failed program was:" >&5
24117 sed 's/^/| /' conftest.$ac_ext >&5
24119 eval "$as_ac_var=no"
24122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24123 conftest$ac_exeext conftest.$ac_ext
24125 ac_res=`eval echo '${'$as_ac_var'}'`
24126 { echo "$as_me:$LINENO: result: $ac_res" >&5
24127 echo "${ECHO_T}$ac_res" >&6; }
24128 if test `eval echo '${'$as_ac_var'}'` = yes; then
24129 cat >>confdefs.h <<_ACEOF
24130 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24141 for ac_func in hypot lgamma log1p round tgamma
24143 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
24144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24149 cat >conftest.$ac_ext <<_ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h. */
24155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24157 #define $ac_func innocuous_$ac_func
24159 /* System header to define __stub macros and hopefully few prototypes,
24160 which can conflict with char $ac_func (); below.
24161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24162 <limits.h> exists even on freestanding compilers. */
24165 # include <limits.h>
24167 # include <assert.h>
24172 /* Override any GCC internal prototype to avoid an error.
24173 Use char because int might match the return type of a GCC
24174 builtin and then its argument prototype would still apply. */
24179 /* The GNU C library defines this for functions which it implements
24180 to always fail with ENOSYS. Some functions are actually named
24181 something starting with __ and the normal name is an alias. */
24182 #if defined __stub_$ac_func || defined __stub___$ac_func
24189 return $ac_func ();
24194 rm -f conftest.$ac_objext conftest$ac_exeext
24195 if { (ac_try="$ac_link"
24196 case "(($ac_try" in
24197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24198 *) ac_try_echo
=$ac_try;;
24200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24201 (eval "$ac_link") 2>conftest.er1
24203 grep -v '^ *+' conftest.er1
>conftest.err
24205 cat conftest.err
>&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } && {
24208 test -z "$ac_c_werror_flag" ||
24209 test ! -s conftest.err
24210 } && test -s conftest
$ac_exeext &&
24211 $as_test_x conftest
$ac_exeext; then
24212 eval "$as_ac_var=yes"
24214 echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.
$ac_ext >&5
24217 eval "$as_ac_var=no"
24220 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24221 conftest
$ac_exeext conftest.
$ac_ext
24223 ac_res
=`eval echo '${'$as_ac_var'}'`
24224 { echo "$as_me:$LINENO: result: $ac_res" >&5
24225 echo "${ECHO_T}$ac_res" >&6; }
24226 if test `eval echo '${'$as_ac_var'}'` = yes; then
24227 cat >>confdefs.h
<<_ACEOF
24228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24234 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
24235 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
24236 if test "${ac_cv_have_decl_isinf+set}" = set; then
24237 echo $ECHO_N "(cached) $ECHO_C" >&6
24239 cat >conftest.
$ac_ext <<_ACEOF
24242 cat confdefs.h
>>conftest.
$ac_ext
24243 cat >>conftest.
$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24258 rm -f conftest.
$ac_objext
24259 if { (ac_try
="$ac_compile"
24260 case "(($ac_try" in
24261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265 (eval "$ac_compile") 2>conftest.er1
24267 grep -v '^ *+' conftest.er1 >conftest.err
24269 cat conftest.err >&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } && {
24272 test -z "$ac_c_werror_flag" ||
24273 test ! -s conftest.err
24274 } && test -s conftest.$ac_objext; then
24275 ac_cv_have_decl_isinf=yes
24277 echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24280 ac_cv_have_decl_isinf=no
24283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
24286 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
24287 if test $ac_cv_have_decl_isinf = yes; then
24289 cat >>confdefs.h <<_ACEOF
24290 #define HAVE_DECL_ISINF 1
24295 cat >>confdefs.h <<_ACEOF
24296 #define HAVE_DECL_ISINF 0
24301 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24302 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
24303 if test "${ac_cv_have_decl_isnan+set}" = set; then
24304 echo $ECHO_N "(cached) $ECHO_C" >&6
24306 cat >conftest.$ac_ext <<_ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24325 rm -f conftest.$ac_objext
24326 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
24342 ac_cv_have_decl_isnan
=yes
24344 echo "$as_me: failed program was:" >&5
24345 sed 's/^/| /' conftest.
$ac_ext >&5
24347 ac_cv_have_decl_isnan
=no
24350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24352 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24353 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
24354 if test $ac_cv_have_decl_isnan = yes; then
24356 cat >>confdefs.h
<<_ACEOF
24357 #define HAVE_DECL_ISNAN 1
24362 cat >>confdefs.h
<<_ACEOF
24363 #define HAVE_DECL_ISNAN 0
24368 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24369 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
24370 if test "${ac_cv_have_decl_isfinite+set}" = set; then
24371 echo $ECHO_N "(cached) $ECHO_C" >&6
24373 cat >conftest.
$ac_ext <<_ACEOF
24376 cat confdefs.h
>>conftest.
$ac_ext
24377 cat >>conftest.
$ac_ext <<_ACEOF
24378 /* end confdefs.h. */
24392 rm -f conftest.
$ac_objext
24393 if { (ac_try
="$ac_compile"
24394 case "(($ac_try" in
24395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24396 *) ac_try_echo=$ac_try;;
24398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24399 (eval "$ac_compile") 2>conftest.er1
24401 grep -v '^ *+' conftest.er1 >conftest.err
24403 cat conftest.err >&5
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); } && {
24406 test -z "$ac_c_werror_flag" ||
24407 test ! -s conftest.err
24408 } && test -s conftest.$ac_objext; then
24409 ac_cv_have_decl_isfinite=yes
24411 echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24414 ac_cv_have_decl_isfinite=no
24417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24419 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24420 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
24421 if test $ac_cv_have_decl_isfinite = yes; then
24423 cat >>confdefs.h <<_ACEOF
24424 #define HAVE_DECL_ISFINITE 1
24429 cat >>confdefs.h <<_ACEOF
24430 #define HAVE_DECL_ISFINITE 0
24440 # For multiprocessing module, check that sem_open
24441 # actually works. For FreeBSD versions <= 7.2,
24442 # the kernel module that provides POSIX semaphores
24443 # isn't loaded by default, so an attempt to call
24444 # sem_open results in a 'Signal 12' error.
24445 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
24446 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
24447 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
24448 echo $ECHO_N "(cached) $ECHO_C" >&6
24450 if test "$cross_compiling" = yes; then
24451 ac_cv_posix_semaphores_enabled=yes
24453 cat >conftest.$ac_ext <<_ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h. */
24460 #include <unistd.h>
24463 #include <semaphore.h>
24464 #include <sys/stat.h>
24467 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24468 if (a == SEM_FAILED) {
24469 perror("sem_open");
24473 sem_unlink("/autoconf");
24478 rm -f conftest$ac_exeext
24479 if { (ac_try="$ac_link"
24480 case "(($ac_try" in
24481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24482 *) ac_try_echo
=$ac_try;;
24484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24485 (eval "$ac_link") 2>&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24489 { (case "(($ac_try" in
24490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24491 *) ac_try_echo=$ac_try;;
24493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24494 (eval "$ac_try") 2>&5
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); }; }; then
24498 ac_cv_posix_semaphores_enabled=yes
24500 echo "$as_me: program exited with status $ac_status" >&5
24501 echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24504 ( exit $ac_status )
24505 ac_cv_posix_semaphores_enabled=no
24507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24514 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
24515 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
24516 if test $ac_cv_posix_semaphores_enabled = no
24519 cat >>confdefs.h <<\_ACEOF
24520 #define POSIX_SEMAPHORES_NOT_ENABLED 1
24525 # Multiprocessing check for broken sem_getvalue
24526 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
24527 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
24528 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
24529 echo $ECHO_N "(cached) $ECHO_C" >&6
24531 if test "$cross_compiling" = yes; then
24532 ac_cv_broken_sem_getvalue=yes
24534 cat >conftest.$ac_ext <<_ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h. */
24541 #include <unistd.h>
24544 #include <semaphore.h>
24545 #include <sys/stat.h>
24548 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
24552 perror("sem_open");
24556 res = sem_getvalue(a, &count);
24558 sem_unlink("/autocftw");
24559 return res==-1 ? 1 : 0;
24563 rm -f conftest$ac_exeext
24564 if { (ac_try="$ac_link"
24565 case "(($ac_try" in
24566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24567 *) ac_try_echo
=$ac_try;;
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_link") 2>&5
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24574 { (case "(($ac_try" in
24575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24576 *) ac_try_echo=$ac_try;;
24578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24579 (eval "$ac_try") 2>&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); }; }; then
24583 ac_cv_broken_sem_getvalue=no
24585 echo "$as_me: program exited with status $ac_status" >&5
24586 echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 ( exit $ac_status )
24590 ac_cv_broken_sem_getvalue=yes
24592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24599 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
24600 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
24601 if test $ac_cv_broken_sem_getvalue = yes
24604 cat >>confdefs.h <<\_ACEOF
24605 #define HAVE_BROKEN_SEM_GETVALUE 1
24610 # determine what size digit to use for Python's longs
24611 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24612 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
24613 # Check whether --enable-big-digits was given.
24614 if test "${enable_big_digits+set}" = set; then
24615 enableval=$enable_big_digits; case $enable_big_digits in
24617 enable_big_digits=30 ;;
24619 enable_big_digits=15 ;;
24623 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24624 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
24625 { (exit 1); exit 1; }; } ;;
24627 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24628 echo "${ECHO_T}$enable_big_digits" >&6; }
24630 cat >>confdefs.h <<_ACEOF
24631 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
24636 { echo "$as_me:$LINENO: result: no value specified" >&5
24637 echo "${ECHO_T}no value specified" >&6; }
24641 # check for wchar.h
24642 if test "${ac_cv_header_wchar_h+set}" = set; then
24643 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24644 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24645 if test "${ac_cv_header_wchar_h+set}" = set; then
24646 echo $ECHO_N "(cached) $ECHO_C" >&6
24648 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24649 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24651 # Is the header compilable?
24652 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
24653 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24654 cat >conftest.$ac_ext <<_ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24660 $ac_includes_default
24663 rm -f conftest.$ac_objext
24664 if { (ac_try="$ac_compile"
24665 case "(($ac_try" in
24666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24667 *) ac_try_echo
=$ac_try;;
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670 (eval "$ac_compile") 2>conftest.er1
24672 grep -v '^ *+' conftest.er1
>conftest.err
24674 cat conftest.err
>&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); } && {
24677 test -z "$ac_c_werror_flag" ||
24678 test ! -s conftest.err
24679 } && test -s conftest.
$ac_objext; then
24680 ac_header_compiler
=yes
24682 echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.
$ac_ext >&5
24685 ac_header_compiler
=no
24688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24690 echo "${ECHO_T}$ac_header_compiler" >&6; }
24692 # Is the header present?
24693 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
24694 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24695 cat >conftest.
$ac_ext <<_ACEOF
24698 cat confdefs.h
>>conftest.
$ac_ext
24699 cat >>conftest.
$ac_ext <<_ACEOF
24700 /* end confdefs.h. */
24703 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24704 case "(($ac_try" in
24705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24706 *) ac_try_echo=$ac_try;;
24708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24711 grep -v '^ *+' conftest.er1 >conftest.err
24713 cat conftest.err >&5
24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 (exit $ac_status); } >/dev/null && {
24716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24717 test ! -s conftest.err
24719 ac_header_preproc=yes
24721 echo "$as_me: failed program was:" >&5
24722 sed 's/^/| /' conftest.$ac_ext >&5
24724 ac_header_preproc=no
24727 rm -f conftest.err conftest.$ac_ext
24728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24729 echo "${ECHO_T}$ac_header_preproc" >&6; }
24731 # So? What about this header?
24732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24734 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24735 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24736 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24737 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24738 ac_header_preproc=yes
24741 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24742 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24743 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24744 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24745 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24746 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24747 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24748 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24749 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24750 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24752 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24754 ## -------------------------------------- ##
24755 ## Report this to http://bugs.python.org/ ##
24756 ## -------------------------------------- ##
24758 ) | sed "s/^/$as_me: WARNING: /" >&2
24761 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24762 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24763 if test "${ac_cv_header_wchar_h+set}" = set; then
24764 echo $ECHO_N "(cached) $ECHO_C" >&6
24766 ac_cv_header_wchar_h=$ac_header_preproc
24768 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24769 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24772 if test $ac_cv_header_wchar_h = yes; then
24775 cat >>confdefs.h <<\_ACEOF
24776 #define HAVE_WCHAR_H 1
24788 # determine wchar_t size
24789 if test "$wchar_h" = yes
24791 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24792 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24793 if test "${ac_cv_type_wchar_t+set}" = set; then
24794 echo $ECHO_N "(cached) $ECHO_C" >&6
24796 cat >conftest.$ac_ext <<_ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24804 typedef wchar_t ac__type_new_;
24808 if ((ac__type_new_ *) 0)
24810 if (sizeof (ac__type_new_))
24816 rm -f conftest.$ac_objext
24817 if { (ac_try="$ac_compile"
24818 case "(($ac_try" in
24819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24820 *) ac_try_echo
=$ac_try;;
24822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24823 (eval "$ac_compile") 2>conftest.er1
24825 grep -v '^ *+' conftest.er1
>conftest.err
24827 cat conftest.err
>&5
24828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829 (exit $ac_status); } && {
24830 test -z "$ac_c_werror_flag" ||
24831 test ! -s conftest.err
24832 } && test -s conftest.
$ac_objext; then
24833 ac_cv_type_wchar_t
=yes
24835 echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.
$ac_ext >&5
24838 ac_cv_type_wchar_t
=no
24841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24843 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24844 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24846 # The cast to long int works around a bug in the HP C Compiler
24847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24849 # This bug is HP SR number 8606223364.
24850 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24851 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24852 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24853 echo $ECHO_N "(cached) $ECHO_C" >&6
24855 if test "$cross_compiling" = yes; then
24856 # Depending upon the size, compute the lo and hi bounds.
24857 cat >conftest.
$ac_ext <<_ACEOF
24860 cat confdefs.h
>>conftest.
$ac_ext
24861 cat >>conftest.
$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24865 typedef wchar_t ac__type_sizeof_;
24869 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24876 rm -f conftest.
$ac_objext
24877 if { (ac_try
="$ac_compile"
24878 case "(($ac_try" in
24879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24880 *) ac_try_echo=$ac_try;;
24882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883 (eval "$ac_compile") 2>conftest.er1
24885 grep -v '^ *+' conftest.er1 >conftest.err
24887 cat conftest.err >&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); } && {
24890 test -z "$ac_c_werror_flag" ||
24891 test ! -s conftest.err
24892 } && test -s conftest.$ac_objext; then
24895 cat >conftest.$ac_ext <<_ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h. */
24903 typedef wchar_t ac__type_sizeof_;
24907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24914 rm -f conftest.$ac_objext
24915 if { (ac_try="$ac_compile"
24916 case "(($ac_try" in
24917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24918 *) ac_try_echo
=$ac_try;;
24920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24921 (eval "$ac_compile") 2>conftest.er1
24923 grep -v '^ *+' conftest.er1
>conftest.err
24925 cat conftest.err
>&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); } && {
24928 test -z "$ac_c_werror_flag" ||
24929 test ! -s conftest.err
24930 } && test -s conftest.
$ac_objext; then
24931 ac_hi
=$ac_mid; break
24933 echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.
$ac_ext >&5
24936 ac_lo
=`expr $ac_mid + 1`
24937 if test $ac_lo -le $ac_mid; then
24941 ac_mid
=`expr 2 '*' $ac_mid + 1`
24944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.
$ac_ext >&5
24950 cat >conftest.
$ac_ext <<_ACEOF
24953 cat confdefs.h
>>conftest.
$ac_ext
24954 cat >>conftest.
$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24958 typedef wchar_t ac__type_sizeof_;
24962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24969 rm -f conftest.
$ac_objext
24970 if { (ac_try
="$ac_compile"
24971 case "(($ac_try" in
24972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976 (eval "$ac_compile") 2>conftest.er1
24978 grep -v '^ *+' conftest.er1 >conftest.err
24980 cat conftest.err >&5
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } && {
24983 test -z "$ac_c_werror_flag" ||
24984 test ! -s conftest.err
24985 } && test -s conftest.$ac_objext; then
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_))) >= $ac_mid)];
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
25024 ac_lo
=$ac_mid; break
25026 echo "$as_me: failed program was:" >&5
25027 sed 's/^/| /' conftest.
$ac_ext >&5
25029 ac_hi
=`expr '(' $ac_mid ')' - 1`
25030 if test $ac_mid -le $ac_hi; then
25034 ac_mid
=`expr 2 '*' $ac_mid`
25037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25040 echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.
$ac_ext >&5
25046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25050 # Binary search between lo and hi bounds.
25051 while test "x$ac_lo" != "x$ac_hi"; do
25052 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25053 cat >conftest.
$ac_ext <<_ACEOF
25056 cat confdefs.h
>>conftest.
$ac_ext
25057 cat >>conftest.
$ac_ext <<_ACEOF
25058 /* end confdefs.h. */
25061 typedef wchar_t ac__type_sizeof_;
25065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25072 rm -f conftest.
$ac_objext
25073 if { (ac_try
="$ac_compile"
25074 case "(($ac_try" in
25075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_compile") 2>conftest.er1
25081 grep -v '^ *+' conftest.er1 >conftest.err
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } && {
25086 test -z "$ac_c_werror_flag" ||
25087 test ! -s conftest.err
25088 } && test -s conftest.$ac_objext; then
25091 echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25094 ac_lo=`expr '(' $ac_mid ')' + 1`
25097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25100 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25101 '') if test "$ac_cv_type_wchar_t" = yes; then
25102 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25103 See \`config.log
' for more details." >&5
25104 echo "$as_me: error: cannot compute sizeof (wchar_t)
25105 See \`config.log' for more details.
" >&2;}
25106 { (exit 77); exit 77; }; }
25108 ac_cv_sizeof_wchar_t=0
25112 cat >conftest.$ac_ext <<_ACEOF
25115 cat confdefs.h >>conftest.$ac_ext
25116 cat >>conftest.$ac_ext <<_ACEOF
25117 /* end confdefs.h. */
25120 typedef wchar_t ac__type_sizeof_;
25121 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25122 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25124 #include <stdlib.h>
25129 FILE *f = fopen ("conftest.val
", "w
");
25132 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25134 long int i = longval ();
25135 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25137 fprintf (f, "%ld
\n", i);
25141 unsigned long int i = ulongval ();
25142 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25144 fprintf (f, "%lu
\n", i);
25146 return ferror (f) || fclose (f) != 0;
25152 rm -f conftest$ac_exeext
25153 if { (ac_try="$ac_link"
25154 case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_link") 2>&5
25161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25163 { (case "(($ac_try" in
25164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165 *) ac_try_echo=$ac_try;;
25167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25168 (eval "$ac_try") 2>&5
25170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25171 (exit $ac_status); }; }; then
25172 ac_cv_sizeof_wchar_t=`cat conftest.val`
25174 echo "$as_me: program exited with status
$ac_status" >&5
25175 echo "$as_me: failed program was
:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25178 ( exit $ac_status )
25179 if test "$ac_cv_type_wchar_t" = yes; then
25180 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
25181 See \
`config.log' for more details." >&5
25182 echo "$as_me: error: cannot compute sizeof (wchar_t)
25183 See \`config.log
' for more details." >&2;}
25184 { (exit 77); exit 77; }; }
25186 ac_cv_sizeof_wchar_t=0
25189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25193 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25194 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25198 cat >>confdefs.h <<_ACEOF
25199 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25205 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25206 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25208 cat >conftest.$ac_ext <<_ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h. */
25216 #if TCL_UTF_MAX != 6
25217 # error "NOT UCS4_TCL"
25227 rm -f conftest.$ac_objext
25228 if { (ac_try="$ac_compile"
25229 case "(($ac_try" in
25230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231 *) ac_try_echo=$ac_try;;
25233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25234 (eval "$ac_compile") 2>conftest.er1
25236 grep -v '^
*+' conftest.er1 >conftest.err
25238 cat conftest.err >&5
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } && {
25241 test -z "$ac_c_werror_flag" ||
25242 test ! -s conftest.err
25243 } && test -s conftest.$ac_objext; then
25246 cat >>confdefs.h <<\_ACEOF
25247 #define HAVE_UCS4_TCL 1
25253 echo "$as_me: failed program was:" >&5
25254 sed 's
/^
/|
/' conftest.$ac_ext >&5
25259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25260 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25261 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25263 # check whether wchar_t is signed or not
25264 if test "$wchar_h" = yes
25266 # check whether wchar_t is signed or not
25267 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25268 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25269 if test "${ac_cv_wchar_t_signed+set}" = set; then
25270 echo $ECHO_N "(cached) $ECHO_C" >&6
25273 if test "$cross_compiling" = yes; then
25274 ac_cv_wchar_t_signed=yes
25276 cat >conftest.$ac_ext <<_ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25286 /* Success: exit code 0 */
25287 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
25291 rm -f conftest$ac_exeext
25292 if { (ac_try="$ac_link"
25293 case "(($ac_try" in
25294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25295 *) ac_try_echo=$ac_try;;
25297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25298 (eval "$ac_link") 2>&5
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25302 { (case "(($ac_try" in
25303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304 *) ac_try_echo=$ac_try;;
25306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307 (eval "$ac_try") 2>&5
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); }; }; then
25311 ac_cv_wchar_t_signed=yes
25313 echo "$as_me: program exited with status $ac_status" >&5
25314 echo "$as_me: failed program was:" >&5
25315 sed 's
/^
/|
/' conftest.$ac_ext >&5
25317 ( exit $ac_status )
25318 ac_cv_wchar_t_signed=no
25320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25326 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25327 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25330 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25331 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25332 # Check whether --enable-unicode was given.
25333 if test "${enable_unicode+set}" = set; then
25334 enableval=$enable_unicode;
25340 if test $enable_unicode = yes
25342 # Without any arguments, Py_UNICODE defaults to two-byte mode
25343 case "$have_ucs4_tcl" in
25344 yes) enable_unicode="ucs4"
25346 *) enable_unicode="ucs2"
25353 case "$enable_unicode" in
25354 ucs2) unicode_size="2"
25355 cat >>confdefs.h <<\_ACEOF
25356 #define Py_UNICODE_SIZE 2
25360 ucs4) unicode_size="4"
25361 cat >>confdefs.h <<\_ACEOF
25362 #define Py_UNICODE_SIZE 4
25372 if test "$enable_unicode" = "no"
25375 { echo "$as_me:$LINENO: result: not used" >&5
25376 echo "${ECHO_T}not used" >&6; }
25378 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25380 cat >>confdefs.h <<\_ACEOF
25381 #define Py_USING_UNICODE 1
25385 # wchar_t is only usable if it maps to an unsigned type
25386 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
25387 -a "$ac_cv_wchar_t_signed" = "no"
25389 PY_UNICODE_TYPE="wchar_t"
25391 cat >>confdefs.h <<\_ACEOF
25392 #define HAVE_USABLE_WCHAR_T 1
25395 cat >>confdefs.h <<\_ACEOF
25396 #define PY_UNICODE_TYPE wchar_t
25399 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25401 PY_UNICODE_TYPE="unsigned short"
25402 cat >>confdefs.h <<\_ACEOF
25403 #define PY_UNICODE_TYPE unsigned short
25406 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25408 PY_UNICODE_TYPE="unsigned long"
25409 cat >>confdefs.h <<\_ACEOF
25410 #define PY_UNICODE_TYPE unsigned long
25414 PY_UNICODE_TYPE="no type found"
25416 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25417 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25420 # check for endianness
25421 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25422 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25423 if test "${ac_cv_c_bigendian+set}" = set; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25426 # See if sys/param.h defines the BYTE_ORDER macro.
25427 cat >conftest.$ac_ext <<_ACEOF
25430 cat confdefs.h >>conftest.$ac_ext
25431 cat >>conftest.$ac_ext <<_ACEOF
25432 /* end confdefs.h. */
25433 #include <sys/types.h>
25434 #include <sys/param.h>
25439 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25440 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25441 bogus endian macros
25448 rm -f conftest.$ac_objext
25449 if { (ac_try="$ac_compile"
25450 case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455 (eval "$ac_compile") 2>conftest.er1
25457 grep -v '^
*+' conftest.er1 >conftest.err
25459 cat conftest.err >&5
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } && {
25462 test -z "$ac_c_werror_flag" ||
25463 test ! -s conftest.err
25464 } && test -s conftest.$ac_objext; then
25465 # It does; now see whether it defined to BIG_ENDIAN or not.
25466 cat >conftest.$ac_ext <<_ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h. */
25472 #include <sys/types.h>
25473 #include <sys/param.h>
25478 #if BYTE_ORDER != BIG_ENDIAN
25486 rm -f conftest.$ac_objext
25487 if { (ac_try="$ac_compile"
25488 case "(($ac_try" in
25489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490 *) ac_try_echo=$ac_try;;
25492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25493 (eval "$ac_compile") 2>conftest.er1
25495 grep -v '^
*+' conftest.er1 >conftest.err
25497 cat conftest.err >&5
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); } && {
25500 test -z "$ac_c_werror_flag" ||
25501 test ! -s conftest.err
25502 } && test -s conftest.$ac_objext; then
25503 ac_cv_c_bigendian=yes
25505 echo "$as_me: failed program was:" >&5
25506 sed 's
/^
/|
/' conftest.$ac_ext >&5
25508 ac_cv_c_bigendian=no
25511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25513 echo "$as_me: failed program was:" >&5
25514 sed 's
/^
/|
/' conftest.$ac_ext >&5
25516 # It does not; compile a test program.
25517 if test "$cross_compiling" = yes; then
25518 # try to guess the endianness by grepping values into an object file
25519 ac_cv_c_bigendian=unknown
25520 cat >conftest.$ac_ext <<_ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h. */
25526 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25527 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25528 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25529 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25530 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25531 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25535 _ascii (); _ebcdic ();
25540 rm -f conftest.$ac_objext
25541 if { (ac_try="$ac_compile"
25542 case "(($ac_try" in
25543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544 *) ac_try_echo=$ac_try;;
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547 (eval "$ac_compile") 2>conftest.er1
25549 grep -v '^
*+' conftest.er1 >conftest.err
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } && {
25554 test -z "$ac_c_werror_flag" ||
25555 test ! -s conftest.err
25556 } && test -s conftest.$ac_objext; then
25557 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25558 ac_cv_c_bigendian=yes
25560 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25561 if test "$ac_cv_c_bigendian" = unknown; then
25562 ac_cv_c_bigendian=no
25564 # finding both strings is unlikely to happen, but who knows?
25565 ac_cv_c_bigendian=unknown
25569 echo "$as_me: failed program was:" >&5
25570 sed 's
/^
/|
/' conftest.$ac_ext >&5
25575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25577 cat >conftest.$ac_ext <<_ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25583 $ac_includes_default
25588 /* Are we little or big endian? From Harbison&Steele. */
25592 char c[sizeof (long int)];
25595 return u.c[sizeof (long int) - 1] == 1;
25601 rm -f conftest$ac_exeext
25602 if { (ac_try="$ac_link"
25603 case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608 (eval "$ac_link") 2>&5
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25612 { (case "(($ac_try" in
25613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614 *) ac_try_echo=$ac_try;;
25616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25617 (eval "$ac_try") 2>&5
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; }; then
25621 ac_cv_c_bigendian=no
25623 echo "$as_me: program exited with status $ac_status" >&5
25624 echo "$as_me: failed program was:" >&5
25625 sed 's
/^
/|
/' conftest.$ac_ext >&5
25627 ( exit $ac_status )
25628 ac_cv_c_bigendian=yes
25630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25638 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25639 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25640 case $ac_cv_c_bigendian in
25643 cat >>confdefs.h <<\_ACEOF
25644 #define WORDS_BIGENDIAN 1
25650 { { echo "$as_me:$LINENO: error: unknown endianness
25651 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25652 echo "$as_me: error: unknown endianness
25653 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25654 { (exit 1); exit 1; }; } ;;
25658 # Check whether right shifting a negative integer extends the sign bit
25659 # or fills with zeros (like the Cray J90, according to Tim Peters).
25660 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25661 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25662 if test "${ac_cv_rshift_extends_sign+set}" = set; then
25663 echo $ECHO_N "(cached) $ECHO_C" >&6
25666 if test "$cross_compiling" = yes; then
25667 ac_cv_rshift_extends_sign=yes
25669 cat >conftest.$ac_ext <<_ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h. */
25678 exit(((-1)>>3 == -1) ? 0 : 1);
25682 rm -f conftest$ac_exeext
25683 if { (ac_try="$ac_link"
25684 case "(($ac_try" in
25685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686 *) ac_try_echo=$ac_try;;
25688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25689 (eval "$ac_link") 2>&5
25691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25693 { (case "(($ac_try" in
25694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25695 *) ac_try_echo=$ac_try;;
25697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25698 (eval "$ac_try") 2>&5
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; }; then
25702 ac_cv_rshift_extends_sign=yes
25704 echo "$as_me: program exited with status $ac_status" >&5
25705 echo "$as_me: failed program was:" >&5
25706 sed 's
/^
/|
/' conftest.$ac_ext >&5
25708 ( exit $ac_status )
25709 ac_cv_rshift_extends_sign=no
25711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25717 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25718 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25719 if test "$ac_cv_rshift_extends_sign" = no
25722 cat >>confdefs.h <<\_ACEOF
25723 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25728 # check for getc_unlocked and related locking functions
25729 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25730 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25731 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25732 echo $ECHO_N "(cached) $ECHO_C" >&6
25735 cat >conftest.$ac_ext <<_ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25746 FILE *f = fopen("/dev/null", "r");
25755 rm -f conftest.$ac_objext conftest$ac_exeext
25756 if { (ac_try="$ac_link"
25757 case "(($ac_try" in
25758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25759 *) ac_try_echo=$ac_try;;
25761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25762 (eval "$ac_link") 2>conftest.er1
25764 grep -v '^
*+' conftest.er1 >conftest.err
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } && {
25769 test -z "$ac_c_werror_flag" ||
25770 test ! -s conftest.err
25771 } && test -s conftest$ac_exeext &&
25772 $as_test_x conftest$ac_exeext; then
25773 ac_cv_have_getc_unlocked=yes
25775 echo "$as_me: failed program was:" >&5
25776 sed 's
/^
/|
/' conftest.$ac_ext >&5
25778 ac_cv_have_getc_unlocked=no
25781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25782 conftest$ac_exeext conftest.$ac_ext
25785 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25786 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25787 if test "$ac_cv_have_getc_unlocked" = yes
25790 cat >>confdefs.h <<\_ACEOF
25791 #define HAVE_GETC_UNLOCKED 1
25796 # check where readline lives
25797 # save the value of LIBS so we don't actually link Python with readline
25798 LIBS_no_readline
=$LIBS
25800 # On some systems we need to link readline to a termcap compatible
25801 # library. NOTE: Keep the precedence of listed libraries synchronised
25803 py_cv_lib_readline
=no
25804 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25805 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25806 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
25807 if test -z "$py_libtermcap"; then
25808 READLINE_LIBS
="-lreadline"
25810 READLINE_LIBS
="-lreadline -l$py_libtermcap"
25812 LIBS
="$READLINE_LIBS $LIBS_no_readline"
25813 cat >conftest.
$ac_ext <<_ACEOF
25816 cat confdefs.h
>>conftest.
$ac_ext
25817 cat >>conftest.
$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25820 /* Override any GCC internal prototype to avoid an error.
25821 Use char because int might match the return type of a GCC
25822 builtin and then its argument prototype would still apply. */
25830 return readline ();
25835 rm -f conftest.
$ac_objext conftest
$ac_exeext
25836 if { (ac_try
="$ac_link"
25837 case "(($ac_try" in
25838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25839 *) ac_try_echo=$ac_try;;
25841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25842 (eval "$ac_link") 2>conftest.er1
25844 grep -v '^ *+' conftest.er1 >conftest.err
25846 cat conftest.err >&5
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); } && {
25849 test -z "$ac_c_werror_flag" ||
25850 test ! -s conftest.err
25851 } && test -s conftest$ac_exeext &&
25852 $as_test_x conftest$ac_exeext; then
25853 py_cv_lib_readline=yes
25855 echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25862 conftest$ac_exeext conftest.$ac_ext
25863 if test $py_cv_lib_readline = yes; then
25867 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25868 #AC_SUBST([READLINE_LIBS])
25869 if test $py_cv_lib_readline = no; then
25870 { echo "$as_me:$LINENO: result: none" >&5
25871 echo "${ECHO_T}none" >&6; }
25873 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25874 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25876 cat >>confdefs.h <<\_ACEOF
25877 #define HAVE_LIBREADLINE 1
25882 # check for readline 2.1
25883 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25884 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
25885 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25886 echo $ECHO_N "(cached) $ECHO_C" >&6
25888 ac_check_lib_save_LIBS=$LIBS
25889 LIBS="-lreadline $READLINE_LIBS $LIBS"
25890 cat >conftest.$ac_ext <<_ACEOF
25893 cat confdefs.h >>conftest.$ac_ext
25894 cat >>conftest.$ac_ext <<_ACEOF
25895 /* end confdefs.h. */
25897 /* Override any GCC internal prototype to avoid an error.
25898 Use char because int might match the return type of a GCC
25899 builtin and then its argument prototype would still apply. */
25903 char rl_callback_handler_install ();
25907 return rl_callback_handler_install ();
25912 rm -f conftest.$ac_objext conftest$ac_exeext
25913 if { (ac_try="$ac_link"
25914 case "(($ac_try" in
25915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25916 *) ac_try_echo
=$ac_try;;
25918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25919 (eval "$ac_link") 2>conftest.er1
25921 grep -v '^ *+' conftest.er1
>conftest.err
25923 cat conftest.err
>&5
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); } && {
25926 test -z "$ac_c_werror_flag" ||
25927 test ! -s conftest.err
25928 } && test -s conftest
$ac_exeext &&
25929 $as_test_x conftest
$ac_exeext; then
25930 ac_cv_lib_readline_rl_callback_handler_install
=yes
25932 echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.
$ac_ext >&5
25935 ac_cv_lib_readline_rl_callback_handler_install
=no
25938 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25939 conftest
$ac_exeext conftest.
$ac_ext
25940 LIBS
=$ac_check_lib_save_LIBS
25942 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25943 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25944 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25946 cat >>confdefs.h
<<\_ACEOF
25947 #define HAVE_RL_CALLBACK 1
25953 # check for readline 2.2
25954 cat >conftest.
$ac_ext <<_ACEOF
25957 cat confdefs.h
>>conftest.
$ac_ext
25958 cat >>conftest.
$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 #include <readline/readline.h>
25962 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25963 case "(($ac_try" in
25964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25965 *) ac_try_echo=$ac_try;;
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25970 grep -v '^ *+' conftest.er1 >conftest.err
25972 cat conftest.err >&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } >/dev/null && {
25975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25976 test ! -s conftest.err
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25986 rm -f conftest.err conftest.$ac_ext
25987 if test $have_readline = yes
25989 cat >conftest.$ac_ext <<_ACEOF
25992 cat confdefs.h >>conftest.$ac_ext
25993 cat >>conftest.$ac_ext <<_ACEOF
25994 /* end confdefs.h. */
25995 #include <readline/readline.h>
25998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25999 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
26001 cat >>confdefs.h <<\_ACEOF
26002 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 #include <readline/readline.h>
26017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26018 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
26020 cat >>confdefs.h <<\_ACEOF
26021 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
26029 # check for readline 4.0
26030 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
26031 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
26032 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
26033 echo $ECHO_N "(cached) $ECHO_C" >&6
26035 ac_check_lib_save_LIBS=$LIBS
26036 LIBS="-lreadline $READLINE_LIBS $LIBS"
26037 cat >conftest.$ac_ext <<_ACEOF
26040 cat confdefs.h >>conftest.$ac_ext
26041 cat >>conftest.$ac_ext <<_ACEOF
26042 /* end confdefs.h. */
26044 /* Override any GCC internal prototype to avoid an error.
26045 Use char because int might match the return type of a GCC
26046 builtin and then its argument prototype would still apply. */
26050 char rl_pre_input_hook ();
26054 return rl_pre_input_hook ();
26059 rm -f conftest.$ac_objext conftest$ac_exeext
26060 if { (ac_try="$ac_link"
26061 case "(($ac_try" in
26062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26063 *) ac_try_echo
=$ac_try;;
26065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26066 (eval "$ac_link") 2>conftest.er1
26068 grep -v '^ *+' conftest.er1
>conftest.err
26070 cat conftest.err
>&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); } && {
26073 test -z "$ac_c_werror_flag" ||
26074 test ! -s conftest.err
26075 } && test -s conftest
$ac_exeext &&
26076 $as_test_x conftest
$ac_exeext; then
26077 ac_cv_lib_readline_rl_pre_input_hook
=yes
26079 echo "$as_me: failed program was:" >&5
26080 sed 's/^/| /' conftest.
$ac_ext >&5
26082 ac_cv_lib_readline_rl_pre_input_hook
=no
26085 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26086 conftest
$ac_exeext conftest.
$ac_ext
26087 LIBS
=$ac_check_lib_save_LIBS
26089 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26090 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26091 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
26093 cat >>confdefs.h
<<\_ACEOF
26094 #define HAVE_RL_PRE_INPUT_HOOK 1
26101 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
26102 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
26103 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
26104 echo $ECHO_N "(cached) $ECHO_C" >&6
26106 ac_check_lib_save_LIBS
=$LIBS
26107 LIBS
="-lreadline $READLINE_LIBS $LIBS"
26108 cat >conftest.
$ac_ext <<_ACEOF
26111 cat confdefs.h
>>conftest.
$ac_ext
26112 cat >>conftest.
$ac_ext <<_ACEOF
26113 /* end confdefs.h. */
26115 /* Override any GCC internal prototype to avoid an error.
26116 Use char because int might match the return type of a GCC
26117 builtin and then its argument prototype would still apply. */
26121 char rl_completion_display_matches_hook ();
26125 return rl_completion_display_matches_hook ();
26130 rm -f conftest.
$ac_objext conftest
$ac_exeext
26131 if { (ac_try
="$ac_link"
26132 case "(($ac_try" in
26133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26134 *) ac_try_echo=$ac_try;;
26136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26137 (eval "$ac_link") 2>conftest.er1
26139 grep -v '^ *+' conftest.er1 >conftest.err
26141 cat conftest.err >&5
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); } && {
26144 test -z "$ac_c_werror_flag" ||
26145 test ! -s conftest.err
26146 } && test -s conftest$ac_exeext &&
26147 $as_test_x conftest$ac_exeext; then
26148 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
26150 echo "$as_me: failed program was:" >&5
26151 sed 's/^/| /' conftest.$ac_ext >&5
26153 ac_cv_lib_readline_rl_completion_display_matches_hook=no
26156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26157 conftest$ac_exeext conftest.$ac_ext
26158 LIBS=$ac_check_lib_save_LIBS
26160 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
26161 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
26162 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
26164 cat >>confdefs.h <<\_ACEOF
26165 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
26171 # check for readline 4.2
26172 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26173 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26174 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26175 echo $ECHO_N "(cached) $ECHO_C" >&6
26177 ac_check_lib_save_LIBS=$LIBS
26178 LIBS="-lreadline $READLINE_LIBS $LIBS"
26179 cat >conftest.$ac_ext <<_ACEOF
26182 cat confdefs.h >>conftest.$ac_ext
26183 cat >>conftest.$ac_ext <<_ACEOF
26184 /* end confdefs.h. */
26186 /* Override any GCC internal prototype to avoid an error.
26187 Use char because int might match the return type of a GCC
26188 builtin and then its argument prototype would still apply. */
26192 char rl_completion_matches ();
26196 return rl_completion_matches ();
26201 rm -f conftest.$ac_objext conftest$ac_exeext
26202 if { (ac_try="$ac_link"
26203 case "(($ac_try" in
26204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26205 *) ac_try_echo
=$ac_try;;
26207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26208 (eval "$ac_link") 2>conftest.er1
26210 grep -v '^ *+' conftest.er1
>conftest.err
26212 cat conftest.err
>&5
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } && {
26215 test -z "$ac_c_werror_flag" ||
26216 test ! -s conftest.err
26217 } && test -s conftest
$ac_exeext &&
26218 $as_test_x conftest
$ac_exeext; then
26219 ac_cv_lib_readline_rl_completion_matches
=yes
26221 echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.
$ac_ext >&5
26224 ac_cv_lib_readline_rl_completion_matches
=no
26227 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26228 conftest
$ac_exeext conftest.
$ac_ext
26229 LIBS
=$ac_check_lib_save_LIBS
26231 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26232 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26233 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26235 cat >>confdefs.h
<<\_ACEOF
26236 #define HAVE_RL_COMPLETION_MATCHES 1
26242 # also in readline 4.2
26243 cat >conftest.
$ac_ext <<_ACEOF
26246 cat confdefs.h
>>conftest.
$ac_ext
26247 cat >>conftest.
$ac_ext <<_ACEOF
26248 /* end confdefs.h. */
26249 #include <readline/readline.h>
26251 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26252 case "(($ac_try" in
26253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26254 *) ac_try_echo=$ac_try;;
26256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26259 grep -v '^ *+' conftest.er1 >conftest.err
26261 cat conftest.err >&5
26262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263 (exit $ac_status); } >/dev/null && {
26264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26265 test ! -s conftest.err
26269 echo "$as_me: failed program was:" >&5
26270 sed 's/^/| /' conftest.$ac_ext >&5
26275 rm -f conftest.err conftest.$ac_ext
26276 if test $have_readline = yes
26278 cat >conftest.$ac_ext <<_ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h. */
26284 #include <readline/readline.h>
26287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26288 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26290 cat >>confdefs.h <<\_ACEOF
26291 #define HAVE_RL_CATCH_SIGNAL 1
26299 # End of readline checks: restore LIBS
26300 LIBS=$LIBS_no_readline
26302 { echo "$as_me:$LINENO: checking for broken nice()" >&5
26303 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26304 if test "${ac_cv_broken_nice+set}" = set; then
26305 echo $ECHO_N "(cached) $ECHO_C" >&6
26308 if test "$cross_compiling" = yes; then
26309 ac_cv_broken_nice=no
26311 cat >conftest.$ac_ext <<_ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h. */
26320 int val1 = nice(1);
26321 if (val1 != -1 && val1 == nice(2))
26327 rm -f conftest$ac_exeext
26328 if { (ac_try="$ac_link"
26329 case "(($ac_try" in
26330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26331 *) ac_try_echo
=$ac_try;;
26333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26334 (eval "$ac_link") 2>&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26338 { (case "(($ac_try" in
26339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26340 *) ac_try_echo=$ac_try;;
26342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26343 (eval "$ac_try") 2>&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); }; }; then
26347 ac_cv_broken_nice=yes
26349 echo "$as_me: program exited with status $ac_status" >&5
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26353 ( exit $ac_status )
26354 ac_cv_broken_nice=no
26356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26362 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26363 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26364 if test "$ac_cv_broken_nice" = yes
26367 cat >>confdefs.h <<\_ACEOF
26368 #define HAVE_BROKEN_NICE 1
26373 { echo "$as_me:$LINENO: checking for broken poll()" >&5
26374 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26375 if test "${ac_cv_broken_poll+set}" = set; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
26378 if test "$cross_compiling" = yes; then
26379 ac_cv_broken_poll=no
26381 cat >conftest.$ac_ext <<_ACEOF
26384 cat confdefs.h >>conftest.$ac_ext
26385 cat >>conftest.$ac_ext <<_ACEOF
26386 /* end confdefs.h. */
26392 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
26397 poll_test = poll(&poll_struct, 1, 0);
26400 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26407 rm -f conftest$ac_exeext
26408 if { (ac_try="$ac_link"
26409 case "(($ac_try" in
26410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26411 *) ac_try_echo
=$ac_try;;
26413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26414 (eval "$ac_link") 2>&5
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26418 { (case "(($ac_try" in
26419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26420 *) ac_try_echo=$ac_try;;
26422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26423 (eval "$ac_try") 2>&5
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); }; }; then
26427 ac_cv_broken_poll=yes
26429 echo "$as_me: program exited with status $ac_status" >&5
26430 echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26433 ( exit $ac_status )
26434 ac_cv_broken_poll=no
26436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26442 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26443 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26444 if test "$ac_cv_broken_poll" = yes
26447 cat >>confdefs.h <<\_ACEOF
26448 #define HAVE_BROKEN_POLL 1
26453 # Before we can test tzset, we need to check if struct tm has a tm_zone
26454 # (which is not required by ISO C or UNIX spec) and/or if we support
26456 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26457 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26458 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26459 echo $ECHO_N "(cached) $ECHO_C" >&6
26461 cat >conftest.$ac_ext <<_ACEOF
26464 cat confdefs.h >>conftest.$ac_ext
26465 cat >>conftest.$ac_ext <<_ACEOF
26466 /* end confdefs.h. */
26467 #include <sys/types.h>
26468 #include <$ac_cv_struct_tm>
26474 static struct tm ac_aggr;
26475 if (ac_aggr.tm_zone)
26481 rm -f conftest.$ac_objext
26482 if { (ac_try="$ac_compile"
26483 case "(($ac_try" in
26484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26485 *) ac_try_echo
=$ac_try;;
26487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26488 (eval "$ac_compile") 2>conftest.er1
26490 grep -v '^ *+' conftest.er1
>conftest.err
26492 cat conftest.err
>&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } && {
26495 test -z "$ac_c_werror_flag" ||
26496 test ! -s conftest.err
26497 } && test -s conftest.
$ac_objext; then
26498 ac_cv_member_struct_tm_tm_zone
=yes
26500 echo "$as_me: failed program was:" >&5
26501 sed 's/^/| /' conftest.
$ac_ext >&5
26503 cat >conftest.
$ac_ext <<_ACEOF
26506 cat confdefs.h
>>conftest.
$ac_ext
26507 cat >>conftest.
$ac_ext <<_ACEOF
26508 /* end confdefs.h. */
26509 #include <sys/types.h>
26510 #include <$ac_cv_struct_tm>
26516 static struct tm ac_aggr;
26517 if (sizeof ac_aggr.tm_zone)
26523 rm -f conftest.
$ac_objext
26524 if { (ac_try
="$ac_compile"
26525 case "(($ac_try" in
26526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26527 *) ac_try_echo=$ac_try;;
26529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26530 (eval "$ac_compile") 2>conftest.er1
26532 grep -v '^ *+' conftest.er1 >conftest.err
26534 cat conftest.err >&5
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } && {
26537 test -z "$ac_c_werror_flag" ||
26538 test ! -s conftest.err
26539 } && test -s conftest.$ac_objext; then
26540 ac_cv_member_struct_tm_tm_zone=yes
26542 echo "$as_me: failed program was:" >&5
26543 sed 's/^/| /' conftest.$ac_ext >&5
26545 ac_cv_member_struct_tm_tm_zone=no
26548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26553 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26554 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26555 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26557 cat >>confdefs.h <<_ACEOF
26558 #define HAVE_STRUCT_TM_TM_ZONE 1
26564 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26566 cat >>confdefs.h <<\_ACEOF
26567 #define HAVE_TM_ZONE 1
26571 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26572 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26573 if test "${ac_cv_have_decl_tzname+set}" = set; then
26574 echo $ECHO_N "(cached) $ECHO_C" >&6
26576 cat >conftest.$ac_ext <<_ACEOF
26579 cat confdefs.h >>conftest.$ac_ext
26580 cat >>conftest.$ac_ext <<_ACEOF
26581 /* end confdefs.h. */
26595 rm -f conftest.$ac_objext
26596 if { (ac_try="$ac_compile"
26597 case "(($ac_try" in
26598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26599 *) ac_try_echo
=$ac_try;;
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602 (eval "$ac_compile") 2>conftest.er1
26604 grep -v '^ *+' conftest.er1
>conftest.err
26606 cat conftest.err
>&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); } && {
26609 test -z "$ac_c_werror_flag" ||
26610 test ! -s conftest.err
26611 } && test -s conftest.
$ac_objext; then
26612 ac_cv_have_decl_tzname
=yes
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.
$ac_ext >&5
26617 ac_cv_have_decl_tzname
=no
26620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26622 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26623 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26624 if test $ac_cv_have_decl_tzname = yes; then
26626 cat >>confdefs.h
<<_ACEOF
26627 #define HAVE_DECL_TZNAME 1
26632 cat >>confdefs.h
<<_ACEOF
26633 #define HAVE_DECL_TZNAME 0
26640 { echo "$as_me:$LINENO: checking for tzname" >&5
26641 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26642 if test "${ac_cv_var_tzname+set}" = set; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26645 cat >conftest.
$ac_ext <<_ACEOF
26648 cat confdefs.h
>>conftest.
$ac_ext
26649 cat >>conftest.
$ac_ext <<_ACEOF
26650 /* end confdefs.h. */
26652 #if !HAVE_DECL_TZNAME
26653 extern char *tzname[];
26659 return tzname[0][0];
26664 rm -f conftest.
$ac_objext conftest
$ac_exeext
26665 if { (ac_try
="$ac_link"
26666 case "(($ac_try" in
26667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26668 *) ac_try_echo=$ac_try;;
26670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26671 (eval "$ac_link") 2>conftest.er1
26673 grep -v '^ *+' conftest.er1 >conftest.err
26675 cat conftest.err >&5
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); } && {
26678 test -z "$ac_c_werror_flag" ||
26679 test ! -s conftest.err
26680 } && test -s conftest$ac_exeext &&
26681 $as_test_x conftest$ac_exeext; then
26682 ac_cv_var_tzname=yes
26684 echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26687 ac_cv_var_tzname=no
26690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26691 conftest$ac_exeext conftest.$ac_ext
26693 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26694 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26695 if test $ac_cv_var_tzname = yes; then
26697 cat >>confdefs.h <<\_ACEOF
26698 #define HAVE_TZNAME 1
26705 # check tzset(3) exists and works like we expect it to
26706 { echo "$as_me:$LINENO: checking for working tzset()" >&5
26707 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26708 if test "${ac_cv_working_tzset+set}" = set; then
26709 echo $ECHO_N "(cached) $ECHO_C" >&6
26712 if test "$cross_compiling" = yes; then
26713 ac_cv_working_tzset=no
26715 cat >conftest.$ac_ext <<_ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h. */
26722 #include <stdlib.h>
26724 #include <string.h>
26727 extern char *tzname[];
26732 /* Note that we need to ensure that not only does tzset(3)
26733 do 'something' with localtime, but it works as documented
26734 in the library reference and as expected by the test suite.
26735 This includes making sure that tzname is set properly if
26736 tm->tm_zone does not exist since it is the alternative way
26737 of getting timezone info.
26739 Red Hat 6.2 doesn't understand the southern hemisphere
26740 after New Year's Day.
26743 time_t groundhogday = 1044144000; /* GMT-based */
26744 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26746 putenv("TZ=UTC+0");
26748 if (localtime(&groundhogday)->tm_hour != 0)
26751 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26752 if (strcmp(tzname[0], "UTC") ||
26753 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26757 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26759 if (localtime(&groundhogday)->tm_hour != 19)
26762 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26766 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26768 if (localtime(&groundhogday)->tm_hour != 11)
26771 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26775 #if HAVE_STRUCT_TM_TM_ZONE
26776 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26778 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26786 rm -f conftest$ac_exeext
26787 if { (ac_try="$ac_link"
26788 case "(($ac_try" in
26789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26790 *) ac_try_echo
=$ac_try;;
26792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26793 (eval "$ac_link") 2>&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); }; }; then
26806 ac_cv_working_tzset=yes
26808 echo "$as_me: program exited with status $ac_status" >&5
26809 echo "$as_me: failed program was:" >&5
26810 sed 's/^/| /' conftest.$ac_ext >&5
26812 ( exit $ac_status )
26813 ac_cv_working_tzset=no
26815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26821 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26822 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26823 if test "$ac_cv_working_tzset" = yes
26826 cat >>confdefs.h <<\_ACEOF
26827 #define HAVE_WORKING_TZSET 1
26832 # Look for subsecond timestamps in struct stat
26833 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26834 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26835 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26836 echo $ECHO_N "(cached) $ECHO_C" >&6
26838 cat >conftest.$ac_ext <<_ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26844 #include <sys/stat.h>
26850 st.st_mtim.tv_nsec = 1;
26856 rm -f conftest.$ac_objext
26857 if { (ac_try="$ac_compile"
26858 case "(($ac_try" in
26859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26860 *) ac_try_echo
=$ac_try;;
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_compile") 2>conftest.er1
26865 grep -v '^ *+' conftest.er1
>conftest.err
26867 cat conftest.err
>&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } && {
26870 test -z "$ac_c_werror_flag" ||
26871 test ! -s conftest.err
26872 } && test -s conftest.
$ac_objext; then
26873 ac_cv_stat_tv_nsec
=yes
26875 echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.
$ac_ext >&5
26878 ac_cv_stat_tv_nsec
=no
26881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26884 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26885 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26886 if test "$ac_cv_stat_tv_nsec" = yes
26889 cat >>confdefs.h
<<\_ACEOF
26890 #define HAVE_STAT_TV_NSEC 1
26895 # Look for BSD style subsecond timestamps in struct stat
26896 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26897 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
26898 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26899 echo $ECHO_N "(cached) $ECHO_C" >&6
26901 cat >conftest.
$ac_ext <<_ACEOF
26904 cat confdefs.h
>>conftest.
$ac_ext
26905 cat >>conftest.
$ac_ext <<_ACEOF
26906 /* end confdefs.h. */
26907 #include <sys/stat.h>
26913 st.st_mtimespec.tv_nsec = 1;
26919 rm -f conftest.
$ac_objext
26920 if { (ac_try
="$ac_compile"
26921 case "(($ac_try" in
26922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26923 *) ac_try_echo=$ac_try;;
26925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26926 (eval "$ac_compile") 2>conftest.er1
26928 grep -v '^ *+' conftest.er1 >conftest.err
26930 cat conftest.err >&5
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); } && {
26933 test -z "$ac_c_werror_flag" ||
26934 test ! -s conftest.err
26935 } && test -s conftest.$ac_objext; then
26936 ac_cv_stat_tv_nsec2=yes
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26941 ac_cv_stat_tv_nsec2=no
26944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26947 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26948 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26949 if test "$ac_cv_stat_tv_nsec2" = yes
26952 cat >>confdefs.h <<\_ACEOF
26953 #define HAVE_STAT_TV_NSEC2 1
26958 # On HP/UX 11.0, mvwdelch is a block with a return statement
26959 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26960 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26961 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26962 echo $ECHO_N "(cached) $ECHO_C" >&6
26964 cat >conftest.$ac_ext <<_ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h. */
26970 #include <curses.h>
26976 rtn = mvwdelch(0,0,0);
26982 rm -f conftest.$ac_objext
26983 if { (ac_try="$ac_compile"
26984 case "(($ac_try" in
26985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26986 *) ac_try_echo
=$ac_try;;
26988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26989 (eval "$ac_compile") 2>conftest.er1
26991 grep -v '^ *+' conftest.er1
>conftest.err
26993 cat conftest.err
>&5
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); } && {
26996 test -z "$ac_c_werror_flag" ||
26997 test ! -s conftest.err
26998 } && test -s conftest.
$ac_objext; then
26999 ac_cv_mvwdelch_is_expression
=yes
27001 echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.
$ac_ext >&5
27004 ac_cv_mvwdelch_is_expression
=no
27007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27010 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
27011 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
27013 if test "$ac_cv_mvwdelch_is_expression" = yes
27016 cat >>confdefs.h
<<\_ACEOF
27017 #define MVWDELCH_IS_EXPRESSION 1
27022 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
27023 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
27024 if test "${ac_cv_window_has_flags+set}" = set; then
27025 echo $ECHO_N "(cached) $ECHO_C" >&6
27027 cat >conftest.
$ac_ext <<_ACEOF
27030 cat confdefs.h
>>conftest.
$ac_ext
27031 cat >>conftest.
$ac_ext <<_ACEOF
27032 /* end confdefs.h. */
27033 #include <curses.h>
27045 rm -f conftest.
$ac_objext
27046 if { (ac_try
="$ac_compile"
27047 case "(($ac_try" in
27048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27049 *) ac_try_echo=$ac_try;;
27051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27052 (eval "$ac_compile") 2>conftest.er1
27054 grep -v '^ *+' conftest.er1 >conftest.err
27056 cat conftest.err >&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); } && {
27059 test -z "$ac_c_werror_flag" ||
27060 test ! -s conftest.err
27061 } && test -s conftest.$ac_objext; then
27062 ac_cv_window_has_flags=yes
27064 echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27067 ac_cv_window_has_flags=no
27070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27073 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
27074 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
27077 if test "$ac_cv_window_has_flags" = yes
27080 cat >>confdefs.h <<\_ACEOF
27081 #define WINDOW_HAS_FLAGS 1
27086 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
27087 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
27088 cat >conftest.$ac_ext <<_ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h. */
27094 #include <curses.h>
27098 void *x=is_term_resized
27103 rm -f conftest.$ac_objext
27104 if { (ac_try="$ac_compile"
27105 case "(($ac_try" in
27106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27107 *) ac_try_echo
=$ac_try;;
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_compile") 2>conftest.er1
27112 grep -v '^ *+' conftest.er1
>conftest.err
27114 cat conftest.err
>&5
27115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27116 (exit $ac_status); } && {
27117 test -z "$ac_c_werror_flag" ||
27118 test ! -s conftest.err
27119 } && test -s conftest.
$ac_objext; then
27121 cat >>confdefs.h
<<\_ACEOF
27122 #define HAVE_CURSES_IS_TERM_RESIZED 1
27125 { echo "$as_me:$LINENO: result: yes" >&5
27126 echo "${ECHO_T}yes" >&6; }
27128 echo "$as_me: failed program was:" >&5
27129 sed 's/^/| /' conftest.
$ac_ext >&5
27131 { echo "$as_me:$LINENO: result: no" >&5
27132 echo "${ECHO_T}no" >&6; }
27136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27138 { echo "$as_me:$LINENO: checking for resize_term" >&5
27139 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
27140 cat >conftest.
$ac_ext <<_ACEOF
27143 cat confdefs.h
>>conftest.
$ac_ext
27144 cat >>conftest.
$ac_ext <<_ACEOF
27145 /* end confdefs.h. */
27146 #include <curses.h>
27150 void *x=resize_term
27155 rm -f conftest.
$ac_objext
27156 if { (ac_try
="$ac_compile"
27157 case "(($ac_try" in
27158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27159 *) ac_try_echo=$ac_try;;
27161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27162 (eval "$ac_compile") 2>conftest.er1
27164 grep -v '^ *+' conftest.er1 >conftest.err
27166 cat conftest.err >&5
27167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 (exit $ac_status); } && {
27169 test -z "$ac_c_werror_flag" ||
27170 test ! -s conftest.err
27171 } && test -s conftest.$ac_objext; then
27173 cat >>confdefs.h <<\_ACEOF
27174 #define HAVE_CURSES_RESIZE_TERM 1
27177 { echo "$as_me:$LINENO: result: yes" >&5
27178 echo "${ECHO_T}yes" >&6; }
27180 echo "$as_me: failed program was:" >&5
27181 sed 's/^/| /' conftest.$ac_ext >&5
27183 { echo "$as_me:$LINENO: result: no" >&5
27184 echo "${ECHO_T}no" >&6; }
27188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27190 { echo "$as_me:$LINENO: checking for resizeterm" >&5
27191 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27192 cat >conftest.$ac_ext <<_ACEOF
27195 cat confdefs.h >>conftest.$ac_ext
27196 cat >>conftest.$ac_ext <<_ACEOF
27197 /* end confdefs.h. */
27198 #include <curses.h>
27207 rm -f conftest.$ac_objext
27208 if { (ac_try="$ac_compile"
27209 case "(($ac_try" in
27210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27211 *) ac_try_echo
=$ac_try;;
27213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27214 (eval "$ac_compile") 2>conftest.er1
27216 grep -v '^ *+' conftest.er1
>conftest.err
27218 cat conftest.err
>&5
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); } && {
27221 test -z "$ac_c_werror_flag" ||
27222 test ! -s conftest.err
27223 } && test -s conftest.
$ac_objext; then
27225 cat >>confdefs.h
<<\_ACEOF
27226 #define HAVE_CURSES_RESIZETERM 1
27229 { echo "$as_me:$LINENO: result: yes" >&5
27230 echo "${ECHO_T}yes" >&6; }
27232 echo "$as_me: failed program was:" >&5
27233 sed 's/^/| /' conftest.
$ac_ext >&5
27235 { echo "$as_me:$LINENO: result: no" >&5
27236 echo "${ECHO_T}no" >&6; }
27240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27242 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27243 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27245 if test -r /dev
/ptmx
27247 { echo "$as_me:$LINENO: result: yes" >&5
27248 echo "${ECHO_T}yes" >&6; }
27250 cat >>confdefs.h
<<\_ACEOF
27251 #define HAVE_DEV_PTMX 1
27255 { echo "$as_me:$LINENO: result: no" >&5
27256 echo "${ECHO_T}no" >&6; }
27259 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27260 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27262 if test -r /dev
/ptc
27264 { echo "$as_me:$LINENO: result: yes" >&5
27265 echo "${ECHO_T}yes" >&6; }
27267 cat >>confdefs.h
<<\_ACEOF
27268 #define HAVE_DEV_PTC 1
27272 { echo "$as_me:$LINENO: result: no" >&5
27273 echo "${ECHO_T}no" >&6; }
27276 if test "$have_long_long" = yes
27278 { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5
27279 echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; }
27280 if test "${ac_cv_have_long_long_format+set}" = set; then
27281 echo $ECHO_N "(cached) $ECHO_C" >&6
27283 if test "$cross_compiling" = yes; then
27284 ac_cv_have_long_long_format
=no
27286 cat >conftest.
$ac_ext <<_ACEOF
27289 cat confdefs.h
>>conftest.
$ac_ext
27290 cat >>conftest.
$ac_ext <<_ACEOF
27291 /* end confdefs.h. */
27294 #include <stddef.h>
27295 #include <string.h>
27297 #ifdef HAVE_SYS_TYPES_H
27298 #include <sys/types.h>
27305 if (sprintf(buffer, "%lld", (long long)123) < 0)
27307 if (strcmp(buffer, "123"))
27310 if (sprintf(buffer, "%lld", (long long)-123) < 0)
27312 if (strcmp(buffer, "-123"))
27315 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
27317 if (strcmp(buffer, "123"))
27324 rm -f conftest
$ac_exeext
27325 if { (ac_try
="$ac_link"
27326 case "(($ac_try" in
27327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27328 *) ac_try_echo=$ac_try;;
27330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27331 (eval "$ac_link") 2>&5
27333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27335 { (case "(($ac_try" in
27336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27337 *) ac_try_echo
=$ac_try;;
27339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_try") 2>&5
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); }; }; then
27344 ac_cv_have_long_long_format
=yes
27346 echo "$as_me: program exited with status $ac_status" >&5
27347 echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.
$ac_ext >&5
27350 ( exit $ac_status )
27351 ac_cv_have_long_long_format
=no
27353 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27360 { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5
27361 echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; }
27364 if test $ac_cv_have_long_long_format = yes
27367 cat >>confdefs.h
<<\_ACEOF
27368 #define PY_FORMAT_LONG_LONG "ll"
27373 if test $ac_sys_system = Darwin
27375 LIBS
="$LIBS -framework CoreFoundation"
27379 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27380 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27381 if test "${ac_cv_have_size_t_format+set}" = set; then
27382 echo $ECHO_N "(cached) $ECHO_C" >&6
27384 if test "$cross_compiling" = yes; then
27385 ac_cv_have_size_t_format
="cross -- assuming yes"
27388 cat >conftest.
$ac_ext <<_ACEOF
27391 cat confdefs.h
>>conftest.
$ac_ext
27392 cat >>conftest.
$ac_ext <<_ACEOF
27393 /* end confdefs.h. */
27396 #include <stddef.h>
27397 #include <string.h>
27399 #ifdef HAVE_SYS_TYPES_H
27400 #include <sys/types.h>
27403 #ifdef HAVE_SSIZE_T
27404 typedef ssize_t Py_ssize_t;
27405 #elif SIZEOF_VOID_P == SIZEOF_LONG
27406 typedef long Py_ssize_t;
27408 typedef int Py_ssize_t;
27415 if(sprintf(buffer, "%zd", (size_t)123) < 0)
27418 if (strcmp(buffer, "123"))
27421 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
27424 if (strcmp(buffer, "-123"))
27431 rm -f conftest
$ac_exeext
27432 if { (ac_try
="$ac_link"
27433 case "(($ac_try" in
27434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27435 *) ac_try_echo=$ac_try;;
27437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438 (eval "$ac_link") 2>&5
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27442 { (case "(($ac_try" in
27443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27444 *) ac_try_echo
=$ac_try;;
27446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27447 (eval "$ac_try") 2>&5
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; }; then
27451 ac_cv_have_size_t_format
=yes
27453 echo "$as_me: program exited with status $ac_status" >&5
27454 echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.
$ac_ext >&5
27457 ( exit $ac_status )
27458 ac_cv_have_size_t_format
=no
27460 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27465 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
27466 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
27467 if test "$ac_cv_have_size_t_format" != no
; then
27469 cat >>confdefs.h
<<\_ACEOF
27470 #define PY_FORMAT_SIZE_T "z"
27475 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27476 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27477 if test "${ac_cv_type_socklen_t+set}" = set; then
27478 echo $ECHO_N "(cached) $ECHO_C" >&6
27480 cat >conftest.
$ac_ext <<_ACEOF
27483 cat confdefs.h
>>conftest.
$ac_ext
27484 cat >>conftest.
$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27487 #ifdef HAVE_SYS_TYPES_H
27488 #include <sys/types.h>
27490 #ifdef HAVE_SYS_SOCKET_H
27491 #include <sys/socket.h>
27495 typedef socklen_t ac__type_new_;
27499 if ((ac__type_new_ *) 0)
27501 if (sizeof (ac__type_new_))
27507 rm -f conftest.
$ac_objext
27508 if { (ac_try
="$ac_compile"
27509 case "(($ac_try" in
27510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27511 *) ac_try_echo=$ac_try;;
27513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27514 (eval "$ac_compile") 2>conftest.er1
27516 grep -v '^ *+' conftest.er1 >conftest.err
27518 cat conftest.err >&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); } && {
27521 test -z "$ac_c_werror_flag" ||
27522 test ! -s conftest.err
27523 } && test -s conftest.$ac_objext; then
27524 ac_cv_type_socklen_t=yes
27526 echo "$as_me: failed program was:" >&5
27527 sed 's/^/| /' conftest.$ac_ext >&5
27529 ac_cv_type_socklen_t=no
27532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27534 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27535 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27536 if test $ac_cv_type_socklen_t = yes; then
27540 cat >>confdefs.h <<\_ACEOF
27541 #define socklen_t int
27549 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
27551 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27555 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27556 { echo "$as_me:$LINENO: checking for build directories" >&5
27557 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27558 for dir in $SRCDIRS; do
27559 if test ! -d $dir; then
27563 { echo "$as_me:$LINENO: result: done" >&5
27564 echo "${ECHO_T}done" >&6; }
27566 # generate output files
27567 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
27569 cat >confcache <<\_ACEOF
27570 # This file is a shell script that caches the results of configure
27571 # tests run on this system so they can be shared between configure
27572 # scripts and configure runs, see configure's option --config-cache.
27573 # It is not useful on other systems. If it contains results you don't
27574 # want to keep, you may remove or edit it.
27576 # config.status only pays attention to the cache file if you give it
27577 # the --recheck option to rerun configure.
27579 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
27580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27581 # following values.
27585 # The following way of writing the cache mishandles newlines in values,
27586 # but we know of no workaround that is simple, portable, and efficient.
27587 # So, we kill variables containing newlines.
27588 # Ultrix sh set writes to stderr and can't be redirected directly,
27589 # and sets the high bit in the cache file unless we assign to the vars.
27591 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27592 eval ac_val
=\$
$ac_var
27596 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27600 _ | IFS | as_nl
) ;; #(
27601 *) $as_unset $ac_var ;;
27607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27608 *${as_nl}ac_space
=\
*)
27609 # `set' does not quote correctly, so add quotes (double-quote
27610 # substitution turns \\\\ into \\, and sed turns \\ into \).
27613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27616 # `set' quotes correctly as required by POSIX, so do not add quotes.
27617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27630 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27631 if test -w "$cache_file"; then
27632 test "x$cache_file" != "x/dev/null" &&
27633 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27634 echo "$as_me: updating cache $cache_file" >&6;}
27635 cat confcache
>$cache_file
27637 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27638 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27643 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27644 # Let make expand exec_prefix.
27645 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27647 DEFS
=-DHAVE_CONFIG_H
27651 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27652 # 1. Remove the extension, and $U if already installed.
27653 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27654 ac_i
=`echo "$ac_i" | sed "$ac_script"`
27655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27656 # will be set to the directory where LIBOBJS objects are built.
27657 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27658 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27660 LIBOBJS
=$ac_libobjs
27662 LTLIBOBJS
=$ac_ltlibobjs
27666 : ${CONFIG_STATUS=./config.status}
27667 ac_clean_files_save
=$ac_clean_files
27668 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27669 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27670 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27671 cat >$CONFIG_STATUS <<_ACEOF
27673 # Generated by $as_me.
27674 # Run this file to recreate the current configuration.
27675 # Compiler output produced by configure, useful for debugging
27676 # configure, is in config.log if it exists.
27679 ac_cs_recheck=false
27681 SHELL=\${CONFIG_SHELL-$SHELL}
27684 cat >>$CONFIG_STATUS <<\_ACEOF
27685 ## --------------------- ##
27686 ## M4sh Initialization. ##
27687 ## --------------------- ##
27689 # Be more Bourne compatible
27690 DUALCASE
=1; export DUALCASE
# for MKS sh
27691 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27694 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27695 # is contrary to our usage. Disable this feature.
27696 alias -g '${1+"$@"}'='"$@"'
27697 setopt NO_GLOB_SUBST
27699 case `(set -o) 2>/dev/null` in
27700 *posix
*) set -o posix
;;
27709 # Avoid depending upon Character Ranges.
27710 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27711 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27712 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27713 as_cr_digits
='0123456789'
27714 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27716 # The user is always right.
27717 if test "${PATH_SEPARATOR+set}" != set; then
27718 echo "#! /bin/sh" >conf$$.sh
27719 echo "exit 0" >>conf$$.sh
27721 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
27729 # Support unset when possible.
27730 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
27738 # We need space, tab and new line, in precisely that order. Quoting is
27739 # there to prevent editors from complaining about space-tab.
27740 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27741 # splitting by setting IFS to empty value.)
27746 # Find who we are. Look in the path if we contain no directory separator.
27748 *[\\/]* ) as_myself
=$0 ;;
27749 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27750 for as_dir
in $PATH
27753 test -z "$as_dir" && as_dir
=.
27754 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
27760 # We did not find ourselves, most probably we were run as `sh COMMAND'
27761 # in which case we are not to be found in the path.
27762 if test "x$as_myself" = x
; then
27765 if test ! -f "$as_myself"; then
27766 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27767 { (exit 1); exit 1; }
27770 # Work around bugs in pre-3.0 UWIN ksh.
27771 for as_var
in ENV MAIL MAILPATH
27772 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27780 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27781 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27782 LC_TELEPHONE LC_TIME
27784 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27785 eval $as_var=C
; export $as_var
27787 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27791 # Required to use basename.
27792 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27793 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27799 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27800 as_basename
=basename
27806 # Name of the executable.
27807 as_me
=`$as_basename -- "$0" ||
27808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27809 X"$0" : 'X\(//\)$' \| \
27810 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27812 sed '/^.*\/\([^/][^/]*\)\/*$/{
27831 as_lineno_1
=$LINENO
27832 as_lineno_2
=$LINENO
27833 test "x$as_lineno_1" != "x$as_lineno_2" &&
27834 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27836 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27837 # uniformly replaced by the line number. The first 'sed' inserts a
27838 # line-number line after each line using $LINENO; the second 'sed'
27839 # does the real work. The second script uses 'N' to pair each
27840 # line-number line with the line containing $LINENO, and appends
27841 # trailing '-' during substitution so that $LINENO is not a special
27842 # case at line end.
27843 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27844 # scripts with optimization help from Paolo Bonzini. Blame Lee
27845 # E. McMahon (1931-1989) for sed's syntax. :-)
27857 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27860 ' >$as_me.lineno
&&
27861 chmod +x
"$as_me.lineno" ||
27862 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27863 { (exit 1); exit 1; }; }
27865 # Don't try to exec as it changes $[0], causing all sort of problems
27866 # (the dirname of $[0] is not the place where we might find the
27867 # original and so on. Autoconf is especially sensitive to this).
27868 .
"./$as_me.lineno"
27869 # Exit status is that of the last command.
27874 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27880 ECHO_C
= ECHO_N
= ECHO_T
=
27881 case `echo -n x` in
27883 case `echo 'x\c'` in
27884 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27891 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27892 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27898 rm -f conf$$ conf$$.exe conf$$.
file
27899 if test -d conf$$.dir
; then
27900 rm -f conf$$.dir
/conf$$.
file
27906 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27908 # ... but there are two gotchas:
27909 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27910 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27911 # In both cases, we have to default to `cp -p'.
27912 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27914 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27919 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27920 rmdir conf$$.dir
2>/dev
/null
27922 if mkdir
-p .
2>/dev
/null
; then
27925 test -d .
/-p && rmdir .
/-p
27929 if test -x / >/dev
/null
2>&1; then
27930 as_test_x
='test -x'
27932 if ls -dL / >/dev
/null
2>&1; then
27939 if test -d "$1"; then
27945 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27946 ???[sx]*):;;*)false;;esac;fi
27950 as_executable_p
=$as_test_x
27952 # Sed expression to map a string onto a valid CPP name.
27953 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27955 # Sed expression to map a string onto a valid variable name.
27956 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27961 # Save the log message, to keep $[0] and so on meaningful, and to
27962 # report actual input values of CONFIG_FILES etc. instead of their
27963 # values after options handling.
27965 This file was extended by python $as_me 2.7, which was
27966 generated by GNU Autoconf 2.61. Invocation command line was
27968 CONFIG_FILES = $CONFIG_FILES
27969 CONFIG_HEADERS = $CONFIG_HEADERS
27970 CONFIG_LINKS = $CONFIG_LINKS
27971 CONFIG_COMMANDS = $CONFIG_COMMANDS
27974 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27979 cat >>$CONFIG_STATUS <<_ACEOF
27980 # Files that config.status was made for.
27981 config_files="$ac_config_files"
27982 config_headers="$ac_config_headers"
27986 cat >>$CONFIG_STATUS <<\_ACEOF
27988 \`$as_me' instantiates files from templates according to the
27989 current configuration.
27991 Usage: $0 [OPTIONS] [FILE]...
27993 -h, --help print this help, then exit
27994 -V, --version print version number and configuration settings, then exit
27995 -q, --quiet do not print progress messages
27996 -d, --debug don't remove temporary files
27997 --recheck update $as_me by reconfiguring in the same conditions
27998 --file=FILE[:TEMPLATE]
27999 instantiate the configuration file FILE
28000 --header=FILE[:TEMPLATE]
28001 instantiate the configuration header FILE
28003 Configuration files:
28006 Configuration headers:
28009 Report bugs to <bug-autoconf@gnu.org>."
28012 cat >>$CONFIG_STATUS <<_ACEOF
28014 python config.status 2.7
28015 configured by $0, generated by GNU Autoconf 2.61,
28016 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28018 Copyright (C) 2006 Free Software Foundation, Inc.
28019 This config.status script is free software; the Free Software Foundation
28020 gives unlimited permission to copy, distribute and modify it."
28027 cat >>$CONFIG_STATUS <<\_ACEOF
28028 # If no file are specified by the user, then we need to provide default
28029 # value. By we need to know if files were specified by the user.
28035 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28036 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28047 # Handling of the options.
28048 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28050 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28051 echo "$ac_cs_version"; exit ;;
28052 --debug |
--debu |
--deb |
--de |
--d |
-d )
28054 --file |
--fil |
--fi |
--f )
28056 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
28057 ac_need_defaults
=false
;;
28058 --header |
--heade |
--head |
--hea )
28060 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
28061 ac_need_defaults
=false
;;
28063 # Conflict between --help and --header
28064 { echo "$as_me: error: ambiguous option: $1
28065 Try \`$0 --help' for more information." >&2
28066 { (exit 1); exit 1; }; };;
28067 --help |
--hel |
-h )
28068 echo "$ac_cs_usage"; exit ;;
28069 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28070 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28073 # This is an error.
28074 -*) { echo "$as_me: error: unrecognized option: $1
28075 Try \`$0 --help' for more information." >&2
28076 { (exit 1); exit 1; }; } ;;
28078 *) ac_config_targets
="$ac_config_targets $1"
28079 ac_need_defaults
=false
;;
28085 ac_configure_extra_args
=
28087 if $ac_cs_silent; then
28089 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28093 cat >>$CONFIG_STATUS <<_ACEOF
28094 if \$ac_cs_recheck; then
28095 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28096 CONFIG_SHELL=$SHELL
28097 export CONFIG_SHELL
28098 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28102 cat >>$CONFIG_STATUS <<\_ACEOF
28106 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28107 ## Running $as_me. ##
28113 cat >>$CONFIG_STATUS <<_ACEOF
28116 cat >>$CONFIG_STATUS <<\_ACEOF
28118 # Handling of arguments.
28119 for ac_config_target
in $ac_config_targets
28121 case $ac_config_target in
28122 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
28123 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
28124 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
28125 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
28126 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
28127 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
28128 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
28129 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
28130 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
28132 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28133 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28134 { (exit 1); exit 1; }; };;
28139 # If the user did not use the arguments to specify the items to instantiate,
28140 # then the envvar interface is used. Set only those that are not.
28141 # We use the long form for the default assignment because of an extremely
28142 # bizarre bug on SunOS 4.1.3.
28143 if $ac_need_defaults; then
28144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28148 # Have a temporary directory for convenience. Make it in the build tree
28149 # simply because there is no reason against having it here, and in addition,
28150 # creating and moving files from /tmp can sometimes cause problems.
28151 # Hook for its removal unless debugging.
28152 # Note that there is a small window in which the directory will not be cleaned:
28153 # after its creation but before its name has been assigned to `$tmp'.
28157 trap 'exit_status=$?
28158 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28160 trap '{ (exit 1); exit 1; }' 1 2 13 15
28162 # Create a (secure) tmp directory for tmp files.
28165 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28166 test -n "$tmp" && test -d "$tmp"
28169 tmp
=.
/conf$$
-$RANDOM
28170 (umask 077 && mkdir
"$tmp")
28173 echo "$me: cannot create a temporary directory in ." >&2
28174 { (exit 1); exit 1; }
28178 # Set up the sed scripts for CONFIG_FILES section.
28181 # No need to generate the scripts if there are no CONFIG_FILES.
28182 # This happens for instance when ./config.status config.h
28183 if test -n "$CONFIG_FILES"; then
28190 for ac_last_try
in false false false false false
:; do
28191 cat >conf$
$subs.
sed <<_ACEOF
28192 SHELL!$SHELL$ac_delim
28193 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28194 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28195 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28196 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28197 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28198 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28199 exec_prefix!$exec_prefix$ac_delim
28200 prefix!$prefix$ac_delim
28201 program_transform_name!$program_transform_name$ac_delim
28202 bindir!$bindir$ac_delim
28203 sbindir!$sbindir$ac_delim
28204 libexecdir!$libexecdir$ac_delim
28205 datarootdir!$datarootdir$ac_delim
28206 datadir!$datadir$ac_delim
28207 sysconfdir!$sysconfdir$ac_delim
28208 sharedstatedir!$sharedstatedir$ac_delim
28209 localstatedir!$localstatedir$ac_delim
28210 includedir!$includedir$ac_delim
28211 oldincludedir!$oldincludedir$ac_delim
28212 docdir!$docdir$ac_delim
28213 infodir!$infodir$ac_delim
28214 htmldir!$htmldir$ac_delim
28215 dvidir!$dvidir$ac_delim
28216 pdfdir!$pdfdir$ac_delim
28217 psdir!$psdir$ac_delim
28218 libdir!$libdir$ac_delim
28219 localedir!$localedir$ac_delim
28220 mandir!$mandir$ac_delim
28221 DEFS!$DEFS$ac_delim
28222 ECHO_C!$ECHO_C$ac_delim
28223 ECHO_N!$ECHO_N$ac_delim
28224 ECHO_T!$ECHO_T$ac_delim
28225 LIBS!$LIBS$ac_delim
28226 build_alias!$build_alias$ac_delim
28227 host_alias!$host_alias$ac_delim
28228 target_alias!$target_alias$ac_delim
28229 VERSION!$VERSION$ac_delim
28230 SOVERSION!$SOVERSION$ac_delim
28231 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28232 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28233 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
28234 LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
28235 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28236 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
28237 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28238 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28239 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28240 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28241 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28242 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28243 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28244 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28245 MACHDEP!$MACHDEP$ac_delim
28246 SGI_ABI!$SGI_ABI$ac_delim
28247 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28248 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28249 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28250 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28252 CFLAGS!$CFLAGS$ac_delim
28253 LDFLAGS!$LDFLAGS$ac_delim
28254 CPPFLAGS!$CPPFLAGS$ac_delim
28255 ac_ct_CC!$ac_ct_CC$ac_delim
28256 EXEEXT!$EXEEXT$ac_delim
28257 OBJEXT!$OBJEXT$ac_delim
28259 MAINCC!$MAINCC$ac_delim
28261 GREP!$GREP$ac_delim
28262 EGREP!$EGREP$ac_delim
28263 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28264 LIBRARY!$LIBRARY$ac_delim
28265 LDLIBRARY!$LDLIBRARY$ac_delim
28266 DLLLIBRARY!$DLLLIBRARY$ac_delim
28267 BLDLIBRARY!$BLDLIBRARY$ac_delim
28268 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28269 INSTSONAME!$INSTSONAME$ac_delim
28270 RUNSHARED!$RUNSHARED$ac_delim
28271 LINKCC!$LINKCC$ac_delim
28272 GNULD!$GNULD$ac_delim
28273 RANLIB!$RANLIB$ac_delim
28275 ARFLAGS!$ARFLAGS$ac_delim
28276 SVNVERSION!$SVNVERSION$ac_delim
28277 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28278 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28279 INSTALL_DATA!$INSTALL_DATA$ac_delim
28282 BASECFLAGS!$BASECFLAGS$ac_delim
28283 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
28284 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28285 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28287 LDSHARED!$LDSHARED$ac_delim
28288 BLDSHARED!$BLDSHARED$ac_delim
28291 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28293 elif $ac_last_try; then
28294 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28295 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28296 { (exit 1); exit 1; }; }
28298 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28302 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28303 if test -n "$ac_eof"; then
28304 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28305 ac_eof
=`expr $ac_eof + 1`
28308 cat >>$CONFIG_STATUS <<_ACEOF
28309 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28313 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28314 s/^/s,@/; s/!/@,|#_!!_#|/
28317 s/'"$ac_delim"'$/,g/; t
28319 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28320 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28321 rm -f conf$
$subs.
sed
28322 cat >>$CONFIG_STATUS <<_ACEOF
28328 for ac_last_try
in false false false false false
:; do
28329 cat >conf$
$subs.
sed <<_ACEOF
28330 CCSHARED!$CCSHARED$ac_delim
28331 LINKFORSHARED!$LINKFORSHARED$ac_delim
28332 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28333 SHLIBS!$SHLIBS$ac_delim
28334 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28335 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28336 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28337 LDLAST!$LDLAST$ac_delim
28338 THREADOBJ!$THREADOBJ$ac_delim
28339 DLINCLDIR!$DLINCLDIR$ac_delim
28340 DYNLOADFILE!$DYNLOADFILE$ac_delim
28341 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28342 TRUE!$TRUE$ac_delim
28343 LIBOBJS!$LIBOBJS$ac_delim
28344 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28345 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28346 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28347 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28348 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28349 LIBM!$LIBM$ac_delim
28350 LIBC!$LIBC$ac_delim
28351 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28352 THREADHEADERS!$THREADHEADERS$ac_delim
28353 SRCDIRS!$SRCDIRS$ac_delim
28354 LTLIBOBJS!$LTLIBOBJS$ac_delim
28357 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
28359 elif $ac_last_try; then
28360 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28361 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28362 { (exit 1); exit 1; }; }
28364 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28368 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28369 if test -n "$ac_eof"; then
28370 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28371 ac_eof
=`expr $ac_eof + 1`
28374 cat >>$CONFIG_STATUS <<_ACEOF
28375 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28379 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28380 s/^/s,@/; s/!/@,|#_!!_#|/
28383 s/'"$ac_delim"'$/,g/; t
28385 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28386 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28387 rm -f conf$
$subs.
sed
28388 cat >>$CONFIG_STATUS <<_ACEOF
28395 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28396 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28397 # trailing colons and then remove the whole line if VPATH becomes empty
28398 # (actually we leave an empty line to preserve line numbers).
28399 if test "x$srcdir" = x.
; then
28400 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
28401 s/:*\$(srcdir):*/:/
28402 s/:*\${srcdir}:*/:/
28404 s/^\([^=]*=[ ]*\):*/\1/
28410 cat >>$CONFIG_STATUS <<\_ACEOF
28411 fi # test -n "$CONFIG_FILES"
28414 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
28417 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28419 case $ac_mode$ac_tag in
28421 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28422 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28423 { (exit 1); exit 1; }; };;
28424 :[FH
]-) ac_tag
=-:-;;
28425 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28442 -) ac_f
="$tmp/stdin";;
28443 *) # Look for the file first in the build tree, then in the source tree
28444 # (if the path is not absolute). The absolute path cannot be DOS-style,
28445 # because $ac_f cannot contain `:'.
28449 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28451 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28452 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28453 { (exit 1); exit 1; }; };;
28455 ac_file_inputs
="$ac_file_inputs $ac_f"
28458 # Let's still pretend it is `configure' which instantiates (i.e., don't
28459 # use $as_me), people would be surprised to read:
28460 # /* config.h. Generated by config.status. */
28461 configure_input
="Generated from "`IFS=:
28462 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28463 if test x
"$ac_file" != x-
; then
28464 configure_input
="$ac_file. $configure_input"
28465 { echo "$as_me:$LINENO: creating $ac_file" >&5
28466 echo "$as_me: creating $ac_file" >&6;}
28470 *:-:* |
*:-) cat >"$tmp/stdin";;
28475 ac_dir
=`$as_dirname -- "$ac_file" ||
28476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28477 X"$ac_file" : 'X\(//\)[^/]' \| \
28478 X"$ac_file" : 'X\(//\)$' \| \
28479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28485 /^X\(\/\/\)[^/].*/{
28500 -*) as_dir
=.
/$as_dir;;
28502 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
28506 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28507 *) as_qdir
=$as_dir;;
28509 as_dirs
="'$as_qdir' $as_dirs"
28510 as_dir
=`$as_dirname -- "$as_dir" ||
28511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28512 X"$as_dir" : 'X\(//\)[^/]' \| \
28513 X"$as_dir" : 'X\(//\)$' \| \
28514 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28520 /^X\(\/\/\)[^/].*/{
28533 test -d "$as_dir" && break
28535 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28536 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28537 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28538 { (exit 1); exit 1; }; }; }
28542 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28544 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28545 # A ".." for each directory in $ac_dir_suffix.
28546 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28547 case $ac_top_builddir_sub in
28548 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28549 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28552 ac_abs_top_builddir
=$ac_pwd
28553 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28554 # for backward compatibility:
28555 ac_top_builddir
=$ac_top_build_prefix
28558 .
) # We are building in place.
28560 ac_top_srcdir
=$ac_top_builddir_sub
28561 ac_abs_top_srcdir
=$ac_pwd ;;
28562 [\\/]* | ?
:[\\/]* ) # Absolute name.
28563 ac_srcdir
=$srcdir$ac_dir_suffix;
28564 ac_top_srcdir
=$srcdir
28565 ac_abs_top_srcdir
=$srcdir ;;
28566 *) # Relative name.
28567 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28568 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28569 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28571 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28581 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28582 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28586 cat >>$CONFIG_STATUS <<\_ACEOF
28587 # If the template does not know about datarootdir, expand it.
28588 # FIXME: This hack should be removed a few years after 2.60.
28589 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28591 case `sed -n '/datarootdir/ {
28600 ' $ac_file_inputs` in
28601 *datarootdir
*) ac_datarootdir_seen
=yes;;
28602 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28603 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28604 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28606 cat >>$CONFIG_STATUS <<_ACEOF
28607 ac_datarootdir_hack='
28608 s&@datadir@&$datadir&g
28609 s&@docdir@&$docdir&g
28610 s&@infodir@&$infodir&g
28611 s&@localedir@&$localedir&g
28612 s&@mandir@&$mandir&g
28613 s&\\\${datarootdir}&$datarootdir&g' ;;
28617 # Neutralize VPATH when `$srcdir' = `.'.
28618 # Shell code in configure.ac might set extrasub.
28619 # FIXME: do we really want to maintain this feature?
28620 cat >>$CONFIG_STATUS <<_ACEOF
28624 cat >>$CONFIG_STATUS <<\_ACEOF
28626 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28627 s
&@configure_input@
&$configure_input&;t t
28628 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28629 s
&@srcdir@
&$ac_srcdir&;t t
28630 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28631 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28632 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28633 s
&@builddir@
&$ac_builddir&;t t
28634 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28635 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28636 s
&@INSTALL@
&$ac_INSTALL&;t t
28637 $ac_datarootdir_hack
28638 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
28640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28641 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28643 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28644 which seems to be undefined. Please make sure it is defined." >&5
28645 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28646 which seems to be undefined. Please make sure it is defined." >&2;}
28650 -) cat "$tmp/out"; rm -f "$tmp/out";;
28651 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28660 # Transform confdefs.h into a sed script `conftest.defines', that
28661 # substitutes the proper values into config.h.in to produce config.h.
28662 rm -f conftest.defines conftest.
tail
28663 # First, append a space to every undef/define line, to ease matching.
28664 echo 's/$/ /' >conftest.defines
28665 # Then, protect against being on the right side of a sed subst, or in
28666 # an unquoted here document, in config.status. If some macros were
28667 # called several times there might be several #defines for the same
28668 # symbol, which is useless. But do not sort them, since the last
28669 # AC_DEFINE must be honored.
28670 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
28671 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28672 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28673 # PARAMS is the parameter list in the macro definition--in most cases, it's
28674 # just an empty string.
28675 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28676 ac_dB
='\\)[ (].*,\\1define\\2'
28684 s/^[ ]*#[ ]*define[ ][ ]*//
28689 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28690 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28691 ' >>conftest.defines
28693 # Remove the space that was appended to ease matching.
28694 # Then replace #undef with comments. This is necessary, for
28695 # example, in the case of _POSIX_SOURCE, which is predefined and required
28696 # on some systems where configure will not decide to define it.
28697 # (The regexp can be short, since the line contains either #define or #undef.)
28699 s,^[ #]*u.*,/* & */,' >>conftest.defines
28701 # Break up conftest.defines:
28702 ac_max_sed_lines
=50
28704 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28705 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28706 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28708 ac_in
='$ac_file_inputs'
28709 ac_out
='"$tmp/out1"'
28710 ac_nxt
='"$tmp/out2"'
28714 # Write a here document:
28715 cat >>$CONFIG_STATUS <<_ACEOF
28716 # First, check the format of the line:
28717 cat >"\$tmp/defines.sed" <<\\CEOF
28718 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28719 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28723 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
28725 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28726 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
28727 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
28728 grep . conftest.
tail >/dev
/null ||
break
28729 rm -f conftest.defines
28730 mv conftest.
tail conftest.defines
28732 rm -f conftest.defines conftest.
tail
28734 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28735 cat >>$CONFIG_STATUS <<\_ACEOF
28736 if test x
"$ac_file" != x-
; then
28737 echo "/* $configure_input */" >"$tmp/config.h"
28738 cat "$ac_result" >>"$tmp/config.h"
28739 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
28740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28741 echo "$as_me: $ac_file is unchanged" >&6;}
28744 mv "$tmp/config.h" $ac_file
28747 echo "/* $configure_input */"
28759 { (exit 0); exit 0; }
28761 chmod +x
$CONFIG_STATUS
28762 ac_clean_files
=$ac_clean_files_save
28765 # configure is writing to config.log, and then calls config.status.
28766 # config.status does its own redirection, appending to config.log.
28767 # Unfortunately, on DOS this fails, as config.log is still kept open
28768 # by configure, so config.status won't be able to write to it; its
28769 # output is simply discarded. So we exec the FD to /dev/null,
28770 # effectively closing config.log, so it can be properly (re)opened and
28771 # appended to by config.status. When coming back to configure, we
28772 # need to make the FD available again.
28773 if test "$no_create" != yes; then
28775 ac_config_status_args
=
28776 test "$silent" = yes &&
28777 ac_config_status_args
="$ac_config_status_args --quiet"
28779 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28781 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28782 # would make configure fail if this is the last instruction.
28783 $ac_cs_success ||
{ (exit 1); exit 1; }
28787 echo "creating Modules/Setup"
28788 if test ! -f Modules
/Setup
28790 cp $srcdir/Modules
/Setup.dist Modules
/Setup
28793 echo "creating Modules/Setup.local"
28794 if test ! -f Modules
/Setup.
local
28796 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
28799 echo "creating Makefile"
28800 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
28801 -s Modules Modules
/Setup.config \
28802 Modules
/Setup.
local Modules
/Setup
28804 case $ac_sys_system in
28806 { echo "$as_me:$LINENO: WARNING:
28808 Support for BeOS is deprecated as of Python 2.6.
28809 See PEP 11 for the gory details.
28811 echo "$as_me: WARNING:
28813 Support for BeOS is deprecated as of Python 2.6.
28814 See PEP 11 for the gory details.
28820 mv config.c Modules