2 # From configure.in Revision: 74044 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='2.7'
579 PACKAGE_STRING
='python 2.7'
580 PACKAGE_BUGREPORT
='http://bugs.python.org/'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
741 ac_precious_vars
='build_alias
752 # Initialize some variables set by options.
754 ac_init_version
=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name
=s
,x
,x
,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir
='${exec_prefix}/bin'
779 sbindir
='${exec_prefix}/sbin'
780 libexecdir
='${exec_prefix}/libexec'
781 datarootdir
='${prefix}/share'
782 datadir
='${datarootdir}'
783 sysconfdir
='${prefix}/etc'
784 sharedstatedir
='${prefix}/com'
785 localstatedir
='${prefix}/var'
786 includedir
='${prefix}/include'
787 oldincludedir
='/usr/include'
788 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir
='${datarootdir}/info'
794 libdir
='${exec_prefix}/lib'
795 localedir
='${datarootdir}/locale'
796 mandir
='${datarootdir}/man'
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\
$ac_option
810 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
820 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
822 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
825 -build |
--build |
--buil |
--bui |
--bu)
826 ac_prev
=build_alias
;;
827 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
828 build_alias
=$ac_optarg ;;
830 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
831 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
832 ac_prev
=cache_file
;;
833 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
834 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
835 cache_file
=$ac_optarg ;;
838 cache_file
=config.cache
;;
840 -datadir |
--datadir |
--datadi |
--datad)
842 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
843 datadir
=$ac_optarg ;;
845 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
846 |
--dataroo |
--dataro |
--datar)
847 ac_prev
=datarootdir
;;
848 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
849 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
850 datarootdir
=$ac_optarg ;;
852 -disable-* |
--disable-*)
853 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_
$ac_feature=no
;;
861 -docdir |
--docdir |
--docdi |
--doc |
--do)
863 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
866 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
868 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
871 -enable-* |
--enable-*)
872 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_
$ac_feature=\
$ac_optarg ;;
880 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
881 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
882 |
--exec |
--exe |
--ex)
883 ac_prev
=exec_prefix
;;
884 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
885 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
886 |
--exec=* |
--exe=* |
--ex=*)
887 exec_prefix
=$ac_optarg ;;
889 -gas |
--gas |
--ga |
--g)
890 # Obsolete; use --with-gas.
893 -help |
--help |
--hel |
--he |
-h)
895 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
896 ac_init_help
=recursive
;;
897 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
898 ac_init_help
=short
;;
900 -host |
--host |
--hos |
--ho)
901 ac_prev
=host_alias
;;
902 -host=* |
--host=* |
--hos=* |
--ho=*)
903 host_alias
=$ac_optarg ;;
905 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
907 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
909 htmldir
=$ac_optarg ;;
911 -includedir |
--includedir |
--includedi |
--included |
--include \
912 |
--includ |
--inclu |
--incl |
--inc)
913 ac_prev
=includedir
;;
914 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
915 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
916 includedir
=$ac_optarg ;;
918 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
920 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
921 infodir
=$ac_optarg ;;
923 -libdir |
--libdir |
--libdi |
--libd)
925 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
928 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
929 |
--libexe |
--libex |
--libe)
930 ac_prev
=libexecdir
;;
931 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
932 |
--libexe=* |
--libex=* |
--libe=*)
933 libexecdir
=$ac_optarg ;;
935 -localedir |
--localedir |
--localedi |
--localed |
--locale)
937 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
938 localedir
=$ac_optarg ;;
940 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
941 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
942 ac_prev
=localstatedir
;;
943 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
944 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
945 localstatedir
=$ac_optarg ;;
947 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
949 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
953 # Obsolete; use --without-fp.
956 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
957 |
--no-cr |
--no-c |
-n)
960 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
961 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
964 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
965 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
966 |
--oldin |
--oldi |
--old |
--ol |
--o)
967 ac_prev
=oldincludedir
;;
968 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
969 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
970 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
971 oldincludedir
=$ac_optarg ;;
973 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
975 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
978 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
979 |
--program-pre |
--program-pr |
--program-p)
980 ac_prev
=program_prefix
;;
981 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
982 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
983 program_prefix
=$ac_optarg ;;
985 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
986 |
--program-suf |
--program-su |
--program-s)
987 ac_prev
=program_suffix
;;
988 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
989 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
990 program_suffix
=$ac_optarg ;;
992 -program-transform-name |
--program-transform-name \
993 |
--program-transform-nam |
--program-transform-na \
994 |
--program-transform-n |
--program-transform- \
995 |
--program-transform |
--program-transfor \
996 |
--program-transfo |
--program-transf \
997 |
--program-trans |
--program-tran \
998 |
--progr-tra |
--program-tr |
--program-t)
999 ac_prev
=program_transform_name
;;
1000 -program-transform-name=* |
--program-transform-name=* \
1001 |
--program-transform-nam=* |
--program-transform-na=* \
1002 |
--program-transform-n=* |
--program-transform-=* \
1003 |
--program-transform=* |
--program-transfor=* \
1004 |
--program-transfo=* |
--program-transf=* \
1005 |
--program-trans=* |
--program-tran=* \
1006 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1007 program_transform_name
=$ac_optarg ;;
1009 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1011 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1012 pdfdir
=$ac_optarg ;;
1014 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1016 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1019 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1020 |
-silent |
--silent |
--silen |
--sile |
--sil)
1023 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1025 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1027 sbindir
=$ac_optarg ;;
1029 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1030 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1031 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1033 ac_prev
=sharedstatedir
;;
1034 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1035 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1036 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1038 sharedstatedir
=$ac_optarg ;;
1040 -site |
--site |
--sit)
1042 -site=* |
--site=* |
--sit=*)
1045 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1047 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1048 srcdir
=$ac_optarg ;;
1050 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1051 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1052 ac_prev
=sysconfdir
;;
1053 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1054 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1055 sysconfdir
=$ac_optarg ;;
1057 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1058 ac_prev
=target_alias
;;
1059 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1060 target_alias
=$ac_optarg ;;
1062 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1065 -version |
--version |
--versio |
--versi |
--vers |
-V)
1066 ac_init_version
=: ;;
1069 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_
$ac_package=\
$ac_optarg ;;
1077 -without-* |
--without-*)
1078 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_
$ac_package=no
;;
1087 # Obsolete; use --with-x.
1090 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1091 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1092 ac_prev
=x_includes
;;
1093 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1094 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1095 x_includes
=$ac_optarg ;;
1097 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1098 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1099 ac_prev
=x_libraries
;;
1100 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1101 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1102 x_libraries
=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\
$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 if test -n "$ac_prev"; then
1130 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val
=\$
$ac_var
1143 [\\/$
]* | ?
:[\\/]* ) continue;;
1144 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1155 target
=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x
; then
1159 if test "x$build_alias" = x
; then
1160 cross_compiling
=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1169 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1171 test "$silent" = yes && exec 6>/dev
/null
1174 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di
=`ls -di .` &&
1176 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted
=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir
=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1216 ac_srcdir_defaulted
=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1236 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 for ac_var
in $ac_precious_vars; do
1239 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1241 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1252 \`configure' configures python 2.7 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1311 if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive
) echo "Configuration of python 2.7:";;
1318 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1319 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1320 --enable-universalsdk[=SDKDIR
]
1321 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1322 --enable-framework[=INSTALLDIR
]
1323 Build
(MacOSX|Darwin
) framework
1324 --enable-shared disable
/enable building shared python library
1325 --enable-profiling enable C-level code profiling
1326 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1327 --enable-ipv6 Enable ipv6
(with ipv4
) support
1328 --disable-ipv6 Disable ipv6 support
1329 --enable-big-digits[=BITS
]
1330 use big digits
for Python longs
[BITS
=30]
1331 --enable-unicode[=ucs
[24]]
1332 Enable Unicode
strings (default is
yes)
1335 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1336 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1337 --with-universal-archs=ARCH
1338 select architectures
for universal build
("32-bit",
1340 --with-framework-name=FRAMEWORK
1341 specify an alternate name of the framework built
1342 with
--enable-framework
1343 --without-gcc never use gcc
1344 --with-cxx-main=<compiler
>
1345 compile main
() and link python executable with C
++
1347 --with-suffix=.exe
set executable suffix
1348 --with-pydebug build with Py_DEBUG defined
1349 --with-libs='lib1 ...' link against additional libs
1350 --with-system-ffi build _ctypes module using an installed ffi library
1351 --with-dbmliborder=db1
:db2
:...
1352 order to check db backends
for dbm. Valid value is a
1353 colon separated string with the backend names
1354 `ndbm', `gdbm
' and `bdb'.
1355 --with-signal-module disable
/enable signal module
1356 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1357 --with(out
)-threads[=DIRECTORY
]
1358 disable
/enable thread support
1359 --with(out
)-thread[=DIRECTORY
]
1360 deprecated
; use
--with(out
)-threads
1361 --with-pth use GNU pth threading libraries
1362 --with(out
)-doc-strings disable
/enable documentation
strings
1363 --with(out
)-tsc enable
/disable timestamp counter profile
1364 --with(out
)-pymalloc disable
/enable specialized mallocs
1365 --with-wctype-functions use wctype.h functions
1366 --with-fpectl enable SIGFPE catching
1367 --with-libm=STRING math library
1368 --with-libc=STRING C library
1370 Some influential environment variables
:
1371 CC C compiler
command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1374 nonstandard directory
<lib dir
>
1375 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1376 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1377 you have headers
in a nonstandard directory
<include dir
>
1380 Use these variables to override the choices made by
`configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1383 Report bugs to <http://bugs.python.org/>.
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" || continue
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1411 .) # We are building in place.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1435 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1444 python configure 2.7
1445 generated by GNU Autoconf 2.61
1447 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1454 cat >config.log <<_ACEOF
1455 This file contains any messages produced by compilers while
1456 running configure, to aid debugging if configure makes a mistake.
1458 It was created by python $as_me 2.7, which was
1459 generated by GNU Autoconf 2.61. Invocation command line was
1471 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1472 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1473 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1474 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1475 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1477 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1478 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1480 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1481 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1482 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1483 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1484 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1485 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1486 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 test -z "$as_dir" && as_dir=.
1495 echo "PATH: $as_dir"
1511 # Keep a trace of the command line.
1512 # Strip out --no-create and --no-recursion so they do not pile up.
1513 # Strip out --silent because we don't want to record it for future runs.
1514 # Also quote any args containing shell meta-characters.
1515 # Make two passes to allow for proper duplicate-argument suppression.
1519 ac_must_keep_next=false
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1530 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
1537 ac_must_keep_next=false # Got value, back to normal.
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1548 -* ) ac_must_keep_next=true ;;
1551 ac_configure_args="$ac_configure_args '$ac_arg'"
1556 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559 # When interrupted or exit'd, cleanup temporary files, and complete
1560 # config.log. We remove comments because anyway the quotes in there
1561 # would cause problems or look ugly.
1562 # WARNING: Use '\'' to represent an apostrophe within the trap.
1563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564 trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
1570 ## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##
1575 # The following way of writing the cache mishandles newlines in values,
1577 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1578 eval ac_val=\$$ac_var
1582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1586 _ | IFS | as_nl) ;; #(
1587 *) $as_unset $ac_var ;;
1592 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1607 ## ----------------- ##
1608 ## Output variables. ##
1609 ## ----------------- ##
1612 for ac_var in $ac_subst_vars
1614 eval ac_val=\$$ac_var
1616 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 echo "$ac_var='\''$ac_val'\''"
1622 if test -n "$ac_subst_files"; then
1624 ## ------------------- ##
1625 ## File substitutions. ##
1626 ## ------------------- ##
1629 for ac_var in $ac_subst_files
1631 eval ac_val=\$$ac_var
1633 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 echo "$ac_var='\''$ac_val'\''"
1640 if test -s confdefs.h; then
1650 test "$ac_signal" != 0 &&
1651 echo "$as_me: caught signal $ac_signal"
1652 echo "$as_me: exit $exit_status"
1654 rm -f core *.core core.conftest.* &&
1655 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1658 for ac_signal in 1 2 13 15; do
1659 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1663 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1664 rm -f -r conftest* confdefs.h
1666 # Predefined preprocessor variables.
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_NAME "$PACKAGE_NAME"
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_STRING "$PACKAGE_STRING"
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1693 # Let the site file select an alternate cache file if it wants to.
1694 # Prefer explicitly selected file to automatically selected ones.
1695 if test -n "$CONFIG_SITE"; then
1696 set x "$CONFIG_SITE"
1697 elif test "x$prefix" != xNONE; then
1698 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700 set x "$ac_default_prefix/share/config.site" \
1701 "$ac_default_prefix/etc/config.site"
1706 if test -r "$ac_site_file"; then
1707 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
1714 if test -r "$cache_file"; then
1715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 echo "$as_me: loading cache $cache_file" >&6;}
1721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
1726 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 echo "$as_me: creating cache $cache_file" >&6;}
1731 # Check that the precious variables saved in the cache have kept the same
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
1737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
1739 case $ac_old_set,$ac_new_set in
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1742 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1746 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
1751 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1752 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1753 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1754 echo "$as_me: former value
: $ac_old_val" >&2;}
1755 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1756 echo "$as_me: current value
: $ac_new_val" >&2;}
1757 ac_cache_corrupted=:
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1763 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1764 *) ac_arg=$ac_var=$ac_new_val ;;
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1772 if $ac_cache_corrupted; then
1773 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1774 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1775 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1776 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1777 { (exit 1); exit 1; }; }
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 ac_config_headers="$ac_config_headers pyconfig.h"
1816 if test "$prefix" != "/"; then
1817 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1825 # We don't use PACKAGE_ variables, and they cause conflicts
1826 # with other autoconf-based packages that include Python.h
1827 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1829 mv confdefs.h.new confdefs.h
1837 # The later defininition of _XOPEN_SOURCE disables certain features
1838 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1840 cat >>confdefs.h <<\_ACEOF
1841 #define _GNU_SOURCE 1
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1849 cat >>confdefs.h <<\_ACEOF
1850 #define _NETBSD_SOURCE 1
1854 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1855 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1858 cat >>confdefs.h <<\_ACEOF
1859 #define __BSD_VISIBLE 1
1863 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1864 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1866 cat >>confdefs.h <<\_ACEOF
1867 #define _BSD_TYPES 1
1871 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1872 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1875 cat >>confdefs.h <<\_ACEOF
1876 #define _DARWIN_C_SOURCE 1
1881 define_xopen_source=yes
1883 # Arguments passed to configure.
1885 CONFIG_ARGS="$ac_configure_args"
1887 # Check whether --enable-universalsdk was given.
1888 if test "${enable_universalsdk+set}" = set; then
1889 enableval=$enable_universalsdk;
1892 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1898 enable_universalsdk=
1901 UNIVERSALSDK=$enableval
1908 enable_universalsdk=
1917 UNIVERSAL_ARCHS="32-bit"
1918 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1919 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1921 # Check whether --with-universal-archs was given.
1922 if test "${with_universal_archs+set}" = set; then
1923 withval=$with_universal_archs;
1924 { echo "$as_me:$LINENO: result: $withval" >&5
1925 echo "${ECHO_T}$withval" >&6; }
1926 UNIVERSAL_ARCHS="$withval"
1930 { echo "$as_me:$LINENO: result: 32-bit" >&5
1931 echo "${ECHO_T}32-bit" >&6; }
1939 # Check whether --with-framework-name was given.
1940 if test "${with_framework_name+set}" = set; then
1941 withval=$with_framework_name;
1942 PYTHONFRAMEWORK=${withval}
1943 PYTHONFRAMEWORKDIR=${withval}.framework
1944 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1948 PYTHONFRAMEWORK=Python
1949 PYTHONFRAMEWORKDIR=Python.framework
1950 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1954 # Check whether --enable-framework was given.
1955 if test "${enable_framework+set}" = set; then
1956 enableval=$enable_framework;
1959 enableval=/Library/Frameworks
1964 PYTHONFRAMEWORKDIR=no-framework
1965 PYTHONFRAMEWORKPREFIX=
1966 PYTHONFRAMEWORKINSTALLDIR=
1967 FRAMEWORKINSTALLFIRST=
1968 FRAMEWORKINSTALLLAST=
1969 FRAMEWORKALTINSTALLFIRST=
1970 FRAMEWORKALTINSTALLLAST=
1971 if test "x${prefix}" = "xNONE"; then
1972 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1974 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1979 PYTHONFRAMEWORKPREFIX=$enableval
1980 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1981 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1982 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1983 if test "$UNIVERSAL_ARCHS" = "all"
1985 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1986 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1988 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1989 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1992 if test "x${prefix}" = "xNONE" ; then
1993 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1995 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1997 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1999 # Add files for Mac specific code to the list of output
2001 ac_config_files="$ac_config_files Mac/Makefile"
2003 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2005 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2007 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2009 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2016 PYTHONFRAMEWORKDIR=no-framework
2017 PYTHONFRAMEWORKPREFIX=
2018 PYTHONFRAMEWORKINSTALLDIR=
2019 FRAMEWORKINSTALLFIRST=
2020 FRAMEWORKINSTALLLAST=
2021 FRAMEWORKALTINSTALLFIRST=
2022 FRAMEWORKALTINSTALLLAST=
2023 if test "x${prefix}" = "xNONE" ; then
2024 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2026 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2030 if test "$UNIVERSAL_ARCHS" = "all"
2032 FRAMEWORKINSTALLLAST=update4wayuniversal
2033 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2050 ## AC_HELP_STRING(--with-dyld,
2051 ## Use (OpenStep|Rhapsody) dynamic linker))
2053 # Set name for machine-dependent library files
2055 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2056 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2057 if test -z "$MACHDEP"
2059 ac_sys_system=`uname
-s`
2060 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2061 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2062 ac_sys_release=`uname
-v`
2064 ac_sys_release=`uname
-r`
2066 ac_md_system=`echo $ac_sys_system |
2067 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2068 ac_md_release=`echo $ac_sys_release |
2069 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2070 MACHDEP="$ac_md_system$ac_md_release"
2073 cygwin*) MACHDEP="cygwin";;
2074 darwin*) MACHDEP="darwin";;
2075 atheos*) MACHDEP="atheos";;
2076 irix646) MACHDEP="irix6";;
2077 '') MACHDEP="unknown";;
2081 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2082 # disable features if it is defined, without any means to access these
2083 # features as extensions. For these systems, we skip the definition of
2084 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2085 # some feature, make sure there is no alternative way to access this
2086 # feature. Also, when using wildcards, make sure you have verified the
2087 # need for not defining _XOPEN_SOURCE on all systems matching the
2088 # wildcard, and that the wildcard does not include future systems
2089 # (which may remove their limitations).
2090 case $ac_sys_system/$ac_sys_release in
2091 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2092 # even though select is a POSIX function. Reported by J. Ribbens.
2093 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2094 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2095 define_xopen_source=no
2096 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2097 # also defined. This can be overridden by defining _BSD_SOURCE
2098 # As this has a different meaning on Linux, only define it on OpenBSD
2100 cat >>confdefs.h <<\_ACEOF
2101 #define _BSD_SOURCE 1
2105 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2106 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2108 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2109 define_xopen_source=no;;
2110 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2111 # of union __?sigval. Reported by Stuart Bishop.
2113 define_xopen_source=no;;
2114 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2115 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2116 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2117 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2118 define_xopen_source=no;;
2119 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2120 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2122 define_xopen_source=no;;
2123 # On FreeBSD 4, the math functions C89 does not cover are never defined
2124 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2126 define_xopen_source=no;;
2127 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2128 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2129 # identifies itself as Darwin/7.*
2130 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2131 # disables platform specific features beyond repair.
2132 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2133 # has no effect, don't bother defining them
2135 define_xopen_source=no;;
2136 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2137 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2138 # or has another value. By not (re)defining it, the defaults come in place.
2140 define_xopen_source=no;;
2142 if test `uname
-r` -eq 1; then
2143 define_xopen_source=no
2146 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2147 # defining NI_NUMERICHOST.
2149 define_xopen_source=no
2154 if test $define_xopen_source = yes
2156 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2157 # defined precisely as g++ defines it
2158 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2160 case $ac_sys_system/$ac_sys_release in
2161 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2163 cat >>confdefs.h <<\_ACEOF
2164 #define _XOPEN_SOURCE 500
2170 cat >>confdefs.h <<\_ACEOF
2171 #define _XOPEN_SOURCE 600
2177 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2178 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2179 # several APIs are not declared. Since this is also needed in some
2180 # cases for HP-UX, we define it globally.
2181 # except for Solaris 10, where it must not be defined,
2182 # as it implies XPG4.2
2183 case $ac_sys_system/$ac_sys_release in
2188 cat >>confdefs.h <<\_ACEOF
2189 #define _XOPEN_SOURCE_EXTENDED 1
2196 cat >>confdefs.h <<\_ACEOF
2197 #define _POSIX_C_SOURCE 200112L
2204 # SGI compilers allow the specification of the both the ABI and the
2205 # ISA on the command line. Depending on the values of these switches,
2206 # different and often incompatable code will be generated.
2208 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2209 # thus supply support for various ABI/ISA combinations. The MACHDEP
2210 # variable is also adjusted.
2213 if test ! -z "$SGI_ABI"
2216 LDFLAGS="$SGI_ABI $LDFLAGS"
2217 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2219 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2220 echo "${ECHO_T}$MACHDEP" >&6; }
2222 # And add extra plat-mac for darwin
2225 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2226 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2227 if test -z "$EXTRAPLATDIR"
2231 EXTRAPLATDIR="\$(PLATMACDIRS)"
2232 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2240 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2241 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2243 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2244 # it may influence the way we can build extensions, so distutils
2248 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2249 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2251 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2252 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2253 ac_sys_machine=`uname
-m`
2254 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2255 echo "${ECHO_T}$ac_sys_machine" >&6; }
2257 # checks for alternative programs
2259 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2260 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2261 # just to get things to compile and link. Users are free to override OPT
2262 # when running configure or make. The build should not break if they do.
2263 # BASECFLAGS should generally not be messed with, however.
2265 # XXX shouldn't some/most/all of this code be merged with the stuff later
2266 # on that fiddles with OPT and BASECFLAGS?
2267 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2268 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2270 # Check whether --with-gcc was given.
2271 if test "${with_gcc+set}" = set; then
2279 without_gcc=$withval;;
2283 case $ac_sys_system in
2287 case $BE_HOST_CPU in
2291 BASECFLAGS="$BASECFLAGS -export pragma"
2293 LDFLAGS="$LDFLAGS -nodup"
2301 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2302 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2303 { (exit 1); exit 1; }; }
2306 AR="\$(srcdir)/Modules/ar_beos"
2316 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2317 echo "${ECHO_T}$without_gcc" >&6; }
2319 # If the user switches compilers, we can't believe the cache
2320 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2322 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2323 (it is also a good idea to do 'make clean' before compiling)" >&5
2324 echo "$as_me: error: cached CC is different -- throw away $cache_file
2325 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2326 { (exit 1); exit 1; }; }
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 if test -n "$CC"; then
2343 ac_cv_prog_CC="$CC" # Let the user override the test.
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 if test -n "$CC"; then
2364 { echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6; }
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2373 if test -z "$ac_cv_prog_CC"; then
2375 # Extract the first word of "gcc", so it can be a program name with args.
2376 set dummy gcc; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_CC="gcc"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6; }
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2411 if test "x$ac_ct_CC" = x; then
2414 case $cross_compiling:$ac_tool_warned in
2416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&5
2419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422 ac_tool_warned=yes ;;
2430 if test -z "$CC"; then
2431 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}cc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="${ac_tool_prefix}cc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2471 if test -z "$CC"; then
2472 # Extract the first word of "cc", so it can be a program name with args.
2473 set dummy cc; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2491 ac_prog_rejected=yes
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 if test $ac_prog_rejected = yes; then
2503 # We found a bogon in the path, so make sure we never use it.
2504 set dummy $ac_cv_prog_CC
2506 if test $# != 0; then
2507 # We chose a different compiler from the bogus one.
2508 # However, it has the same basename, so the bogon will be chosen
2509 # first if we set CC to just the basename; use the full file name.
2511 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 if test -n "$ac_tool_prefix"; then
2529 for ac_prog in cl.exe
2531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 if test -n "$CC"; then
2560 { echo "$as_me:$LINENO: result: $CC" >&5
2561 echo "${ECHO_T}$CC" >&6; }
2563 { echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6; }
2568 test -n "$CC" && break
2571 if test -z "$CC"; then
2573 for ac_prog in cl.exe
2575 # Extract the first word of "$ac_prog", so it can be a program name with args.
2576 set dummy $ac_prog; ac_word=$2
2577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 if test -n "$ac_ct_CC"; then
2583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592 ac_cv_prog_ac_ct_CC="$ac_prog"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2603 if test -n "$ac_ct_CC"; then
2604 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2605 echo "${ECHO_T}$ac_ct_CC" >&6; }
2607 { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2612 test -n "$ac_ct_CC" && break
2615 if test "x$ac_ct_CC" = x; then
2618 case $cross_compiling:$ac_tool_warned in
2620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2621 whose name does not start with the host triplet. If you think this
2622 configuration is useful to you, please write to autoconf@gnu.org." >&5
2623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2626 ac_tool_warned=yes ;;
2635 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2636 See \`config.log
' for more details." >&5
2637 echo "$as_me: error: no acceptable C compiler found in \$PATH
2638 See \`config.log' for more details.
" >&2;}
2639 { (exit 1); exit 1; }; }
2641 # Provide some information about the compiler.
2642 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2643 ac_compiler=`set X $ac_compile; echo $2`
2644 { (ac_try="$ac_compiler --version >&5"
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_compiler --version >&5") 2>&5
2652 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2653 (exit $ac_status); }
2654 { (ac_try="$ac_compiler -v >&5"
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_compiler -v >&5") 2>&5
2662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2663 (exit $ac_status); }
2664 { (ac_try="$ac_compiler -V >&5"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compiler -V >&5") 2>&5
2672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2673 (exit $ac_status); }
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2690 ac_clean_files_save=$ac_clean_files
2691 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2692 # Try to create an executable without -o first, disregard a.out.
2693 # It will help us diagnose broken compilers, and finding out an intuition
2695 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2696 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2697 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2699 # List of possible output files, starting from the most likely.
2700 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2701 # only as a last resort. b.out is created by i960 compilers.
2702 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2704 # The IRIX 6 linker writes into existing files which may not be
2705 # executable, retaining their permissions. Remove them first so a
2706 # subsequent execution test works.
2708 for ac_file in $ac_files
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2717 if { (ac_try="$ac_link_default"
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_link_default") 2>&5
2725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2726 (exit $ac_status); }; then
2727 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2728 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2729 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2730 # so that the user can short-circuit this test for compilers unknown to
2732 for ac_file in $ac_files ''
2734 test -f "$ac_file" || continue
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2739 # We found the default executable, but exeext='' is most
2743 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2745 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747 # We set ac_cv_exeext here because the later test for it is not
2748 # safe: cross compilers may not add the suffix if given an `-o'
2749 # argument, so we may need to know it at that point already.
2750 # Even if this section looks crufty: it has the advantage of
2757 test "$ac_cv_exeext" = no && ac_cv_exeext=
2763 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2764 echo "${ECHO_T}$ac_file" >&6; }
2765 if test -z "$ac_file"; then
2766 echo "$as_me: failed program was
:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2769 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2770 See \
`config.log' for more details." >&5
2771 echo "$as_me: error: C compiler cannot create executables
2772 See \`config.log
' for more details." >&2;}
2773 { (exit 77); exit 77; }; }
2776 ac_exeext=$ac_cv_exeext
2778 # Check that the compiler produces executables we can run. If not, either
2779 # the compiler is broken, or we cross compile.
2780 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2781 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2782 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2783 # If not cross compiling, check that we can run a simple program.
2784 if test "$cross_compiling" != yes; then
2785 if { ac_try='.
/$ac_file'
2786 { (case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_try") 2>&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2797 if test "$cross_compiling" = maybe; then
2800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2801 If you meant to cross compile, use \`--host'.
2802 See \
`config.log' for more details." >&5
2803 echo "$as_me: error: cannot run C compiled programs.
2804 If you meant to cross compile, use \`--host'.
2805 See \`config.log' for more details.
" >&2;}
2806 { (exit 1); exit 1; }; }
2810 { echo "$as_me:$LINENO: result
: yes" >&5
2811 echo "${ECHO_T}yes" >&6; }
2813 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2814 ac_clean_files=$ac_clean_files_save
2815 # Check that the compiler produces executables we can run. If not, either
2816 # the compiler is broken, or we cross compile.
2817 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2818 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2819 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2820 echo "${ECHO_T}$cross_compiling" >&6; }
2822 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2823 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2824 if { (ac_try="$ac_link"
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_link") 2>&5
2832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2833 (exit $ac_status); }; then
2834 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2835 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2836 # work properly (i.e., refer to `conftest.exe'), while it won't with
2838 for ac_file in conftest.exe conftest conftest.*; do
2839 test -f "$ac_file" || continue
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2849 See \
`config.log' for more details." >&5
2850 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2851 See \`config.log
' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2855 rm -f conftest$ac_cv_exeext
2856 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2857 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2859 rm -f conftest.$ac_ext
2860 EXEEXT=$ac_cv_exeext
2862 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2863 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2864 if test "${ac_cv_objext+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 cat >conftest.$ac_ext <<_ACEOF
2870 cat confdefs.h >>conftest.$ac_ext
2871 cat >>conftest.$ac_ext <<_ACEOF
2872 /* end confdefs.h. */
2882 rm -f conftest.o conftest.obj
2883 if { (ac_try="$ac_compile"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compile") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 for ac_file in conftest.o conftest.obj conftest.*; do
2894 test -f "$ac_file" || continue;
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2897 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2902 echo "$as_me: failed program was:" >&5
2903 sed 's
/^
/|
/' conftest.$ac_ext >&5
2905 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2906 See \`config.log' for more details.
" >&5
2907 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2908 See \
`config.log' for more details." >&2;}
2909 { (exit 1); exit 1; }; }
2912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2914 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2915 echo "${ECHO_T}$ac_cv_objext" >&6; }
2916 OBJEXT=$ac_cv_objext
2918 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2919 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2920 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2945 *) ac_try_echo
=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>conftest.er1
2950 grep -v '^ *+' conftest.er1
>conftest.err
2952 cat conftest.err
>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } && {
2955 test -z "$ac_c_werror_flag" ||
2956 test ! -s conftest.err
2957 } && test -s conftest.
$ac_objext; then
2960 echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.
$ac_ext >&5
2966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2967 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2970 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2971 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2972 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2973 ac_test_CFLAGS
=${CFLAGS+set}
2974 ac_save_CFLAGS
=$CFLAGS
2975 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2976 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2977 if test "${ac_cv_prog_cc_g+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 ac_save_c_werror_flag
=$ac_c_werror_flag
2981 ac_c_werror_flag
=yes
2984 cat >conftest.
$ac_ext <<_ACEOF
2987 cat confdefs.h
>>conftest.
$ac_ext
2988 cat >>conftest.
$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2999 rm -f conftest.
$ac_objext
3000 if { (ac_try
="$ac_compile"
3002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
3008 grep -v '^ *+' conftest.er1 >conftest.err
3010 cat conftest.err >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); } && {
3013 test -z "$ac_c_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest.$ac_objext; then
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3041 *) ac_try_echo
=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3046 grep -v '^ *+' conftest.er1
>conftest.err
3048 cat conftest.err
>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } && {
3051 test -z "$ac_c_werror_flag" ||
3052 test ! -s conftest.err
3053 } && test -s conftest.
$ac_objext; then
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.
$ac_ext >&5
3059 ac_c_werror_flag
=$ac_save_c_werror_flag
3061 cat >conftest.
$ac_ext <<_ACEOF
3064 cat confdefs.h
>>conftest.
$ac_ext
3065 cat >>conftest.
$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3076 rm -f conftest.
$ac_objext
3077 if { (ac_try
="$ac_compile"
3079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_compile") 2>conftest.er1
3085 grep -v '^ *+' conftest.er1 >conftest.err
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } && {
3090 test -z "$ac_c_werror_flag" ||
3091 test ! -s conftest.err
3092 } && test -s conftest.$ac_objext; then
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 ac_c_werror_flag=$ac_save_c_werror_flag
3110 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3111 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3112 if test "$ac_test_CFLAGS" = set; then
3113 CFLAGS=$ac_save_CFLAGS
3114 elif test $ac_cv_prog_cc_g = yes; then
3115 if test "$GCC" = yes; then
3121 if test "$GCC" = yes; then
3127 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3128 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3129 if test "${ac_cv_prog_cc_c89+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 ac_cv_prog_cc_c89=no
3134 cat >conftest.$ac_ext <<_ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3142 #include <sys/types.h>
3143 #include <sys/stat.h>
3144 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3145 struct buf { int x; };
3146 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3147 static char *e (p, i)
3153 static char *f (char * (*g) (char **, int), char **p, ...)
3158 s = g (p, va_arg (v,int));
3163 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3164 function prototypes and stuff, but not '\xHH' hex character constants.
3165 These don't provoke an error unfortunately, instead are silently treated
3166 as 'x'. The following induces an error, until -std is added to get
3167 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3168 array size at least. It's necessary to write '\x00'==0 to get something
3169 that's true only with -std. */
3170 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3172 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3173 inside strings and character constants. */
3175 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3177 int test (int i, double x);
3178 struct s1 {int (*f) (int a);};
3179 struct s2 {int (*f) (double a);};
3180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3191 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3192 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3194 CC="$ac_save_CC $ac_arg"
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3199 *) ac_try_echo
=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3204 grep -v '^ *+' conftest.er1
>conftest.err
3206 cat conftest.err
>&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.
$ac_objext; then
3212 ac_cv_prog_cc_c89
=$ac_arg
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.
$ac_ext >&5
3220 rm -f core conftest.err conftest.
$ac_objext
3221 test "x$ac_cv_prog_cc_c89" != "xno" && break
3223 rm -f conftest.
$ac_ext
3228 case "x$ac_cv_prog_cc_c89" in
3230 { echo "$as_me:$LINENO: result: none needed" >&5
3231 echo "${ECHO_T}none needed" >&6; } ;;
3233 { echo "$as_me:$LINENO: result: unsupported" >&5
3234 echo "${ECHO_T}unsupported" >&6; } ;;
3236 CC
="$CC $ac_cv_prog_cc_c89"
3237 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3238 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3243 ac_cpp
='$CPP $CPPFLAGS'
3244 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3251 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3252 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3254 # Check whether --with-cxx_main was given.
3255 if test "${with_cxx_main+set}" = set; then
3256 withval
=$with_cxx_main;
3259 no
) with_cxx_main
=no
3261 yes) with_cxx_main
=yes
3263 *) with_cxx_main
=yes
3277 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3278 echo "${ECHO_T}$with_cxx_main" >&6; }
3284 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3285 set dummy g
++; ac_word
=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_path_CXX+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 for as_dir
in notfound
3300 test -z "$as_dir" && as_dir
=.
3301 for ac_exec_ext
in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3316 if test -n "$CXX"; then
3317 { echo "$as_me:$LINENO: result: $CXX" >&5
3318 echo "${ECHO_T}$CXX" >&6; }
3320 { echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6; }
3325 cc
) # Extract the first word of "c++", so it can be a program name with args.
3326 set dummy c
++; ac_word
=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_path_CXX+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3338 for as_dir
in notfound
3341 test -z "$as_dir" && as_dir
=.
3342 for ac_exec_ext
in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3357 if test -n "$CXX"; then
3358 { echo "$as_me:$LINENO: result: $CXX" >&5
3359 echo "${ECHO_T}$CXX" >&6; }
3361 { echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6; }
3367 if test "$CXX" = "notfound"
3374 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy
$ac_prog; ac_word
=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_CXX+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if test -n "$CXX"; then
3384 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir
=.
3391 for ac_exec_ext
in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_CXX
="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 if test -n "$CXX"; then
3405 { echo "$as_me:$LINENO: result: $CXX" >&5
3406 echo "${ECHO_T}$CXX" >&6; }
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3413 test -n "$CXX" && break
3415 test -n "$CXX" || CXX
="notfound"
3417 if test "$CXX" = "notfound"
3422 if test "$preset_cxx" != "$CXX"
3424 { echo "$as_me:$LINENO: WARNING:
3426 By default, distutils will build C++ extension modules with \"$CXX\".
3427 If this is not intended, then set CXX on the configure command line.
3429 echo "$as_me: WARNING:
3431 By default, distutils will build C++ extension modules with \"$CXX\".
3432 If this is not intended, then set CXX on the configure command line.
3437 # checks for UNIX variants that set C preprocessor variables
3440 ac_cpp
='$CPP $CPPFLAGS'
3441 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3444 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3445 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3446 # On Suns, sometimes $CPP names a directory.
3447 if test -n "$CPP" && test -d "$CPP"; then
3450 if test -z "$CPP"; then
3451 if test "${ac_cv_prog_CPP+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 # Double quotes because CPP needs to be expanded
3455 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3458 for ac_c_preproc_warn_flag
in '' yes
3460 # Use a header file that comes with gcc, so configuring glibc
3461 # with a fresh cross-compiler works.
3462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463 # <limits.h> exists even on freestanding compilers.
3464 # On the NeXT, cc -E runs the code through the compiler's parser,
3465 # not just through cpp. "Syntax error" is here to catch this case.
3466 cat >conftest.
$ac_ext <<_ACEOF
3469 cat confdefs.h
>>conftest.
$ac_ext
3470 cat >>conftest.
$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3473 # include <limits.h>
3475 # include <assert.h>
3479 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null && {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Broken: fails on valid input.
3504 rm -f conftest.err conftest.$ac_ext
3506 # OK, works on sane cases. Now check whether nonexistent headers
3507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <ac_nonexistent.h>
3516 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3519 *) ac_try_echo
=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3524 grep -v '^ *+' conftest.er1
>conftest.err
3526 cat conftest.err
>&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev
/null
&& {
3529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3530 test ! -s conftest.err
3532 # Broken: success on invalid input.
3535 echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.
$ac_ext >&5
3538 # Passes both tests.
3543 rm -f conftest.err conftest.
$ac_ext
3546 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3547 rm -f conftest.err conftest.
$ac_ext
3548 if $ac_preproc_ok; then
3560 { echo "$as_me:$LINENO: result: $CPP" >&5
3561 echo "${ECHO_T}$CPP" >&6; }
3563 for ac_c_preproc_warn_flag
in '' yes
3565 # Use a header file that comes with gcc, so configuring glibc
3566 # with a fresh cross-compiler works.
3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 # <limits.h> exists even on freestanding compilers.
3569 # On the NeXT, cc -E runs the code through the compiler's parser,
3570 # not just through cpp. "Syntax error" is here to catch this case.
3571 cat >conftest.
$ac_ext <<_ACEOF
3574 cat confdefs.h
>>conftest.
$ac_ext
3575 cat >>conftest.
$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3578 # include <limits.h>
3580 # include <assert.h>
3584 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3592 grep -v '^ *+' conftest.er1 >conftest.err
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } >/dev/null && {
3597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 # Broken: fails on valid input.
3609 rm -f conftest.err conftest.$ac_ext
3611 # OK, works on sane cases. Now check whether nonexistent headers
3612 # can be detected and how.
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <ac_nonexistent.h>
3621 if { (ac_try="$ac_cpp conftest.$ac_ext"
3623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3624 *) ac_try_echo
=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3629 grep -v '^ *+' conftest.er1
>conftest.err
3631 cat conftest.err
>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } >/dev
/null
&& {
3634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3637 # Broken: success on invalid input.
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3643 # Passes both tests.
3648 rm -f conftest.err conftest.
$ac_ext
3651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652 rm -f conftest.err conftest.
$ac_ext
3653 if $ac_preproc_ok; then
3656 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3657 See \`config.log' for more details." >&5
3658 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3659 See \`config.log' for more details." >&2;}
3660 { (exit 1); exit 1; }; }
3664 ac_cpp
='$CPP $CPPFLAGS'
3665 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3670 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3671 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 # Extract the first word of "grep ggrep" to use in msg output
3676 if test -z "$GREP"; then
3677 set dummy
grep ggrep
; ac_prog_name
=$2
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 ac_path_GREP_found
=false
3682 # Loop through the user's path and test for each of PROGNAME-LIST
3683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3684 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3687 test -z "$as_dir" && as_dir
=.
3688 for ac_prog
in grep ggrep
; do
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3691 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3692 # Check for GNU ac_path_GREP and select it if it is found.
3693 # Check for GNU $ac_path_GREP
3694 case `"$ac_path_GREP" --version 2>&1` in
3696 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3699 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 echo 'GREP' >> "conftest.nl"
3706 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3707 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3708 ac_count
=`expr $ac_count + 1`
3709 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_GREP
="$ac_path_GREP"
3712 ac_path_GREP_max
=$ac_count
3714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3717 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3721 $ac_path_GREP_found && break 3
3731 GREP
="$ac_cv_path_GREP"
3732 if test -z "$GREP"; then
3733 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3734 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3735 { (exit 1); exit 1; }; }
3739 ac_cv_path_GREP
=$GREP
3744 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3745 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3746 GREP
="$ac_cv_path_GREP"
3749 { echo "$as_me:$LINENO: checking for egrep" >&5
3750 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3751 if test "${ac_cv_path_EGREP+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3755 then ac_cv_path_EGREP
="$GREP -E"
3757 # Extract the first word of "egrep" to use in msg output
3758 if test -z "$EGREP"; then
3759 set dummy
egrep; ac_prog_name
=$2
3760 if test "${ac_cv_path_EGREP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 ac_path_EGREP_found
=false
3764 # Loop through the user's path and test for each of PROGNAME-LIST
3765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3766 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3769 test -z "$as_dir" && as_dir
=.
3770 for ac_prog
in egrep; do
3771 for ac_exec_ext
in '' $ac_executable_extensions; do
3772 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3773 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3774 # Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776 case `"$ac_path_EGREP" --version 2>&1` in
3778 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3781 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3789 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3790 ac_count
=`expr $ac_count + 1`
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP
="$ac_path_EGREP"
3794 ac_path_EGREP_max
=$ac_count
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3799 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3803 $ac_path_EGREP_found && break 3
3813 EGREP
="$ac_cv_path_EGREP"
3814 if test -z "$EGREP"; then
3815 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3816 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3817 { (exit 1); exit 1; }; }
3821 ac_cv_path_EGREP
=$EGREP
3827 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3828 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3829 EGREP
="$ac_cv_path_EGREP"
3833 { echo "$as_me:$LINENO: checking for AIX" >&5
3834 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3835 cat >conftest.
$ac_ext <<_ACEOF
3838 cat confdefs.h
>>conftest.
$ac_ext
3839 cat >>conftest.
$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3847 $EGREP "yes" >/dev
/null
2>&1; then
3848 { echo "$as_me:$LINENO: result: yes" >&5
3849 echo "${ECHO_T}yes" >&6; }
3850 cat >>confdefs.h
<<\_ACEOF
3851 #define _ALL_SOURCE 1
3855 { echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6; }
3862 # Check for unsupported systems
3863 case $ac_sys_system/$ac_sys_release in
3865 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3866 echo See README
for details.
3871 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3872 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3874 # Check whether --with-suffix was given.
3875 if test "${with_suffix+set}" = set; then
3876 withval
=$with_suffix;
3880 *) EXEEXT
=$withval;;
3884 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3885 echo "${ECHO_T}$EXEEXT" >&6; }
3887 # Test whether we're running on a non-case-sensitive system, in which
3888 # case we give a warning if no ext is given
3890 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3891 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3892 if test ! -d CaseSensitiveTestDir
; then
3893 mkdir CaseSensitiveTestDir
3896 if test -d casesensitivetestdir
3898 { echo "$as_me:$LINENO: result: yes" >&5
3899 echo "${ECHO_T}yes" >&6; }
3902 { echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6; }
3906 rmdir CaseSensitiveTestDir
3911 gcc
) CC
="$CC -D_HAVE_BSDI";;
3915 case $ac_sys_system in
3918 cc|
*/cc
) CC
="$CC -Ae";;
3922 cc
) CC
="$CC -Wl,-Bexport";;
3925 # Some functions have a prototype only with that define, e.g. confstr
3927 cat >>confdefs.h
<<\_ACEOF
3928 #define __EXTENSIONS__ 1
3936 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3937 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3938 if test -z "$LIBRARY"
3940 LIBRARY
='libpython$(VERSION).a'
3942 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3943 echo "${ECHO_T}$LIBRARY" >&6; }
3945 # LDLIBRARY is the name of the library to link against (as opposed to the
3946 # name of the library into which to insert object files). BLDLIBRARY is also
3947 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3948 # is blank as the main program is not linked directly against LDLIBRARY.
3949 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3950 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3951 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3952 # DLLLIBRARY is the shared (i.e., DLL) library.
3954 # RUNSHARED is used to run shared python without installed libraries
3956 # INSTSONAME is the name of the shared library that will be use to install
3957 # on the system - some systems like version suffix, others don't
3964 LDLIBRARY
="$LIBRARY"
3965 BLDLIBRARY
='$(LDLIBRARY)'
3966 INSTSONAME
='$(LDLIBRARY)'
3971 # LINKCC is the command that links the python executable -- default is $(CC).
3972 # If CXX is set, and if it is needed to link a main function that was
3973 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3974 # python might then depend on the C++ runtime
3975 # This is altered for AIX in order to build the export list before
3978 { echo "$as_me:$LINENO: checking LINKCC" >&5
3979 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3980 if test -z "$LINKCC"
3982 LINKCC
='$(PURIFY) $(MAINCC)'
3983 case $ac_sys_system in
3986 if test $ac_sys_release -ge 5 -o \
3987 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3990 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3992 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3994 # qcc must be used because the other compilers do not
3999 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4000 echo "${ECHO_T}$LINKCC" >&6; }
4002 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4003 # make sure we default having it set to "no": this is used by
4004 # distutils.unixccompiler to know if it should add --enable-new-dtags
4005 # to linker command lines, and failing to detect GNU ld simply results
4006 # in the same bahaviour as before.
4008 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4009 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4011 if test "$GCC" = yes; then
4012 ac_prog
=`$CC -print-prog-name=ld`
4014 case `"$ac_prog" -V 2>&1 < /dev/null` in
4020 { echo "$as_me:$LINENO: result: $GNULD" >&5
4021 echo "${ECHO_T}$GNULD" >&6; }
4023 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4024 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4025 # Check whether --enable-shared was given.
4026 if test "${enable_shared+set}" = set; then
4027 enableval
=$enable_shared;
4031 if test -z "$enable_shared"
4033 case $ac_sys_system in
4035 enable_shared
="yes";;
4037 enable_shared
="no";;
4040 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4041 echo "${ECHO_T}$enable_shared" >&6; }
4043 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4044 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4045 # Check whether --enable-profiling was given.
4046 if test "${enable_profiling+set}" = set; then
4047 enableval
=$enable_profiling; ac_save_cc
="$CC"
4049 if test "$cross_compiling" = yes; then
4050 ac_enable_profiling
="no"
4052 cat >conftest.
$ac_ext <<_ACEOF
4055 cat confdefs.h
>>conftest.
$ac_ext
4056 cat >>conftest.
$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 int main() { return 0; }
4060 rm -f conftest
$ac_exeext
4061 if { (ac_try
="$ac_link"
4063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_link") 2>&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4071 { (case "(($ac_try" in
4072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4073 *) ac_try_echo
=$ac_try;;
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_try") 2>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_enable_profiling
="yes"
4082 echo "$as_me: program exited with status $ac_status" >&5
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.
$ac_ext >&5
4087 ac_enable_profiling
="no"
4089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4096 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4097 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4099 case "$ac_enable_profiling" in
4101 BASECFLAGS
="-pg $BASECFLAGS"
4102 LDFLAGS
="-pg $LDFLAGS"
4106 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4107 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4109 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4110 # library that we build, but we do not want to link against it (we
4111 # will find it with a -framework option). For this reason there is an
4112 # extra variable BLDLIBRARY against which Python and the extension
4113 # modules are linked, BLDLIBRARY. This is normally the same as
4114 # LDLIBRARY, but empty for MacOSX framework builds.
4115 if test "$enable_framework"
4117 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4118 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4121 BLDLIBRARY
='$(LDLIBRARY)'
4124 # Other platforms follow
4125 if test $enable_shared = "yes"; then
4127 cat >>confdefs.h
<<\_ACEOF
4128 #define Py_ENABLE_SHARED 1
4131 case $ac_sys_system in
4133 LDLIBRARY
='libpython$(VERSION).so'
4136 LDLIBRARY
='libpython$(VERSION).dll.a'
4137 DLLLIBRARY
='libpython$(VERSION).dll'
4140 LDLIBRARY
='libpython$(VERSION).so'
4141 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4142 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4143 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4145 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4146 LDLIBRARY
='libpython$(VERSION).so'
4147 BLDLIBRARY
='-L. -lpython$(VERSION)'
4148 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4149 case $ac_sys_system in
4151 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4154 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4159 LDLIBRARY
='libpython$(VERSION).so'
4162 LDLIBRARY
='libpython$(VERSION).sl'
4165 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4166 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4169 LDLIBRARY
='libpython$(VERSION).so'
4170 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4171 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4174 LDLIBRARY
='libpython$(VERSION).so'
4175 BLDLIBRARY
='-L. -lpython$(VERSION)'
4176 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4179 LDLIBRARY
='libpython$(VERSION).dylib'
4180 BLDLIBRARY
='-L. -lpython$(VERSION)'
4181 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4185 else # shared is disabled
4186 case $ac_sys_system in
4188 BLDLIBRARY
='$(LIBRARY)'
4189 LDLIBRARY
='libpython$(VERSION).dll.a'
4194 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4195 echo "${ECHO_T}$LDLIBRARY" >&6; }
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4199 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4202 if test "${ac_cv_prog_RANLIB+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 if test -n "$RANLIB"; then
4206 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir
=.
4213 for ac_exec_ext
in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 RANLIB
=$ac_cv_prog_RANLIB
4226 if test -n "$RANLIB"; then
4227 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4228 echo "${ECHO_T}$RANLIB" >&6; }
4230 { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4236 if test -z "$ac_cv_prog_RANLIB"; then
4237 ac_ct_RANLIB
=$RANLIB
4238 # Extract the first word of "ranlib", so it can be a program name with args.
4239 set dummy ranlib
; ac_word
=$2
4240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4242 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if test -n "$ac_ct_RANLIB"; then
4246 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_exec_ext
in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4266 if test -n "$ac_ct_RANLIB"; then
4267 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4268 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4270 { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4274 if test "x$ac_ct_RANLIB" = x
; then
4277 case $cross_compiling:$ac_tool_warned in
4279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4280 whose name does not start with the host triplet. If you think this
4281 configuration is useful to you, please write to autoconf@gnu.org." >&5
4282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4283 whose name does not start with the host triplet. If you think this
4284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4285 ac_tool_warned
=yes ;;
4287 RANLIB
=$ac_ct_RANLIB
4290 RANLIB
="$ac_cv_prog_RANLIB"
4294 for ac_prog
in ar aal
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy
$ac_prog; ac_word
=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_AR+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$AR"; then
4304 ac_cv_prog_AR
="$AR" # Let the user override the test.
4306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir
=.
4311 for ac_exec_ext
in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_AR
="$ac_prog"
4314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 if test -n "$AR"; then
4325 { echo "$as_me:$LINENO: result: $AR" >&5
4326 echo "${ECHO_T}$AR" >&6; }
4328 { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4333 test -n "$AR" && break
4335 test -n "$AR" || AR
="ar"
4338 # tweak ARFLAGS only if the user didn't set it on the command line
4340 if test -z "$ARFLAGS"
4346 # Extract the first word of "svnversion", so it can be a program name with args.
4347 set dummy svnversion
; ac_word
=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 if test -n "$SVNVERSION"; then
4354 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4360 test -z "$as_dir" && as_dir
=.
4361 for ac_exec_ext
in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 ac_cv_prog_SVNVERSION
="found"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4374 SVNVERSION
=$ac_cv_prog_SVNVERSION
4375 if test -n "$SVNVERSION"; then
4376 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4377 echo "${ECHO_T}$SVNVERSION" >&6; }
4379 { echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6; }
4384 if test $SVNVERSION = found
4386 SVNVERSION
="svnversion \$(srcdir)"
4388 SVNVERSION
="echo Unversioned directory"
4393 # install -d does not work on BSDI or HP-UX
4394 if test -z "$INSTALL"
4396 INSTALL
="${srcdir}/install-sh -c"
4400 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4401 if test -f "$ac_dir/install-sh"; then
4403 ac_install_sh
="$ac_aux_dir/install-sh -c"
4405 elif test -f "$ac_dir/install.sh"; then
4407 ac_install_sh
="$ac_aux_dir/install.sh -c"
4409 elif test -f "$ac_dir/shtool"; then
4411 ac_install_sh
="$ac_aux_dir/shtool install -c"
4415 if test -z "$ac_aux_dir"; then
4416 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4417 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4418 { (exit 1); exit 1; }; }
4421 # These three variables are undocumented and unsupported,
4422 # and are intended to be withdrawn in a future Autoconf release.
4423 # They can cause serious problems if a builder's source tree is in a directory
4424 # whose full name contains unusual characters.
4425 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4426 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4427 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4430 # Find a good install program. We prefer a C program (faster),
4431 # so one script is as good as another. But avoid the broken or
4432 # incompatible versions:
4433 # SysV /etc/install, /usr/sbin/install
4434 # SunOS /usr/etc/install
4435 # IRIX /sbin/install
4437 # AmigaOS /C/install, which installs bootblocks on floppy discs
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # OS/2's system install, which has a completely different semantic
4442 # ./install, which can be erroneously created by make from ./install.sh.
4443 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4444 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4445 if test -z "$INSTALL"; then
4446 if test "${ac_cv_path_install+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir
=.
4454 # Account for people who put trailing slashes in PATH elements.
4456 .
/ | .
// |
/cC
/* | \
4457 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4458 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4461 # OSF1 and SCO ODT 3.0 have their own names for install.
4462 # Don't use installbsd from OSF since it installs stuff as root
4464 for ac_prog
in ginstall scoinst
install; do
4465 for ac_exec_ext
in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4467 if test $ac_prog = install &&
4468 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4469 # AIX install. It has an incompatible calling convention.
4471 elif test $ac_prog = install &&
4472 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4473 # program-specific install script used by HP pwplus--don't use.
4476 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4489 if test "${ac_cv_path_install+set}" = set; then
4490 INSTALL
=$ac_cv_path_install
4492 # As a last resort, use the slow shell script. Don't cache a
4493 # value for INSTALL within a source directory, because that will
4494 # break other packages using the cache if that directory is
4495 # removed, or if the value is a relative name.
4496 INSTALL
=$ac_install_sh
4499 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4500 echo "${ECHO_T}$INSTALL" >&6; }
4502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4503 # It thinks the first close brace ends the variable substitution.
4504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4508 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4511 # Not every filesystem supports hard links
4513 if test -z "$LN" ; then
4514 case $ac_sys_system in
4516 CYGWIN
*) LN
="ln -s";;
4517 atheos
*) LN
="ln -s";;
4522 # Check for --with-pydebug
4523 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4524 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4526 # Check whether --with-pydebug was given.
4527 if test "${with_pydebug+set}" = set; then
4528 withval
=$with_pydebug;
4529 if test "$withval" != no
4532 cat >>confdefs.h
<<\_ACEOF
4536 { echo "$as_me:$LINENO: result: yes" >&5
4537 echo "${ECHO_T}yes" >&6; };
4539 else { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4543 { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4548 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4549 # merged with this chunk of code?
4551 # Optimizer/debugger flags
4552 # ------------------------
4553 # (The following bit of code is complicated enough - please keep things
4554 # indented properly. Just pretend you're editing Python code. ;-)
4556 # There are two parallel sets of case statements below, one that checks to
4557 # see if OPT was set and one that does BASECFLAGS setting based upon
4558 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4561 # tweak OPT based on compiler and platform, only if the user didn't set
4562 # it on the command line
4568 if test "$CC" != 'g++' ; then
4569 STRICT_PROTO
="-Wstrict-prototypes"
4571 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4572 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4575 case $ac_cv_prog_cc_g in
4577 if test "$Py_DEBUG" = 'true' ; then
4578 # Optimization messes up debuggers, so turn it off for
4580 OPT
="-g -Wall $STRICT_PROTO"
4582 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4586 OPT
="-O3 -Wall $STRICT_PROTO"
4589 case $ac_sys_system in
4590 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4600 # The current (beta) Monterey compiler dies with optimizations
4601 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4602 case $ac_sys_system in
4612 # The -arch flags for universal builds on OSX
4613 UNIVERSAL_ARCH_FLAGS
=
4616 # tweak BASECFLAGS based on compiler and platform
4619 # Python violates C99 rules, by casting between incompatible
4620 # pointer types. GCC may generate bad code as a result of that,
4621 # so use -fno-strict-aliasing if supported.
4622 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4623 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4625 CC
="$CC -fno-strict-aliasing"
4626 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 if test "$cross_compiling" = yes; then
4630 ac_cv_no_strict_aliasing_ok
=no
4632 cat >conftest.
$ac_ext <<_ACEOF
4635 cat confdefs.h
>>conftest.
$ac_ext
4636 cat >>conftest.
$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 int main() { return 0; }
4640 rm -f conftest
$ac_exeext
4641 if { (ac_try
="$ac_link"
4643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_link") 2>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4651 { (case "(($ac_try" in
4652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4653 *) ac_try_echo
=$ac_try;;
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_try") 2>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 ac_cv_no_strict_aliasing_ok
=yes
4662 echo "$as_me: program exited with status $ac_status" >&5
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.
$ac_ext >&5
4667 ac_cv_no_strict_aliasing_ok
=no
4669 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4676 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4677 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4678 if test $ac_cv_no_strict_aliasing_ok = yes
4680 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4683 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4684 # support. Without this, treatment of subnormals doesn't follow
4686 case $ac_sys_machine in
4688 BASECFLAGS
="$BASECFLAGS -mieee"
4692 case $ac_sys_system in
4694 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4696 # is there any other compiler on Darwin besides gcc?
4698 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4699 # used to be here, but non-Apple gcc doesn't accept them.
4702 if test "${enable_universalsdk}"; then
4703 UNIVERSAL_ARCH_FLAGS
=""
4704 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4705 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4708 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4709 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4711 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4712 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4713 ARCH_RUN_32BIT
="arch -i386 -ppc"
4716 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4717 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4718 { (exit 1); exit 1; }; }
4723 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4724 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4725 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4726 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4730 # Calculate the right deployment target for this build.
4732 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4733 if test ${cur_target} '>' 10.2; then
4736 if test "${UNIVERSAL_ARCHS}" = "all"; then
4737 # Ensure that the default platform for a 4-way
4738 # universal build is OSX 10.5, that's the first
4739 # OS release where 4-way builds make sense.
4742 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4744 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4745 # environment with a value that is the same as what we'll use
4746 # in the Makefile to ensure that we'll get the same compiler
4747 # environment during configure and build time.
4748 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4749 export MACOSX_DEPLOYMENT_TARGET
4750 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4754 BASECFLAGS
="$BASECFLAGS -mieee"
4760 case $ac_sys_system in
4761 OpenUNIX
*|UnixWare
*)
4762 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4765 BASECFLAGS
="$BASECFLAGS -ieee -std"
4768 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4774 if test "$Py_DEBUG" = 'true'; then
4780 if test "$ac_arch_flags"
4782 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4785 # disable check for icc since it seems to pass, but generates a warning
4788 ac_cv_opt_olimit_ok
=no
4791 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4792 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4793 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 CC
="$CC -OPT:Olimit=0"
4798 if test "$cross_compiling" = yes; then
4799 ac_cv_opt_olimit_ok
=no
4801 cat >conftest.
$ac_ext <<_ACEOF
4804 cat confdefs.h
>>conftest.
$ac_ext
4805 cat >>conftest.
$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 int main() { return 0; }
4809 rm -f conftest
$ac_exeext
4810 if { (ac_try
="$ac_link"
4812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_link") 2>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4820 { (case "(($ac_try" in
4821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4822 *) ac_try_echo
=$ac_try;;
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_try") 2>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_opt_olimit_ok
=yes
4831 echo "$as_me: program exited with status $ac_status" >&5
4832 echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.
$ac_ext >&5
4836 ac_cv_opt_olimit_ok
=no
4838 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4845 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4846 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4847 if test $ac_cv_opt_olimit_ok = yes; then
4848 case $ac_sys_system in
4849 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4850 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4855 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4859 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4860 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4861 if test "${ac_cv_olimit_ok+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 CC
="$CC -Olimit 1500"
4866 if test "$cross_compiling" = yes; then
4869 cat >conftest.
$ac_ext <<_ACEOF
4872 cat confdefs.h
>>conftest.
$ac_ext
4873 cat >>conftest.
$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 int main() { return 0; }
4877 rm -f conftest
$ac_exeext
4878 if { (ac_try
="$ac_link"
4880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_link") 2>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4888 { (case "(($ac_try" in
4889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4890 *) ac_try_echo
=$ac_try;;
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_try") 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }; }; then
4899 echo "$as_me: program exited with status $ac_status" >&5
4900 echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.
$ac_ext >&5
4906 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4913 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4914 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4915 if test $ac_cv_olimit_ok = yes; then
4916 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4920 # Check whether GCC supports PyArg_ParseTuple format
4921 if test "$GCC" = "yes"
4923 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4924 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4926 CFLAGS
="$CFLAGS -Werror"
4927 cat >conftest.
$ac_ext <<_ACEOF
4930 cat confdefs.h
>>conftest.
$ac_ext
4931 cat >>conftest.
$ac_ext <<_ACEOF
4932 /* end confdefs.h. */
4934 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4944 rm -f conftest.
$ac_objext
4945 if { (ac_try
="$ac_compile"
4947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4951 (eval "$ac_compile") 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } && {
4958 test -z "$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 } && test -s conftest.$ac_objext; then
4962 cat >>confdefs.h <<\_ACEOF
4963 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4966 { echo "$as_me:$LINENO: result: yes" >&5
4967 echo "${ECHO_T}yes" >&6; }
4969 echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4972 { echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6; }
4977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 # On some compilers, pthreads are available without further options
4982 # (e.g. MacOS X). On some of these systems, the compiler will not
4983 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4984 # So we have to see first whether pthreads are available without
4985 # options before we can check whether -Kpthread improves anything.
4986 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4987 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4988 if test "${ac_cv_pthread_is_default+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 if test "$cross_compiling" = yes; then
4992 ac_cv_pthread_is_default=no
4994 cat >conftest.$ac_ext <<_ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5001 #include <pthread.h>
5003 void* routine(void* p){return NULL;}
5007 if(pthread_create(&p,NULL,routine,NULL)!=0)
5009 (void)pthread_detach(p);
5014 rm -f conftest$ac_exeext
5015 if { (ac_try="$ac_link"
5017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5018 *) ac_try_echo
=$ac_try;;
5020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5021 (eval "$ac_link") 2>&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5025 { (case "(($ac_try" in
5026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_try") 2>&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5035 ac_cv_pthread_is_default=yes
5040 echo "$as_me: program exited with status $ac_status" >&5
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5045 ac_cv_pthread_is_default=no
5047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5054 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5055 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5058 if test $ac_cv_pthread_is_default = yes
5062 # -Kpthread, if available, provides the right #defines
5063 # and linker options to make pthread_create available
5064 # Some compilers won't report that they do not support -Kpthread,
5065 # so we need to run a program to see whether it really made the
5066 # function available.
5067 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5068 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5069 if test "${ac_cv_kpthread+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 if test "$cross_compiling" = yes; then
5077 cat >conftest.$ac_ext <<_ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5084 #include <pthread.h>
5086 void* routine(void* p){return NULL;}
5090 if(pthread_create(&p,NULL,routine,NULL)!=0)
5092 (void)pthread_detach(p);
5097 rm -f conftest$ac_exeext
5098 if { (ac_try="$ac_link"
5100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5101 *) ac_try_echo
=$ac_try;;
5103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5104 (eval "$ac_link") 2>&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5108 { (case "(($ac_try" in
5109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5110 *) ac_try_echo=$ac_try;;
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_try") 2>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5119 echo "$as_me: program exited with status $ac_status" >&5
5120 echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5133 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5134 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5137 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5139 # -Kthread, if available, provides the right #defines
5140 # and linker options to make pthread_create available
5141 # Some compilers won't report that they do not support -Kthread,
5142 # so we need to run a program to see whether it really made the
5143 # function available.
5144 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5145 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5146 if test "${ac_cv_kthread+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 if test "$cross_compiling" = yes; then
5154 cat >conftest.$ac_ext <<_ACEOF
5157 cat confdefs.h >>conftest.$ac_ext
5158 cat >>conftest.$ac_ext <<_ACEOF
5159 /* end confdefs.h. */
5161 #include <pthread.h>
5163 void* routine(void* p){return NULL;}
5167 if(pthread_create(&p,NULL,routine,NULL)!=0)
5169 (void)pthread_detach(p);
5174 rm -f conftest$ac_exeext
5175 if { (ac_try="$ac_link"
5177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5178 *) ac_try_echo
=$ac_try;;
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181 (eval "$ac_link") 2>&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5185 { (case "(($ac_try" in
5186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_try") 2>&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5196 echo "$as_me: program exited with status $ac_status" >&5
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5210 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5211 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5214 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5216 # -pthread, if available, provides the right #defines
5217 # and linker options to make pthread_create available
5218 # Some compilers won't report that they do not support -pthread,
5219 # so we need to run a program to see whether it really made the
5220 # function available.
5221 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5222 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5223 if test "${ac_cv_thread+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 if test "$cross_compiling" = yes; then
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5238 #include <pthread.h>
5240 void* routine(void* p){return NULL;}
5244 if(pthread_create(&p,NULL,routine,NULL)!=0)
5246 (void)pthread_detach(p);
5251 rm -f conftest$ac_exeext
5252 if { (ac_try="$ac_link"
5254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5255 *) ac_try_echo
=$ac_try;;
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_link") 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5262 { (case "(($ac_try" in
5263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_try") 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5273 echo "$as_me: program exited with status $ac_status" >&5
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5287 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5288 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5291 # If we have set a CC compiler flag for thread support then
5292 # check if it works for CXX, too.
5296 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5297 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5300 if test "$ac_cv_kpthread" = "yes"
5302 CXX="$CXX -Kpthread"
5303 ac_cv_cxx_thread=yes
5304 elif test "$ac_cv_kthread" = "yes"
5307 ac_cv_cxx_thread=yes
5308 elif test "$ac_cv_pthread" = "yes"
5311 ac_cv_cxx_thread=yes
5314 if test $ac_cv_cxx_thread = yes
5316 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5317 $CXX -c conftest.$ac_ext 2>&5
5318 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5319 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5321 ac_cv_cxx_thread=yes
5327 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5328 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5333 # checks for header files
5334 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5335 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5336 if test "${ac_cv_header_stdc+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 cat >conftest.$ac_ext <<_ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5358 rm -f conftest.$ac_objext
5359 if { (ac_try="$ac_compile"
5361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5362 *) ac_try_echo
=$ac_try;;
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365 (eval "$ac_compile") 2>conftest.er1
5367 grep -v '^ *+' conftest.er1
>conftest.err
5369 cat conftest.err
>&5
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } && {
5372 test -z "$ac_c_werror_flag" ||
5373 test ! -s conftest.err
5374 } && test -s conftest.
$ac_objext; then
5375 ac_cv_header_stdc
=yes
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.
$ac_ext >&5
5380 ac_cv_header_stdc
=no
5383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5385 if test $ac_cv_header_stdc = yes; then
5386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5387 cat >conftest.
$ac_ext <<_ACEOF
5390 cat confdefs.h
>>conftest.
$ac_ext
5391 cat >>conftest.
$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5397 $EGREP "memchr" >/dev
/null
2>&1; then
5400 ac_cv_header_stdc
=no
5406 if test $ac_cv_header_stdc = yes; then
5407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5408 cat >conftest.
$ac_ext <<_ACEOF
5411 cat confdefs.h
>>conftest.
$ac_ext
5412 cat >>conftest.
$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5418 $EGREP "free" >/dev
/null
2>&1; then
5421 ac_cv_header_stdc
=no
5427 if test $ac_cv_header_stdc = yes; then
5428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5429 if test "$cross_compiling" = yes; then
5432 cat >conftest.
$ac_ext <<_ACEOF
5435 cat confdefs.h
>>conftest.
$ac_ext
5436 cat >>conftest.
$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5440 #if ((' ' & 0x0FF) == 0x020)
5441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5444 # define ISLOWER(c) \
5445 (('a' <= (c) && (c) <= 'i') \
5446 || ('j' <= (c) && (c) <= 'r') \
5447 || ('s' <= (c) && (c) <= 'z'))
5448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5456 for (i = 0; i < 256; i++)
5457 if (XOR (islower (i), ISLOWER (i))
5458 || toupper (i) != TOUPPER (i))
5463 rm -f conftest
$ac_exeext
5464 if { (ac_try
="$ac_link"
5466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_link") 2>&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5474 { (case "(($ac_try" in
5475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5476 *) ac_try_echo
=$ac_try;;
5478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_try") 2>&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5485 echo "$as_me: program exited with status $ac_status" >&5
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.
$ac_ext >&5
5490 ac_cv_header_stdc
=no
5492 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5498 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5499 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5500 if test $ac_cv_header_stdc = yes; then
5502 cat >>confdefs.h
<<\_ACEOF
5503 #define STDC_HEADERS 1
5508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5518 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5519 inttypes.h stdint.h unistd.h
5521 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5524 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 cat >conftest.
$ac_ext <<_ACEOF
5530 cat confdefs.h
>>conftest.
$ac_ext
5531 cat >>conftest.
$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 $ac_includes_default
5535 #include <$ac_header>
5537 rm -f conftest.
$ac_objext
5538 if { (ac_try
="$ac_compile"
5540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_compile") 2>conftest.er1
5546 grep -v '^ *+' conftest.er1 >conftest.err
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } && {
5551 test -z "$ac_c_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest.$ac_objext; then
5554 eval "$as_ac_Header=yes"
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5559 eval "$as_ac_Header=no"
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 ac_res=`eval echo '${'$as_ac_Header'}'`
5565 { echo "$as_me:$LINENO: result: $ac_res" >&5
5566 echo "${ECHO_T}$ac_res" >&6; }
5567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5568 cat >>confdefs.h <<_ACEOF
5569 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5631 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5633 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5634 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5636 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5637 sys/lock.h sys/mkdev.h sys/modem.h \
5638 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5639 sys/termio.h sys/time.h \
5640 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5641 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5642 bluetooth/bluetooth.h linux/tipc.h
5644 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 ac_res=`eval echo '${'$as_ac_Header'}'`
5652 { echo "$as_me:$LINENO: result: $ac_res" >&5
5653 echo "${ECHO_T}$ac_res" >&6; }
5655 # Is the header compilable?
5656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 $ac_includes_default
5665 #include <$ac_header>
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5671 *) ac_try_echo
=$ac_try;;
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5676 grep -v '^ *+' conftest.er1
>conftest.err
5678 cat conftest.err
>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.
$ac_objext; then
5684 ac_header_compiler
=yes
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.
$ac_ext >&5
5689 ac_header_compiler
=no
5692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5694 echo "${ECHO_T}$ac_header_compiler" >&6; }
5696 # Is the header present?
5697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5699 cat >conftest.
$ac_ext <<_ACEOF
5702 cat confdefs.h
>>conftest.
$ac_ext
5703 cat >>conftest.
$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <$ac_header>
5707 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5715 grep -v '^ *+' conftest.er1 >conftest.err
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev/null && {
5720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5721 test ! -s conftest.err
5723 ac_header_preproc=yes
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5728 ac_header_preproc=no
5731 rm -f conftest.err conftest.$ac_ext
5732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5733 echo "${ECHO_T}$ac_header_preproc" >&6; }
5735 # So? What about this header?
5736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5742 ac_header_preproc=yes
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5758 ## -------------------------------------- ##
5759 ## Report this to http://bugs.python.org/ ##
5760 ## -------------------------------------- ##
5762 ) | sed "s/^/$as_me: WARNING: /" >&2
5765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 eval "$as_ac_Header=\$ac_header_preproc"
5772 ac_res=`eval echo '${'$as_ac_Header'}'`
5773 { echo "$as_me:$LINENO: result: $ac_res" >&5
5774 echo "${ECHO_T}$ac_res" >&6; }
5777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5778 cat >>confdefs.h <<_ACEOF
5779 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5792 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5793 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5794 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5795 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <sys/types.h>
5817 rm -f conftest.$ac_objext
5818 if { (ac_try="$ac_compile"
5820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5821 *) ac_try_echo
=$ac_try;;
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_compile") 2>conftest.er1
5826 grep -v '^ *+' conftest.er1
>conftest.err
5828 cat conftest.err
>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } && {
5831 test -z "$ac_c_werror_flag" ||
5832 test ! -s conftest.err
5833 } && test -s conftest.
$ac_objext; then
5834 eval "$as_ac_Header=yes"
5836 echo "$as_me: failed program was:" >&5
5837 sed 's/^/| /' conftest.
$ac_ext >&5
5839 eval "$as_ac_Header=no"
5842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5844 ac_res
=`eval echo '${'$as_ac_Header'}'`
5845 { echo "$as_me:$LINENO: result: $ac_res" >&5
5846 echo "${ECHO_T}$ac_res" >&6; }
5847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5848 cat >>confdefs.h
<<_ACEOF
5849 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5852 ac_header_dirent
=$ac_hdr; break
5856 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5857 if test $ac_header_dirent = dirent.h
; then
5858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5860 if test "${ac_cv_search_opendir+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 ac_func_search_save_LIBS
=$LIBS
5864 cat >conftest.
$ac_ext <<_ACEOF
5867 cat confdefs.h
>>conftest.
$ac_ext
5868 cat >>conftest.
$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5871 /* Override any GCC internal prototype to avoid an error.
5872 Use char because int might match the return type of a GCC
5873 builtin and then its argument prototype would still apply. */
5886 for ac_lib
in '' dir
; do
5887 if test -z "$ac_lib"; then
5888 ac_res
="none required"
5891 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5893 rm -f conftest.
$ac_objext conftest
$ac_exeext
5894 if { (ac_try
="$ac_link"
5896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_link") 2>conftest.er1
5902 grep -v '^ *+' conftest.er1 >conftest.err
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } && {
5907 test -z "$ac_c_werror_flag" ||
5908 test ! -s conftest.err
5909 } && test -s conftest$ac_exeext &&
5910 $as_test_x conftest$ac_exeext; then
5911 ac_cv_search_opendir=$ac_res
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5921 if test "${ac_cv_search_opendir+set}" = set; then
5925 if test "${ac_cv_search_opendir+set}" = set; then
5928 ac_cv_search_opendir=no
5931 LIBS=$ac_func_search_save_LIBS
5933 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5934 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5935 ac_res=$ac_cv_search_opendir
5936 if test "$ac_res" != no; then
5937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5942 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5943 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5944 if test "${ac_cv_search_opendir+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 ac_func_search_save_LIBS=$LIBS
5948 cat >conftest.$ac_ext <<_ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5955 /* Override any GCC internal prototype to avoid an error.
5956 Use char because int might match the return type of a GCC
5957 builtin and then its argument prototype would still apply. */
5970 for ac_lib in '' x; do
5971 if test -z "$ac_lib"; then
5972 ac_res="none required"
5975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (ac_try="$ac_link"
5980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5981 *) ac_try_echo
=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_link") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1
>conftest.err
5988 cat conftest.err
>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest
$ac_exeext &&
5994 $as_test_x conftest
$ac_exeext; then
5995 ac_cv_search_opendir
=$ac_res
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.
$ac_ext >&5
6003 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6005 if test "${ac_cv_search_opendir+set}" = set; then
6009 if test "${ac_cv_search_opendir+set}" = set; then
6012 ac_cv_search_opendir
=no
6015 LIBS
=$ac_func_search_save_LIBS
6017 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6018 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6019 ac_res
=$ac_cv_search_opendir
6020 if test "$ac_res" != no
; then
6021 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6027 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6028 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6029 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6038 #include <sys/types.h>
6042 return makedev(0, 0);
6047 rm -f conftest.
$ac_objext conftest
$ac_exeext
6048 if { (ac_try
="$ac_link"
6050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_link") 2>conftest.er1
6056 grep -v '^ *+' conftest.er1 >conftest.err
6058 cat conftest.err >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } && {
6061 test -z "$ac_c_werror_flag" ||
6062 test ! -s conftest.err
6063 } && test -s conftest$ac_exeext &&
6064 $as_test_x conftest$ac_exeext; then
6065 ac_cv_header_sys_types_h_makedev=yes
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 ac_cv_header_sys_types_h_makedev=no
6073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6074 conftest$ac_exeext conftest.$ac_ext
6077 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6078 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6080 if test $ac_cv_header_sys_types_h_makedev = no; then
6081 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6082 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6083 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6084 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6088 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6090 # Is the header compilable?
6091 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6092 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6093 cat >conftest.$ac_ext <<_ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 $ac_includes_default
6100 #include <sys/mkdev.h>
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6106 *) ac_try_echo
=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_compile") 2>conftest.er1
6111 grep -v '^ *+' conftest.er1
>conftest.err
6113 cat conftest.err
>&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } && {
6116 test -z "$ac_c_werror_flag" ||
6117 test ! -s conftest.err
6118 } && test -s conftest.
$ac_objext; then
6119 ac_header_compiler
=yes
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.
$ac_ext >&5
6124 ac_header_compiler
=no
6127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6129 echo "${ECHO_T}$ac_header_compiler" >&6; }
6131 # Is the header present?
6132 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6133 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6134 cat >conftest.
$ac_ext <<_ACEOF
6137 cat confdefs.h
>>conftest.
$ac_ext
6138 cat >>conftest.
$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6140 #include <sys/mkdev.h>
6142 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6150 grep -v '^ *+' conftest.er1 >conftest.err
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } >/dev/null && {
6155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6156 test ! -s conftest.err
6158 ac_header_preproc=yes
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 ac_header_preproc=no
6166 rm -f conftest.err conftest.$ac_ext
6167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6168 echo "${ECHO_T}$ac_header_preproc" >&6; }
6170 # So? What about this header?
6171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6173 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6174 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6176 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6177 ac_header_preproc=yes
6180 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6181 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6183 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6185 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6187 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6189 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6191 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6193 ## -------------------------------------- ##
6194 ## Report this to http://bugs.python.org/ ##
6195 ## -------------------------------------- ##
6197 ) | sed "s/^/$as_me: WARNING: /" >&2
6200 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6201 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6202 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6207 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6208 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6211 if test $ac_cv_header_sys_mkdev_h = yes; then
6213 cat >>confdefs.h <<\_ACEOF
6214 #define MAJOR_IN_MKDEV 1
6221 if test $ac_cv_header_sys_mkdev_h = no; then
6222 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6223 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6224 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6225 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6229 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6231 # Is the header compilable?
6232 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6233 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 $ac_includes_default
6241 #include <sys/sysmacros.h>
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6247 *) ac_try_echo
=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1
>conftest.err
6254 cat conftest.err
>&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.
$ac_objext; then
6260 ac_header_compiler
=yes
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.
$ac_ext >&5
6265 ac_header_compiler
=no
6268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6270 echo "${ECHO_T}$ac_header_compiler" >&6; }
6272 # Is the header present?
6273 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6274 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6275 cat >conftest.
$ac_ext <<_ACEOF
6278 cat confdefs.h
>>conftest.
$ac_ext
6279 cat >>conftest.
$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #include <sys/sysmacros.h>
6283 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } >/dev/null && {
6296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6299 ac_header_preproc=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_header_preproc=no
6307 rm -f conftest.err conftest.$ac_ext
6308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6309 echo "${ECHO_T}$ac_header_preproc" >&6; }
6311 # So? What about this header?
6312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6314 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6315 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6316 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6317 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6318 ac_header_preproc=yes
6321 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6322 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6324 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6326 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6327 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6328 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6330 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6331 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6332 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6334 ## -------------------------------------- ##
6335 ## Report this to http://bugs.python.org/ ##
6336 ## -------------------------------------- ##
6338 ) | sed "s/^/$as_me: WARNING: /" >&2
6341 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6342 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6343 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6348 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6349 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6352 if test $ac_cv_header_sys_sysmacros_h = yes; then
6354 cat >>confdefs.h <<\_ACEOF
6355 #define MAJOR_IN_SYSMACROS 1
6365 # On Solaris, term.h requires curses.h
6367 for ac_header in term.h
6369 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 cat >conftest.$ac_ext <<_ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6382 #ifdef HAVE_CURSES_H
6387 #include <$ac_header>
6389 rm -f conftest.$ac_objext
6390 if { (ac_try="$ac_compile"
6392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6393 *) ac_try_echo
=$ac_try;;
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_compile") 2>conftest.er1
6398 grep -v '^ *+' conftest.er1
>conftest.err
6400 cat conftest.err
>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && {
6403 test -z "$ac_c_werror_flag" ||
6404 test ! -s conftest.err
6405 } && test -s conftest.
$ac_objext; then
6406 eval "$as_ac_Header=yes"
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.
$ac_ext >&5
6411 eval "$as_ac_Header=no"
6414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6416 ac_res
=`eval echo '${'$as_ac_Header'}'`
6417 { echo "$as_me:$LINENO: result: $ac_res" >&5
6418 echo "${ECHO_T}$ac_res" >&6; }
6419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6420 cat >>confdefs.h
<<_ACEOF
6421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6429 # On Linux, netlink.h requires asm/types.h
6431 for ac_header
in linux
/netlink.h
6433 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6434 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6436 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 cat >conftest.
$ac_ext <<_ACEOF
6442 cat confdefs.h
>>conftest.
$ac_ext
6443 cat >>conftest.
$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6446 #ifdef HAVE_ASM_TYPES_H
6447 #include <asm/types.h>
6449 #ifdef HAVE_SYS_SOCKET_H
6450 #include <sys/socket.h>
6454 #include <$ac_header>
6456 rm -f conftest.
$ac_objext
6457 if { (ac_try
="$ac_compile"
6459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6463 (eval "$ac_compile") 2>conftest.er1
6465 grep -v '^ *+' conftest.er1 >conftest.err
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } && {
6470 test -z "$ac_c_werror_flag" ||
6471 test ! -s conftest.err
6472 } && test -s conftest.$ac_objext; then
6473 eval "$as_ac_Header=yes"
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 eval "$as_ac_Header=no"
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 ac_res=`eval echo '${'$as_ac_Header'}'`
6484 { echo "$as_me:$LINENO: result: $ac_res" >&5
6485 echo "${ECHO_T}$ac_res" >&6; }
6486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6487 cat >>confdefs.h <<_ACEOF
6488 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6496 # checks for typedefs
6498 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6499 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6500 cat >conftest.$ac_ext <<_ACEOF
6503 cat confdefs.h >>conftest.$ac_ext
6504 cat >>conftest.$ac_ext <<_ACEOF
6505 /* end confdefs.h. */
6509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510 $EGREP "clock_t" >/dev/null 2>&1; then
6515 cat >>confdefs.h <<\_ACEOF
6516 #define clock_t long
6523 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6524 echo "${ECHO_T}$was_it_defined" >&6; }
6526 # Check whether using makedev requires defining _OSF_SOURCE
6527 { echo "$as_me:$LINENO: checking for makedev" >&5
6528 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6529 cat >conftest.$ac_ext <<_ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6535 #include <sys/types.h>
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (ac_try="$ac_link"
6547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6548 *) ac_try_echo
=$ac_try;;
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_link") 2>conftest.er1
6553 grep -v '^ *+' conftest.er1
>conftest.err
6555 cat conftest.err
>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest
$ac_exeext &&
6561 $as_test_x conftest
$ac_exeext; then
6562 ac_cv_has_makedev
=yes
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.
$ac_ext >&5
6567 ac_cv_has_makedev
=no
6570 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6571 conftest
$ac_exeext conftest.
$ac_ext
6572 if test "$ac_cv_has_makedev" = "no"; then
6573 # we didn't link, try if _OSF_SOURCE will allow us to link
6574 cat >conftest.
$ac_ext <<_ACEOF
6577 cat confdefs.h
>>conftest.
$ac_ext
6578 cat >>conftest.
$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6581 #define _OSF_SOURCE 1
6582 #include <sys/types.h>
6592 rm -f conftest.
$ac_objext conftest
$ac_exeext
6593 if { (ac_try
="$ac_link"
6595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_link") 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest$ac_exeext &&
6609 $as_test_x conftest$ac_exeext; then
6610 ac_cv_has_makedev=yes
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_cv_has_makedev=no
6618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6619 conftest$ac_exeext conftest.$ac_ext
6620 if test "$ac_cv_has_makedev" = "yes"; then
6622 cat >>confdefs.h <<\_ACEOF
6623 #define _OSF_SOURCE 1
6628 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6629 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6630 if test "$ac_cv_has_makedev" = "yes"; then
6632 cat >>confdefs.h <<\_ACEOF
6633 #define HAVE_MAKEDEV 1
6638 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6639 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6640 # defined, but the compiler does not support pragma redefine_extname,
6641 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6642 # structures (such as rlimit64) without declaring them. As a
6643 # work-around, disable LFS on such configurations
6646 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6647 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6655 #define _LARGEFILE_SOURCE 1
6656 #define _FILE_OFFSET_BITS 64
6657 #include <sys/resource.h>
6667 rm -f conftest.$ac_objext
6668 if { (ac_try="$ac_compile"
6670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6671 *) ac_try_echo
=$ac_try;;
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_compile") 2>conftest.er1
6676 grep -v '^ *+' conftest.er1
>conftest.err
6678 cat conftest.err
>&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } && {
6681 test -z "$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6683 } && test -s conftest.
$ac_objext; then
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.
$ac_ext >&5
6692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6693 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6694 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6695 if test "$sol_lfs_bug" = "yes"; then
6699 if test "$use_lfs" = "yes"; then
6700 # Two defines needed to enable largefile support on various platforms
6701 # These may affect some typedefs
6703 cat >>confdefs.h
<<\_ACEOF
6704 #define _LARGEFILE_SOURCE 1
6708 cat >>confdefs.h
<<\_ACEOF
6709 #define _FILE_OFFSET_BITS 64
6714 # Add some code to confdefs.h so that the test for off_t works on SCO
6715 cat >> confdefs.h
<<\EOF
6721 # Type availability checks
6722 { echo "$as_me:$LINENO: checking for mode_t" >&5
6723 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6724 if test "${ac_cv_type_mode_t+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 cat >conftest.
$ac_ext <<_ACEOF
6730 cat confdefs.h
>>conftest.
$ac_ext
6731 cat >>conftest.
$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6733 $ac_includes_default
6734 typedef mode_t ac__type_new_;
6738 if ((ac__type_new_ *) 0)
6740 if (sizeof (ac__type_new_))
6746 rm -f conftest.
$ac_objext
6747 if { (ac_try
="$ac_compile"
6749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_compile") 2>conftest.er1
6755 grep -v '^ *+' conftest.er1 >conftest.err
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } && {
6760 test -z "$ac_c_werror_flag" ||
6761 test ! -s conftest.err
6762 } && test -s conftest.$ac_objext; then
6763 ac_cv_type_mode_t=yes
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6768 ac_cv_type_mode_t=no
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6774 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6775 if test $ac_cv_type_mode_t = yes; then
6779 cat >>confdefs.h <<_ACEOF
6785 { echo "$as_me:$LINENO: checking for off_t" >&5
6786 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6787 if test "${ac_cv_type_off_t+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 cat >conftest.$ac_ext <<_ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 $ac_includes_default
6797 typedef off_t ac__type_new_;
6801 if ((ac__type_new_ *) 0)
6803 if (sizeof (ac__type_new_))
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6813 *) ac_try_echo
=$ac_try;;
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1
>conftest.err
6820 cat conftest.err
>&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.
$ac_objext; then
6826 ac_cv_type_off_t
=yes
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.
$ac_ext >&5
6834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6836 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6837 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6838 if test $ac_cv_type_off_t = yes; then
6842 cat >>confdefs.h
<<_ACEOF
6843 #define off_t long int
6848 { echo "$as_me:$LINENO: checking for pid_t" >&5
6849 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6850 if test "${ac_cv_type_pid_t+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6853 cat >conftest.
$ac_ext <<_ACEOF
6856 cat confdefs.h
>>conftest.
$ac_ext
6857 cat >>conftest.
$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 $ac_includes_default
6860 typedef pid_t ac__type_new_;
6864 if ((ac__type_new_ *) 0)
6866 if (sizeof (ac__type_new_))
6872 rm -f conftest.
$ac_objext
6873 if { (ac_try
="$ac_compile"
6875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6876 *) ac_try_echo=$ac_try;;
6878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6881 grep -v '^ *+' conftest.er1 >conftest.err
6883 cat conftest.err >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 ac_cv_type_pid_t=yes
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6900 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6901 if test $ac_cv_type_pid_t = yes; then
6905 cat >>confdefs.h <<_ACEOF
6911 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6912 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6913 if test "${ac_cv_type_signal+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 cat >conftest.$ac_ext <<_ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 #include <sys/types.h>
6928 return *(signal (0, 0)) (0) == 1;
6933 rm -f conftest.$ac_objext
6934 if { (ac_try="$ac_compile"
6936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6937 *) ac_try_echo
=$ac_try;;
6939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940 (eval "$ac_compile") 2>conftest.er1
6942 grep -v '^ *+' conftest.er1
>conftest.err
6944 cat conftest.err
>&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } && {
6947 test -z "$ac_c_werror_flag" ||
6948 test ! -s conftest.err
6949 } && test -s conftest.
$ac_objext; then
6950 ac_cv_type_signal
=int
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.
$ac_ext >&5
6955 ac_cv_type_signal
=void
6958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6960 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6961 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6963 cat >>confdefs.h
<<_ACEOF
6964 #define RETSIGTYPE $ac_cv_type_signal
6968 { echo "$as_me:$LINENO: checking for size_t" >&5
6969 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6970 if test "${ac_cv_type_size_t+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 cat >conftest.
$ac_ext <<_ACEOF
6976 cat confdefs.h
>>conftest.
$ac_ext
6977 cat >>conftest.
$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 $ac_includes_default
6980 typedef size_t ac__type_new_;
6984 if ((ac__type_new_ *) 0)
6986 if (sizeof (ac__type_new_))
6992 rm -f conftest.
$ac_objext
6993 if { (ac_try
="$ac_compile"
6995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999 (eval "$ac_compile") 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } && {
7006 test -z "$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7008 } && test -s conftest.$ac_objext; then
7009 ac_cv_type_size_t=yes
7011 echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 ac_cv_type_size_t=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7020 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7021 if test $ac_cv_type_size_t = yes; then
7025 cat >>confdefs.h <<_ACEOF
7026 #define size_t unsigned int
7031 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7032 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7033 if test "${ac_cv_type_uid_t+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <sys/types.h>
7045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7046 $EGREP "uid_t" >/dev/null 2>&1; then
7047 ac_cv_type_uid_t=yes
7054 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7055 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7056 if test $ac_cv_type_uid_t = no; then
7058 cat >>confdefs.h <<\_ACEOF
7063 cat >>confdefs.h <<\_ACEOF
7070 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7071 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7072 if test "${ac_cv_c_uint32_t+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7077 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7078 cat >conftest.$ac_ext <<_ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 $ac_includes_default
7088 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7095 rm -f conftest.$ac_objext
7096 if { (ac_try="$ac_compile"
7098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7099 *) ac_try_echo
=$ac_try;;
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_compile") 2>conftest.er1
7104 grep -v '^ *+' conftest.er1
>conftest.err
7106 cat conftest.err
>&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } && {
7109 test -z "$ac_c_werror_flag" ||
7110 test ! -s conftest.err
7111 } && test -s conftest.
$ac_objext; then
7113 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7114 *) ac_cv_c_uint32_t
=$ac_type ;;
7118 echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.
$ac_ext >&5
7124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7125 test "$ac_cv_c_uint32_t" != no
&& break
7128 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7129 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7130 case $ac_cv_c_uint32_t in #(
7134 cat >>confdefs.h
<<\_ACEOF
7139 cat >>confdefs.h
<<_ACEOF
7140 #define uint32_t $ac_cv_c_uint32_t
7146 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7147 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7148 if test "${ac_cv_c_uint64_t+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7153 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7154 cat >conftest.
$ac_ext <<_ACEOF
7157 cat confdefs.h
>>conftest.
$ac_ext
7158 cat >>conftest.
$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 $ac_includes_default
7164 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7171 rm -f conftest.
$ac_objext
7172 if { (ac_try
="$ac_compile"
7174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_compile") 2>conftest.er1
7180 grep -v '^ *+' conftest.er1 >conftest.err
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
7189 uint64_t) ac_cv_c_uint64_t=yes ;;
7190 *) ac_cv_c_uint64_t=$ac_type ;;
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 test "$ac_cv_c_uint64_t" != no && break
7204 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7205 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7206 case $ac_cv_c_uint64_t in #(
7210 cat >>confdefs.h <<\_ACEOF
7215 cat >>confdefs.h <<_ACEOF
7216 #define uint64_t $ac_cv_c_uint64_t
7222 { echo "$as_me:$LINENO: checking for int32_t" >&5
7223 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7224 if test "${ac_cv_c_int32_t+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 for ac_type in 'int32_t' 'int' 'long int' \
7229 'long long int' 'short int' 'signed char'; do
7230 cat >conftest.$ac_ext <<_ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 $ac_includes_default
7240 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7251 *) ac_try_echo
=$ac_try;;
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7256 grep -v '^ *+' conftest.er1
>conftest.err
7258 cat conftest.err
>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.
$ac_objext; then
7264 cat >conftest.
$ac_ext <<_ACEOF
7267 cat confdefs.h
>>conftest.
$ac_ext
7268 cat >>conftest.
$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 $ac_includes_default
7274 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7275 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7282 rm -f conftest.
$ac_objext
7283 if { (ac_try
="$ac_compile"
7285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_compile") 2>conftest.er1
7291 grep -v '^ *+' conftest.er1 >conftest.err
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } && {
7296 test -z "$ac_c_werror_flag" ||
7297 test ! -s conftest.err
7298 } && test -s conftest.$ac_objext; then
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7305 int32_t) ac_cv_c_int32_t=yes ;;
7306 *) ac_cv_c_int32_t=$ac_type ;;
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320 test "$ac_cv_c_int32_t" != no && break
7323 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7324 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7325 case $ac_cv_c_int32_t in #(
7329 cat >>confdefs.h <<_ACEOF
7330 #define int32_t $ac_cv_c_int32_t
7336 { echo "$as_me:$LINENO: checking for int64_t" >&5
7337 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7338 if test "${ac_cv_c_int64_t+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 for ac_type in 'int64_t' 'int' 'long int' \
7343 'long long int' 'short int' 'signed char'; do
7344 cat >conftest.$ac_ext <<_ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 $ac_includes_default
7354 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7361 rm -f conftest.$ac_objext
7362 if { (ac_try="$ac_compile"
7364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7365 *) ac_try_echo
=$ac_try;;
7367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7368 (eval "$ac_compile") 2>conftest.er1
7370 grep -v '^ *+' conftest.er1
>conftest.err
7372 cat conftest.err
>&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && {
7375 test -z "$ac_c_werror_flag" ||
7376 test ! -s conftest.err
7377 } && test -s conftest.
$ac_objext; then
7378 cat >conftest.
$ac_ext <<_ACEOF
7381 cat confdefs.h
>>conftest.
$ac_ext
7382 cat >>conftest.
$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7388 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7389 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7396 rm -f conftest.
$ac_objext
7397 if { (ac_try
="$ac_compile"
7399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7405 grep -v '^ *+' conftest.er1 >conftest.err
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && {
7410 test -z "$ac_c_werror_flag" ||
7411 test ! -s conftest.err
7412 } && test -s conftest.$ac_objext; then
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7419 int64_t) ac_cv_c_int64_t=yes ;;
7420 *) ac_cv_c_int64_t=$ac_type ;;
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 test "$ac_cv_c_int64_t" != no && break
7437 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7438 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7439 case $ac_cv_c_int64_t in #(
7443 cat >>confdefs.h <<_ACEOF
7444 #define int64_t $ac_cv_c_int64_t
7449 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7450 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7451 if test "${ac_cv_type_ssize_t+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 $ac_includes_default
7461 typedef ssize_t ac__type_new_;
7465 if ((ac__type_new_ *) 0)
7467 if (sizeof (ac__type_new_))
7473 rm -f conftest.$ac_objext
7474 if { (ac_try="$ac_compile"
7476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7477 *) ac_try_echo
=$ac_try;;
7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480 (eval "$ac_compile") 2>conftest.er1
7482 grep -v '^ *+' conftest.er1
>conftest.err
7484 cat conftest.err
>&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } && {
7487 test -z "$ac_c_werror_flag" ||
7488 test ! -s conftest.err
7489 } && test -s conftest.
$ac_objext; then
7490 ac_cv_type_ssize_t
=yes
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.
$ac_ext >&5
7495 ac_cv_type_ssize_t
=no
7498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7500 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7501 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7502 if test $ac_cv_type_ssize_t = yes; then
7504 cat >>confdefs.h
<<\_ACEOF
7505 #define HAVE_SSIZE_T 1
7511 # Sizes of various common basic types
7512 # ANSI C requires sizeof(char) == 1, so no need to check it
7513 { echo "$as_me:$LINENO: checking for int" >&5
7514 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7515 if test "${ac_cv_type_int+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 cat >conftest.
$ac_ext <<_ACEOF
7521 cat confdefs.h
>>conftest.
$ac_ext
7522 cat >>conftest.
$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7525 typedef int ac__type_new_;
7529 if ((ac__type_new_ *) 0)
7531 if (sizeof (ac__type_new_))
7537 rm -f conftest.
$ac_objext
7538 if { (ac_try
="$ac_compile"
7540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544 (eval "$ac_compile") 2>conftest.er1
7546 grep -v '^ *+' conftest.er1 >conftest.err
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest.$ac_objext; then
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7565 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7567 # The cast to long int works around a bug in the HP C Compiler
7568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7569 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7570 # This bug is HP SR number 8606223364.
7571 { echo "$as_me:$LINENO: checking size of int" >&5
7572 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7573 if test "${ac_cv_sizeof_int+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 if test "$cross_compiling" = yes; then
7577 # Depending upon the size, compute the lo and hi bounds.
7578 cat >conftest.$ac_ext <<_ACEOF
7581 cat confdefs.h >>conftest.$ac_ext
7582 cat >>conftest.$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7584 $ac_includes_default
7585 typedef int ac__type_sizeof_;
7589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7596 rm -f conftest.$ac_objext
7597 if { (ac_try="$ac_compile"
7599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600 *) ac_try_echo=$ac_try;;
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603 (eval "$ac_compile") 2>conftest.er1
7605 grep -v '^
*+' conftest.er1 >conftest.err
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } && {
7610 test -z "$ac_c_werror_flag" ||
7611 test ! -s conftest.err
7612 } && test -s conftest.$ac_objext; then
7615 cat >conftest.$ac_ext <<_ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 $ac_includes_default
7622 typedef int ac__type_sizeof_;
7626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7633 rm -f conftest.$ac_objext
7634 if { (ac_try="$ac_compile"
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_compile") 2>conftest.er1
7642 grep -v '^
*+' conftest.er1 >conftest.err
7644 cat conftest.err >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); } && {
7647 test -z "$ac_c_werror_flag" ||
7648 test ! -s conftest.err
7649 } && test -s conftest.$ac_objext; then
7650 ac_hi=$ac_mid; break
7652 echo "$as_me: failed program was:" >&5
7653 sed 's
/^
/|
/' conftest.$ac_ext >&5
7655 ac_lo=`expr $ac_mid + 1`
7656 if test $ac_lo -le $ac_mid; then
7660 ac_mid=`expr 2 '*' $ac_mid + 1`
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 echo "$as_me: failed program was:" >&5
7667 sed 's
/^
/|
/' conftest.$ac_ext >&5
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7676 typedef int ac__type_sizeof_;
7680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7687 rm -f conftest.$ac_objext
7688 if { (ac_try="$ac_compile"
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
7696 grep -v '^
*+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.$ac_objext; then
7706 cat >conftest.$ac_ext <<_ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7713 typedef int ac__type_sizeof_;
7717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7724 rm -f conftest.$ac_objext
7725 if { (ac_try="$ac_compile"
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731 (eval "$ac_compile") 2>conftest.er1
7733 grep -v '^
*+' conftest.er1 >conftest.err
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && {
7738 test -z "$ac_c_werror_flag" ||
7739 test ! -s conftest.err
7740 } && test -s conftest.$ac_objext; then
7741 ac_lo=$ac_mid; break
7743 echo "$as_me: failed program was:" >&5
7744 sed 's
/^
/|
/' conftest.$ac_ext >&5
7746 ac_hi=`expr '(' $ac_mid ')' - 1`
7747 if test $ac_mid -le $ac_hi; then
7751 ac_mid=`expr 2 '*' $ac_mid`
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 echo "$as_me: failed program was:" >&5
7758 sed 's
/^
/|
/' conftest.$ac_ext >&5
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 # Binary search between lo and hi bounds.
7768 while test "x$ac_lo" != "x$ac_hi"; do
7769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7777 typedef int ac__type_sizeof_;
7781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7788 rm -f conftest.$ac_objext
7789 if { (ac_try="$ac_compile"
7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_compile") 2>conftest.er1
7797 grep -v '^
*+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest.$ac_objext; then
7807 echo "$as_me: failed program was:" >&5
7808 sed 's
/^
/|
/' conftest.$ac_ext >&5
7810 ac_lo=`expr '(' $ac_mid ')' + 1`
7813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 ?*) ac_cv_sizeof_int=$ac_lo;;
7817 '') if test "$ac_cv_type_int" = yes; then
7818 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7819 See \`config.log' for more details.
" >&5
7820 echo "$as_me: error
: cannot compute sizeof
(int
)
7821 See \
`config.log' for more details." >&2;}
7822 { (exit 77); exit 77; }; }
7828 cat >conftest.$ac_ext <<_ACEOF
7831 cat confdefs.h >>conftest.$ac_ext
7832 cat >>conftest.$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 $ac_includes_default
7835 typedef int ac__type_sizeof_;
7836 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7837 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7844 FILE *f = fopen ("conftest.val", "w");
7847 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7849 long int i = longval ();
7850 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7852 fprintf (f, "%ld\n", i);
7856 unsigned long int i = ulongval ();
7857 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7859 fprintf (f, "%lu\n", i);
7861 return ferror (f) || fclose (f) != 0;
7867 rm -f conftest$ac_exeext
7868 if { (ac_try="$ac_link"
7870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7871 *) ac_try_echo
=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7878 { (case "(($ac_try" in
7879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7887 ac_cv_sizeof_int=`cat conftest.val
`
7889 echo "$as_me: program exited with status $ac_status" >&5
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7894 if test "$ac_cv_type_int" = yes; then
7895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7896 See \`config.log
' for more details." >&5
7897 echo "$as_me: error: cannot compute sizeof (int)
7898 See \`config.log' for more details.
" >&2;}
7899 { (exit 77); exit 77; }; }
7904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7908 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7909 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7913 cat >>confdefs.h <<_ACEOF
7914 #define SIZEOF_INT $ac_cv_sizeof_int
7918 { echo "$as_me:$LINENO: checking
for long
" >&5
7919 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7920 if test "${ac_cv_type_long+set}" = set; then
7921 echo $ECHO_N "(cached
) $ECHO_C" >&6
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 $ac_includes_default
7930 typedef long ac__type_new_;
7934 if ((ac__type_new_ *) 0)
7936 if (sizeof (ac__type_new_))
7942 rm -f conftest.$ac_objext
7943 if { (ac_try="$ac_compile"
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_compile") 2>conftest.er1
7951 grep -v '^ *+' conftest.er1 >conftest.err
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7955 (exit $ac_status); } && {
7956 test -z "$ac_c_werror_flag" ||
7957 test ! -s conftest.err
7958 } && test -s conftest.$ac_objext; then
7961 echo "$as_me: failed program was
:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7970 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7972 # The cast to long int works around a bug in the HP C Compiler
7973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7975 # This bug is HP SR number 8606223364.
7976 { echo "$as_me:$LINENO: checking size of long
" >&5
7977 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7978 if test "${ac_cv_sizeof_long+set}" = set; then
7979 echo $ECHO_N "(cached
) $ECHO_C" >&6
7981 if test "$cross_compiling" = yes; then
7982 # Depending upon the size, compute the lo and hi bounds.
7983 cat >conftest.$ac_ext <<_ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7989 $ac_includes_default
7990 typedef long ac__type_sizeof_;
7994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8010 grep -v '^ *+' conftest.er1 >conftest.err
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 typedef long ac__type_sizeof_;
8031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_compile") 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8051 (exit $ac_status); } && {
8052 test -z "$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 } && test -s conftest.$ac_objext; then
8055 ac_hi=$ac_mid; break
8057 echo "$as_me: failed program was
:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 ac_lo=`expr $ac_mid + 1`
8061 if test $ac_lo -le $ac_mid; then
8065 ac_mid=`expr 2 '*' $ac_mid + 1`
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 echo "$as_me: failed program was
:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 cat >conftest.$ac_ext <<_ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 $ac_includes_default
8081 typedef long ac__type_sizeof_;
8085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8092 rm -f conftest.$ac_objext
8093 if { (ac_try="$ac_compile"
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_compile") 2>conftest.er1
8101 grep -v '^ *+' conftest.er1 >conftest.err
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
8108 } && test -s conftest.$ac_objext; then
8111 cat >conftest.$ac_ext <<_ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8117 $ac_includes_default
8118 typedef long ac__type_sizeof_;
8122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8129 rm -f conftest.$ac_objext
8130 if { (ac_try="$ac_compile"
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_compile") 2>conftest.er1
8138 grep -v '^ *+' conftest.er1 >conftest.err
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest.$ac_objext; then
8146 ac_lo=$ac_mid; break
8148 echo "$as_me: failed program was
:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 ac_hi=`expr '(' $ac_mid ')' - 1`
8152 if test $ac_mid -le $ac_hi; then
8156 ac_mid=`expr 2 '*' $ac_mid`
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162 echo "$as_me: failed program was
:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 # Binary search between lo and hi bounds.
8173 while test "x
$ac_lo" != "x
$ac_hi"; do
8174 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 typedef long ac__type_sizeof_;
8186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8212 echo "$as_me: failed program was
:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_lo=`expr '(' $ac_mid ')' + 1`
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 ?*) ac_cv_sizeof_long=$ac_lo;;
8222 '') if test "$ac_cv_type_long" = yes; then
8223 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8224 See \
`config.log' for more details." >&5
8225 echo "$as_me: error: cannot compute sizeof (long)
8226 See \`config.log
' for more details." >&2;}
8227 { (exit 77); exit 77; }; }
8233 cat >conftest.$ac_ext <<_ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 $ac_includes_default
8240 typedef long ac__type_sizeof_;
8241 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8242 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8249 FILE *f = fopen ("conftest.val", "w");
8252 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8254 long int i = longval ();
8255 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8257 fprintf (f, "%ld\n", i);
8261 unsigned long int i = ulongval ();
8262 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8264 fprintf (f, "%lu\n", i);
8266 return ferror (f) || fclose (f) != 0;
8272 rm -f conftest$ac_exeext
8273 if { (ac_try="$ac_link"
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_link") 2>&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8283 { (case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_try") 2>&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8292 ac_cv_sizeof_long=`cat conftest.val`
8294 echo "$as_me: program exited with status $ac_status" >&5
8295 echo "$as_me: failed program was:" >&5
8296 sed 's
/^
/|
/' conftest.$ac_ext >&5
8299 if test "$ac_cv_type_long" = yes; then
8300 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8301 See \`config.log' for more details.
" >&5
8302 echo "$as_me: error
: cannot compute sizeof
(long
)
8303 See \
`config.log' for more details." >&2;}
8304 { (exit 77); exit 77; }; }
8309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8313 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8314 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8318 cat >>confdefs.h <<_ACEOF
8319 #define SIZEOF_LONG $ac_cv_sizeof_long
8323 { echo "$as_me:$LINENO: checking for void *" >&5
8324 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8325 if test "${ac_cv_type_void_p+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 cat >conftest.$ac_ext <<_ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 $ac_includes_default
8335 typedef void * ac__type_new_;
8339 if ((ac__type_new_ *) 0)
8341 if (sizeof (ac__type_new_))
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8351 *) ac_try_echo
=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1
>conftest.err
8358 cat conftest.err
>&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.
$ac_objext; then
8364 ac_cv_type_void_p
=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.
$ac_ext >&5
8369 ac_cv_type_void_p
=no
8372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8374 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8375 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8377 # The cast to long int works around a bug in the HP C Compiler
8378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8380 # This bug is HP SR number 8606223364.
8381 { echo "$as_me:$LINENO: checking size of void *" >&5
8382 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8383 if test "${ac_cv_sizeof_void_p+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 if test "$cross_compiling" = yes; then
8387 # Depending upon the size, compute the lo and hi bounds.
8388 cat >conftest.
$ac_ext <<_ACEOF
8391 cat confdefs.h
>>conftest.
$ac_ext
8392 cat >>conftest.
$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8394 $ac_includes_default
8395 typedef void * ac__type_sizeof_;
8399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8406 rm -f conftest.
$ac_objext
8407 if { (ac_try
="$ac_compile"
8409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8413 (eval "$ac_compile") 2>conftest.er1
8415 grep -v '^ *+' conftest.er1 >conftest.err
8417 cat conftest.err >&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } && {
8420 test -z "$ac_c_werror_flag" ||
8421 test ! -s conftest.err
8422 } && test -s conftest.$ac_objext; then
8425 cat >conftest.$ac_ext <<_ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8431 $ac_includes_default
8432 typedef void * ac__type_sizeof_;
8436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8443 rm -f conftest.$ac_objext
8444 if { (ac_try="$ac_compile"
8446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8447 *) ac_try_echo
=$ac_try;;
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_compile") 2>conftest.er1
8452 grep -v '^ *+' conftest.er1
>conftest.err
8454 cat conftest.err
>&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && {
8457 test -z "$ac_c_werror_flag" ||
8458 test ! -s conftest.err
8459 } && test -s conftest.
$ac_objext; then
8460 ac_hi
=$ac_mid; break
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.
$ac_ext >&5
8465 ac_lo
=`expr $ac_mid + 1`
8466 if test $ac_lo -le $ac_mid; then
8470 ac_mid
=`expr 2 '*' $ac_mid + 1`
8473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.
$ac_ext >&5
8479 cat >conftest.
$ac_ext <<_ACEOF
8482 cat confdefs.h
>>conftest.
$ac_ext
8483 cat >>conftest.
$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 $ac_includes_default
8486 typedef void * ac__type_sizeof_;
8490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8497 rm -f conftest.
$ac_objext
8498 if { (ac_try
="$ac_compile"
8500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_compile") 2>conftest.er1
8506 grep -v '^ *+' conftest.er1 >conftest.err
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && {
8511 test -z "$ac_c_werror_flag" ||
8512 test ! -s conftest.err
8513 } && test -s conftest.$ac_objext; then
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 typedef void * ac__type_sizeof_;
8527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8534 rm -f conftest.$ac_objext
8535 if { (ac_try="$ac_compile"
8537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8538 *) ac_try_echo
=$ac_try;;
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_compile") 2>conftest.er1
8543 grep -v '^ *+' conftest.er1
>conftest.err
8545 cat conftest.err
>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && {
8548 test -z "$ac_c_werror_flag" ||
8549 test ! -s conftest.err
8550 } && test -s conftest.
$ac_objext; then
8551 ac_lo
=$ac_mid; break
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.
$ac_ext >&5
8556 ac_hi
=`expr '(' $ac_mid ')' - 1`
8557 if test $ac_mid -le $ac_hi; then
8561 ac_mid
=`expr 2 '*' $ac_mid`
8564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.
$ac_ext >&5
8573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8577 # Binary search between lo and hi bounds.
8578 while test "x$ac_lo" != "x$ac_hi"; do
8579 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8580 cat >conftest.
$ac_ext <<_ACEOF
8583 cat confdefs.h
>>conftest.
$ac_ext
8584 cat >>conftest.
$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 $ac_includes_default
8587 typedef void * ac__type_sizeof_;
8591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8598 rm -f conftest.
$ac_objext
8599 if { (ac_try
="$ac_compile"
8601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_compile") 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_c_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest.$ac_objext; then
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_lo=`expr '(' $ac_mid ')' + 1`
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8627 '') if test "$ac_cv_type_void_p" = yes; then
8628 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8629 See \`config.log
' for more details." >&5
8630 echo "$as_me: error: cannot compute sizeof (void *)
8631 See \`config.log' for more details.
" >&2;}
8632 { (exit 77); exit 77; }; }
8634 ac_cv_sizeof_void_p=0
8638 cat >conftest.$ac_ext <<_ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644 $ac_includes_default
8645 typedef void * ac__type_sizeof_;
8646 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8647 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8654 FILE *f = fopen ("conftest.val
", "w
");
8657 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8659 long int i = longval ();
8660 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8662 fprintf (f, "%ld
\n", i);
8666 unsigned long int i = ulongval ();
8667 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8669 fprintf (f, "%lu
\n", i);
8671 return ferror (f) || fclose (f) != 0;
8677 rm -f conftest$ac_exeext
8678 if { (ac_try="$ac_link"
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_link") 2>&5
8686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8688 { (case "(($ac_try" in
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8693 (eval "$ac_try") 2>&5
8695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_sizeof_void_p=`cat conftest.val`
8699 echo "$as_me: program exited with status
$ac_status" >&5
8700 echo "$as_me: failed program was
:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8704 if test "$ac_cv_type_void_p" = yes; then
8705 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8706 See \
`config.log' for more details." >&5
8707 echo "$as_me: error: cannot compute sizeof (void *)
8708 See \`config.log
' for more details." >&2;}
8709 { (exit 77); exit 77; }; }
8711 ac_cv_sizeof_void_p=0
8714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8718 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8719 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8723 cat >>confdefs.h <<_ACEOF
8724 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8728 { echo "$as_me:$LINENO: checking for short" >&5
8729 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8730 if test "${ac_cv_type_short+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 cat >conftest.$ac_ext <<_ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 typedef short ac__type_new_;
8744 if ((ac__type_new_ *) 0)
8746 if (sizeof (ac__type_new_))
8752 rm -f conftest.$ac_objext
8753 if { (ac_try="$ac_compile"
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8759 (eval "$ac_compile") 2>conftest.er1
8761 grep -v '^
*+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest.$ac_objext; then
8769 ac_cv_type_short=yes
8771 echo "$as_me: failed program was:" >&5
8772 sed 's
/^
/|
/' conftest.$ac_ext >&5
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8780 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8782 # The cast to long int works around a bug in the HP C Compiler
8783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8785 # This bug is HP SR number 8606223364.
8786 { echo "$as_me:$LINENO: checking size of short" >&5
8787 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8788 if test "${ac_cv_sizeof_short+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 if test "$cross_compiling" = yes; then
8792 # Depending upon the size, compute the lo and hi bounds.
8793 cat >conftest.
$ac_ext <<_ACEOF
8796 cat confdefs.h
>>conftest.
$ac_ext
8797 cat >>conftest.
$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 $ac_includes_default
8800 typedef short ac__type_sizeof_;
8804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8811 rm -f conftest.
$ac_objext
8812 if { (ac_try
="$ac_compile"
8814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_compile") 2>conftest.er1
8820 grep -v '^ *+' conftest.er1 >conftest.err
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest.$ac_objext; then
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 $ac_includes_default
8837 typedef short ac__type_sizeof_;
8841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8848 rm -f conftest.$ac_objext
8849 if { (ac_try="$ac_compile"
8851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8852 *) ac_try_echo
=$ac_try;;
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_compile") 2>conftest.er1
8857 grep -v '^ *+' conftest.er1
>conftest.err
8859 cat conftest.err
>&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } && {
8862 test -z "$ac_c_werror_flag" ||
8863 test ! -s conftest.err
8864 } && test -s conftest.
$ac_objext; then
8865 ac_hi
=$ac_mid; break
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.
$ac_ext >&5
8870 ac_lo
=`expr $ac_mid + 1`
8871 if test $ac_lo -le $ac_mid; then
8875 ac_mid
=`expr 2 '*' $ac_mid + 1`
8878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.
$ac_ext >&5
8884 cat >conftest.
$ac_ext <<_ACEOF
8887 cat confdefs.h
>>conftest.
$ac_ext
8888 cat >>conftest.
$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 $ac_includes_default
8891 typedef short ac__type_sizeof_;
8895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8902 rm -f conftest.
$ac_objext
8903 if { (ac_try
="$ac_compile"
8905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_compile") 2>conftest.er1
8911 grep -v '^ *+' conftest.er1 >conftest.err
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && {
8916 test -z "$ac_c_werror_flag" ||
8917 test ! -s conftest.err
8918 } && test -s conftest.$ac_objext; then
8921 cat >conftest.$ac_ext <<_ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927 $ac_includes_default
8928 typedef short ac__type_sizeof_;
8932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8939 rm -f conftest.$ac_objext
8940 if { (ac_try="$ac_compile"
8942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8943 *) ac_try_echo
=$ac_try;;
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8948 grep -v '^ *+' conftest.er1
>conftest.err
8950 cat conftest.err
>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.
$ac_objext; then
8956 ac_lo
=$ac_mid; break
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.
$ac_ext >&5
8961 ac_hi
=`expr '(' $ac_mid ')' - 1`
8962 if test $ac_mid -le $ac_hi; then
8966 ac_mid
=`expr 2 '*' $ac_mid`
8969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8972 echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.
$ac_ext >&5
8978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8982 # Binary search between lo and hi bounds.
8983 while test "x$ac_lo" != "x$ac_hi"; do
8984 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8985 cat >conftest.
$ac_ext <<_ACEOF
8988 cat confdefs.h
>>conftest.
$ac_ext
8989 cat >>conftest.
$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8991 $ac_includes_default
8992 typedef short ac__type_sizeof_;
8996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9003 rm -f conftest.
$ac_objext
9004 if { (ac_try
="$ac_compile"
9006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 (eval "$ac_compile") 2>conftest.er1
9012 grep -v '^ *+' conftest.er1 >conftest.err
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } && {
9017 test -z "$ac_c_werror_flag" ||
9018 test ! -s conftest.err
9019 } && test -s conftest.$ac_objext; then
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9025 ac_lo=`expr '(' $ac_mid ')' + 1`
9028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 ?*) ac_cv_sizeof_short=$ac_lo;;
9032 '') if test "$ac_cv_type_short" = yes; then
9033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9034 See \`config.log
' for more details." >&5
9035 echo "$as_me: error: cannot compute sizeof (short)
9036 See \`config.log' for more details.
" >&2;}
9037 { (exit 77); exit 77; }; }
9039 ac_cv_sizeof_short=0
9043 cat >conftest.$ac_ext <<_ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9049 $ac_includes_default
9050 typedef short ac__type_sizeof_;
9051 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9052 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9059 FILE *f = fopen ("conftest.val
", "w
");
9062 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9064 long int i = longval ();
9065 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9067 fprintf (f, "%ld
\n", i);
9071 unsigned long int i = ulongval ();
9072 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9074 fprintf (f, "%lu
\n", i);
9076 return ferror (f) || fclose (f) != 0;
9082 rm -f conftest$ac_exeext
9083 if { (ac_try="$ac_link"
9085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9086 *) ac_try_echo=$ac_try;;
9088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9089 (eval "$ac_link") 2>&5
9091 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9093 { (case "(($ac_try" in
9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095 *) ac_try_echo=$ac_try;;
9097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9098 (eval "$ac_try") 2>&5
9100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_cv_sizeof_short=`cat conftest.val`
9104 echo "$as_me: program exited with status
$ac_status" >&5
9105 echo "$as_me: failed program was
:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9109 if test "$ac_cv_type_short" = yes; then
9110 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9111 See \
`config.log' for more details." >&5
9112 echo "$as_me: error: cannot compute sizeof (short)
9113 See \`config.log
' for more details." >&2;}
9114 { (exit 77); exit 77; }; }
9116 ac_cv_sizeof_short=0
9119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9123 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9124 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9128 cat >>confdefs.h <<_ACEOF
9129 #define SIZEOF_SHORT $ac_cv_sizeof_short
9133 { echo "$as_me:$LINENO: checking for float" >&5
9134 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9135 if test "${ac_cv_type_float+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 cat >conftest.$ac_ext <<_ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 $ac_includes_default
9145 typedef float ac__type_new_;
9149 if ((ac__type_new_ *) 0)
9151 if (sizeof (ac__type_new_))
9157 rm -f conftest.$ac_objext
9158 if { (ac_try="$ac_compile"
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_compile") 2>conftest.er1
9166 grep -v '^
*+' conftest.er1 >conftest.err
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } && {
9171 test -z "$ac_c_werror_flag" ||
9172 test ! -s conftest.err
9173 } && test -s conftest.$ac_objext; then
9174 ac_cv_type_float=yes
9176 echo "$as_me: failed program was:" >&5
9177 sed 's
/^
/|
/' conftest.$ac_ext >&5
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9184 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9185 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9187 # The cast to long int works around a bug in the HP C Compiler
9188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9190 # This bug is HP SR number 8606223364.
9191 { echo "$as_me:$LINENO: checking size of float" >&5
9192 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9193 if test "${ac_cv_sizeof_float+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 if test "$cross_compiling" = yes; then
9197 # Depending upon the size, compute the lo and hi bounds.
9198 cat >conftest.
$ac_ext <<_ACEOF
9201 cat confdefs.h
>>conftest.
$ac_ext
9202 cat >>conftest.
$ac_ext <<_ACEOF
9203 /* end confdefs.h. */
9204 $ac_includes_default
9205 typedef float ac__type_sizeof_;
9209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9216 rm -f conftest.
$ac_objext
9217 if { (ac_try
="$ac_compile"
9219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_compile") 2>conftest.er1
9225 grep -v '^ *+' conftest.er1 >conftest.err
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } && {
9230 test -z "$ac_c_werror_flag" ||
9231 test ! -s conftest.err
9232 } && test -s conftest.$ac_objext; then
9235 cat >conftest.$ac_ext <<_ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 $ac_includes_default
9242 typedef float ac__type_sizeof_;
9246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9253 rm -f conftest.$ac_objext
9254 if { (ac_try="$ac_compile"
9256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9257 *) ac_try_echo
=$ac_try;;
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_compile") 2>conftest.er1
9262 grep -v '^ *+' conftest.er1
>conftest.err
9264 cat conftest.err
>&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } && {
9267 test -z "$ac_c_werror_flag" ||
9268 test ! -s conftest.err
9269 } && test -s conftest.
$ac_objext; then
9270 ac_hi
=$ac_mid; break
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.
$ac_ext >&5
9275 ac_lo
=`expr $ac_mid + 1`
9276 if test $ac_lo -le $ac_mid; then
9280 ac_mid
=`expr 2 '*' $ac_mid + 1`
9283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.
$ac_ext >&5
9289 cat >conftest.
$ac_ext <<_ACEOF
9292 cat confdefs.h
>>conftest.
$ac_ext
9293 cat >>conftest.
$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9295 $ac_includes_default
9296 typedef float ac__type_sizeof_;
9300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9307 rm -f conftest.
$ac_objext
9308 if { (ac_try
="$ac_compile"
9310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_compile") 2>conftest.er1
9316 grep -v '^ *+' conftest.er1 >conftest.err
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && {
9321 test -z "$ac_c_werror_flag" ||
9322 test ! -s conftest.err
9323 } && test -s conftest.$ac_objext; then
9326 cat >conftest.$ac_ext <<_ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 $ac_includes_default
9333 typedef float ac__type_sizeof_;
9337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9344 rm -f conftest.$ac_objext
9345 if { (ac_try="$ac_compile"
9347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9348 *) ac_try_echo
=$ac_try;;
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_compile") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1
>conftest.err
9355 cat conftest.err
>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && {
9358 test -z "$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 } && test -s conftest.
$ac_objext; then
9361 ac_lo
=$ac_mid; break
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.
$ac_ext >&5
9366 ac_hi
=`expr '(' $ac_mid ')' - 1`
9367 if test $ac_mid -le $ac_hi; then
9371 ac_mid
=`expr 2 '*' $ac_mid`
9374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.
$ac_ext >&5
9383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9387 # Binary search between lo and hi bounds.
9388 while test "x$ac_lo" != "x$ac_hi"; do
9389 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9390 cat >conftest.
$ac_ext <<_ACEOF
9393 cat confdefs.h
>>conftest.
$ac_ext
9394 cat >>conftest.
$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9397 typedef float ac__type_sizeof_;
9401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9408 rm -f conftest.
$ac_objext
9409 if { (ac_try
="$ac_compile"
9411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_compile") 2>conftest.er1
9417 grep -v '^ *+' conftest.er1 >conftest.err
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } && {
9422 test -z "$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9424 } && test -s conftest.$ac_objext; then
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9430 ac_lo=`expr '(' $ac_mid ')' + 1`
9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9436 ?*) ac_cv_sizeof_float=$ac_lo;;
9437 '') if test "$ac_cv_type_float" = yes; then
9438 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9439 See \`config.log
' for more details." >&5
9440 echo "$as_me: error: cannot compute sizeof (float)
9441 See \`config.log' for more details.
" >&2;}
9442 { (exit 77); exit 77; }; }
9444 ac_cv_sizeof_float=0
9448 cat >conftest.$ac_ext <<_ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9454 $ac_includes_default
9455 typedef float ac__type_sizeof_;
9456 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9457 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9464 FILE *f = fopen ("conftest.val
", "w
");
9467 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9469 long int i = longval ();
9470 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9472 fprintf (f, "%ld
\n", i);
9476 unsigned long int i = ulongval ();
9477 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9479 fprintf (f, "%lu
\n", i);
9481 return ferror (f) || fclose (f) != 0;
9487 rm -f conftest$ac_exeext
9488 if { (ac_try="$ac_link"
9490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9491 *) ac_try_echo=$ac_try;;
9493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_link") 2>&5
9496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9498 { (case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_try") 2>&5
9505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_sizeof_float=`cat conftest.val`
9509 echo "$as_me: program exited with status
$ac_status" >&5
9510 echo "$as_me: failed program was
:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9514 if test "$ac_cv_type_float" = yes; then
9515 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9516 See \
`config.log' for more details." >&5
9517 echo "$as_me: error: cannot compute sizeof (float)
9518 See \`config.log
' for more details." >&2;}
9519 { (exit 77); exit 77; }; }
9521 ac_cv_sizeof_float=0
9524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9528 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9529 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9533 cat >>confdefs.h <<_ACEOF
9534 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9538 { echo "$as_me:$LINENO: checking for double" >&5
9539 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9540 if test "${ac_cv_type_double+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 cat >conftest.$ac_ext <<_ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 $ac_includes_default
9550 typedef double ac__type_new_;
9554 if ((ac__type_new_ *) 0)
9556 if (sizeof (ac__type_new_))
9562 rm -f conftest.$ac_objext
9563 if { (ac_try="$ac_compile"
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_compile") 2>conftest.er1
9571 grep -v '^
*+' conftest.er1 >conftest.err
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } && {
9576 test -z "$ac_c_werror_flag" ||
9577 test ! -s conftest.err
9578 } && test -s conftest.$ac_objext; then
9579 ac_cv_type_double=yes
9581 echo "$as_me: failed program was:" >&5
9582 sed 's
/^
/|
/' conftest.$ac_ext >&5
9584 ac_cv_type_double=no
9587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9590 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9592 # The cast to long int works around a bug in the HP C Compiler
9593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9595 # This bug is HP SR number 8606223364.
9596 { echo "$as_me:$LINENO: checking size of double" >&5
9597 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9598 if test "${ac_cv_sizeof_double+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 if test "$cross_compiling" = yes; then
9602 # Depending upon the size, compute the lo and hi bounds.
9603 cat >conftest.
$ac_ext <<_ACEOF
9606 cat confdefs.h
>>conftest.
$ac_ext
9607 cat >>conftest.
$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 $ac_includes_default
9610 typedef double ac__type_sizeof_;
9614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9621 rm -f conftest.
$ac_objext
9622 if { (ac_try
="$ac_compile"
9624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_compile") 2>conftest.er1
9630 grep -v '^ *+' conftest.er1 >conftest.err
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } && {
9635 test -z "$ac_c_werror_flag" ||
9636 test ! -s conftest.err
9637 } && test -s conftest.$ac_objext; then
9640 cat >conftest.$ac_ext <<_ACEOF
9643 cat confdefs.h >>conftest.$ac_ext
9644 cat >>conftest.$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 $ac_includes_default
9647 typedef double ac__type_sizeof_;
9651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9658 rm -f conftest.$ac_objext
9659 if { (ac_try="$ac_compile"
9661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9662 *) ac_try_echo
=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_compile") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1
>conftest.err
9669 cat conftest.err
>&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest.
$ac_objext; then
9675 ac_hi
=$ac_mid; break
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.
$ac_ext >&5
9680 ac_lo
=`expr $ac_mid + 1`
9681 if test $ac_lo -le $ac_mid; then
9685 ac_mid
=`expr 2 '*' $ac_mid + 1`
9688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.
$ac_ext >&5
9694 cat >conftest.
$ac_ext <<_ACEOF
9697 cat confdefs.h
>>conftest.
$ac_ext
9698 cat >>conftest.
$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 $ac_includes_default
9701 typedef double ac__type_sizeof_;
9705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9712 rm -f conftest.
$ac_objext
9713 if { (ac_try
="$ac_compile"
9715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9716 *) ac_try_echo=$ac_try;;
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719 (eval "$ac_compile") 2>conftest.er1
9721 grep -v '^ *+' conftest.er1 >conftest.err
9723 cat conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); } && {
9726 test -z "$ac_c_werror_flag" ||
9727 test ! -s conftest.err
9728 } && test -s conftest.$ac_objext; then
9731 cat >conftest.$ac_ext <<_ACEOF
9734 cat confdefs.h >>conftest.$ac_ext
9735 cat >>conftest.$ac_ext <<_ACEOF
9736 /* end confdefs.h. */
9737 $ac_includes_default
9738 typedef double ac__type_sizeof_;
9742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9749 rm -f conftest.$ac_objext
9750 if { (ac_try="$ac_compile"
9752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9753 *) ac_try_echo
=$ac_try;;
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_compile") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1
>conftest.err
9760 cat conftest.err
>&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } && {
9763 test -z "$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9765 } && test -s conftest.
$ac_objext; then
9766 ac_lo
=$ac_mid; break
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.
$ac_ext >&5
9771 ac_hi
=`expr '(' $ac_mid ')' - 1`
9772 if test $ac_mid -le $ac_hi; then
9776 ac_mid
=`expr 2 '*' $ac_mid`
9779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.
$ac_ext >&5
9788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9792 # Binary search between lo and hi bounds.
9793 while test "x$ac_lo" != "x$ac_hi"; do
9794 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9795 cat >conftest.
$ac_ext <<_ACEOF
9798 cat confdefs.h
>>conftest.
$ac_ext
9799 cat >>conftest.
$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 $ac_includes_default
9802 typedef double ac__type_sizeof_;
9806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9813 rm -f conftest.
$ac_objext
9814 if { (ac_try
="$ac_compile"
9816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9817 *) ac_try_echo=$ac_try;;
9819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9820 (eval "$ac_compile") 2>conftest.er1
9822 grep -v '^ *+' conftest.er1 >conftest.err
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } && {
9827 test -z "$ac_c_werror_flag" ||
9828 test ! -s conftest.err
9829 } && test -s conftest.$ac_objext; then
9832 echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9835 ac_lo=`expr '(' $ac_mid ')' + 1`
9838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841 ?*) ac_cv_sizeof_double=$ac_lo;;
9842 '') if test "$ac_cv_type_double" = yes; then
9843 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9844 See \`config.log
' for more details." >&5
9845 echo "$as_me: error: cannot compute sizeof (double)
9846 See \`config.log' for more details.
" >&2;}
9847 { (exit 77); exit 77; }; }
9849 ac_cv_sizeof_double=0
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 $ac_includes_default
9860 typedef double ac__type_sizeof_;
9861 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9862 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9869 FILE *f = fopen ("conftest.val
", "w
");
9872 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9874 long int i = longval ();
9875 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9877 fprintf (f, "%ld
\n", i);
9881 unsigned long int i = ulongval ();
9882 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9884 fprintf (f, "%lu
\n", i);
9886 return ferror (f) || fclose (f) != 0;
9892 rm -f conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>&5
9901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
9910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_sizeof_double=`cat conftest.val`
9914 echo "$as_me: program exited with status
$ac_status" >&5
9915 echo "$as_me: failed program was
:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9919 if test "$ac_cv_type_double" = yes; then
9920 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9921 See \
`config.log' for more details." >&5
9922 echo "$as_me: error: cannot compute sizeof (double)
9923 See \`config.log
' for more details." >&2;}
9924 { (exit 77); exit 77; }; }
9926 ac_cv_sizeof_double=0
9929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9933 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9934 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9938 cat >>confdefs.h <<_ACEOF
9939 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9943 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9944 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9945 if test "${ac_cv_type_fpos_t+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 $ac_includes_default
9955 typedef fpos_t ac__type_new_;
9959 if ((ac__type_new_ *) 0)
9961 if (sizeof (ac__type_new_))
9967 rm -f conftest.$ac_objext
9968 if { (ac_try="$ac_compile"
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_compile") 2>conftest.er1
9976 grep -v '^
*+' conftest.er1 >conftest.err
9978 cat conftest.err >&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } && {
9981 test -z "$ac_c_werror_flag" ||
9982 test ! -s conftest.err
9983 } && test -s conftest.$ac_objext; then
9984 ac_cv_type_fpos_t=yes
9986 echo "$as_me: failed program was:" >&5
9987 sed 's
/^
/|
/' conftest.$ac_ext >&5
9989 ac_cv_type_fpos_t=no
9992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9995 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9997 # The cast to long int works around a bug in the HP C Compiler
9998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10000 # This bug is HP SR number 8606223364.
10001 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10002 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10003 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 if test "$cross_compiling" = yes; then
10007 # Depending upon the size, compute the lo and hi bounds.
10008 cat >conftest.
$ac_ext <<_ACEOF
10011 cat confdefs.h
>>conftest.
$ac_ext
10012 cat >>conftest.
$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 $ac_includes_default
10015 typedef fpos_t ac__type_sizeof_;
10019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10026 rm -f conftest.
$ac_objext
10027 if { (ac_try
="$ac_compile"
10028 case "(($ac_try" in
10029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_compile") 2>conftest.er1
10035 grep -v '^ *+' conftest.er1 >conftest.err
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && {
10040 test -z "$ac_c_werror_flag" ||
10041 test ! -s conftest.err
10042 } && test -s conftest.$ac_objext; then
10045 cat >conftest.$ac_ext <<_ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h. */
10051 $ac_includes_default
10052 typedef fpos_t ac__type_sizeof_;
10056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10063 rm -f conftest.$ac_objext
10064 if { (ac_try="$ac_compile"
10065 case "(($ac_try" in
10066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10067 *) ac_try_echo
=$ac_try;;
10069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10070 (eval "$ac_compile") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1
>conftest.err
10074 cat conftest.err
>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest.
$ac_objext; then
10080 ac_hi
=$ac_mid; break
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.
$ac_ext >&5
10085 ac_lo
=`expr $ac_mid + 1`
10086 if test $ac_lo -le $ac_mid; then
10090 ac_mid
=`expr 2 '*' $ac_mid + 1`
10093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10096 echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.
$ac_ext >&5
10099 cat >conftest.
$ac_ext <<_ACEOF
10102 cat confdefs.h
>>conftest.
$ac_ext
10103 cat >>conftest.
$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105 $ac_includes_default
10106 typedef fpos_t ac__type_sizeof_;
10110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10117 rm -f conftest.
$ac_objext
10118 if { (ac_try
="$ac_compile"
10119 case "(($ac_try" in
10120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_compile") 2>conftest.er1
10126 grep -v '^ *+' conftest.er1 >conftest.err
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } && {
10131 test -z "$ac_c_werror_flag" ||
10132 test ! -s conftest.err
10133 } && test -s conftest.$ac_objext; then
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10143 typedef fpos_t ac__type_sizeof_;
10147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10154 rm -f conftest.$ac_objext
10155 if { (ac_try="$ac_compile"
10156 case "(($ac_try" in
10157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10158 *) ac_try_echo
=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_compile") 2>conftest.er1
10163 grep -v '^ *+' conftest.er1
>conftest.err
10165 cat conftest.err
>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest.
$ac_objext; then
10171 ac_lo
=$ac_mid; break
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.
$ac_ext >&5
10176 ac_hi
=`expr '(' $ac_mid ')' - 1`
10177 if test $ac_mid -le $ac_hi; then
10181 ac_mid
=`expr 2 '*' $ac_mid`
10184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.
$ac_ext >&5
10193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10197 # Binary search between lo and hi bounds.
10198 while test "x$ac_lo" != "x$ac_hi"; do
10199 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10200 cat >conftest.
$ac_ext <<_ACEOF
10203 cat confdefs.h
>>conftest.
$ac_ext
10204 cat >>conftest.
$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 $ac_includes_default
10207 typedef fpos_t ac__type_sizeof_;
10211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10218 rm -f conftest.
$ac_objext
10219 if { (ac_try
="$ac_compile"
10220 case "(($ac_try" in
10221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_compile") 2>conftest.er1
10227 grep -v '^ *+' conftest.er1 >conftest.err
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } && {
10232 test -z "$ac_c_werror_flag" ||
10233 test ! -s conftest.err
10234 } && test -s conftest.$ac_objext; then
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10240 ac_lo=`expr '(' $ac_mid ')' + 1`
10243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10246 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10247 '') if test "$ac_cv_type_fpos_t" = yes; then
10248 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10249 See \`config.log
' for more details." >&5
10250 echo "$as_me: error: cannot compute sizeof (fpos_t)
10251 See \`config.log' for more details.
" >&2;}
10252 { (exit 77); exit 77; }; }
10254 ac_cv_sizeof_fpos_t=0
10258 cat >conftest.$ac_ext <<_ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 $ac_includes_default
10265 typedef fpos_t ac__type_sizeof_;
10266 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10267 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10269 #include <stdlib.h>
10274 FILE *f = fopen ("conftest.val
", "w
");
10277 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10279 long int i = longval ();
10280 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10282 fprintf (f, "%ld
\n", i);
10286 unsigned long int i = ulongval ();
10287 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10289 fprintf (f, "%lu
\n", i);
10291 return ferror (f) || fclose (f) != 0;
10297 rm -f conftest$ac_exeext
10298 if { (ac_try="$ac_link"
10299 case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_link") 2>&5
10306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10308 { (case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10313 (eval "$ac_try") 2>&5
10315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_cv_sizeof_fpos_t=`cat conftest.val`
10319 echo "$as_me: program exited with status
$ac_status" >&5
10320 echo "$as_me: failed program was
:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ( exit $ac_status )
10324 if test "$ac_cv_type_fpos_t" = yes; then
10325 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10326 See \
`config.log' for more details." >&5
10327 echo "$as_me: error: cannot compute sizeof (fpos_t)
10328 See \`config.log
' for more details." >&2;}
10329 { (exit 77); exit 77; }; }
10331 ac_cv_sizeof_fpos_t=0
10334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10338 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10339 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10343 cat >>confdefs.h <<_ACEOF
10344 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10348 { echo "$as_me:$LINENO: checking for size_t" >&5
10349 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10350 if test "${ac_cv_type_size_t+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 $ac_includes_default
10360 typedef size_t ac__type_new_;
10364 if ((ac__type_new_ *) 0)
10366 if (sizeof (ac__type_new_))
10372 rm -f conftest.$ac_objext
10373 if { (ac_try="$ac_compile"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_compile") 2>conftest.er1
10381 grep -v '^
*+' conftest.er1 >conftest.err
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } && {
10386 test -z "$ac_c_werror_flag" ||
10387 test ! -s conftest.err
10388 } && test -s conftest.$ac_objext; then
10389 ac_cv_type_size_t=yes
10391 echo "$as_me: failed program was:" >&5
10392 sed 's
/^
/|
/' conftest.$ac_ext >&5
10394 ac_cv_type_size_t=no
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10400 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10402 # The cast to long int works around a bug in the HP C Compiler
10403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10405 # This bug is HP SR number 8606223364.
10406 { echo "$as_me:$LINENO: checking size of size_t" >&5
10407 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10408 if test "${ac_cv_sizeof_size_t+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 if test "$cross_compiling" = yes; then
10412 # Depending upon the size, compute the lo and hi bounds.
10413 cat >conftest.
$ac_ext <<_ACEOF
10416 cat confdefs.h
>>conftest.
$ac_ext
10417 cat >>conftest.
$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 $ac_includes_default
10420 typedef size_t ac__type_sizeof_;
10424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10431 rm -f conftest.
$ac_objext
10432 if { (ac_try
="$ac_compile"
10433 case "(($ac_try" in
10434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_compile") 2>conftest.er1
10440 grep -v '^ *+' conftest.er1 >conftest.err
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && {
10445 test -z "$ac_c_werror_flag" ||
10446 test ! -s conftest.err
10447 } && test -s conftest.$ac_objext; then
10450 cat >conftest.$ac_ext <<_ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456 $ac_includes_default
10457 typedef size_t ac__type_sizeof_;
10461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10468 rm -f conftest.$ac_objext
10469 if { (ac_try="$ac_compile"
10470 case "(($ac_try" in
10471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10472 *) ac_try_echo
=$ac_try;;
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_compile") 2>conftest.er1
10477 grep -v '^ *+' conftest.er1
>conftest.err
10479 cat conftest.err
>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } && {
10482 test -z "$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10484 } && test -s conftest.
$ac_objext; then
10485 ac_hi
=$ac_mid; break
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.
$ac_ext >&5
10490 ac_lo
=`expr $ac_mid + 1`
10491 if test $ac_lo -le $ac_mid; then
10495 ac_mid
=`expr 2 '*' $ac_mid + 1`
10498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.
$ac_ext >&5
10504 cat >conftest.
$ac_ext <<_ACEOF
10507 cat confdefs.h
>>conftest.
$ac_ext
10508 cat >>conftest.
$ac_ext <<_ACEOF
10509 /* end confdefs.h. */
10510 $ac_includes_default
10511 typedef size_t ac__type_sizeof_;
10515 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10522 rm -f conftest.
$ac_objext
10523 if { (ac_try
="$ac_compile"
10524 case "(($ac_try" in
10525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_compile") 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest.$ac_objext; then
10541 cat >conftest.$ac_ext <<_ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10547 $ac_includes_default
10548 typedef size_t ac__type_sizeof_;
10552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10559 rm -f conftest.$ac_objext
10560 if { (ac_try="$ac_compile"
10561 case "(($ac_try" in
10562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10563 *) ac_try_echo
=$ac_try;;
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_compile") 2>conftest.er1
10568 grep -v '^ *+' conftest.er1
>conftest.err
10570 cat conftest.err
>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && {
10573 test -z "$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10575 } && test -s conftest.
$ac_objext; then
10576 ac_lo
=$ac_mid; break
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.
$ac_ext >&5
10581 ac_hi
=`expr '(' $ac_mid ')' - 1`
10582 if test $ac_mid -le $ac_hi; then
10586 ac_mid
=`expr 2 '*' $ac_mid`
10589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.
$ac_ext >&5
10598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10602 # Binary search between lo and hi bounds.
10603 while test "x$ac_lo" != "x$ac_hi"; do
10604 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10605 cat >conftest.
$ac_ext <<_ACEOF
10608 cat confdefs.h
>>conftest.
$ac_ext
10609 cat >>conftest.
$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 $ac_includes_default
10612 typedef size_t ac__type_sizeof_;
10616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10623 rm -f conftest.
$ac_objext
10624 if { (ac_try
="$ac_compile"
10625 case "(($ac_try" in
10626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_compile") 2>conftest.er1
10632 grep -v '^ *+' conftest.er1 >conftest.err
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && {
10637 test -z "$ac_c_werror_flag" ||
10638 test ! -s conftest.err
10639 } && test -s conftest.$ac_objext; then
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_lo=`expr '(' $ac_mid ')' + 1`
10648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10652 '') if test "$ac_cv_type_size_t" = yes; then
10653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10654 See \`config.log
' for more details." >&5
10655 echo "$as_me: error: cannot compute sizeof (size_t)
10656 See \`config.log' for more details.
" >&2;}
10657 { (exit 77); exit 77; }; }
10659 ac_cv_sizeof_size_t=0
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 $ac_includes_default
10670 typedef size_t ac__type_sizeof_;
10671 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10672 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10674 #include <stdlib.h>
10679 FILE *f = fopen ("conftest.val
", "w
");
10682 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10684 long int i = longval ();
10685 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10687 fprintf (f, "%ld
\n", i);
10691 unsigned long int i = ulongval ();
10692 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10694 fprintf (f, "%lu
\n", i);
10696 return ferror (f) || fclose (f) != 0;
10702 rm -f conftest$ac_exeext
10703 if { (ac_try="$ac_link"
10704 case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_link") 2>&5
10711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10713 { (case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_try") 2>&5
10720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_cv_sizeof_size_t=`cat conftest.val`
10724 echo "$as_me: program exited with status
$ac_status" >&5
10725 echo "$as_me: failed program was
:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 ( exit $ac_status )
10729 if test "$ac_cv_type_size_t" = yes; then
10730 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10731 See \
`config.log' for more details." >&5
10732 echo "$as_me: error: cannot compute sizeof (size_t)
10733 See \`config.log
' for more details." >&2;}
10734 { (exit 77); exit 77; }; }
10736 ac_cv_sizeof_size_t=0
10739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10743 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10744 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10748 cat >>confdefs.h <<_ACEOF
10749 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10753 { echo "$as_me:$LINENO: checking for pid_t" >&5
10754 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10755 if test "${ac_cv_type_pid_t+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 cat >conftest.$ac_ext <<_ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 $ac_includes_default
10765 typedef pid_t ac__type_new_;
10769 if ((ac__type_new_ *) 0)
10771 if (sizeof (ac__type_new_))
10777 rm -f conftest.$ac_objext
10778 if { (ac_try="$ac_compile"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10784 (eval "$ac_compile") 2>conftest.er1
10786 grep -v '^
*+' conftest.er1 >conftest.err
10788 cat conftest.err >&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } && {
10791 test -z "$ac_c_werror_flag" ||
10792 test ! -s conftest.err
10793 } && test -s conftest.$ac_objext; then
10794 ac_cv_type_pid_t=yes
10796 echo "$as_me: failed program was:" >&5
10797 sed 's
/^
/|
/' conftest.$ac_ext >&5
10799 ac_cv_type_pid_t=no
10802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10805 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10807 # The cast to long int works around a bug in the HP C Compiler
10808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10810 # This bug is HP SR number 8606223364.
10811 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10812 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10813 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 if test "$cross_compiling" = yes; then
10817 # Depending upon the size, compute the lo and hi bounds.
10818 cat >conftest.
$ac_ext <<_ACEOF
10821 cat confdefs.h
>>conftest.
$ac_ext
10822 cat >>conftest.
$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 $ac_includes_default
10825 typedef pid_t ac__type_sizeof_;
10829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10836 rm -f conftest.
$ac_objext
10837 if { (ac_try
="$ac_compile"
10838 case "(($ac_try" in
10839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_compile") 2>conftest.er1
10845 grep -v '^ *+' conftest.er1 >conftest.err
10847 cat conftest.err >&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } && {
10850 test -z "$ac_c_werror_flag" ||
10851 test ! -s conftest.err
10852 } && test -s conftest.$ac_objext; then
10855 cat >conftest.$ac_ext <<_ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 $ac_includes_default
10862 typedef pid_t ac__type_sizeof_;
10866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10873 rm -f conftest.$ac_objext
10874 if { (ac_try="$ac_compile"
10875 case "(($ac_try" in
10876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10877 *) ac_try_echo
=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_compile") 2>conftest.er1
10882 grep -v '^ *+' conftest.er1
>conftest.err
10884 cat conftest.err
>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest.
$ac_objext; then
10890 ac_hi
=$ac_mid; break
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.
$ac_ext >&5
10895 ac_lo
=`expr $ac_mid + 1`
10896 if test $ac_lo -le $ac_mid; then
10900 ac_mid
=`expr 2 '*' $ac_mid + 1`
10903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.
$ac_ext >&5
10909 cat >conftest.
$ac_ext <<_ACEOF
10912 cat confdefs.h
>>conftest.
$ac_ext
10913 cat >>conftest.
$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915 $ac_includes_default
10916 typedef pid_t ac__type_sizeof_;
10920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10927 rm -f conftest.
$ac_objext
10928 if { (ac_try
="$ac_compile"
10929 case "(($ac_try" in
10930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_compile") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest.$ac_objext; then
10946 cat >conftest.$ac_ext <<_ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10952 $ac_includes_default
10953 typedef pid_t ac__type_sizeof_;
10957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10964 rm -f conftest.$ac_objext
10965 if { (ac_try="$ac_compile"
10966 case "(($ac_try" in
10967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10968 *) ac_try_echo
=$ac_try;;
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_compile") 2>conftest.er1
10973 grep -v '^ *+' conftest.er1
>conftest.err
10975 cat conftest.err
>&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } && {
10978 test -z "$ac_c_werror_flag" ||
10979 test ! -s conftest.err
10980 } && test -s conftest.
$ac_objext; then
10981 ac_lo
=$ac_mid; break
10983 echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.
$ac_ext >&5
10986 ac_hi
=`expr '(' $ac_mid ')' - 1`
10987 if test $ac_mid -le $ac_hi; then
10991 ac_mid
=`expr 2 '*' $ac_mid`
10994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10997 echo "$as_me: failed program was:" >&5
10998 sed 's/^/| /' conftest.
$ac_ext >&5
11003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11007 # Binary search between lo and hi bounds.
11008 while test "x$ac_lo" != "x$ac_hi"; do
11009 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11010 cat >conftest.
$ac_ext <<_ACEOF
11013 cat confdefs.h
>>conftest.
$ac_ext
11014 cat >>conftest.
$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 $ac_includes_default
11017 typedef pid_t ac__type_sizeof_;
11021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11028 rm -f conftest.
$ac_objext
11029 if { (ac_try
="$ac_compile"
11030 case "(($ac_try" in
11031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_compile") 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && {
11042 test -z "$ac_c_werror_flag" ||
11043 test ! -s conftest.err
11044 } && test -s conftest.$ac_objext; then
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11050 ac_lo=`expr '(' $ac_mid ')' + 1`
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11057 '') if test "$ac_cv_type_pid_t" = yes; then
11058 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11059 See \`config.log
' for more details." >&5
11060 echo "$as_me: error: cannot compute sizeof (pid_t)
11061 See \`config.log' for more details.
" >&2;}
11062 { (exit 77); exit 77; }; }
11064 ac_cv_sizeof_pid_t=0
11068 cat >conftest.$ac_ext <<_ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11074 $ac_includes_default
11075 typedef pid_t ac__type_sizeof_;
11076 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11077 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11079 #include <stdlib.h>
11084 FILE *f = fopen ("conftest.val
", "w
");
11087 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11089 long int i = longval ();
11090 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11092 fprintf (f, "%ld
\n", i);
11096 unsigned long int i = ulongval ();
11097 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11099 fprintf (f, "%lu
\n", i);
11101 return ferror (f) || fclose (f) != 0;
11107 rm -f conftest$ac_exeext
11108 if { (ac_try="$ac_link"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_link") 2>&5
11116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11118 { (case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_try") 2>&5
11125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11126 (exit $ac_status); }; }; then
11127 ac_cv_sizeof_pid_t=`cat conftest.val`
11129 echo "$as_me: program exited with status
$ac_status" >&5
11130 echo "$as_me: failed program was
:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 ( exit $ac_status )
11134 if test "$ac_cv_type_pid_t" = yes; then
11135 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11136 See \
`config.log' for more details." >&5
11137 echo "$as_me: error: cannot compute sizeof (pid_t)
11138 See \`config.log
' for more details." >&2;}
11139 { (exit 77); exit 77; }; }
11141 ac_cv_sizeof_pid_t=0
11144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11148 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11149 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11153 cat >>confdefs.h <<_ACEOF
11154 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11159 { echo "$as_me:$LINENO: checking for long long support" >&5
11160 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11162 cat >conftest.$ac_ext <<_ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11172 long long x; x = (long long)0;
11177 rm -f conftest.$ac_objext
11178 if { (ac_try="$ac_compile"
11179 case "(($ac_try" in
11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11181 *) ac_try_echo=$ac_try;;
11183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11184 (eval "$ac_compile") 2>conftest.er1
11186 grep -v '^
*+' conftest.er1 >conftest.err
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } && {
11191 test -z "$ac_c_werror_flag" ||
11192 test ! -s conftest.err
11193 } && test -s conftest.$ac_objext; then
11196 cat >>confdefs.h <<\_ACEOF
11197 #define HAVE_LONG_LONG 1
11203 echo "$as_me: failed program was:" >&5
11204 sed 's
/^
/|
/' conftest.$ac_ext >&5
11209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11210 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11211 echo "${ECHO_T}$have_long_long" >&6; }
11212 if test "$have_long_long" = yes ; then
11213 { echo "$as_me:$LINENO: checking for long long" >&5
11214 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11215 if test "${ac_cv_type_long_long+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 cat >conftest.$ac_ext <<_ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 $ac_includes_default
11225 typedef long long ac__type_new_;
11229 if ((ac__type_new_ *) 0)
11231 if (sizeof (ac__type_new_))
11237 rm -f conftest.$ac_objext
11238 if { (ac_try="$ac_compile"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_compile") 2>conftest.er1
11246 grep -v '^
*+' conftest.er1 >conftest.err
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest.$ac_objext; then
11254 ac_cv_type_long_long=yes
11256 echo "$as_me: failed program was:" >&5
11257 sed 's
/^
/|
/' conftest.$ac_ext >&5
11259 ac_cv_type_long_long=no
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11265 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11267 # The cast to long int works around a bug in the HP C Compiler
11268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11270 # This bug is HP SR number 8606223364.
11271 { echo "$as_me:$LINENO: checking size of long long" >&5
11272 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11273 if test "${ac_cv_sizeof_long_long+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 if test "$cross_compiling" = yes; then
11277 # Depending upon the size, compute the lo and hi bounds.
11278 cat >conftest.
$ac_ext <<_ACEOF
11281 cat confdefs.h
>>conftest.
$ac_ext
11282 cat >>conftest.
$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 $ac_includes_default
11285 typedef long long ac__type_sizeof_;
11289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11296 rm -f conftest.
$ac_objext
11297 if { (ac_try
="$ac_compile"
11298 case "(($ac_try" in
11299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_compile") 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest.$ac_objext; then
11315 cat >conftest.$ac_ext <<_ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 $ac_includes_default
11322 typedef long long ac__type_sizeof_;
11326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11333 rm -f conftest.$ac_objext
11334 if { (ac_try="$ac_compile"
11335 case "(($ac_try" in
11336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11337 *) ac_try_echo
=$ac_try;;
11339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11340 (eval "$ac_compile") 2>conftest.er1
11342 grep -v '^ *+' conftest.er1
>conftest.err
11344 cat conftest.err
>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } && {
11347 test -z "$ac_c_werror_flag" ||
11348 test ! -s conftest.err
11349 } && test -s conftest.
$ac_objext; then
11350 ac_hi
=$ac_mid; break
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.
$ac_ext >&5
11355 ac_lo
=`expr $ac_mid + 1`
11356 if test $ac_lo -le $ac_mid; then
11360 ac_mid
=`expr 2 '*' $ac_mid + 1`
11363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.
$ac_ext >&5
11369 cat >conftest.
$ac_ext <<_ACEOF
11372 cat confdefs.h
>>conftest.
$ac_ext
11373 cat >>conftest.
$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 $ac_includes_default
11376 typedef long long ac__type_sizeof_;
11380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11387 rm -f conftest.
$ac_objext
11388 if { (ac_try
="$ac_compile"
11389 case "(($ac_try" in
11390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394 (eval "$ac_compile") 2>conftest.er1
11396 grep -v '^ *+' conftest.er1 >conftest.err
11398 cat conftest.err >&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } && {
11401 test -z "$ac_c_werror_flag" ||
11402 test ! -s conftest.err
11403 } && test -s conftest.$ac_objext; then
11406 cat >conftest.$ac_ext <<_ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 $ac_includes_default
11413 typedef long long ac__type_sizeof_;
11417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11428 *) ac_try_echo
=$ac_try;;
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1
>conftest.err
11435 cat conftest.err
>&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && {
11438 test -z "$ac_c_werror_flag" ||
11439 test ! -s conftest.err
11440 } && test -s conftest.
$ac_objext; then
11441 ac_lo
=$ac_mid; break
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.
$ac_ext >&5
11446 ac_hi
=`expr '(' $ac_mid ')' - 1`
11447 if test $ac_mid -le $ac_hi; then
11451 ac_mid
=`expr 2 '*' $ac_mid`
11454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11457 echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.
$ac_ext >&5
11463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11467 # Binary search between lo and hi bounds.
11468 while test "x$ac_lo" != "x$ac_hi"; do
11469 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11470 cat >conftest.
$ac_ext <<_ACEOF
11473 cat confdefs.h
>>conftest.
$ac_ext
11474 cat >>conftest.
$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 $ac_includes_default
11477 typedef long long ac__type_sizeof_;
11481 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11488 rm -f conftest.
$ac_objext
11489 if { (ac_try
="$ac_compile"
11490 case "(($ac_try" in
11491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11495 (eval "$ac_compile") 2>conftest.er1
11497 grep -v '^ *+' conftest.er1 >conftest.err
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && {
11502 test -z "$ac_c_werror_flag" ||
11503 test ! -s conftest.err
11504 } && test -s conftest.$ac_objext; then
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.$ac_ext >&5
11510 ac_lo=`expr '(' $ac_mid ')' + 1`
11513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11516 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11517 '') if test "$ac_cv_type_long_long" = yes; then
11518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11519 See \`config.log
' for more details." >&5
11520 echo "$as_me: error: cannot compute sizeof (long long)
11521 See \`config.log' for more details.
" >&2;}
11522 { (exit 77); exit 77; }; }
11524 ac_cv_sizeof_long_long=0
11528 cat >conftest.$ac_ext <<_ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 $ac_includes_default
11535 typedef long long ac__type_sizeof_;
11536 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11537 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11539 #include <stdlib.h>
11544 FILE *f = fopen ("conftest.val
", "w
");
11547 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11549 long int i = longval ();
11550 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11552 fprintf (f, "%ld
\n", i);
11556 unsigned long int i = ulongval ();
11557 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11559 fprintf (f, "%lu
\n", i);
11561 return ferror (f) || fclose (f) != 0;
11567 rm -f conftest$ac_exeext
11568 if { (ac_try="$ac_link"
11569 case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_link") 2>&5
11576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 ac_cv_sizeof_long_long=`cat conftest.val`
11589 echo "$as_me: program exited with status
$ac_status" >&5
11590 echo "$as_me: failed program was
:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ( exit $ac_status )
11594 if test "$ac_cv_type_long_long" = yes; then
11595 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11596 See \
`config.log' for more details." >&5
11597 echo "$as_me: error: cannot compute sizeof (long long)
11598 See \`config.log
' for more details." >&2;}
11599 { (exit 77); exit 77; }; }
11601 ac_cv_sizeof_long_long=0
11604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11608 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11609 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11613 cat >>confdefs.h <<_ACEOF
11614 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11620 { echo "$as_me:$LINENO: checking for long double support" >&5
11621 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11622 have_long_double=no
11623 cat >conftest.$ac_ext <<_ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11633 long double x; x = (long double)0.;
11638 rm -f conftest.$ac_objext
11639 if { (ac_try="$ac_compile"
11640 case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645 (eval "$ac_compile") 2>conftest.er1
11647 grep -v '^
*+' conftest.er1 >conftest.err
11649 cat conftest.err >&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } && {
11652 test -z "$ac_c_werror_flag" ||
11653 test ! -s conftest.err
11654 } && test -s conftest.$ac_objext; then
11657 cat >>confdefs.h <<\_ACEOF
11658 #define HAVE_LONG_DOUBLE 1
11661 have_long_double=yes
11664 echo "$as_me: failed program was:" >&5
11665 sed 's
/^
/|
/' conftest.$ac_ext >&5
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11672 echo "${ECHO_T}$have_long_double" >&6; }
11673 if test "$have_long_double" = yes ; then
11674 { echo "$as_me:$LINENO: checking for long double" >&5
11675 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11676 if test "${ac_cv_type_long_double+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 $ac_includes_default
11686 typedef long double ac__type_new_;
11690 if ((ac__type_new_ *) 0)
11692 if (sizeof (ac__type_new_))
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_compile") 2>conftest.er1
11707 grep -v '^
*+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); } && {
11712 test -z "$ac_c_werror_flag" ||
11713 test ! -s conftest.err
11714 } && test -s conftest.$ac_objext; then
11715 ac_cv_type_long_double=yes
11717 echo "$as_me: failed program was:" >&5
11718 sed 's
/^
/|
/' conftest.$ac_ext >&5
11720 ac_cv_type_long_double=no
11723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11726 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11728 # The cast to long int works around a bug in the HP C Compiler
11729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11731 # This bug is HP SR number 8606223364.
11732 { echo "$as_me:$LINENO: checking size of long double" >&5
11733 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11734 if test "${ac_cv_sizeof_long_double+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11737 if test "$cross_compiling" = yes; then
11738 # Depending upon the size, compute the lo and hi bounds.
11739 cat >conftest.
$ac_ext <<_ACEOF
11742 cat confdefs.h
>>conftest.
$ac_ext
11743 cat >>conftest.
$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 $ac_includes_default
11746 typedef long double ac__type_sizeof_;
11750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11757 rm -f conftest.
$ac_objext
11758 if { (ac_try
="$ac_compile"
11759 case "(($ac_try" in
11760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_compile") 2>conftest.er1
11766 grep -v '^ *+' conftest.er1 >conftest.err
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } && {
11771 test -z "$ac_c_werror_flag" ||
11772 test ! -s conftest.err
11773 } && test -s conftest.$ac_objext; then
11776 cat >conftest.$ac_ext <<_ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h. */
11782 $ac_includes_default
11783 typedef long double ac__type_sizeof_;
11787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11794 rm -f conftest.$ac_objext
11795 if { (ac_try="$ac_compile"
11796 case "(($ac_try" in
11797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11798 *) ac_try_echo
=$ac_try;;
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_compile") 2>conftest.er1
11803 grep -v '^ *+' conftest.er1
>conftest.err
11805 cat conftest.err
>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } && {
11808 test -z "$ac_c_werror_flag" ||
11809 test ! -s conftest.err
11810 } && test -s conftest.
$ac_objext; then
11811 ac_hi
=$ac_mid; break
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.
$ac_ext >&5
11816 ac_lo
=`expr $ac_mid + 1`
11817 if test $ac_lo -le $ac_mid; then
11821 ac_mid
=`expr 2 '*' $ac_mid + 1`
11824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.
$ac_ext >&5
11830 cat >conftest.
$ac_ext <<_ACEOF
11833 cat confdefs.h
>>conftest.
$ac_ext
11834 cat >>conftest.
$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11836 $ac_includes_default
11837 typedef long double ac__type_sizeof_;
11841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11848 rm -f conftest.
$ac_objext
11849 if { (ac_try
="$ac_compile"
11850 case "(($ac_try" in
11851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_compile") 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest.$ac_objext; then
11867 cat >conftest.$ac_ext <<_ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 $ac_includes_default
11874 typedef long double ac__type_sizeof_;
11878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11885 rm -f conftest.$ac_objext
11886 if { (ac_try="$ac_compile"
11887 case "(($ac_try" in
11888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11889 *) ac_try_echo
=$ac_try;;
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892 (eval "$ac_compile") 2>conftest.er1
11894 grep -v '^ *+' conftest.er1
>conftest.err
11896 cat conftest.err
>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } && {
11899 test -z "$ac_c_werror_flag" ||
11900 test ! -s conftest.err
11901 } && test -s conftest.
$ac_objext; then
11902 ac_lo
=$ac_mid; break
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.
$ac_ext >&5
11907 ac_hi
=`expr '(' $ac_mid ')' - 1`
11908 if test $ac_mid -le $ac_hi; then
11912 ac_mid
=`expr 2 '*' $ac_mid`
11915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.
$ac_ext >&5
11924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11928 # Binary search between lo and hi bounds.
11929 while test "x$ac_lo" != "x$ac_hi"; do
11930 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11931 cat >conftest.
$ac_ext <<_ACEOF
11934 cat confdefs.h
>>conftest.
$ac_ext
11935 cat >>conftest.
$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11937 $ac_includes_default
11938 typedef long double ac__type_sizeof_;
11942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11949 rm -f conftest.
$ac_objext
11950 if { (ac_try
="$ac_compile"
11951 case "(($ac_try" in
11952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_compile") 2>conftest.er1
11958 grep -v '^ *+' conftest.er1 >conftest.err
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } && {
11963 test -z "$ac_c_werror_flag" ||
11964 test ! -s conftest.err
11965 } && test -s conftest.$ac_objext; then
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 ac_lo=`expr '(' $ac_mid ')' + 1`
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11978 '') if test "$ac_cv_type_long_double" = yes; then
11979 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11980 See \`config.log
' for more details." >&5
11981 echo "$as_me: error: cannot compute sizeof (long double)
11982 See \`config.log' for more details.
" >&2;}
11983 { (exit 77); exit 77; }; }
11985 ac_cv_sizeof_long_double=0
11989 cat >conftest.$ac_ext <<_ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11995 $ac_includes_default
11996 typedef long double ac__type_sizeof_;
11997 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11998 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12000 #include <stdlib.h>
12005 FILE *f = fopen ("conftest.val
", "w
");
12008 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12010 long int i = longval ();
12011 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12013 fprintf (f, "%ld
\n", i);
12017 unsigned long int i = ulongval ();
12018 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12020 fprintf (f, "%lu
\n", i);
12022 return ferror (f) || fclose (f) != 0;
12028 rm -f conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_link") 2>&5
12037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12039 { (case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_try") 2>&5
12046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12047 (exit $ac_status); }; }; then
12048 ac_cv_sizeof_long_double=`cat conftest.val`
12050 echo "$as_me: program exited with status
$ac_status" >&5
12051 echo "$as_me: failed program was
:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 ( exit $ac_status )
12055 if test "$ac_cv_type_long_double" = yes; then
12056 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12057 See \
`config.log' for more details." >&5
12058 echo "$as_me: error: cannot compute sizeof (long double)
12059 See \`config.log
' for more details." >&2;}
12060 { (exit 77); exit 77; }; }
12062 ac_cv_sizeof_long_double=0
12065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12069 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12070 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12074 cat >>confdefs.h <<_ACEOF
12075 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12081 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12082 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12094 _Bool x; x = (_Bool)0;
12099 rm -f conftest.$ac_objext
12100 if { (ac_try="$ac_compile"
12101 case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_compile") 2>conftest.er1
12108 grep -v '^
*+' conftest.er1 >conftest.err
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } && {
12113 test -z "$ac_c_werror_flag" ||
12114 test ! -s conftest.err
12115 } && test -s conftest.$ac_objext; then
12118 cat >>confdefs.h <<\_ACEOF
12119 #define HAVE_C99_BOOL 1
12125 echo "$as_me: failed program was:" >&5
12126 sed 's
/^
/|
/' conftest.$ac_ext >&5
12131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12133 echo "${ECHO_T}$have_c99_bool" >&6; }
12134 if test "$have_c99_bool" = yes ; then
12135 { echo "$as_me:$LINENO: checking for _Bool" >&5
12136 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12137 if test "${ac_cv_type__Bool+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146 $ac_includes_default
12147 typedef _Bool ac__type_new_;
12151 if ((ac__type_new_ *) 0)
12153 if (sizeof (ac__type_new_))
12159 rm -f conftest.$ac_objext
12160 if { (ac_try="$ac_compile"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166 (eval "$ac_compile") 2>conftest.er1
12168 grep -v '^
*+' conftest.er1 >conftest.err
12170 cat conftest.err >&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } && {
12173 test -z "$ac_c_werror_flag" ||
12174 test ! -s conftest.err
12175 } && test -s conftest.$ac_objext; then
12176 ac_cv_type__Bool=yes
12178 echo "$as_me: failed program was:" >&5
12179 sed 's
/^
/|
/' conftest.$ac_ext >&5
12181 ac_cv_type__Bool=no
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12187 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12189 # The cast to long int works around a bug in the HP C Compiler
12190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12192 # This bug is HP SR number 8606223364.
12193 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12194 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12195 if test "${ac_cv_sizeof__Bool+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 if test "$cross_compiling" = yes; then
12199 # Depending upon the size, compute the lo and hi bounds.
12200 cat >conftest.
$ac_ext <<_ACEOF
12203 cat confdefs.h
>>conftest.
$ac_ext
12204 cat >>conftest.
$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12207 typedef _Bool ac__type_sizeof_;
12211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12218 rm -f conftest.
$ac_objext
12219 if { (ac_try
="$ac_compile"
12220 case "(($ac_try" in
12221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_compile") 2>conftest.er1
12227 grep -v '^ *+' conftest.er1 >conftest.err
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } && {
12232 test -z "$ac_c_werror_flag" ||
12233 test ! -s conftest.err
12234 } && test -s conftest.$ac_objext; then
12237 cat >conftest.$ac_ext <<_ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243 $ac_includes_default
12244 typedef _Bool ac__type_sizeof_;
12248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12255 rm -f conftest.$ac_objext
12256 if { (ac_try="$ac_compile"
12257 case "(($ac_try" in
12258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12259 *) ac_try_echo
=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_compile") 2>conftest.er1
12264 grep -v '^ *+' conftest.er1
>conftest.err
12266 cat conftest.err
>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest.
$ac_objext; then
12272 ac_hi
=$ac_mid; break
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.
$ac_ext >&5
12277 ac_lo
=`expr $ac_mid + 1`
12278 if test $ac_lo -le $ac_mid; then
12282 ac_mid
=`expr 2 '*' $ac_mid + 1`
12285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.
$ac_ext >&5
12291 cat >conftest.
$ac_ext <<_ACEOF
12294 cat confdefs.h
>>conftest.
$ac_ext
12295 cat >>conftest.
$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 $ac_includes_default
12298 typedef _Bool ac__type_sizeof_;
12302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12309 rm -f conftest.
$ac_objext
12310 if { (ac_try
="$ac_compile"
12311 case "(($ac_try" in
12312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_compile") 2>conftest.er1
12318 grep -v '^ *+' conftest.er1 >conftest.err
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } && {
12323 test -z "$ac_c_werror_flag" ||
12324 test ! -s conftest.err
12325 } && test -s conftest.$ac_objext; then
12328 cat >conftest.$ac_ext <<_ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12334 $ac_includes_default
12335 typedef _Bool ac__type_sizeof_;
12339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12346 rm -f conftest.$ac_objext
12347 if { (ac_try="$ac_compile"
12348 case "(($ac_try" in
12349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12350 *) ac_try_echo
=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_compile") 2>conftest.er1
12355 grep -v '^ *+' conftest.er1
>conftest.err
12357 cat conftest.err
>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } && {
12360 test -z "$ac_c_werror_flag" ||
12361 test ! -s conftest.err
12362 } && test -s conftest.
$ac_objext; then
12363 ac_lo
=$ac_mid; break
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.
$ac_ext >&5
12368 ac_hi
=`expr '(' $ac_mid ')' - 1`
12369 if test $ac_mid -le $ac_hi; then
12373 ac_mid
=`expr 2 '*' $ac_mid`
12376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.
$ac_ext >&5
12385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12389 # Binary search between lo and hi bounds.
12390 while test "x$ac_lo" != "x$ac_hi"; do
12391 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12392 cat >conftest.
$ac_ext <<_ACEOF
12395 cat confdefs.h
>>conftest.
$ac_ext
12396 cat >>conftest.
$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 $ac_includes_default
12399 typedef _Bool ac__type_sizeof_;
12403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12410 rm -f conftest.
$ac_objext
12411 if { (ac_try
="$ac_compile"
12412 case "(($ac_try" in
12413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_compile") 2>conftest.er1
12419 grep -v '^ *+' conftest.er1 >conftest.err
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest.$ac_objext; then
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_lo=`expr '(' $ac_mid ')' + 1`
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12439 '') if test "$ac_cv_type__Bool" = yes; then
12440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12441 See \`config.log
' for more details." >&5
12442 echo "$as_me: error: cannot compute sizeof (_Bool)
12443 See \`config.log' for more details.
" >&2;}
12444 { (exit 77); exit 77; }; }
12446 ac_cv_sizeof__Bool=0
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 $ac_includes_default
12457 typedef _Bool ac__type_sizeof_;
12458 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12459 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12461 #include <stdlib.h>
12466 FILE *f = fopen ("conftest.val
", "w
");
12469 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12471 long int i = longval ();
12472 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12474 fprintf (f, "%ld
\n", i);
12478 unsigned long int i = ulongval ();
12479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12481 fprintf (f, "%lu
\n", i);
12483 return ferror (f) || fclose (f) != 0;
12489 rm -f conftest$ac_exeext
12490 if { (ac_try="$ac_link"
12491 case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_link") 2>&5
12498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12500 { (case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_try") 2>&5
12507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_cv_sizeof__Bool=`cat conftest.val`
12511 echo "$as_me: program exited with status
$ac_status" >&5
12512 echo "$as_me: failed program was
:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12515 ( exit $ac_status )
12516 if test "$ac_cv_type__Bool" = yes; then
12517 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12518 See \
`config.log' for more details." >&5
12519 echo "$as_me: error: cannot compute sizeof (_Bool)
12520 See \`config.log
' for more details." >&2;}
12521 { (exit 77); exit 77; }; }
12523 ac_cv_sizeof__Bool=0
12526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12530 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12531 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12535 cat >>confdefs.h <<_ACEOF
12536 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12542 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12543 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12544 if test "${ac_cv_type_uintptr_t+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 cat >conftest.$ac_ext <<_ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12553 #ifdef HAVE_STDINT_H
12554 #include <stdint.h>
12557 typedef uintptr_t ac__type_new_;
12561 if ((ac__type_new_ *) 0)
12563 if (sizeof (ac__type_new_))
12569 rm -f conftest.$ac_objext
12570 if { (ac_try="$ac_compile"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_compile") 2>conftest.er1
12578 grep -v '^
*+' conftest.er1 >conftest.err
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } && {
12583 test -z "$ac_c_werror_flag" ||
12584 test ! -s conftest.err
12585 } && test -s conftest.$ac_objext; then
12586 ac_cv_type_uintptr_t=yes
12588 echo "$as_me: failed program was:" >&5
12589 sed 's
/^
/|
/' conftest.$ac_ext >&5
12591 ac_cv_type_uintptr_t=no
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12597 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12598 if test $ac_cv_type_uintptr_t = yes; then
12600 cat >>confdefs.h <<_ACEOF
12601 #define HAVE_UINTPTR_T 1
12604 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12605 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12606 if test "${ac_cv_type_uintptr_t+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 $ac_includes_default
12616 typedef uintptr_t ac__type_new_;
12620 if ((ac__type_new_ *) 0)
12622 if (sizeof (ac__type_new_))
12628 rm -f conftest.$ac_objext
12629 if { (ac_try="$ac_compile"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_compile") 2>conftest.er1
12637 grep -v '^
*+' conftest.er1 >conftest.err
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } && {
12642 test -z "$ac_c_werror_flag" ||
12643 test ! -s conftest.err
12644 } && test -s conftest.$ac_objext; then
12645 ac_cv_type_uintptr_t=yes
12647 echo "$as_me: failed program was:" >&5
12648 sed 's
/^
/|
/' conftest.$ac_ext >&5
12650 ac_cv_type_uintptr_t=no
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12655 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12656 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12658 # The cast to long int works around a bug in the HP C Compiler
12659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12661 # This bug is HP SR number 8606223364.
12662 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12663 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12664 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 if test "$cross_compiling" = yes; then
12668 # Depending upon the size, compute the lo and hi bounds.
12669 cat >conftest.
$ac_ext <<_ACEOF
12672 cat confdefs.h
>>conftest.
$ac_ext
12673 cat >>conftest.
$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 $ac_includes_default
12676 typedef uintptr_t ac__type_sizeof_;
12680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12687 rm -f conftest.
$ac_objext
12688 if { (ac_try
="$ac_compile"
12689 case "(($ac_try" in
12690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_compile") 2>conftest.er1
12696 grep -v '^ *+' conftest.er1 >conftest.err
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && {
12701 test -z "$ac_c_werror_flag" ||
12702 test ! -s conftest.err
12703 } && test -s conftest.$ac_objext; then
12706 cat >conftest.$ac_ext <<_ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12712 $ac_includes_default
12713 typedef uintptr_t ac__type_sizeof_;
12717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12724 rm -f conftest.$ac_objext
12725 if { (ac_try="$ac_compile"
12726 case "(($ac_try" in
12727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12728 *) ac_try_echo
=$ac_try;;
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_compile") 2>conftest.er1
12733 grep -v '^ *+' conftest.er1
>conftest.err
12735 cat conftest.err
>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } && {
12738 test -z "$ac_c_werror_flag" ||
12739 test ! -s conftest.err
12740 } && test -s conftest.
$ac_objext; then
12741 ac_hi
=$ac_mid; break
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.
$ac_ext >&5
12746 ac_lo
=`expr $ac_mid + 1`
12747 if test $ac_lo -le $ac_mid; then
12751 ac_mid
=`expr 2 '*' $ac_mid + 1`
12754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.
$ac_ext >&5
12760 cat >conftest.
$ac_ext <<_ACEOF
12763 cat confdefs.h
>>conftest.
$ac_ext
12764 cat >>conftest.
$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 $ac_includes_default
12767 typedef uintptr_t ac__type_sizeof_;
12771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12778 rm -f conftest.
$ac_objext
12779 if { (ac_try
="$ac_compile"
12780 case "(($ac_try" in
12781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_compile") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } && {
12792 test -z "$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12794 } && test -s conftest.$ac_objext; then
12797 cat >conftest.$ac_ext <<_ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12804 typedef uintptr_t ac__type_sizeof_;
12808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12815 rm -f conftest.$ac_objext
12816 if { (ac_try="$ac_compile"
12817 case "(($ac_try" in
12818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12819 *) ac_try_echo
=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_compile") 2>conftest.er1
12824 grep -v '^ *+' conftest.er1
>conftest.err
12826 cat conftest.err
>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && {
12829 test -z "$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 } && test -s conftest.
$ac_objext; then
12832 ac_lo
=$ac_mid; break
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.
$ac_ext >&5
12837 ac_hi
=`expr '(' $ac_mid ')' - 1`
12838 if test $ac_mid -le $ac_hi; then
12842 ac_mid
=`expr 2 '*' $ac_mid`
12845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12848 echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.
$ac_ext >&5
12854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12858 # Binary search between lo and hi bounds.
12859 while test "x$ac_lo" != "x$ac_hi"; do
12860 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12861 cat >conftest.
$ac_ext <<_ACEOF
12864 cat confdefs.h
>>conftest.
$ac_ext
12865 cat >>conftest.
$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12867 $ac_includes_default
12868 typedef uintptr_t ac__type_sizeof_;
12872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12879 rm -f conftest.
$ac_objext
12880 if { (ac_try
="$ac_compile"
12881 case "(($ac_try" in
12882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_compile") 2>conftest.er1
12888 grep -v '^ *+' conftest.er1 >conftest.err
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } && {
12893 test -z "$ac_c_werror_flag" ||
12894 test ! -s conftest.err
12895 } && test -s conftest.$ac_objext; then
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 ac_lo=`expr '(' $ac_mid ')' + 1`
12904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12908 '') if test "$ac_cv_type_uintptr_t" = yes; then
12909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12910 See \`config.log
' for more details." >&5
12911 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12912 See \`config.log' for more details.
" >&2;}
12913 { (exit 77); exit 77; }; }
12915 ac_cv_sizeof_uintptr_t=0
12919 cat >conftest.$ac_ext <<_ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 $ac_includes_default
12926 typedef uintptr_t ac__type_sizeof_;
12927 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12928 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12930 #include <stdlib.h>
12935 FILE *f = fopen ("conftest.val
", "w
");
12938 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12940 long int i = longval ();
12941 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12943 fprintf (f, "%ld
\n", i);
12947 unsigned long int i = ulongval ();
12948 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12950 fprintf (f, "%lu
\n", i);
12952 return ferror (f) || fclose (f) != 0;
12958 rm -f conftest$ac_exeext
12959 if { (ac_try="$ac_link"
12960 case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_link") 2>&5
12967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12969 { (case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12977 (exit $ac_status); }; }; then
12978 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12980 echo "$as_me: program exited with status
$ac_status" >&5
12981 echo "$as_me: failed program was
:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12984 ( exit $ac_status )
12985 if test "$ac_cv_type_uintptr_t" = yes; then
12986 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12987 See \
`config.log' for more details." >&5
12988 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12989 See \`config.log
' for more details." >&2;}
12990 { (exit 77); exit 77; }; }
12992 ac_cv_sizeof_uintptr_t=0
12995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12999 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13000 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13004 cat >>confdefs.h <<_ACEOF
13005 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13012 { echo "$as_me:$LINENO: checking for off_t" >&5
13013 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13014 if test "${ac_cv_type_off_t+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 cat >conftest.$ac_ext <<_ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13024 #ifdef HAVE_SYS_TYPES_H
13025 #include <sys/types.h>
13029 typedef off_t ac__type_new_;
13033 if ((ac__type_new_ *) 0)
13035 if (sizeof (ac__type_new_))
13041 rm -f conftest.$ac_objext
13042 if { (ac_try="$ac_compile"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_compile") 2>conftest.er1
13050 grep -v '^
*+' conftest.er1 >conftest.err
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } && {
13055 test -z "$ac_c_werror_flag" ||
13056 test ! -s conftest.err
13057 } && test -s conftest.$ac_objext; then
13058 ac_cv_type_off_t=yes
13060 echo "$as_me: failed program was:" >&5
13061 sed 's
/^
/|
/' conftest.$ac_ext >&5
13063 ac_cv_type_off_t=no
13066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13069 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13071 # The cast to long int works around a bug in the HP C Compiler
13072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13074 # This bug is HP SR number 8606223364.
13075 { echo "$as_me:$LINENO: checking size of off_t" >&5
13076 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13077 if test "${ac_cv_sizeof_off_t+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 if test "$cross_compiling" = yes; then
13081 # Depending upon the size, compute the lo and hi bounds.
13082 cat >conftest.
$ac_ext <<_ACEOF
13085 cat confdefs.h
>>conftest.
$ac_ext
13086 cat >>conftest.
$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13089 #ifdef HAVE_SYS_TYPES_H
13090 #include <sys/types.h>
13094 typedef off_t ac__type_sizeof_;
13098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13105 rm -f conftest.
$ac_objext
13106 if { (ac_try
="$ac_compile"
13107 case "(($ac_try" in
13108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_compile") 2>conftest.er1
13114 grep -v '^ *+' conftest.er1 >conftest.err
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } && {
13119 test -z "$ac_c_werror_flag" ||
13120 test ! -s conftest.err
13121 } && test -s conftest.$ac_objext; then
13124 cat >conftest.$ac_ext <<_ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13131 #ifdef HAVE_SYS_TYPES_H
13132 #include <sys/types.h>
13136 typedef off_t ac__type_sizeof_;
13140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13147 rm -f conftest.$ac_objext
13148 if { (ac_try="$ac_compile"
13149 case "(($ac_try" in
13150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13151 *) ac_try_echo
=$ac_try;;
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_compile") 2>conftest.er1
13156 grep -v '^ *+' conftest.er1
>conftest.err
13158 cat conftest.err
>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } && {
13161 test -z "$ac_c_werror_flag" ||
13162 test ! -s conftest.err
13163 } && test -s conftest.
$ac_objext; then
13164 ac_hi
=$ac_mid; break
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.
$ac_ext >&5
13169 ac_lo
=`expr $ac_mid + 1`
13170 if test $ac_lo -le $ac_mid; then
13174 ac_mid
=`expr 2 '*' $ac_mid + 1`
13177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13180 echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.
$ac_ext >&5
13183 cat >conftest.
$ac_ext <<_ACEOF
13186 cat confdefs.h
>>conftest.
$ac_ext
13187 cat >>conftest.
$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13190 #ifdef HAVE_SYS_TYPES_H
13191 #include <sys/types.h>
13195 typedef off_t ac__type_sizeof_;
13199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13206 rm -f conftest.
$ac_objext
13207 if { (ac_try
="$ac_compile"
13208 case "(($ac_try" in
13209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_compile") 2>conftest.er1
13215 grep -v '^ *+' conftest.er1 >conftest.err
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && {
13220 test -z "$ac_c_werror_flag" ||
13221 test ! -s conftest.err
13222 } && test -s conftest.$ac_objext; then
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13232 #ifdef HAVE_SYS_TYPES_H
13233 #include <sys/types.h>
13237 typedef off_t ac__type_sizeof_;
13241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13252 *) ac_try_echo
=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_compile") 2>conftest.er1
13257 grep -v '^ *+' conftest.er1
>conftest.err
13259 cat conftest.err
>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } && {
13262 test -z "$ac_c_werror_flag" ||
13263 test ! -s conftest.err
13264 } && test -s conftest.
$ac_objext; then
13265 ac_lo
=$ac_mid; break
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.
$ac_ext >&5
13270 ac_hi
=`expr '(' $ac_mid ')' - 1`
13271 if test $ac_mid -le $ac_hi; then
13275 ac_mid
=`expr 2 '*' $ac_mid`
13278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.
$ac_ext >&5
13287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13291 # Binary search between lo and hi bounds.
13292 while test "x$ac_lo" != "x$ac_hi"; do
13293 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13294 cat >conftest.
$ac_ext <<_ACEOF
13297 cat confdefs.h
>>conftest.
$ac_ext
13298 cat >>conftest.
$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13301 #ifdef HAVE_SYS_TYPES_H
13302 #include <sys/types.h>
13306 typedef off_t ac__type_sizeof_;
13310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13317 rm -f conftest.
$ac_objext
13318 if { (ac_try
="$ac_compile"
13319 case "(($ac_try" in
13320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_compile") 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && {
13331 test -z "$ac_c_werror_flag" ||
13332 test ! -s conftest.err
13333 } && test -s conftest.$ac_objext; then
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13339 ac_lo=`expr '(' $ac_mid ')' + 1`
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13346 '') if test "$ac_cv_type_off_t" = yes; then
13347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13348 See \`config.log
' for more details." >&5
13349 echo "$as_me: error: cannot compute sizeof (off_t)
13350 See \`config.log' for more details.
" >&2;}
13351 { (exit 77); exit 77; }; }
13353 ac_cv_sizeof_off_t=0
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13364 #ifdef HAVE_SYS_TYPES_H
13365 #include <sys/types.h>
13369 typedef off_t ac__type_sizeof_;
13370 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13371 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13373 #include <stdlib.h>
13378 FILE *f = fopen ("conftest.val
", "w
");
13381 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13383 long int i = longval ();
13384 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13386 fprintf (f, "%ld
\n", i);
13390 unsigned long int i = ulongval ();
13391 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13393 fprintf (f, "%lu
\n", i);
13395 return ferror (f) || fclose (f) != 0;
13401 rm -f conftest$ac_exeext
13402 if { (ac_try="$ac_link"
13403 case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_link") 2>&5
13410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13412 { (case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_try") 2>&5
13419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_cv_sizeof_off_t=`cat conftest.val`
13423 echo "$as_me: program exited with status
$ac_status" >&5
13424 echo "$as_me: failed program was
:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13427 ( exit $ac_status )
13428 if test "$ac_cv_type_off_t" = yes; then
13429 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
13430 See \
`config.log' for more details." >&5
13431 echo "$as_me: error: cannot compute sizeof (off_t)
13432 See \`config.log
' for more details." >&2;}
13433 { (exit 77); exit 77; }; }
13435 ac_cv_sizeof_off_t=0
13438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13442 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13443 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13447 cat >>confdefs.h <<_ACEOF
13448 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13453 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13454 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13455 if test "$have_long_long" = yes -a \
13456 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13457 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13459 cat >>confdefs.h <<\_ACEOF
13460 #define HAVE_LARGEFILE_SUPPORT 1
13463 { echo "$as_me:$LINENO: result: yes" >&5
13464 echo "${ECHO_T}yes" >&6; }
13466 { echo "$as_me:$LINENO: result: no" >&5
13467 echo "${ECHO_T}no" >&6; }
13470 { echo "$as_me:$LINENO: checking for time_t" >&5
13471 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13472 if test "${ac_cv_type_time_t+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 cat >conftest.$ac_ext <<_ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13482 #ifdef HAVE_SYS_TYPES_H
13483 #include <sys/types.h>
13490 typedef time_t ac__type_new_;
13494 if ((ac__type_new_ *) 0)
13496 if (sizeof (ac__type_new_))
13502 rm -f conftest.$ac_objext
13503 if { (ac_try="$ac_compile"
13504 case "(($ac_try" in
13505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13506 *) ac_try_echo=$ac_try;;
13508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13509 (eval "$ac_compile") 2>conftest.er1
13511 grep -v '^
*+' conftest.er1 >conftest.err
13513 cat conftest.err >&5
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); } && {
13516 test -z "$ac_c_werror_flag" ||
13517 test ! -s conftest.err
13518 } && test -s conftest.$ac_objext; then
13519 ac_cv_type_time_t=yes
13521 echo "$as_me: failed program was:" >&5
13522 sed 's
/^
/|
/' conftest.$ac_ext >&5
13524 ac_cv_type_time_t=no
13527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13529 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13530 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13532 # The cast to long int works around a bug in the HP C Compiler
13533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13535 # This bug is HP SR number 8606223364.
13536 { echo "$as_me:$LINENO: checking size of time_t" >&5
13537 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13538 if test "${ac_cv_sizeof_time_t+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 if test "$cross_compiling" = yes; then
13542 # Depending upon the size, compute the lo and hi bounds.
13543 cat >conftest.
$ac_ext <<_ACEOF
13546 cat confdefs.h
>>conftest.
$ac_ext
13547 cat >>conftest.
$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13550 #ifdef HAVE_SYS_TYPES_H
13551 #include <sys/types.h>
13558 typedef time_t ac__type_sizeof_;
13562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13569 rm -f conftest.
$ac_objext
13570 if { (ac_try
="$ac_compile"
13571 case "(($ac_try" in
13572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_compile") 2>conftest.er1
13578 grep -v '^ *+' conftest.er1 >conftest.err
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } && {
13583 test -z "$ac_c_werror_flag" ||
13584 test ! -s conftest.err
13585 } && test -s conftest.$ac_objext; then
13588 cat >conftest.$ac_ext <<_ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13595 #ifdef HAVE_SYS_TYPES_H
13596 #include <sys/types.h>
13603 typedef time_t ac__type_sizeof_;
13607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13614 rm -f conftest.$ac_objext
13615 if { (ac_try="$ac_compile"
13616 case "(($ac_try" in
13617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13618 *) ac_try_echo
=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_compile") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1
>conftest.err
13625 cat conftest.err
>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } && {
13628 test -z "$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13630 } && test -s conftest.
$ac_objext; then
13631 ac_hi
=$ac_mid; break
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.
$ac_ext >&5
13636 ac_lo
=`expr $ac_mid + 1`
13637 if test $ac_lo -le $ac_mid; then
13641 ac_mid
=`expr 2 '*' $ac_mid + 1`
13644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.
$ac_ext >&5
13650 cat >conftest.
$ac_ext <<_ACEOF
13653 cat confdefs.h
>>conftest.
$ac_ext
13654 cat >>conftest.
$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13657 #ifdef HAVE_SYS_TYPES_H
13658 #include <sys/types.h>
13665 typedef time_t ac__type_sizeof_;
13669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13676 rm -f conftest.
$ac_objext
13677 if { (ac_try
="$ac_compile"
13678 case "(($ac_try" in
13679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683 (eval "$ac_compile") 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } && {
13690 test -z "$ac_c_werror_flag" ||
13691 test ! -s conftest.err
13692 } && test -s conftest.$ac_objext; then
13695 cat >conftest.$ac_ext <<_ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13702 #ifdef HAVE_SYS_TYPES_H
13703 #include <sys/types.h>
13710 typedef time_t ac__type_sizeof_;
13714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13721 rm -f conftest.$ac_objext
13722 if { (ac_try="$ac_compile"
13723 case "(($ac_try" in
13724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13725 *) ac_try_echo
=$ac_try;;
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_compile") 2>conftest.er1
13730 grep -v '^ *+' conftest.er1
>conftest.err
13732 cat conftest.err
>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } && {
13735 test -z "$ac_c_werror_flag" ||
13736 test ! -s conftest.err
13737 } && test -s conftest.
$ac_objext; then
13738 ac_lo
=$ac_mid; break
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.
$ac_ext >&5
13743 ac_hi
=`expr '(' $ac_mid ')' - 1`
13744 if test $ac_mid -le $ac_hi; then
13748 ac_mid
=`expr 2 '*' $ac_mid`
13751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.
$ac_ext >&5
13760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13764 # Binary search between lo and hi bounds.
13765 while test "x$ac_lo" != "x$ac_hi"; do
13766 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13767 cat >conftest.
$ac_ext <<_ACEOF
13770 cat confdefs.h
>>conftest.
$ac_ext
13771 cat >>conftest.
$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13774 #ifdef HAVE_SYS_TYPES_H
13775 #include <sys/types.h>
13782 typedef time_t ac__type_sizeof_;
13786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13793 rm -f conftest.
$ac_objext
13794 if { (ac_try
="$ac_compile"
13795 case "(($ac_try" in
13796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_compile") 2>conftest.er1
13802 grep -v '^ *+' conftest.er1 >conftest.err
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } && {
13807 test -z "$ac_c_werror_flag" ||
13808 test ! -s conftest.err
13809 } && test -s conftest.$ac_objext; then
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13815 ac_lo=`expr '(' $ac_mid ')' + 1`
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13821 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13822 '') if test "$ac_cv_type_time_t" = yes; then
13823 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13824 See \`config.log
' for more details." >&5
13825 echo "$as_me: error: cannot compute sizeof (time_t)
13826 See \`config.log' for more details.
" >&2;}
13827 { (exit 77); exit 77; }; }
13829 ac_cv_sizeof_time_t=0
13833 cat >conftest.$ac_ext <<_ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13840 #ifdef HAVE_SYS_TYPES_H
13841 #include <sys/types.h>
13848 typedef time_t ac__type_sizeof_;
13849 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13850 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13852 #include <stdlib.h>
13857 FILE *f = fopen ("conftest.val
", "w
");
13860 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13862 long int i = longval ();
13863 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13865 fprintf (f, "%ld
\n", i);
13869 unsigned long int i = ulongval ();
13870 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13872 fprintf (f, "%lu
\n", i);
13874 return ferror (f) || fclose (f) != 0;
13880 rm -f conftest$ac_exeext
13881 if { (ac_try="$ac_link"
13882 case "(($ac_try" in
13883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884 *) ac_try_echo=$ac_try;;
13886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13887 (eval "$ac_link") 2>&5
13889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13891 { (case "(($ac_try" in
13892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13893 *) ac_try_echo=$ac_try;;
13895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_try") 2>&5
13898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_sizeof_time_t=`cat conftest.val`
13902 echo "$as_me: program exited with status
$ac_status" >&5
13903 echo "$as_me: failed program was
:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13906 ( exit $ac_status )
13907 if test "$ac_cv_type_time_t" = yes; then
13908 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(time_t
)
13909 See \
`config.log' for more details." >&5
13910 echo "$as_me: error: cannot compute sizeof (time_t)
13911 See \`config.log
' for more details." >&2;}
13912 { (exit 77); exit 77; }; }
13914 ac_cv_sizeof_time_t=0
13917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13921 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13922 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13926 cat >>confdefs.h <<_ACEOF
13927 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13932 # if have pthread_t then define SIZEOF_PTHREAD_T
13934 if test "$ac_cv_kpthread" = "yes"
13935 then CC="$CC -Kpthread"
13936 elif test "$ac_cv_kthread" = "yes"
13937 then CC="$CC -Kthread"
13938 elif test "$ac_cv_pthread" = "yes"
13939 then CC="$CC -pthread"
13941 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13942 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13944 cat >conftest.$ac_ext <<_ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13950 #include <pthread.h>
13954 pthread_t x; x = *(pthread_t*)0;
13959 rm -f conftest.$ac_objext
13960 if { (ac_try="$ac_compile"
13961 case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_compile") 2>conftest.er1
13968 grep -v '^
*+' conftest.er1 >conftest.err
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } && {
13973 test -z "$ac_c_werror_flag" ||
13974 test ! -s conftest.err
13975 } && test -s conftest.$ac_objext; then
13978 echo "$as_me: failed program was:" >&5
13979 sed 's
/^
/|
/' conftest.$ac_ext >&5
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13986 echo "${ECHO_T}$have_pthread_t" >&6; }
13987 if test "$have_pthread_t" = yes ; then
13988 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13989 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13990 if test "${ac_cv_type_pthread_t+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 cat >conftest.$ac_ext <<_ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
14000 #ifdef HAVE_PTHREAD_H
14001 #include <pthread.h>
14005 typedef pthread_t ac__type_new_;
14009 if ((ac__type_new_ *) 0)
14011 if (sizeof (ac__type_new_))
14017 rm -f conftest.$ac_objext
14018 if { (ac_try="$ac_compile"
14019 case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_compile") 2>conftest.er1
14026 grep -v '^
*+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } && {
14031 test -z "$ac_c_werror_flag" ||
14032 test ! -s conftest.err
14033 } && test -s conftest.$ac_objext; then
14034 ac_cv_type_pthread_t=yes
14036 echo "$as_me: failed program was:" >&5
14037 sed 's
/^
/|
/' conftest.$ac_ext >&5
14039 ac_cv_type_pthread_t=no
14042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14045 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14047 # The cast to long int works around a bug in the HP C Compiler
14048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14050 # This bug is HP SR number 8606223364.
14051 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14052 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14053 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 if test "$cross_compiling" = yes; then
14057 # Depending upon the size, compute the lo and hi bounds.
14058 cat >conftest.
$ac_ext <<_ACEOF
14061 cat confdefs.h
>>conftest.
$ac_ext
14062 cat >>conftest.
$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14065 #ifdef HAVE_PTHREAD_H
14066 #include <pthread.h>
14070 typedef pthread_t ac__type_sizeof_;
14074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14081 rm -f conftest.
$ac_objext
14082 if { (ac_try
="$ac_compile"
14083 case "(($ac_try" in
14084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_compile") 2>conftest.er1
14090 grep -v '^ *+' conftest.er1 >conftest.err
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } && {
14095 test -z "$ac_c_werror_flag" ||
14096 test ! -s conftest.err
14097 } && test -s conftest.$ac_objext; then
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14107 #ifdef HAVE_PTHREAD_H
14108 #include <pthread.h>
14112 typedef pthread_t ac__type_sizeof_;
14116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14123 rm -f conftest.$ac_objext
14124 if { (ac_try="$ac_compile"
14125 case "(($ac_try" in
14126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14127 *) ac_try_echo
=$ac_try;;
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_compile") 2>conftest.er1
14132 grep -v '^ *+' conftest.er1
>conftest.err
14134 cat conftest.err
>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } && {
14137 test -z "$ac_c_werror_flag" ||
14138 test ! -s conftest.err
14139 } && test -s conftest.
$ac_objext; then
14140 ac_hi
=$ac_mid; break
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.
$ac_ext >&5
14145 ac_lo
=`expr $ac_mid + 1`
14146 if test $ac_lo -le $ac_mid; then
14150 ac_mid
=`expr 2 '*' $ac_mid + 1`
14153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.
$ac_ext >&5
14159 cat >conftest.
$ac_ext <<_ACEOF
14162 cat confdefs.h
>>conftest.
$ac_ext
14163 cat >>conftest.
$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14166 #ifdef HAVE_PTHREAD_H
14167 #include <pthread.h>
14171 typedef pthread_t ac__type_sizeof_;
14175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14182 rm -f conftest.
$ac_objext
14183 if { (ac_try
="$ac_compile"
14184 case "(($ac_try" in
14185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14191 grep -v '^ *+' conftest.er1 >conftest.err
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && {
14196 test -z "$ac_c_werror_flag" ||
14197 test ! -s conftest.err
14198 } && test -s conftest.$ac_objext; then
14201 cat >conftest.$ac_ext <<_ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14208 #ifdef HAVE_PTHREAD_H
14209 #include <pthread.h>
14213 typedef pthread_t ac__type_sizeof_;
14217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14224 rm -f conftest.$ac_objext
14225 if { (ac_try="$ac_compile"
14226 case "(($ac_try" in
14227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14228 *) ac_try_echo
=$ac_try;;
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_compile") 2>conftest.er1
14233 grep -v '^ *+' conftest.er1
>conftest.err
14235 cat conftest.err
>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } && {
14238 test -z "$ac_c_werror_flag" ||
14239 test ! -s conftest.err
14240 } && test -s conftest.
$ac_objext; then
14241 ac_lo
=$ac_mid; break
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.
$ac_ext >&5
14246 ac_hi
=`expr '(' $ac_mid ')' - 1`
14247 if test $ac_mid -le $ac_hi; then
14251 ac_mid
=`expr 2 '*' $ac_mid`
14254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.
$ac_ext >&5
14263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14267 # Binary search between lo and hi bounds.
14268 while test "x$ac_lo" != "x$ac_hi"; do
14269 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14270 cat >conftest.
$ac_ext <<_ACEOF
14273 cat confdefs.h
>>conftest.
$ac_ext
14274 cat >>conftest.
$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14277 #ifdef HAVE_PTHREAD_H
14278 #include <pthread.h>
14282 typedef pthread_t ac__type_sizeof_;
14286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14293 rm -f conftest.
$ac_objext
14294 if { (ac_try
="$ac_compile"
14295 case "(($ac_try" in
14296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_compile") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest.$ac_objext; then
14312 echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14315 ac_lo=`expr '(' $ac_mid ')' + 1`
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14322 '') if test "$ac_cv_type_pthread_t" = yes; then
14323 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14324 See \`config.log
' for more details." >&5
14325 echo "$as_me: error: cannot compute sizeof (pthread_t)
14326 See \`config.log' for more details.
" >&2;}
14327 { (exit 77); exit 77; }; }
14329 ac_cv_sizeof_pthread_t=0
14333 cat >conftest.$ac_ext <<_ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14340 #ifdef HAVE_PTHREAD_H
14341 #include <pthread.h>
14345 typedef pthread_t ac__type_sizeof_;
14346 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14347 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14349 #include <stdlib.h>
14354 FILE *f = fopen ("conftest.val
", "w
");
14357 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14359 long int i = longval ();
14360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14362 fprintf (f, "%ld
\n", i);
14366 unsigned long int i = ulongval ();
14367 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14369 fprintf (f, "%lu
\n", i);
14371 return ferror (f) || fclose (f) != 0;
14377 rm -f conftest$ac_exeext
14378 if { (ac_try="$ac_link"
14379 case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14384 (eval "$ac_link") 2>&5
14386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14388 { (case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14392 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_try") 2>&5
14395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_cv_sizeof_pthread_t=`cat conftest.val`
14399 echo "$as_me: program exited with status
$ac_status" >&5
14400 echo "$as_me: failed program was
:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ( exit $ac_status )
14404 if test "$ac_cv_type_pthread_t" = yes; then
14405 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pthread_t
)
14406 See \
`config.log' for more details." >&5
14407 echo "$as_me: error: cannot compute sizeof (pthread_t)
14408 See \`config.log
' for more details." >&2;}
14409 { (exit 77); exit 77; }; }
14411 ac_cv_sizeof_pthread_t=0
14414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14418 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14419 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14423 cat >>confdefs.h <<_ACEOF
14424 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14431 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14432 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14433 # Check whether --enable-toolbox-glue was given.
14434 if test "${enable_toolbox_glue+set}" = set; then
14435 enableval=$enable_toolbox_glue;
14439 if test -z "$enable_toolbox_glue"
14441 case $ac_sys_system/$ac_sys_release in
14443 enable_toolbox_glue="yes";;
14445 enable_toolbox_glue="no";;
14448 case "$enable_toolbox_glue" in
14450 extra_machdep_objs="Python/mactoolboxglue.o"
14451 extra_undefs="-u _PyMac_Error"
14453 cat >>confdefs.h <<\_ACEOF
14454 #define USE_TOOLBOX_OBJECT_GLUE 1
14459 extra_machdep_objs=""
14463 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14464 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14468 case $ac_sys_system/$ac_sys_release in
14469 Darwin/[01567]\..*)
14470 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14473 OTHER_LIBTOOL_OPT=""
14478 case $ac_sys_system/$ac_sys_release in
14479 Darwin/[01567]\..*)
14480 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14481 if test "${enable_universalsdk}"; then
14484 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14486 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14487 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14489 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14490 if test ${gcc_version} '<' 4.0
14492 LIBTOOL_CRUFT="-lcc_dynamic"
14496 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`"
14497 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14498 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14501 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14502 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14503 if test "$enable_framework"
14505 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14506 # -F. is needed to allow linking to the framework while
14507 # in the build location.
14509 cat >>confdefs.h <<\_ACEOF
14510 #define WITH_NEXT_FRAMEWORK 1
14513 { echo "$as_me:$LINENO: result: yes" >&5
14514 echo "${ECHO_T}yes" >&6; }
14515 if test $enable_shared = "yes"
14517 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
14518 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
14519 { (exit 1); exit 1; }; }
14522 { echo "$as_me:$LINENO: result: no" >&5
14523 echo "${ECHO_T}no" >&6; }
14526 { echo "$as_me:$LINENO: checking for dyld" >&5
14527 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14528 case $ac_sys_system/$ac_sys_release in
14531 cat >>confdefs.h <<\_ACEOF
14532 #define WITH_DYLD 1
14535 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14536 echo "${ECHO_T}always on for Darwin" >&6; }
14539 { echo "$as_me:$LINENO: result: no" >&5
14540 echo "${ECHO_T}no" >&6; }
14544 # Set info about shared libraries.
14550 # SO is the extension of shared libraries `(including the dot!)
14551 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14552 { echo "$as_me:$LINENO: checking SO" >&5
14553 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14556 case $ac_sys_system in
14567 # this might also be a termcap variable, see #610332
14569 echo '====================================================================='
14571 echo '+ WARNING
: You have
set SO
in your environment.
+'
14572 echo '+ Do you really mean to change the extension
for shared libraries?
+'
14573 echo '+ Continuing
in 10 seconds to
let you to ponder.
+'
14575 echo '====================================================================='
14578 { echo "$as_me:$LINENO: result: $SO" >&5
14579 echo "${ECHO_T}$SO" >&6; }
14582 cat >>confdefs.h <<_ACEOF
14583 #define SHLIB_EXT "$SO"
14586 # LDSHARED is the ld *command* used to create shared library
14587 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14588 # (Shared libraries in this instance are shared modules to be loaded into
14589 # Python, as opposed to building Python itself as a shared library.)
14590 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14591 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14592 if test -z "$LDSHARED"
14594 case $ac_sys_system/$ac_sys_release in
14596 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14597 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14600 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14601 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14603 IRIX/5*) LDSHARED="ld -shared";;
14604 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14606 if test "$GCC" = "yes"
14607 then LDSHARED='$
(CC
) -shared'
14608 else LDSHARED='$
(CC
) -G';
14611 if test "$GCC" = "yes"
14612 then LDSHARED='$
(CC
) -shared'
14613 else LDSHARED='ld
-b';
14615 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14617 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14618 if test "$enable_framework" ; then
14619 # Link against the framework. All externals should be defined.
14620 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14621 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14623 # No framework. Ignore undefined symbols, assuming they come from Python
14624 LDSHARED="$LDSHARED -undefined suppress"
14626 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14627 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14628 if test "$enable_framework" ; then
14629 # Link against the framework. All externals should be defined.
14630 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14631 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14633 # No framework, use the Python app as bundle-loader
14634 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14635 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14638 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14639 # This allows an extension to be used in any Python
14641 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14643 if test "${enable_universalsdk}"; then
14644 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14646 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle -undefined dynamic_lookup
'
14647 BLDSHARED="$LDSHARED"
14649 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14650 if test "$enable_framework" ; then
14651 # Link against the framework. All externals should be defined.
14652 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14653 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14655 # No framework, use the Python app as bundle-loader
14656 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14657 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14661 Linux*|GNU*|QNX*) LDSHARED='$
(CC
) -shared';;
14662 BSD/OS*/4*) LDSHARED="gcc -shared";;
14664 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14666 LDSHARED="$CC -shared ${LDFLAGS}"
14668 LDSHARED="ld -Bshareable ${LDFLAGS}"
14671 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14673 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14676 [01].* | 2.[0-7] | 2.[0-7].*)
14677 LDSHARED="ld -Bshareable ${LDFLAGS}"
14680 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14684 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14685 OpenUNIX*|UnixWare*)
14686 if test "$GCC" = "yes"
14687 then LDSHARED='$
(CC
) -shared'
14688 else LDSHARED='$
(CC
) -G'
14690 SCO_SV*) LDSHARED='$
(CC
) -Wl,-G,-Bexport';;
14691 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
14692 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14693 atheos*) LDSHARED="gcc -shared";;
14697 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14698 echo "${ECHO_T}$LDSHARED" >&6; }
14699 BLDSHARED=${BLDSHARED-$LDSHARED}
14700 # CCSHARED are the C *flags* used to create objects to go into a shared
14701 # library (module) -- this is only needed for a few systems
14702 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14703 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14704 if test -z "$CCSHARED"
14706 case $ac_sys_system/$ac_sys_release in
14707 SunOS*) if test "$GCC" = yes;
14708 then CCSHARED="-fPIC";
14709 elif test `uname -p` = sparc;
14710 then CCSHARED="-xcode=pic32";
14711 else CCSHARED="-Kpic";
14713 hp*|HP*) if test "$GCC" = yes;
14714 then CCSHARED="-fPIC";
14715 else CCSHARED="+z";
14717 Linux*|GNU*) CCSHARED="-fPIC";;
14718 BSD/OS*/4*) CCSHARED="-fpic";;
14719 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14720 OpenUNIX*|UnixWare*)
14721 if test "$GCC" = "yes"
14722 then CCSHARED="-fPIC"
14723 else CCSHARED="-KPIC"
14726 if test "$GCC" = "yes"
14727 then CCSHARED="-fPIC"
14728 else CCSHARED="-Kpic -belf"
14730 Monterey*) CCSHARED="-G";;
14731 IRIX*/6*) case $CC in
14732 *gcc*) CCSHARED="-shared";;
14735 atheos*) CCSHARED="-fPIC";;
14738 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14739 echo "${ECHO_T}$CCSHARED" >&6; }
14740 # LINKFORSHARED are the flags passed to the $(CC) command that links
14741 # the python executable -- this is only needed for a few systems
14742 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14743 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14744 if test -z "$LINKFORSHARED"
14746 case $ac_sys_system/$ac_sys_release in
14747 AIX*) LINKFORSHARED='-Wl,-bE:Modules
/python.exp
-lld';;
14749 LINKFORSHARED="-Wl,-E -Wl,+s";;
14750 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14751 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14752 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14753 # -u libsys_s pulls in all symbols in libsys
14755 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14757 # not used by the core itself but which needs to be in the core so
14758 # that dynamically loaded extension modules have access to it.
14759 # -prebind is no longer used, because it actually seems to give a
14760 # slowdown in stead of a speedup, maybe due to the large number of
14761 # dynamic loads Python does.
14763 LINKFORSHARED="$extra_undefs"
14764 if test "$enable_framework"
14766 LINKFORSHARED="$LINKFORSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14768 LINKFORSHARED="$LINKFORSHARED";;
14769 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14770 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14771 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14772 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14773 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14775 LINKFORSHARED="-Wl,--export-dynamic"
14777 SunOS/5*) case $CC in
14779 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14781 LINKFORSHARED="-Xlinker --export-dynamic"
14785 if test $enable_shared = "no"
14787 LINKFORSHARED='-Wl,--out-implib=$
(LDLIBRARY
)'
14790 # -Wl,-E causes the symbols to be added to the dynamic
14791 # symbol table so that they can be found when a module
14792 # is loaded. -N 2048K causes the stack size to be set
14793 # to 2048 kilobytes so that the stack doesn't overflow
14794 # when running test_compile.py.
14795 LINKFORSHARED
='-Wl,-E -N 2048K';;
14798 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14799 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14803 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14804 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14805 if test ! "$LIBRARY" = "$LDLIBRARY"
14807 case $ac_sys_system in
14809 # Cygwin needs CCSHARED when building extension DLLs
14810 # but not when building the interpreter DLL.
14811 CFLAGSFORSHARED
='';;
14813 CFLAGSFORSHARED
='$(CCSHARED)'
14816 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14817 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14819 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14820 # library (with --enable-shared).
14821 # For platforms on which shared libraries are not allowed to have unresolved
14822 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14823 # if it is not required, since it creates a dependency of the shared library
14824 # to LIBS. This, in turn, means that applications linking the shared libpython
14825 # don't need to link LIBS explicitly. The default should be only changed
14826 # on systems where this approach causes problems.
14828 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14829 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14830 case "$ac_sys_system" in
14834 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14835 echo "${ECHO_T}$SHLIBS" >&6; }
14838 # checks for libraries
14840 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14841 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 ac_check_lib_save_LIBS
=$LIBS
14847 cat >conftest.
$ac_ext <<_ACEOF
14850 cat confdefs.h
>>conftest.
$ac_ext
14851 cat >>conftest.
$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14854 /* Override any GCC internal prototype to avoid an error.
14855 Use char because int might match the return type of a GCC
14856 builtin and then its argument prototype would still apply. */
14869 rm -f conftest.
$ac_objext conftest
$ac_exeext
14870 if { (ac_try
="$ac_link"
14871 case "(($ac_try" in
14872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14873 *) ac_try_echo=$ac_try;;
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876 (eval "$ac_link") 2>conftest.er1
14878 grep -v '^ *+' conftest.er1 >conftest.err
14880 cat conftest.err >&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); } && {
14883 test -z "$ac_c_werror_flag" ||
14884 test ! -s conftest.err
14885 } && test -s conftest$ac_exeext &&
14886 $as_test_x conftest$ac_exeext; then
14887 ac_cv_lib_dl_dlopen=yes
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14892 ac_cv_lib_dl_dlopen=no
14895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14896 conftest$ac_exeext conftest.$ac_ext
14897 LIBS=$ac_check_lib_save_LIBS
14899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14900 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14901 if test $ac_cv_lib_dl_dlopen = yes; then
14902 cat >>confdefs.h <<_ACEOF
14903 #define HAVE_LIBDL 1
14909 # Dynamic linking for SunOS/Solaris and SYSV
14911 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14912 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
14913 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14914 echo $ECHO_N "(cached) $ECHO_C" >&6
14916 ac_check_lib_save_LIBS=$LIBS
14918 cat >conftest.$ac_ext <<_ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14925 /* Override any GCC internal prototype to avoid an error.
14926 Use char because int might match the return type of a GCC
14927 builtin and then its argument prototype would still apply. */
14935 return shl_load ();
14940 rm -f conftest.$ac_objext conftest$ac_exeext
14941 if { (ac_try="$ac_link"
14942 case "(($ac_try" in
14943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14944 *) ac_try_echo
=$ac_try;;
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_link") 2>conftest.er1
14949 grep -v '^ *+' conftest.er1
>conftest.err
14951 cat conftest.err
>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } && {
14954 test -z "$ac_c_werror_flag" ||
14955 test ! -s conftest.err
14956 } && test -s conftest
$ac_exeext &&
14957 $as_test_x conftest
$ac_exeext; then
14958 ac_cv_lib_dld_shl_load
=yes
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.
$ac_ext >&5
14963 ac_cv_lib_dld_shl_load
=no
14966 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14967 conftest
$ac_exeext conftest.
$ac_ext
14968 LIBS
=$ac_check_lib_save_LIBS
14970 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14971 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
14972 if test $ac_cv_lib_dld_shl_load = yes; then
14973 cat >>confdefs.h
<<_ACEOF
14974 #define HAVE_LIBDLD 1
14980 # Dynamic linking for HP-UX
14982 # only check for sem_init if thread support is requested
14983 if test "$with_threads" = "yes" -o -z "$with_threads"; then
14984 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
14985 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
14986 if test "${ac_cv_search_sem_init+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14989 ac_func_search_save_LIBS
=$LIBS
14990 cat >conftest.
$ac_ext <<_ACEOF
14993 cat confdefs.h
>>conftest.
$ac_ext
14994 cat >>conftest.
$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14997 /* Override any GCC internal prototype to avoid an error.
14998 Use char because int might match the return type of a GCC
14999 builtin and then its argument prototype would still apply. */
15007 return sem_init ();
15012 for ac_lib
in '' pthread rt posix4
; do
15013 if test -z "$ac_lib"; then
15014 ac_res
="none required"
15017 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15019 rm -f conftest.
$ac_objext conftest
$ac_exeext
15020 if { (ac_try
="$ac_link"
15021 case "(($ac_try" in
15022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15023 *) ac_try_echo=$ac_try;;
15025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15026 (eval "$ac_link") 2>conftest.er1
15028 grep -v '^ *+' conftest.er1 >conftest.err
15030 cat conftest.err >&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && {
15033 test -z "$ac_c_werror_flag" ||
15034 test ! -s conftest.err
15035 } && test -s conftest$ac_exeext &&
15036 $as_test_x conftest$ac_exeext; then
15037 ac_cv_search_sem_init=$ac_res
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15047 if test "${ac_cv_search_sem_init+set}" = set; then
15051 if test "${ac_cv_search_sem_init+set}" = set; then
15054 ac_cv_search_sem_init=no
15056 rm conftest.$ac_ext
15057 LIBS=$ac_func_search_save_LIBS
15059 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15060 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15061 ac_res=$ac_cv_search_sem_init
15062 if test "$ac_res" != no; then
15063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15066 # 'Real Time' functions on Solaris
15067 # posix4 on Solaris 2.6
15068 # pthread (first!) on Linux
15071 # check if we need libintl for locale functions
15072 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15073 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15074 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15075 echo $ECHO_N "(cached) $ECHO_C" >&6
15077 ac_check_lib_save_LIBS=$LIBS
15078 LIBS="-lintl $LIBS"
15079 cat >conftest.$ac_ext <<_ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15086 /* Override any GCC internal prototype to avoid an error.
15087 Use char because int might match the return type of a GCC
15088 builtin and then its argument prototype would still apply. */
15092 char textdomain ();
15096 return textdomain ();
15101 rm -f conftest.$ac_objext conftest$ac_exeext
15102 if { (ac_try="$ac_link"
15103 case "(($ac_try" in
15104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15105 *) ac_try_echo
=$ac_try;;
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_link") 2>conftest.er1
15110 grep -v '^ *+' conftest.er1
>conftest.err
15112 cat conftest.err
>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } && {
15115 test -z "$ac_c_werror_flag" ||
15116 test ! -s conftest.err
15117 } && test -s conftest
$ac_exeext &&
15118 $as_test_x conftest
$ac_exeext; then
15119 ac_cv_lib_intl_textdomain
=yes
15121 echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.
$ac_ext >&5
15124 ac_cv_lib_intl_textdomain
=no
15127 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15128 conftest
$ac_exeext conftest.
$ac_ext
15129 LIBS
=$ac_check_lib_save_LIBS
15131 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15132 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15133 if test $ac_cv_lib_intl_textdomain = yes; then
15135 cat >>confdefs.h
<<\_ACEOF
15136 #define WITH_LIBINTL 1
15142 # checks for system dependent C++ extensions support
15143 case "$ac_sys_system" in
15144 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15145 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15146 cat >conftest.
$ac_ext <<_ACEOF
15149 cat confdefs.h
>>conftest.
$ac_ext
15150 cat >>conftest.
$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15152 #include "/usr/lpp/xlC/include/load.h"
15156 loadAndInit("", 0, "")
15161 rm -f conftest.
$ac_objext conftest
$ac_exeext
15162 if { (ac_try
="$ac_link"
15163 case "(($ac_try" in
15164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15165 *) ac_try_echo=$ac_try;;
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168 (eval "$ac_link") 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && {
15175 test -z "$ac_c_werror_flag" ||
15176 test ! -s conftest.err
15177 } && test -s conftest$ac_exeext &&
15178 $as_test_x conftest$ac_exeext; then
15180 cat >>confdefs.h <<\_ACEOF
15181 #define AIX_GENUINE_CPLUSPLUS 1
15184 { echo "$as_me:$LINENO: result: yes" >&5
15185 echo "${ECHO_T}yes" >&6; }
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 { echo "$as_me:$LINENO: result: no" >&5
15191 echo "${ECHO_T}no" >&6; }
15194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15195 conftest$ac_exeext conftest.$ac_ext;;
15199 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15200 # BeOS' sockets are stashed in libnet.
15201 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15202 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15203 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 ac_check_lib_save_LIBS=$LIBS
15208 cat >conftest.$ac_ext <<_ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 /* Override any GCC internal prototype to avoid an error.
15216 Use char because int might match the return type of a GCC
15217 builtin and then its argument prototype would still apply. */
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15234 *) ac_try_echo
=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1
>conftest.err
15241 cat conftest.err
>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } && {
15244 test -z "$ac_c_werror_flag" ||
15245 test ! -s conftest.err
15246 } && test -s conftest
$ac_exeext &&
15247 $as_test_x conftest
$ac_exeext; then
15248 ac_cv_lib_nsl_t_open
=yes
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.
$ac_ext >&5
15253 ac_cv_lib_nsl_t_open
=no
15256 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15257 conftest
$ac_exeext conftest.
$ac_ext
15258 LIBS
=$ac_check_lib_save_LIBS
15260 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15261 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15262 if test $ac_cv_lib_nsl_t_open = yes; then
15266 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15267 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15268 if test "${ac_cv_lib_socket_socket+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 ac_check_lib_save_LIBS
=$LIBS
15272 LIBS
="-lsocket $LIBS $LIBS"
15273 cat >conftest.
$ac_ext <<_ACEOF
15276 cat confdefs.h
>>conftest.
$ac_ext
15277 cat >>conftest.
$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15280 /* Override any GCC internal prototype to avoid an error.
15281 Use char because int might match the return type of a GCC
15282 builtin and then its argument prototype would still apply. */
15295 rm -f conftest.
$ac_objext conftest
$ac_exeext
15296 if { (ac_try
="$ac_link"
15297 case "(($ac_try" in
15298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302 (eval "$ac_link") 2>conftest.er1
15304 grep -v '^ *+' conftest.er1 >conftest.err
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } && {
15309 test -z "$ac_c_werror_flag" ||
15310 test ! -s conftest.err
15311 } && test -s conftest$ac_exeext &&
15312 $as_test_x conftest$ac_exeext; then
15313 ac_cv_lib_socket_socket=yes
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_cv_lib_socket_socket=no
15321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15325 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15326 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15327 if test $ac_cv_lib_socket_socket = yes; then
15328 LIBS="-lsocket $LIBS"
15332 case "$ac_sys_system" in
15334 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15335 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15336 if test "${ac_cv_lib_net_socket+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 ac_check_lib_save_LIBS=$LIBS
15340 LIBS="-lnet $LIBS $LIBS"
15341 cat >conftest.$ac_ext <<_ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15348 /* Override any GCC internal prototype to avoid an error.
15349 Use char because int might match the return type of a GCC
15350 builtin and then its argument prototype would still apply. */
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15367 *) ac_try_echo
=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>conftest.er1
15372 grep -v '^ *+' conftest.er1
>conftest.err
15374 cat conftest.err
>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } && {
15377 test -z "$ac_c_werror_flag" ||
15378 test ! -s conftest.err
15379 } && test -s conftest
$ac_exeext &&
15380 $as_test_x conftest
$ac_exeext; then
15381 ac_cv_lib_net_socket
=yes
15383 echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.
$ac_ext >&5
15386 ac_cv_lib_net_socket
=no
15389 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15390 conftest
$ac_exeext conftest.
$ac_ext
15391 LIBS
=$ac_check_lib_save_LIBS
15393 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15394 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15395 if test $ac_cv_lib_net_socket = yes; then
15402 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15403 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15405 # Check whether --with-libs was given.
15406 if test "${with_libs+set}" = set; then
15407 withval
=$with_libs;
15408 { echo "$as_me:$LINENO: result: $withval" >&5
15409 echo "${ECHO_T}$withval" >&6; }
15410 LIBS
="$withval $LIBS"
15413 { echo "$as_me:$LINENO: result: no" >&5
15414 echo "${ECHO_T}no" >&6; }
15418 # Check for use of the system libffi library
15419 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15420 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15422 # Check whether --with-system_ffi was given.
15423 if test "${with_system_ffi+set}" = set; then
15424 withval
=$with_system_ffi;
15428 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15429 echo "${ECHO_T}$with_system_ffi" >&6; }
15431 # Check for --with-dbmliborder
15432 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15433 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15435 # Check whether --with-dbmliborder was given.
15436 if test "${with_dbmliborder+set}" = set; then
15437 withval
=$with_dbmliborder;
15438 if test x
$with_dbmliborder = xyes
15440 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15441 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15442 { (exit 1); exit 1; }; }
15444 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15445 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
15447 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15448 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15449 { (exit 1); exit 1; }; }
15455 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15456 echo "${ECHO_T}$with_dbmliborder" >&6; }
15458 # Determine if signalmodule should be used.
15461 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15462 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15464 # Check whether --with-signal-module was given.
15465 if test "${with_signal_module+set}" = set; then
15466 withval
=$with_signal_module;
15470 if test -z "$with_signal_module"
15471 then with_signal_module
="yes"
15473 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15474 echo "${ECHO_T}$with_signal_module" >&6; }
15476 if test "${with_signal_module}" = "yes"; then
15477 USE_SIGNAL_MODULE
=""
15480 USE_SIGNAL_MODULE
="#"
15481 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
15484 # This is used to generate Setup.config
15486 USE_THREAD_MODULE
=""
15488 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15489 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15492 # Check whether --with-dec-threads was given.
15493 if test "${with_dec_threads+set}" = set; then
15494 withval
=$with_dec_threads;
15495 { echo "$as_me:$LINENO: result: $withval" >&5
15496 echo "${ECHO_T}$withval" >&6; }
15498 if test "${with_thread+set}" != set; then
15499 with_thread
="$withval";
15502 { echo "$as_me:$LINENO: result: no" >&5
15503 echo "${ECHO_T}no" >&6; }
15507 # Templates for things AC_DEFINEd more than once.
15508 # For a single AC_DEFINE, no template is needed.
15516 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15517 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15519 # Check whether --with-threads was given.
15520 if test "${with_threads+set}" = set; then
15521 withval
=$with_threads;
15525 # --with-thread is deprecated, but check for it anyway
15527 # Check whether --with-thread was given.
15528 if test "${with_thread+set}" = set; then
15529 withval
=$with_thread; with_threads
=$with_thread
15533 if test -z "$with_threads"
15534 then with_threads
="yes"
15536 { echo "$as_me:$LINENO: result: $with_threads" >&5
15537 echo "${ECHO_T}$with_threads" >&6; }
15540 if test "$with_threads" = "no"
15542 USE_THREAD_MODULE
="#"
15543 elif test "$ac_cv_pthread_is_default" = yes
15545 cat >>confdefs.h
<<\_ACEOF
15546 #define WITH_THREAD 1
15549 # Defining _REENTRANT on system with POSIX threads should not hurt.
15550 cat >>confdefs.h
<<\_ACEOF
15551 #define _REENTRANT 1
15555 THREADOBJ
="Python/thread.o"
15556 elif test "$ac_cv_kpthread" = "yes"
15559 if test "$ac_cv_cxx_thread" = "yes"; then
15560 CXX
="$CXX -Kpthread"
15562 cat >>confdefs.h
<<\_ACEOF
15563 #define WITH_THREAD 1
15567 THREADOBJ
="Python/thread.o"
15568 elif test "$ac_cv_kthread" = "yes"
15571 if test "$ac_cv_cxx_thread" = "yes"; then
15572 CXX
="$CXX -Kthread"
15574 cat >>confdefs.h
<<\_ACEOF
15575 #define WITH_THREAD 1
15579 THREADOBJ
="Python/thread.o"
15580 elif test "$ac_cv_pthread" = "yes"
15583 if test "$ac_cv_cxx_thread" = "yes"; then
15584 CXX
="$CXX -pthread"
15586 cat >>confdefs.h
<<\_ACEOF
15587 #define WITH_THREAD 1
15591 THREADOBJ
="Python/thread.o"
15593 if test ! -z "$with_threads" -a -d "$with_threads"
15594 then LDFLAGS
="$LDFLAGS -L$with_threads"
15596 if test ! -z "$withval" -a -d "$withval"
15597 then LDFLAGS
="$LDFLAGS -L$withval"
15600 # According to the POSIX spec, a pthreads implementation must
15601 # define _POSIX_THREADS in unistd.h. Some apparently don't
15602 # (e.g. gnu pth with pthread emulation)
15603 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15604 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15605 cat >conftest.
$ac_ext <<_ACEOF
15608 cat confdefs.h
>>conftest.
$ac_ext
15609 cat >>conftest.
$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15612 #include <unistd.h>
15613 #ifdef _POSIX_THREADS
15618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15619 $EGREP "yes" >/dev
/null
2>&1; then
15620 unistd_defines_pthreads
=yes
15622 unistd_defines_pthreads
=no
15626 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15627 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15629 cat >>confdefs.h
<<\_ACEOF
15630 #define _REENTRANT 1
15633 if test "${ac_cv_header_cthreads_h+set}" = set; then
15634 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15635 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15636 if test "${ac_cv_header_cthreads_h+set}" = set; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15640 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15642 # Is the header compilable?
15643 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15644 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15645 cat >conftest.
$ac_ext <<_ACEOF
15648 cat confdefs.h
>>conftest.
$ac_ext
15649 cat >>conftest.
$ac_ext <<_ACEOF
15650 /* end confdefs.h. */
15651 $ac_includes_default
15652 #include <cthreads.h>
15654 rm -f conftest.
$ac_objext
15655 if { (ac_try
="$ac_compile"
15656 case "(($ac_try" in
15657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_compile") 2>conftest.er1
15663 grep -v '^ *+' conftest.er1 >conftest.err
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && {
15668 test -z "$ac_c_werror_flag" ||
15669 test ! -s conftest.err
15670 } && test -s conftest.$ac_objext; then
15671 ac_header_compiler=yes
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_header_compiler=no
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15681 echo "${ECHO_T}$ac_header_compiler" >&6; }
15683 # Is the header present?
15684 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15685 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15686 cat >conftest.$ac_ext <<_ACEOF
15689 cat confdefs.h >>conftest.$ac_ext
15690 cat >>conftest.$ac_ext <<_ACEOF
15691 /* end confdefs.h. */
15692 #include <cthreads.h>
15694 if { (ac_try="$ac_cpp conftest.$ac_ext"
15695 case "(($ac_try" in
15696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15697 *) ac_try_echo
=$ac_try;;
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15702 grep -v '^ *+' conftest.er1
>conftest.err
15704 cat conftest.err
>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } >/dev
/null
&& {
15707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15708 test ! -s conftest.err
15710 ac_header_preproc
=yes
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.
$ac_ext >&5
15715 ac_header_preproc
=no
15718 rm -f conftest.err conftest.
$ac_ext
15719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15720 echo "${ECHO_T}$ac_header_preproc" >&6; }
15722 # So? What about this header?
15723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15725 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15726 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15728 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15729 ac_header_preproc
=yes
15732 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15733 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15734 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15735 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15737 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15739 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15741 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15743 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15745 ## -------------------------------------- ##
15746 ## Report this to http://bugs.python.org/ ##
15747 ## -------------------------------------- ##
15749 ) |
sed "s/^/$as_me: WARNING: /" >&2
15752 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15753 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15754 if test "${ac_cv_header_cthreads_h+set}" = set; then
15755 echo $ECHO_N "(cached) $ECHO_C" >&6
15757 ac_cv_header_cthreads_h
=$ac_header_preproc
15759 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15760 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15763 if test $ac_cv_header_cthreads_h = yes; then
15764 cat >>confdefs.h
<<\_ACEOF
15765 #define WITH_THREAD 1
15768 cat >>confdefs.h
<<\_ACEOF
15769 #define C_THREADS 1
15773 cat >>confdefs.h
<<\_ACEOF
15774 #define HURD_C_THREADS 1
15777 LIBS
="$LIBS -lthreads"
15778 THREADOBJ
="Python/thread.o"
15781 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15782 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15783 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15784 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15788 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15790 # Is the header compilable?
15791 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15792 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15793 cat >conftest.
$ac_ext <<_ACEOF
15796 cat confdefs.h
>>conftest.
$ac_ext
15797 cat >>conftest.
$ac_ext <<_ACEOF
15798 /* end confdefs.h. */
15799 $ac_includes_default
15800 #include <mach/cthreads.h>
15802 rm -f conftest.
$ac_objext
15803 if { (ac_try
="$ac_compile"
15804 case "(($ac_try" in
15805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15809 (eval "$ac_compile") 2>conftest.er1
15811 grep -v '^ *+' conftest.er1 >conftest.err
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } && {
15816 test -z "$ac_c_werror_flag" ||
15817 test ! -s conftest.err
15818 } && test -s conftest.$ac_objext; then
15819 ac_header_compiler=yes
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ac_header_compiler=no
15827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15829 echo "${ECHO_T}$ac_header_compiler" >&6; }
15831 # Is the header present?
15832 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15833 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 #include <mach/cthreads.h>
15842 if { (ac_try="$ac_cpp conftest.$ac_ext"
15843 case "(($ac_try" in
15844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15845 *) ac_try_echo
=$ac_try;;
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15850 grep -v '^ *+' conftest.er1
>conftest.err
15852 cat conftest.err
>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } >/dev
/null
&& {
15855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15856 test ! -s conftest.err
15858 ac_header_preproc
=yes
15860 echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.
$ac_ext >&5
15863 ac_header_preproc
=no
15866 rm -f conftest.err conftest.
$ac_ext
15867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15868 echo "${ECHO_T}$ac_header_preproc" >&6; }
15870 # So? What about this header?
15871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15873 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15874 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15876 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15877 ac_header_preproc
=yes
15880 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15881 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15883 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15885 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15887 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15889 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15890 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15891 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15893 ## -------------------------------------- ##
15894 ## Report this to http://bugs.python.org/ ##
15895 ## -------------------------------------- ##
15897 ) |
sed "s/^/$as_me: WARNING: /" >&2
15900 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15901 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15902 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
15907 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15908 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15911 if test $ac_cv_header_mach_cthreads_h = yes; then
15912 cat >>confdefs.h
<<\_ACEOF
15913 #define WITH_THREAD 1
15916 cat >>confdefs.h
<<\_ACEOF
15917 #define C_THREADS 1
15921 cat >>confdefs.h
<<\_ACEOF
15922 #define MACH_C_THREADS 1
15925 THREADOBJ
="Python/thread.o"
15928 { echo "$as_me:$LINENO: checking for --with-pth" >&5
15929 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
15931 # Check whether --with-pth was given.
15932 if test "${with_pth+set}" = set; then
15933 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
15934 echo "${ECHO_T}$withval" >&6; }
15935 cat >>confdefs.h
<<\_ACEOF
15936 #define WITH_THREAD 1
15940 cat >>confdefs.h
<<\_ACEOF
15945 THREADOBJ
="Python/thread.o"
15947 { echo "$as_me:$LINENO: result: no" >&5
15948 echo "${ECHO_T}no" >&6; }
15950 # Just looking for pthread_create in libpthread is not enough:
15951 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
15952 # So we really have to include pthread.h, and then link.
15954 LIBS
="$LIBS -lpthread"
15955 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15956 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
15957 cat >conftest.
$ac_ext <<_ACEOF
15960 cat confdefs.h
>>conftest.
$ac_ext
15961 cat >>conftest.
$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15963 #include <pthread.h>
15965 void * start_routine (void *arg) { exit (0); }
15970 pthread_create (NULL, NULL, start_routine, NULL)
15975 rm -f conftest.
$ac_objext conftest
$ac_exeext
15976 if { (ac_try
="$ac_link"
15977 case "(($ac_try" in
15978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_link") 2>conftest.er1
15984 grep -v '^ *+' conftest.er1 >conftest.err
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } && {
15989 test -z "$ac_c_werror_flag" ||
15990 test ! -s conftest.err
15991 } && test -s conftest$ac_exeext &&
15992 $as_test_x conftest$ac_exeext; then
15994 { echo "$as_me:$LINENO: result: yes" >&5
15995 echo "${ECHO_T}yes" >&6; }
15996 cat >>confdefs.h <<\_ACEOF
15997 #define WITH_THREAD 1
16001 THREADOBJ="Python/thread.o"
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16008 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16009 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16010 if test "${ac_cv_func_pthread_detach+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16013 cat >conftest.$ac_ext <<_ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h. */
16019 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16021 #define pthread_detach innocuous_pthread_detach
16023 /* System header to define __stub macros and hopefully few prototypes,
16024 which can conflict with char pthread_detach (); below.
16025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026 <limits.h> exists even on freestanding compilers. */
16029 # include <limits.h>
16031 # include <assert.h>
16034 #undef pthread_detach
16036 /* Override any GCC internal prototype to avoid an error.
16037 Use char because int might match the return type of a GCC
16038 builtin and then its argument prototype would still apply. */
16042 char pthread_detach ();
16043 /* The GNU C library defines this for functions which it implements
16044 to always fail with ENOSYS. Some functions are actually named
16045 something starting with __ and the normal name is an alias. */
16046 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16053 return pthread_detach ();
16058 rm -f conftest.$ac_objext conftest$ac_exeext
16059 if { (ac_try="$ac_link"
16060 case "(($ac_try" in
16061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16062 *) ac_try_echo
=$ac_try;;
16064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_link") 2>conftest.er1
16067 grep -v '^ *+' conftest.er1
>conftest.err
16069 cat conftest.err
>&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } && {
16072 test -z "$ac_c_werror_flag" ||
16073 test ! -s conftest.err
16074 } && test -s conftest
$ac_exeext &&
16075 $as_test_x conftest
$ac_exeext; then
16076 ac_cv_func_pthread_detach
=yes
16078 echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.
$ac_ext >&5
16081 ac_cv_func_pthread_detach
=no
16084 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16085 conftest
$ac_exeext conftest.
$ac_ext
16087 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16088 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16089 if test $ac_cv_func_pthread_detach = yes; then
16090 cat >>confdefs.h
<<\_ACEOF
16091 #define WITH_THREAD 1
16095 THREADOBJ
="Python/thread.o"
16098 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16099 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16100 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16101 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16105 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16107 # Is the header compilable?
16108 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16109 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16110 cat >conftest.
$ac_ext <<_ACEOF
16113 cat confdefs.h
>>conftest.
$ac_ext
16114 cat >>conftest.
$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 $ac_includes_default
16117 #include <atheos/threads.h>
16119 rm -f conftest.
$ac_objext
16120 if { (ac_try
="$ac_compile"
16121 case "(($ac_try" in
16122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_compile") 2>conftest.er1
16128 grep -v '^ *+' conftest.er1 >conftest.err
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } && {
16133 test -z "$ac_c_werror_flag" ||
16134 test ! -s conftest.err
16135 } && test -s conftest.$ac_objext; then
16136 ac_header_compiler=yes
16138 echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16141 ac_header_compiler=no
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16146 echo "${ECHO_T}$ac_header_compiler" >&6; }
16148 # Is the header present?
16149 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16150 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16151 cat >conftest.$ac_ext <<_ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 #include <atheos/threads.h>
16159 if { (ac_try="$ac_cpp conftest.$ac_ext"
16160 case "(($ac_try" in
16161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16162 *) ac_try_echo
=$ac_try;;
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16167 grep -v '^ *+' conftest.er1
>conftest.err
16169 cat conftest.err
>&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } >/dev
/null
&& {
16172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16175 ac_header_preproc
=yes
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.
$ac_ext >&5
16180 ac_header_preproc
=no
16183 rm -f conftest.err conftest.
$ac_ext
16184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16185 echo "${ECHO_T}$ac_header_preproc" >&6; }
16187 # So? What about this header?
16188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16190 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16191 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16193 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16194 ac_header_preproc
=yes
16197 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16198 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16199 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16200 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16201 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16202 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16203 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16204 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16205 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16206 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16207 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16208 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16210 ## -------------------------------------- ##
16211 ## Report this to http://bugs.python.org/ ##
16212 ## -------------------------------------- ##
16214 ) |
sed "s/^/$as_me: WARNING: /" >&2
16217 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16218 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16219 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 ac_cv_header_atheos_threads_h
=$ac_header_preproc
16224 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16225 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16228 if test $ac_cv_header_atheos_threads_h = yes; then
16229 cat >>confdefs.h
<<\_ACEOF
16230 #define WITH_THREAD 1
16234 cat >>confdefs.h
<<\_ACEOF
16235 #define ATHEOS_THREADS 1
16238 THREADOBJ
="Python/thread.o"
16241 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16242 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16243 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16244 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16248 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16250 # Is the header compilable?
16251 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16252 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16253 cat >conftest.
$ac_ext <<_ACEOF
16256 cat confdefs.h
>>conftest.
$ac_ext
16257 cat >>conftest.
$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 $ac_includes_default
16260 #include <kernel/OS.h>
16262 rm -f conftest.
$ac_objext
16263 if { (ac_try
="$ac_compile"
16264 case "(($ac_try" in
16265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_compile") 2>conftest.er1
16271 grep -v '^ *+' conftest.er1 >conftest.err
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_c_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest.$ac_objext; then
16279 ac_header_compiler=yes
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 ac_header_compiler=no
16287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16289 echo "${ECHO_T}$ac_header_compiler" >&6; }
16291 # Is the header present?
16292 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16293 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 #include <kernel/OS.h>
16302 if { (ac_try="$ac_cpp conftest.$ac_ext"
16303 case "(($ac_try" in
16304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16305 *) ac_try_echo
=$ac_try;;
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16310 grep -v '^ *+' conftest.er1
>conftest.err
16312 cat conftest.err
>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } >/dev
/null
&& {
16315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16318 ac_header_preproc
=yes
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.
$ac_ext >&5
16323 ac_header_preproc
=no
16326 rm -f conftest.err conftest.
$ac_ext
16327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16328 echo "${ECHO_T}$ac_header_preproc" >&6; }
16330 # So? What about this header?
16331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16333 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16334 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16336 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16337 ac_header_preproc
=yes
16340 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16341 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16343 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16345 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16346 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16347 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16348 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16349 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16350 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16351 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16353 ## -------------------------------------- ##
16354 ## Report this to http://bugs.python.org/ ##
16355 ## -------------------------------------- ##
16357 ) |
sed "s/^/$as_me: WARNING: /" >&2
16360 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16361 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16362 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16365 ac_cv_header_kernel_OS_h
=$ac_header_preproc
16367 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16368 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16371 if test $ac_cv_header_kernel_OS_h = yes; then
16372 cat >>confdefs.h
<<\_ACEOF
16373 #define WITH_THREAD 1
16377 cat >>confdefs.h
<<\_ACEOF
16378 #define BEOS_THREADS 1
16381 THREADOBJ
="Python/thread.o"
16384 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16385 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16386 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16389 ac_check_lib_save_LIBS
=$LIBS
16390 LIBS
="-lpthreads $LIBS"
16391 cat >conftest.
$ac_ext <<_ACEOF
16394 cat confdefs.h
>>conftest.
$ac_ext
16395 cat >>conftest.
$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16398 /* Override any GCC internal prototype to avoid an error.
16399 Use char because int might match the return type of a GCC
16400 builtin and then its argument prototype would still apply. */
16404 char pthread_create ();
16408 return pthread_create ();
16413 rm -f conftest.
$ac_objext conftest
$ac_exeext
16414 if { (ac_try
="$ac_link"
16415 case "(($ac_try" in
16416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_link") 2>conftest.er1
16422 grep -v '^ *+' conftest.er1 >conftest.err
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } && {
16427 test -z "$ac_c_werror_flag" ||
16428 test ! -s conftest.err
16429 } && test -s conftest$ac_exeext &&
16430 $as_test_x conftest$ac_exeext; then
16431 ac_cv_lib_pthreads_pthread_create=yes
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16436 ac_cv_lib_pthreads_pthread_create=no
16439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16440 conftest$ac_exeext conftest.$ac_ext
16441 LIBS=$ac_check_lib_save_LIBS
16443 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16444 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16445 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16446 cat >>confdefs.h <<\_ACEOF
16447 #define WITH_THREAD 1
16451 LIBS="$LIBS -lpthreads"
16452 THREADOBJ="Python/thread.o"
16455 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16456 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16457 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16460 ac_check_lib_save_LIBS=$LIBS
16462 cat >conftest.$ac_ext <<_ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16469 /* Override any GCC internal prototype to avoid an error.
16470 Use char because int might match the return type of a GCC
16471 builtin and then its argument prototype would still apply. */
16475 char pthread_create ();
16479 return pthread_create ();
16484 rm -f conftest.$ac_objext conftest$ac_exeext
16485 if { (ac_try="$ac_link"
16486 case "(($ac_try" in
16487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16488 *) ac_try_echo
=$ac_try;;
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_link") 2>conftest.er1
16493 grep -v '^ *+' conftest.er1
>conftest.err
16495 cat conftest.err
>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } && {
16498 test -z "$ac_c_werror_flag" ||
16499 test ! -s conftest.err
16500 } && test -s conftest
$ac_exeext &&
16501 $as_test_x conftest
$ac_exeext; then
16502 ac_cv_lib_c_r_pthread_create
=yes
16504 echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.
$ac_ext >&5
16507 ac_cv_lib_c_r_pthread_create
=no
16510 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16511 conftest
$ac_exeext conftest.
$ac_ext
16512 LIBS
=$ac_check_lib_save_LIBS
16514 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16515 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16516 if test $ac_cv_lib_c_r_pthread_create = yes; then
16517 cat >>confdefs.h
<<\_ACEOF
16518 #define WITH_THREAD 1
16523 THREADOBJ
="Python/thread.o"
16526 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16527 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16528 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 ac_check_lib_save_LIBS
=$LIBS
16532 LIBS
="-lpthread $LIBS"
16533 cat >conftest.
$ac_ext <<_ACEOF
16536 cat confdefs.h
>>conftest.
$ac_ext
16537 cat >>conftest.
$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16540 /* Override any GCC internal prototype to avoid an error.
16541 Use char because int might match the return type of a GCC
16542 builtin and then its argument prototype would still apply. */
16546 char __pthread_create_system ();
16550 return __pthread_create_system ();
16555 rm -f conftest.
$ac_objext conftest
$ac_exeext
16556 if { (ac_try
="$ac_link"
16557 case "(($ac_try" in
16558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_link") 2>conftest.er1
16564 grep -v '^ *+' conftest.er1 >conftest.err
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } && {
16569 test -z "$ac_c_werror_flag" ||
16570 test ! -s conftest.err
16571 } && test -s conftest$ac_exeext &&
16572 $as_test_x conftest$ac_exeext; then
16573 ac_cv_lib_pthread___pthread_create_system=yes
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_lib_pthread___pthread_create_system=no
16581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16582 conftest$ac_exeext conftest.$ac_ext
16583 LIBS=$ac_check_lib_save_LIBS
16585 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16586 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16587 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16588 cat >>confdefs.h <<\_ACEOF
16589 #define WITH_THREAD 1
16593 LIBS="$LIBS -lpthread"
16594 THREADOBJ="Python/thread.o"
16597 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16598 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16599 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 ac_check_lib_save_LIBS=$LIBS
16604 cat >conftest.$ac_ext <<_ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16611 /* Override any GCC internal prototype to avoid an error.
16612 Use char because int might match the return type of a GCC
16613 builtin and then its argument prototype would still apply. */
16617 char pthread_create ();
16621 return pthread_create ();
16626 rm -f conftest.$ac_objext conftest$ac_exeext
16627 if { (ac_try="$ac_link"
16628 case "(($ac_try" in
16629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16630 *) ac_try_echo
=$ac_try;;
16632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16633 (eval "$ac_link") 2>conftest.er1
16635 grep -v '^ *+' conftest.er1
>conftest.err
16637 cat conftest.err
>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } && {
16640 test -z "$ac_c_werror_flag" ||
16641 test ! -s conftest.err
16642 } && test -s conftest
$ac_exeext &&
16643 $as_test_x conftest
$ac_exeext; then
16644 ac_cv_lib_cma_pthread_create
=yes
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.
$ac_ext >&5
16649 ac_cv_lib_cma_pthread_create
=no
16652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16653 conftest
$ac_exeext conftest.
$ac_ext
16654 LIBS
=$ac_check_lib_save_LIBS
16656 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16657 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16658 if test $ac_cv_lib_cma_pthread_create = yes; then
16659 cat >>confdefs.h
<<\_ACEOF
16660 #define WITH_THREAD 1
16665 THREADOBJ
="Python/thread.o"
16668 USE_THREAD_MODULE
="#"
16688 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16689 conftest
$ac_exeext conftest.
$ac_ext
16699 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16700 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16701 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 ac_check_lib_save_LIBS
=$LIBS
16706 cat >conftest.
$ac_ext <<_ACEOF
16709 cat confdefs.h
>>conftest.
$ac_ext
16710 cat >>conftest.
$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16713 /* Override any GCC internal prototype to avoid an error.
16714 Use char because int might match the return type of a GCC
16715 builtin and then its argument prototype would still apply. */
16723 return usconfig ();
16728 rm -f conftest.
$ac_objext conftest
$ac_exeext
16729 if { (ac_try
="$ac_link"
16730 case "(($ac_try" in
16731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_link") 2>conftest.er1
16737 grep -v '^ *+' conftest.er1 >conftest.err
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest$ac_exeext &&
16745 $as_test_x conftest$ac_exeext; then
16746 ac_cv_lib_mpc_usconfig=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_lib_mpc_usconfig=no
16754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16755 conftest$ac_exeext conftest.$ac_ext
16756 LIBS=$ac_check_lib_save_LIBS
16758 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16759 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16760 if test $ac_cv_lib_mpc_usconfig = yes; then
16761 cat >>confdefs.h <<\_ACEOF
16762 #define WITH_THREAD 1
16766 THREADOBJ="Python/thread.o"
16767 USE_THREAD_MODULE=""
16771 if test "$posix_threads" != "yes"; then
16772 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16773 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16774 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 ac_check_lib_save_LIBS=$LIBS
16778 LIBS="-lthread $LIBS"
16779 cat >conftest.$ac_ext <<_ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16786 /* Override any GCC internal prototype to avoid an error.
16787 Use char because int might match the return type of a GCC
16788 builtin and then its argument prototype would still apply. */
16792 char thr_create ();
16796 return thr_create ();
16801 rm -f conftest.$ac_objext conftest$ac_exeext
16802 if { (ac_try="$ac_link"
16803 case "(($ac_try" in
16804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16805 *) ac_try_echo
=$ac_try;;
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_link") 2>conftest.er1
16810 grep -v '^ *+' conftest.er1
>conftest.err
16812 cat conftest.err
>&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } && {
16815 test -z "$ac_c_werror_flag" ||
16816 test ! -s conftest.err
16817 } && test -s conftest
$ac_exeext &&
16818 $as_test_x conftest
$ac_exeext; then
16819 ac_cv_lib_thread_thr_create
=yes
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.
$ac_ext >&5
16824 ac_cv_lib_thread_thr_create
=no
16827 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16828 conftest
$ac_exeext conftest.
$ac_ext
16829 LIBS
=$ac_check_lib_save_LIBS
16831 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16832 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16833 if test $ac_cv_lib_thread_thr_create = yes; then
16834 cat >>confdefs.h
<<\_ACEOF
16835 #define WITH_THREAD 1
16838 LIBS
="$LIBS -lthread"
16839 THREADOBJ
="Python/thread.o"
16840 USE_THREAD_MODULE
=""
16845 if test "$USE_THREAD_MODULE" != "#"
16847 # If the above checks didn't disable threads, (at least) OSF1
16848 # needs this '-threads' argument during linking.
16849 case $ac_sys_system in
16850 OSF1
) LDLAST
=-threads;;
16855 if test "$posix_threads" = "yes"; then
16856 if test "$unistd_defines_pthreads" = "no"; then
16858 cat >>confdefs.h
<<\_ACEOF
16859 #define _POSIX_THREADS 1
16864 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16865 case $ac_sys_system/$ac_sys_release in
16867 cat >>confdefs.h
<<\_ACEOF
16868 #define HAVE_PTHREAD_DESTRUCTOR 1
16873 cat >>confdefs.h
<<\_ACEOF
16874 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16879 cat >>confdefs.h
<<\_ACEOF
16880 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16886 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16887 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16888 if test "${ac_cv_pthread_system_supported+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 if test "$cross_compiling" = yes; then
16892 ac_cv_pthread_system_supported
=no
16894 cat >conftest.
$ac_ext <<_ACEOF
16897 cat confdefs.h
>>conftest.
$ac_ext
16898 cat >>conftest.
$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 #include <pthread.h>
16901 void *foo(void *parm) {
16905 pthread_attr_t attr;
16907 if (pthread_attr_init(&attr)) exit(-1);
16908 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
16909 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
16913 rm -f conftest
$ac_exeext
16914 if { (ac_try
="$ac_link"
16915 case "(($ac_try" in
16916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_link") 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16924 { (case "(($ac_try" in
16925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16926 *) ac_try_echo
=$ac_try;;
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_try") 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; }; then
16933 ac_cv_pthread_system_supported
=yes
16935 echo "$as_me: program exited with status $ac_status" >&5
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.
$ac_ext >&5
16939 ( exit $ac_status )
16940 ac_cv_pthread_system_supported
=no
16942 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16949 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
16950 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
16951 if test "$ac_cv_pthread_system_supported" = "yes"; then
16953 cat >>confdefs.h
<<\_ACEOF
16954 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
16959 for ac_func
in pthread_sigmask
16961 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16964 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16965 echo $ECHO_N "(cached) $ECHO_C" >&6
16967 cat >conftest.
$ac_ext <<_ACEOF
16970 cat confdefs.h
>>conftest.
$ac_ext
16971 cat >>conftest.
$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16975 #define $ac_func innocuous_$ac_func
16977 /* System header to define __stub macros and hopefully few prototypes,
16978 which can conflict with char $ac_func (); below.
16979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16980 <limits.h> exists even on freestanding compilers. */
16983 # include <limits.h>
16985 # include <assert.h>
16990 /* Override any GCC internal prototype to avoid an error.
16991 Use char because int might match the return type of a GCC
16992 builtin and then its argument prototype would still apply. */
16997 /* The GNU C library defines this for functions which it implements
16998 to always fail with ENOSYS. Some functions are actually named
16999 something starting with __ and the normal name is an alias. */
17000 #if defined __stub_$ac_func || defined __stub___$ac_func
17007 return $ac_func ();
17012 rm -f conftest.
$ac_objext conftest
$ac_exeext
17013 if { (ac_try
="$ac_link"
17014 case "(($ac_try" in
17015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_link") 2>conftest.er1
17021 grep -v '^ *+' conftest.er1 >conftest.err
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } && {
17026 test -z "$ac_c_werror_flag" ||
17027 test ! -s conftest.err
17028 } && test -s conftest$ac_exeext &&
17029 $as_test_x conftest$ac_exeext; then
17030 eval "$as_ac_var=yes"
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17035 eval "$as_ac_var=no"
17038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17039 conftest$ac_exeext conftest.$ac_ext
17041 ac_res=`eval echo '${'$as_ac_var'}'`
17042 { echo "$as_me:$LINENO: result: $ac_res" >&5
17043 echo "${ECHO_T}$ac_res" >&6; }
17044 if test `eval echo '${'$as_ac_var'}'` = yes; then
17045 cat >>confdefs.h <<_ACEOF
17046 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17048 case $ac_sys_system in
17051 cat >>confdefs.h <<\_ACEOF
17052 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17063 # Check for enable-ipv6
17066 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17067 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17068 # Check whether --enable-ipv6 was given.
17069 if test "${enable_ipv6+set}" = set; then
17070 enableval=$enable_ipv6; case "$enableval" in
17072 { echo "$as_me:$LINENO: result: no" >&5
17073 echo "${ECHO_T}no" >&6; }
17076 *) { echo "$as_me:$LINENO: result: yes" >&5
17077 echo "${ECHO_T}yes" >&6; }
17078 cat >>confdefs.h <<\_ACEOF
17079 #define ENABLE_IPV6 1
17087 if test "$cross_compiling" = yes; then
17088 { echo "$as_me:$LINENO: result: no" >&5
17089 echo "${ECHO_T}no" >&6; }
17093 cat >conftest.$ac_ext <<_ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h. */
17099 /* AF_INET6 available check */
17100 #include <sys/types.h>
17101 #include <sys/socket.h>
17104 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17111 rm -f conftest$ac_exeext
17112 if { (ac_try="$ac_link"
17113 case "(($ac_try" in
17114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17115 *) ac_try_echo
=$ac_try;;
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_link") 2>&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17122 { (case "(($ac_try" in
17123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_try") 2>&5
17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 { echo "$as_me:$LINENO: result: yes" >&5
17132 echo "${ECHO_T}yes" >&6; }
17135 echo "$as_me: program exited with status $ac_status" >&5
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 ( exit $ac_status )
17140 { echo "$as_me:$LINENO: result: no" >&5
17141 echo "${ECHO_T}no" >&6; }
17144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17149 if test "$ipv6" = "yes"; then
17150 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17151 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17152 cat >conftest.$ac_ext <<_ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17158 #include <sys/types.h>
17159 #include <netinet/in.h>
17163 struct sockaddr_in6 x;
17169 rm -f conftest.$ac_objext
17170 if { (ac_try="$ac_compile"
17171 case "(($ac_try" in
17172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17173 *) ac_try_echo
=$ac_try;;
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_compile") 2>conftest.er1
17178 grep -v '^ *+' conftest.er1
>conftest.err
17180 cat conftest.err
>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } && {
17183 test -z "$ac_c_werror_flag" ||
17184 test ! -s conftest.err
17185 } && test -s conftest.
$ac_objext; then
17186 { echo "$as_me:$LINENO: result: yes" >&5
17187 echo "${ECHO_T}yes" >&6; }
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.
$ac_ext >&5
17193 { echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6; }
17198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17201 if test "$ipv6" = "yes"; then
17202 cat >>confdefs.h
<<\_ACEOF
17203 #define ENABLE_IPV6 1
17215 if test "$ipv6" = "yes"; then
17216 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17217 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17218 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
17222 cat >conftest.
$ac_ext <<_ACEOF
17225 cat confdefs.h
>>conftest.
$ac_ext
17226 cat >>conftest.
$ac_ext <<_ACEOF
17227 /* end confdefs.h. */
17229 #include <netinet/in.h>
17230 #ifdef IPV6_INRIA_VERSION
17234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17235 $EGREP "yes" >/dev
/null
2>&1; then
17242 cat >conftest.
$ac_ext <<_ACEOF
17245 cat confdefs.h
>>conftest.
$ac_ext
17246 cat >>conftest.
$ac_ext <<_ACEOF
17247 /* end confdefs.h. */
17249 #include <netinet/in.h>
17254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17255 $EGREP "yes" >/dev
/null
2>&1; then
17258 ipv6libdir
=/usr
/local
/v
6/lib
17265 cat >conftest.
$ac_ext <<_ACEOF
17268 cat confdefs.h
>>conftest.
$ac_ext
17269 cat >>conftest.
$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17272 #include <features.h>
17273 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17278 $EGREP "yes" >/dev
/null
2>&1; then
17286 if test -d /usr
/inet6
; then
17289 ipv6libdir
=/usr
/inet
6/lib
17290 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
17294 if test -f /etc
/netconfig
; then
17295 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
17302 cat >conftest.
$ac_ext <<_ACEOF
17305 cat confdefs.h
>>conftest.
$ac_ext
17306 cat >>conftest.
$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17309 #include <sys/param.h>
17310 #ifdef _TOSHIBA_INET6
17314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17315 $EGREP "yes" >/dev
/null
2>&1; then
17318 ipv6libdir
=/usr
/local
/v
6/lib
17324 cat >conftest.
$ac_ext <<_ACEOF
17327 cat confdefs.h
>>conftest.
$ac_ext
17328 cat >>conftest.
$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17331 #include </usr/local/v6/include/sys/v6config.h>
17336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17337 $EGREP "yes" >/dev
/null
2>&1; then
17340 ipv6libdir
=/usr
/local
/v
6/lib
;
17341 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
17347 cat >conftest.
$ac_ext <<_ACEOF
17350 cat confdefs.h
>>conftest.
$ac_ext
17351 cat >>conftest.
$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17354 #include <sys/param.h>
17355 #ifdef _ZETA_MINAMI_INET6
17359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17360 $EGREP "yes" >/dev
/null
2>&1; then
17363 ipv6libdir
=/usr
/local
/v
6/lib
17369 if test "$ipv6type" != "unknown"; then
17373 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17374 echo "${ECHO_T}$ipv6type" >&6; }
17377 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17378 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
17379 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
17380 echo "using lib$ipv6lib"
17382 if test $ipv6trylibc = "yes"; then
17385 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17386 echo "You need to fetch lib$ipv6lib.a from appropriate"
17387 echo 'ipv6 kit and compile beforehand.'
17393 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17394 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17395 cat >conftest.
$ac_ext <<_ACEOF
17398 cat confdefs.h
>>conftest.
$ac_ext
17399 cat >>conftest.
$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 #include <Carbon/Carbon.h>
17405 FSIORefNum fRef = 0
17410 rm -f conftest.
$ac_objext
17411 if { (ac_try
="$ac_compile"
17412 case "(($ac_try" in
17413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_compile") 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } && {
17424 test -z "$ac_c_werror_flag" ||
17425 test ! -s conftest.err
17426 } && test -s conftest.$ac_objext; then
17428 cat >>confdefs.h <<\_ACEOF
17429 #define HAVE_OSX105_SDK 1
17432 { echo "$as_me:$LINENO: result: yes" >&5
17433 echo "${ECHO_T}yes" >&6; }
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17438 { echo "$as_me:$LINENO: result: no" >&5
17439 echo "${ECHO_T}no" >&6; }
17443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17445 # Check for --with-doc-strings
17446 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17447 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17449 # Check whether --with-doc-strings was given.
17450 if test "${with_doc_strings+set}" = set; then
17451 withval=$with_doc_strings;
17455 if test -z "$with_doc_strings"
17456 then with_doc_strings="yes"
17458 if test "$with_doc_strings" != "no"
17461 cat >>confdefs.h <<\_ACEOF
17462 #define WITH_DOC_STRINGS 1
17466 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17467 echo "${ECHO_T}$with_doc_strings" >&6; }
17469 # Check for Python-specific malloc support
17470 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17471 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17473 # Check whether --with-tsc was given.
17474 if test "${with_tsc+set}" = set; then
17476 if test "$withval" != no
17479 cat >>confdefs.h <<\_ACEOF
17483 { echo "$as_me:$LINENO: result: yes" >&5
17484 echo "${ECHO_T}yes" >&6; }
17485 else { echo "$as_me:$LINENO: result: no" >&5
17486 echo "${ECHO_T}no" >&6; }
17489 { echo "$as_me:$LINENO: result: no" >&5
17490 echo "${ECHO_T}no" >&6; }
17494 # Check for Python-specific malloc support
17495 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17496 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17498 # Check whether --with-pymalloc was given.
17499 if test "${with_pymalloc+set}" = set; then
17500 withval=$with_pymalloc;
17504 if test -z "$with_pymalloc"
17505 then with_pymalloc="yes"
17507 if test "$with_pymalloc" != "no"
17510 cat >>confdefs.h <<\_ACEOF
17511 #define WITH_PYMALLOC 1
17515 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17516 echo "${ECHO_T}$with_pymalloc" >&6; }
17518 # Check for --with-wctype-functions
17519 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17520 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17522 # Check whether --with-wctype-functions was given.
17523 if test "${with_wctype_functions+set}" = set; then
17524 withval=$with_wctype_functions;
17525 if test "$withval" != no
17528 cat >>confdefs.h <<\_ACEOF
17529 #define WANT_WCTYPE_FUNCTIONS 1
17532 { echo "$as_me:$LINENO: result: yes" >&5
17533 echo "${ECHO_T}yes" >&6; }
17534 else { echo "$as_me:$LINENO: result: no" >&5
17535 echo "${ECHO_T}no" >&6; }
17538 { echo "$as_me:$LINENO: result: no" >&5
17539 echo "${ECHO_T}no" >&6; }
17543 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17547 # the dlopen() function means we might want to use dynload_shlib.o. some
17548 # platforms, such as AIX, have dlopen(), but don't want to use it.
17550 for ac_func in dlopen
17552 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 cat >conftest.$ac_ext <<_ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17566 #define $ac_func innocuous_$ac_func
17568 /* System header to define __stub macros and hopefully few prototypes,
17569 which can conflict with char $ac_func (); below.
17570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17571 <limits.h> exists even on freestanding compilers. */
17574 # include <limits.h>
17576 # include <assert.h>
17581 /* Override any GCC internal prototype to avoid an error.
17582 Use char because int might match the return type of a GCC
17583 builtin and then its argument prototype would still apply. */
17588 /* The GNU C library defines this for functions which it implements
17589 to always fail with ENOSYS. Some functions are actually named
17590 something starting with __ and the normal name is an alias. */
17591 #if defined __stub_$ac_func || defined __stub___$ac_func
17598 return $ac_func ();
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (ac_try="$ac_link"
17605 case "(($ac_try" in
17606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17607 *) ac_try_echo
=$ac_try;;
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_link") 2>conftest.er1
17612 grep -v '^ *+' conftest.er1
>conftest.err
17614 cat conftest.err
>&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); } && {
17617 test -z "$ac_c_werror_flag" ||
17618 test ! -s conftest.err
17619 } && test -s conftest
$ac_exeext &&
17620 $as_test_x conftest
$ac_exeext; then
17621 eval "$as_ac_var=yes"
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.
$ac_ext >&5
17626 eval "$as_ac_var=no"
17629 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17630 conftest
$ac_exeext conftest.
$ac_ext
17632 ac_res
=`eval echo '${'$as_ac_var'}'`
17633 { echo "$as_me:$LINENO: result: $ac_res" >&5
17634 echo "${ECHO_T}$ac_res" >&6; }
17635 if test `eval echo '${'$as_ac_var'}'` = yes; then
17636 cat >>confdefs.h
<<_ACEOF
17637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17644 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17645 # loading of modules.
17647 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17648 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17649 if test -z "$DYNLOADFILE"
17651 case $ac_sys_system/$ac_sys_release in
17652 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17653 if test "$ac_cv_func_dlopen" = yes
17654 then DYNLOADFILE
="dynload_shlib.o"
17655 else DYNLOADFILE
="dynload_aix.o"
17658 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
17659 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
17660 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17661 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
17662 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
17664 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17665 # out any dynamic loading
17666 if test "$ac_cv_func_dlopen" = yes
17667 then DYNLOADFILE
="dynload_shlib.o"
17668 else DYNLOADFILE
="dynload_stub.o"
17673 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17674 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17675 if test "$DYNLOADFILE" != "dynload_stub.o"
17678 cat >>confdefs.h
<<\_ACEOF
17679 #define HAVE_DYNAMIC_LOADING 1
17684 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17687 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17688 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17689 if test -z "$MACHDEP_OBJS"
17691 MACHDEP_OBJS
=$extra_machdep_objs
17693 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
17695 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17696 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17698 # checks for library functions
17784 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
17785 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
17786 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
17787 getpriority getpwent getspnam getspent getsid getwd \
17788 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
17789 mremap nice pathconf pause plock poll pthread_init \
17790 putenv readlink realpath \
17791 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
17793 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
17794 sigaction siginterrupt sigrelse strftime \
17795 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
17796 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
17798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17801 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 cat >conftest.
$ac_ext <<_ACEOF
17807 cat confdefs.h
>>conftest.
$ac_ext
17808 cat >>conftest.
$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17812 #define $ac_func innocuous_$ac_func
17814 /* System header to define __stub macros and hopefully few prototypes,
17815 which can conflict with char $ac_func (); below.
17816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17817 <limits.h> exists even on freestanding compilers. */
17820 # include <limits.h>
17822 # include <assert.h>
17827 /* Override any GCC internal prototype to avoid an error.
17828 Use char because int might match the return type of a GCC
17829 builtin and then its argument prototype would still apply. */
17834 /* The GNU C library defines this for functions which it implements
17835 to always fail with ENOSYS. Some functions are actually named
17836 something starting with __ and the normal name is an alias. */
17837 #if defined __stub_$ac_func || defined __stub___$ac_func
17844 return $ac_func ();
17849 rm -f conftest.
$ac_objext conftest
$ac_exeext
17850 if { (ac_try
="$ac_link"
17851 case "(($ac_try" in
17852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_link") 2>conftest.er1
17858 grep -v '^ *+' conftest.er1 >conftest.err
17860 cat conftest.err >&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } && {
17863 test -z "$ac_c_werror_flag" ||
17864 test ! -s conftest.err
17865 } && test -s conftest$ac_exeext &&
17866 $as_test_x conftest$ac_exeext; then
17867 eval "$as_ac_var=yes"
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 eval "$as_ac_var=no"
17875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17876 conftest$ac_exeext conftest.$ac_ext
17878 ac_res=`eval echo '${'$as_ac_var'}'`
17879 { echo "$as_me:$LINENO: result: $ac_res" >&5
17880 echo "${ECHO_T}$ac_res" >&6; }
17881 if test `eval echo '${'$as_ac_var'}'` = yes; then
17882 cat >>confdefs.h <<_ACEOF
17883 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17890 # For some functions, having a definition is not sufficient, since
17891 # we want to take their address.
17892 { echo "$as_me:$LINENO: checking for chroot" >&5
17893 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
17894 cat >conftest.$ac_ext <<_ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 #include <unistd.h>
17909 rm -f conftest.$ac_objext
17910 if { (ac_try="$ac_compile"
17911 case "(($ac_try" in
17912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17913 *) ac_try_echo
=$ac_try;;
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916 (eval "$ac_compile") 2>conftest.er1
17918 grep -v '^ *+' conftest.er1
>conftest.err
17920 cat conftest.err
>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } && {
17923 test -z "$ac_c_werror_flag" ||
17924 test ! -s conftest.err
17925 } && test -s conftest.
$ac_objext; then
17927 cat >>confdefs.h
<<\_ACEOF
17928 #define HAVE_CHROOT 1
17931 { echo "$as_me:$LINENO: result: yes" >&5
17932 echo "${ECHO_T}yes" >&6; }
17934 echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.
$ac_ext >&5
17937 { echo "$as_me:$LINENO: result: no" >&5
17938 echo "${ECHO_T}no" >&6; }
17942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17943 { echo "$as_me:$LINENO: checking for link" >&5
17944 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
17945 cat >conftest.
$ac_ext <<_ACEOF
17948 cat confdefs.h
>>conftest.
$ac_ext
17949 cat >>conftest.
$ac_ext <<_ACEOF
17950 /* end confdefs.h. */
17951 #include <unistd.h>
17960 rm -f conftest.
$ac_objext
17961 if { (ac_try
="$ac_compile"
17962 case "(($ac_try" in
17963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17964 *) ac_try_echo=$ac_try;;
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967 (eval "$ac_compile") 2>conftest.er1
17969 grep -v '^ *+' conftest.er1 >conftest.err
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } && {
17974 test -z "$ac_c_werror_flag" ||
17975 test ! -s conftest.err
17976 } && test -s conftest.$ac_objext; then
17978 cat >>confdefs.h <<\_ACEOF
17979 #define HAVE_LINK 1
17982 { echo "$as_me:$LINENO: result: yes" >&5
17983 echo "${ECHO_T}yes" >&6; }
17985 echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17988 { echo "$as_me:$LINENO: result: no" >&5
17989 echo "${ECHO_T}no" >&6; }
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994 { echo "$as_me:$LINENO: checking for symlink" >&5
17995 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
17996 cat >conftest.$ac_ext <<_ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 #include <unistd.h>
18011 rm -f conftest.$ac_objext
18012 if { (ac_try="$ac_compile"
18013 case "(($ac_try" in
18014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18015 *) ac_try_echo
=$ac_try;;
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_compile") 2>conftest.er1
18020 grep -v '^ *+' conftest.er1
>conftest.err
18022 cat conftest.err
>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && {
18025 test -z "$ac_c_werror_flag" ||
18026 test ! -s conftest.err
18027 } && test -s conftest.
$ac_objext; then
18029 cat >>confdefs.h
<<\_ACEOF
18030 #define HAVE_SYMLINK 1
18033 { echo "$as_me:$LINENO: result: yes" >&5
18034 echo "${ECHO_T}yes" >&6; }
18036 echo "$as_me: failed program was:" >&5
18037 sed 's/^/| /' conftest.
$ac_ext >&5
18039 { echo "$as_me:$LINENO: result: no" >&5
18040 echo "${ECHO_T}no" >&6; }
18044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18045 { echo "$as_me:$LINENO: checking for fchdir" >&5
18046 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18047 cat >conftest.
$ac_ext <<_ACEOF
18050 cat confdefs.h
>>conftest.
$ac_ext
18051 cat >>conftest.
$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18053 #include <unistd.h>
18062 rm -f conftest.
$ac_objext
18063 if { (ac_try
="$ac_compile"
18064 case "(($ac_try" in
18065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_compile") 2>conftest.er1
18071 grep -v '^ *+' conftest.er1 >conftest.err
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest.$ac_objext; then
18080 cat >>confdefs.h <<\_ACEOF
18081 #define HAVE_FCHDIR 1
18084 { echo "$as_me:$LINENO: result: yes" >&5
18085 echo "${ECHO_T}yes" >&6; }
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 { echo "$as_me:$LINENO: result: no" >&5
18091 echo "${ECHO_T}no" >&6; }
18095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18096 { echo "$as_me:$LINENO: checking for fsync" >&5
18097 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18098 cat >conftest.$ac_ext <<_ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104 #include <unistd.h>
18113 rm -f conftest.$ac_objext
18114 if { (ac_try="$ac_compile"
18115 case "(($ac_try" in
18116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18117 *) ac_try_echo
=$ac_try;;
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_compile") 2>conftest.er1
18122 grep -v '^ *+' conftest.er1
>conftest.err
18124 cat conftest.err
>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } && {
18127 test -z "$ac_c_werror_flag" ||
18128 test ! -s conftest.err
18129 } && test -s conftest.
$ac_objext; then
18131 cat >>confdefs.h
<<\_ACEOF
18132 #define HAVE_FSYNC 1
18135 { echo "$as_me:$LINENO: result: yes" >&5
18136 echo "${ECHO_T}yes" >&6; }
18138 echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.
$ac_ext >&5
18141 { echo "$as_me:$LINENO: result: no" >&5
18142 echo "${ECHO_T}no" >&6; }
18146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18147 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18148 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18149 cat >conftest.
$ac_ext <<_ACEOF
18152 cat confdefs.h
>>conftest.
$ac_ext
18153 cat >>conftest.
$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 #include <unistd.h>
18164 rm -f conftest.
$ac_objext
18165 if { (ac_try
="$ac_compile"
18166 case "(($ac_try" in
18167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_compile") 2>conftest.er1
18173 grep -v '^ *+' conftest.er1 >conftest.err
18175 cat conftest.err >&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } && {
18178 test -z "$ac_c_werror_flag" ||
18179 test ! -s conftest.err
18180 } && test -s conftest.$ac_objext; then
18182 cat >>confdefs.h <<\_ACEOF
18183 #define HAVE_FDATASYNC 1
18186 { echo "$as_me:$LINENO: result: yes" >&5
18187 echo "${ECHO_T}yes" >&6; }
18189 echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18192 { echo "$as_me:$LINENO: result: no" >&5
18193 echo "${ECHO_T}no" >&6; }
18197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198 { echo "$as_me:$LINENO: checking for epoll" >&5
18199 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 #include <sys/epoll.h>
18210 void *x=epoll_create
18215 rm -f conftest.$ac_objext
18216 if { (ac_try="$ac_compile"
18217 case "(($ac_try" in
18218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18219 *) ac_try_echo
=$ac_try;;
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_compile") 2>conftest.er1
18224 grep -v '^ *+' conftest.er1
>conftest.err
18226 cat conftest.err
>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } && {
18229 test -z "$ac_c_werror_flag" ||
18230 test ! -s conftest.err
18231 } && test -s conftest.
$ac_objext; then
18233 cat >>confdefs.h
<<\_ACEOF
18234 #define HAVE_EPOLL 1
18237 { echo "$as_me:$LINENO: result: yes" >&5
18238 echo "${ECHO_T}yes" >&6; }
18240 echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.
$ac_ext >&5
18243 { echo "$as_me:$LINENO: result: no" >&5
18244 echo "${ECHO_T}no" >&6; }
18248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18249 { echo "$as_me:$LINENO: checking for kqueue" >&5
18250 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18251 cat >conftest.
$ac_ext <<_ACEOF
18254 cat confdefs.h
>>conftest.
$ac_ext
18255 cat >>conftest.
$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18258 #include <sys/types.h>
18259 #include <sys/event.h>
18269 rm -f conftest.
$ac_objext
18270 if { (ac_try
="$ac_compile"
18271 case "(($ac_try" in
18272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_compile") 2>conftest.er1
18278 grep -v '^ *+' conftest.er1 >conftest.err
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } && {
18283 test -z "$ac_c_werror_flag" ||
18284 test ! -s conftest.err
18285 } && test -s conftest.$ac_objext; then
18287 cat >>confdefs.h <<\_ACEOF
18288 #define HAVE_KQUEUE 1
18291 { echo "$as_me:$LINENO: result: yes" >&5
18292 echo "${ECHO_T}yes" >&6; }
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18297 { echo "$as_me:$LINENO: result: no" >&5
18298 echo "${ECHO_T}no" >&6; }
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303 # On some systems (eg. FreeBSD 5), we would find a definition of the
18304 # functions ctermid_r, setgroups in the library, but no prototype
18305 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18306 # address to avoid compiler warnings and potential miscompilations
18307 # because of the missing prototypes.
18309 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18310 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18318 #include "confdefs.h"
18324 void* p = ctermid_r
18329 rm -f conftest.$ac_objext
18330 if { (ac_try="$ac_compile"
18331 case "(($ac_try" in
18332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18333 *) ac_try_echo
=$ac_try;;
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_compile") 2>conftest.er1
18338 grep -v '^ *+' conftest.er1
>conftest.err
18340 cat conftest.err
>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } && {
18343 test -z "$ac_c_werror_flag" ||
18344 test ! -s conftest.err
18345 } && test -s conftest.
$ac_objext; then
18347 cat >>confdefs.h
<<\_ACEOF
18348 #define HAVE_CTERMID_R 1
18351 { echo "$as_me:$LINENO: result: yes" >&5
18352 echo "${ECHO_T}yes" >&6; }
18354 echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.
$ac_ext >&5
18357 { echo "$as_me:$LINENO: result: no" >&5
18358 echo "${ECHO_T}no" >&6; }
18362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18364 { echo "$as_me:$LINENO: checking for flock" >&5
18365 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18366 cat >conftest.
$ac_ext <<_ACEOF
18369 cat confdefs.h
>>conftest.
$ac_ext
18370 cat >>conftest.
$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18373 #include "confdefs.h"
18374 #include <sys/file.h>
18384 rm -f conftest.
$ac_objext
18385 if { (ac_try
="$ac_compile"
18386 case "(($ac_try" in
18387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_compile") 2>conftest.er1
18393 grep -v '^ *+' conftest.er1 >conftest.err
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } && {
18398 test -z "$ac_c_werror_flag" ||
18399 test ! -s conftest.err
18400 } && test -s conftest.$ac_objext; then
18402 cat >>confdefs.h <<\_ACEOF
18403 #define HAVE_FLOCK 1
18406 { echo "$as_me:$LINENO: result: yes" >&5
18407 echo "${ECHO_T}yes" >&6; }
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18412 { echo "$as_me:$LINENO: result: no" >&5
18413 echo "${ECHO_T}no" >&6; }
18417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18419 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18420 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18421 cat >conftest.$ac_ext <<_ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h. */
18428 #include "confdefs.h"
18429 #include <unistd.h>
18434 void* p = getpagesize
18439 rm -f conftest.$ac_objext
18440 if { (ac_try="$ac_compile"
18441 case "(($ac_try" in
18442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18443 *) ac_try_echo
=$ac_try;;
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_compile") 2>conftest.er1
18448 grep -v '^ *+' conftest.er1
>conftest.err
18450 cat conftest.err
>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } && {
18453 test -z "$ac_c_werror_flag" ||
18454 test ! -s conftest.err
18455 } && test -s conftest.
$ac_objext; then
18457 cat >>confdefs.h
<<\_ACEOF
18458 #define HAVE_GETPAGESIZE 1
18461 { echo "$as_me:$LINENO: result: yes" >&5
18462 echo "${ECHO_T}yes" >&6; }
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.
$ac_ext >&5
18467 { echo "$as_me:$LINENO: result: no" >&5
18468 echo "${ECHO_T}no" >&6; }
18472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18474 for ac_prog
in true
18476 # Extract the first word of "$ac_prog", so it can be a program name with args.
18477 set dummy
$ac_prog; ac_word
=$2
18478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18480 if test "${ac_cv_prog_TRUE+set}" = set; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 if test -n "$TRUE"; then
18484 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
18486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18487 for as_dir
in $PATH
18490 test -z "$as_dir" && as_dir
=.
18491 for ac_exec_ext
in '' $ac_executable_extensions; do
18492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18493 ac_cv_prog_TRUE
="$ac_prog"
18494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18503 TRUE
=$ac_cv_prog_TRUE
18504 if test -n "$TRUE"; then
18505 { echo "$as_me:$LINENO: result: $TRUE" >&5
18506 echo "${ECHO_T}$TRUE" >&6; }
18508 { echo "$as_me:$LINENO: result: no" >&5
18509 echo "${ECHO_T}no" >&6; }
18513 test -n "$TRUE" && break
18515 test -n "$TRUE" || TRUE
="/bin/true"
18518 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18519 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18520 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18521 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 ac_check_lib_save_LIBS
=$LIBS
18525 cat >conftest.
$ac_ext <<_ACEOF
18528 cat confdefs.h
>>conftest.
$ac_ext
18529 cat >>conftest.
$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18542 return inet_aton ();
18547 rm -f conftest.
$ac_objext conftest
$ac_exeext
18548 if { (ac_try
="$ac_link"
18549 case "(($ac_try" in
18550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_link") 2>conftest.er1
18556 grep -v '^ *+' conftest.er1 >conftest.err
18558 cat conftest.err >&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); } && {
18561 test -z "$ac_c_werror_flag" ||
18562 test ! -s conftest.err
18563 } && test -s conftest$ac_exeext &&
18564 $as_test_x conftest$ac_exeext; then
18565 ac_cv_lib_c_inet_aton=yes
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_lib_c_inet_aton=no
18573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18574 conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18578 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18579 if test $ac_cv_lib_c_inet_aton = yes; then
18583 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18584 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18585 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18588 ac_check_lib_save_LIBS=$LIBS
18589 LIBS="-lresolv $LIBS"
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18597 /* Override any GCC internal prototype to avoid an error.
18598 Use char because int might match the return type of a GCC
18599 builtin and then its argument prototype would still apply. */
18607 return inet_aton ();
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18616 *) ac_try_echo
=$ac_try;;
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_link") 2>conftest.er1
18621 grep -v '^ *+' conftest.er1
>conftest.err
18623 cat conftest.err
>&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } && {
18626 test -z "$ac_c_werror_flag" ||
18627 test ! -s conftest.err
18628 } && test -s conftest
$ac_exeext &&
18629 $as_test_x conftest
$ac_exeext; then
18630 ac_cv_lib_resolv_inet_aton
=yes
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.
$ac_ext >&5
18635 ac_cv_lib_resolv_inet_aton
=no
18638 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18639 conftest
$ac_exeext conftest.
$ac_ext
18640 LIBS
=$ac_check_lib_save_LIBS
18642 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18643 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18644 if test $ac_cv_lib_resolv_inet_aton = yes; then
18645 cat >>confdefs.h
<<_ACEOF
18646 #define HAVE_LIBRESOLV 1
18649 LIBS
="-lresolv $LIBS"
18657 # On Tru64, chflags seems to be present, but calling it will
18659 { echo "$as_me:$LINENO: checking for chflags" >&5
18660 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18661 if test "${ac_cv_have_chflags+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18664 if test "$cross_compiling" = yes; then
18665 ac_cv_have_chflags
=no
18667 cat >conftest.
$ac_ext <<_ACEOF
18670 cat confdefs.h
>>conftest.
$ac_ext
18671 cat >>conftest.
$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18674 #include <sys/stat.h>
18675 #include <unistd.h>
18676 int main(int argc, char*argv[])
18678 if(chflags(argv[0], 0) != 0)
18684 rm -f conftest
$ac_exeext
18685 if { (ac_try
="$ac_link"
18686 case "(($ac_try" in
18687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_link") 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18695 { (case "(($ac_try" in
18696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18697 *) ac_try_echo
=$ac_try;;
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_try") 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_cv_have_chflags
=yes
18706 echo "$as_me: program exited with status $ac_status" >&5
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.
$ac_ext >&5
18710 ( exit $ac_status )
18711 ac_cv_have_chflags
=no
18713 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18720 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18721 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18722 if test $ac_cv_have_chflags = yes
18725 cat >>confdefs.h
<<\_ACEOF
18726 #define HAVE_CHFLAGS 1
18731 { echo "$as_me:$LINENO: checking for lchflags" >&5
18732 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
18733 if test "${ac_cv_have_lchflags+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 if test "$cross_compiling" = yes; then
18737 ac_cv_have_lchflags
=no
18739 cat >conftest.
$ac_ext <<_ACEOF
18742 cat confdefs.h
>>conftest.
$ac_ext
18743 cat >>conftest.
$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18746 #include <sys/stat.h>
18747 #include <unistd.h>
18748 int main(int argc, char*argv[])
18750 if(lchflags(argv[0], 0) != 0)
18756 rm -f conftest
$ac_exeext
18757 if { (ac_try
="$ac_link"
18758 case "(($ac_try" in
18759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_link") 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18767 { (case "(($ac_try" in
18768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18769 *) ac_try_echo
=$ac_try;;
18771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_try") 2>&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_cv_have_lchflags
=yes
18778 echo "$as_me: program exited with status $ac_status" >&5
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.
$ac_ext >&5
18782 ( exit $ac_status )
18783 ac_cv_have_lchflags
=no
18785 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18792 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
18793 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
18794 if test $ac_cv_have_lchflags = yes
18797 cat >>confdefs.h
<<\_ACEOF
18798 #define HAVE_LCHFLAGS 1
18803 case $ac_sys_system/$ac_sys_release in
18805 _CUR_CFLAGS
="${CFLAGS}"
18806 _CUR_LDFLAGS
="${LDFLAGS}"
18807 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
18808 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
18812 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
18813 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
18814 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18817 ac_check_lib_save_LIBS
=$LIBS
18819 cat >conftest.
$ac_ext <<_ACEOF
18822 cat confdefs.h
>>conftest.
$ac_ext
18823 cat >>conftest.
$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18826 /* Override any GCC internal prototype to avoid an error.
18827 Use char because int might match the return type of a GCC
18828 builtin and then its argument prototype would still apply. */
18832 char inflateCopy ();
18836 return inflateCopy ();
18841 rm -f conftest.
$ac_objext conftest
$ac_exeext
18842 if { (ac_try
="$ac_link"
18843 case "(($ac_try" in
18844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_link") 2>conftest.er1
18850 grep -v '^ *+' conftest.er1 >conftest.err
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && {
18855 test -z "$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18857 } && test -s conftest$ac_exeext &&
18858 $as_test_x conftest$ac_exeext; then
18859 ac_cv_lib_z_inflateCopy=yes
18861 echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 ac_cv_lib_z_inflateCopy=no
18867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18868 conftest$ac_exeext conftest.$ac_ext
18869 LIBS=$ac_check_lib_save_LIBS
18871 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
18872 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
18873 if test $ac_cv_lib_z_inflateCopy = yes; then
18875 cat >>confdefs.h <<\_ACEOF
18876 #define HAVE_ZLIB_COPY 1
18882 case $ac_sys_system/$ac_sys_release in
18884 CFLAGS="${_CUR_CFLAGS}"
18885 LDFLAGS="${_CUR_LDFLAGS}"
18889 { echo "$as_me:$LINENO: checking for hstrerror" >&5
18890 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18898 #include "confdefs.h"
18904 void* p = hstrerror; hstrerror(0)
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (ac_try="$ac_link"
18911 case "(($ac_try" in
18912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18913 *) ac_try_echo
=$ac_try;;
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_link") 2>conftest.er1
18918 grep -v '^ *+' conftest.er1
>conftest.err
18920 cat conftest.err
>&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest
$ac_exeext &&
18926 $as_test_x conftest
$ac_exeext; then
18928 cat >>confdefs.h
<<\_ACEOF
18929 #define HAVE_HSTRERROR 1
18932 { echo "$as_me:$LINENO: result: yes" >&5
18933 echo "${ECHO_T}yes" >&6; }
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.
$ac_ext >&5
18938 { echo "$as_me:$LINENO: result: no" >&5
18939 echo "${ECHO_T}no" >&6; }
18943 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18944 conftest
$ac_exeext conftest.
$ac_ext
18946 { echo "$as_me:$LINENO: checking for inet_aton" >&5
18947 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
18948 cat >conftest.
$ac_ext <<_ACEOF
18951 cat confdefs.h
>>conftest.
$ac_ext
18952 cat >>conftest.
$ac_ext <<_ACEOF
18953 /* end confdefs.h. */
18955 #include "confdefs.h"
18956 #include <sys/types.h>
18957 #include <sys/socket.h>
18958 #include <netinet/in.h>
18959 #include <arpa/inet.h>
18964 void* p = inet_aton;inet_aton(0,0)
18969 rm -f conftest.
$ac_objext conftest
$ac_exeext
18970 if { (ac_try
="$ac_link"
18971 case "(($ac_try" in
18972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_link") 2>conftest.er1
18978 grep -v '^ *+' conftest.er1 >conftest.err
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } && {
18983 test -z "$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 } && test -s conftest$ac_exeext &&
18986 $as_test_x conftest$ac_exeext; then
18988 cat >>confdefs.h <<\_ACEOF
18989 #define HAVE_INET_ATON 1
18992 { echo "$as_me:$LINENO: result: yes" >&5
18993 echo "${ECHO_T}yes" >&6; }
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 { echo "$as_me:$LINENO: result: no" >&5
18999 echo "${ECHO_T}no" >&6; }
19003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19004 conftest$ac_exeext conftest.$ac_ext
19006 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19007 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19008 cat >conftest.$ac_ext <<_ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19015 #include "confdefs.h"
19016 #include <sys/types.h>
19017 #include <sys/socket.h>
19018 #include <netinet/in.h>
19019 #include <arpa/inet.h>
19024 void* p = inet_pton
19029 rm -f conftest.$ac_objext
19030 if { (ac_try="$ac_compile"
19031 case "(($ac_try" in
19032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19033 *) ac_try_echo
=$ac_try;;
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_compile") 2>conftest.er1
19038 grep -v '^ *+' conftest.er1
>conftest.err
19040 cat conftest.err
>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); } && {
19043 test -z "$ac_c_werror_flag" ||
19044 test ! -s conftest.err
19045 } && test -s conftest.
$ac_objext; then
19047 cat >>confdefs.h
<<\_ACEOF
19048 #define HAVE_INET_PTON 1
19051 { echo "$as_me:$LINENO: result: yes" >&5
19052 echo "${ECHO_T}yes" >&6; }
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.
$ac_ext >&5
19057 { echo "$as_me:$LINENO: result: no" >&5
19058 echo "${ECHO_T}no" >&6; }
19062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19064 # On some systems, setgroups is in unistd.h, on others, in grp.h
19065 { echo "$as_me:$LINENO: checking for setgroups" >&5
19066 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19067 cat >conftest.
$ac_ext <<_ACEOF
19070 cat confdefs.h
>>conftest.
$ac_ext
19071 cat >>conftest.
$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19074 #include "confdefs.h"
19075 #include <unistd.h>
19083 void* p = setgroups
19088 rm -f conftest.
$ac_objext
19089 if { (ac_try
="$ac_compile"
19090 case "(($ac_try" in
19091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_compile") 2>conftest.er1
19097 grep -v '^ *+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } && {
19102 test -z "$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19104 } && test -s conftest.$ac_objext; then
19106 cat >>confdefs.h <<\_ACEOF
19107 #define HAVE_SETGROUPS 1
19110 { echo "$as_me:$LINENO: result: yes" >&5
19111 echo "${ECHO_T}yes" >&6; }
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 { echo "$as_me:$LINENO: result: no" >&5
19117 echo "${ECHO_T}no" >&6; }
19121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19123 # check for openpty and forkpty
19126 for ac_func in openpty
19128 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 cat >conftest.$ac_ext <<_ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19142 #define $ac_func innocuous_$ac_func
19144 /* System header to define __stub macros and hopefully few prototypes,
19145 which can conflict with char $ac_func (); below.
19146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19147 <limits.h> exists even on freestanding compilers. */
19150 # include <limits.h>
19152 # include <assert.h>
19157 /* Override any GCC internal prototype to avoid an error.
19158 Use char because int might match the return type of a GCC
19159 builtin and then its argument prototype would still apply. */
19164 /* The GNU C library defines this for functions which it implements
19165 to always fail with ENOSYS. Some functions are actually named
19166 something starting with __ and the normal name is an alias. */
19167 #if defined __stub_$ac_func || defined __stub___$ac_func
19174 return $ac_func ();
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19183 *) ac_try_echo
=$ac_try;;
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_link") 2>conftest.er1
19188 grep -v '^ *+' conftest.er1
>conftest.err
19190 cat conftest.err
>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest
$ac_exeext &&
19196 $as_test_x conftest
$ac_exeext; then
19197 eval "$as_ac_var=yes"
19199 echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.
$ac_ext >&5
19202 eval "$as_ac_var=no"
19205 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19206 conftest
$ac_exeext conftest.
$ac_ext
19208 ac_res
=`eval echo '${'$as_ac_var'}'`
19209 { echo "$as_me:$LINENO: result: $ac_res" >&5
19210 echo "${ECHO_T}$ac_res" >&6; }
19211 if test `eval echo '${'$as_ac_var'}'` = yes; then
19212 cat >>confdefs.h
<<_ACEOF
19213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19217 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19218 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19219 if test "${ac_cv_lib_util_openpty+set}" = set; then
19220 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 ac_check_lib_save_LIBS
=$LIBS
19223 LIBS
="-lutil $LIBS"
19224 cat >conftest.
$ac_ext <<_ACEOF
19227 cat confdefs.h
>>conftest.
$ac_ext
19228 cat >>conftest.
$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19231 /* Override any GCC internal prototype to avoid an error.
19232 Use char because int might match the return type of a GCC
19233 builtin and then its argument prototype would still apply. */
19246 rm -f conftest.
$ac_objext conftest
$ac_exeext
19247 if { (ac_try
="$ac_link"
19248 case "(($ac_try" in
19249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_link") 2>conftest.er1
19255 grep -v '^ *+' conftest.er1 >conftest.err
19257 cat conftest.err >&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } && {
19260 test -z "$ac_c_werror_flag" ||
19261 test ! -s conftest.err
19262 } && test -s conftest$ac_exeext &&
19263 $as_test_x conftest$ac_exeext; then
19264 ac_cv_lib_util_openpty=yes
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 ac_cv_lib_util_openpty=no
19272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19273 conftest$ac_exeext conftest.$ac_ext
19274 LIBS=$ac_check_lib_save_LIBS
19276 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19277 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19278 if test $ac_cv_lib_util_openpty = yes; then
19279 cat >>confdefs.h <<\_ACEOF
19280 #define HAVE_OPENPTY 1
19282 LIBS="$LIBS -lutil"
19284 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19285 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19286 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19289 ac_check_lib_save_LIBS=$LIBS
19291 cat >conftest.$ac_ext <<_ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19298 /* Override any GCC internal prototype to avoid an error.
19299 Use char because int might match the return type of a GCC
19300 builtin and then its argument prototype would still apply. */
19313 rm -f conftest.$ac_objext conftest$ac_exeext
19314 if { (ac_try="$ac_link"
19315 case "(($ac_try" in
19316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19317 *) ac_try_echo
=$ac_try;;
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_link") 2>conftest.er1
19322 grep -v '^ *+' conftest.er1
>conftest.err
19324 cat conftest.err
>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } && {
19327 test -z "$ac_c_werror_flag" ||
19328 test ! -s conftest.err
19329 } && test -s conftest
$ac_exeext &&
19330 $as_test_x conftest
$ac_exeext; then
19331 ac_cv_lib_bsd_openpty
=yes
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.
$ac_ext >&5
19336 ac_cv_lib_bsd_openpty
=no
19339 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19340 conftest
$ac_exeext conftest.
$ac_ext
19341 LIBS
=$ac_check_lib_save_LIBS
19343 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19344 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19345 if test $ac_cv_lib_bsd_openpty = yes; then
19346 cat >>confdefs.h
<<\_ACEOF
19347 #define HAVE_OPENPTY 1
19360 for ac_func
in forkpty
19362 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19365 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19368 cat >conftest.
$ac_ext <<_ACEOF
19371 cat confdefs.h
>>conftest.
$ac_ext
19372 cat >>conftest.
$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19376 #define $ac_func innocuous_$ac_func
19378 /* System header to define __stub macros and hopefully few prototypes,
19379 which can conflict with char $ac_func (); below.
19380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19381 <limits.h> exists even on freestanding compilers. */
19384 # include <limits.h>
19386 # include <assert.h>
19391 /* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19398 /* The GNU C library defines this for functions which it implements
19399 to always fail with ENOSYS. Some functions are actually named
19400 something starting with __ and the normal name is an alias. */
19401 #if defined __stub_$ac_func || defined __stub___$ac_func
19408 return $ac_func ();
19413 rm -f conftest.
$ac_objext conftest
$ac_exeext
19414 if { (ac_try
="$ac_link"
19415 case "(($ac_try" in
19416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_link") 2>conftest.er1
19422 grep -v '^ *+' conftest.er1 >conftest.err
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } && {
19427 test -z "$ac_c_werror_flag" ||
19428 test ! -s conftest.err
19429 } && test -s conftest$ac_exeext &&
19430 $as_test_x conftest$ac_exeext; then
19431 eval "$as_ac_var=yes"
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 eval "$as_ac_var=no"
19439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19440 conftest$ac_exeext conftest.$ac_ext
19442 ac_res=`eval echo '${'$as_ac_var'}'`
19443 { echo "$as_me:$LINENO: result: $ac_res" >&5
19444 echo "${ECHO_T}$ac_res" >&6; }
19445 if test `eval echo '${'$as_ac_var'}'` = yes; then
19446 cat >>confdefs.h <<_ACEOF
19447 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19451 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19452 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19453 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19456 ac_check_lib_save_LIBS=$LIBS
19457 LIBS="-lutil $LIBS"
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19465 /* Override any GCC internal prototype to avoid an error.
19466 Use char because int might match the return type of a GCC
19467 builtin and then its argument prototype would still apply. */
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (ac_try="$ac_link"
19482 case "(($ac_try" in
19483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19484 *) ac_try_echo
=$ac_try;;
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_link") 2>conftest.er1
19489 grep -v '^ *+' conftest.er1
>conftest.err
19491 cat conftest.err
>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } && {
19494 test -z "$ac_c_werror_flag" ||
19495 test ! -s conftest.err
19496 } && test -s conftest
$ac_exeext &&
19497 $as_test_x conftest
$ac_exeext; then
19498 ac_cv_lib_util_forkpty
=yes
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.
$ac_ext >&5
19503 ac_cv_lib_util_forkpty
=no
19506 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19507 conftest
$ac_exeext conftest.
$ac_ext
19508 LIBS
=$ac_check_lib_save_LIBS
19510 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19511 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19512 if test $ac_cv_lib_util_forkpty = yes; then
19513 cat >>confdefs.h
<<\_ACEOF
19514 #define HAVE_FORKPTY 1
19516 LIBS
="$LIBS -lutil"
19518 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19519 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19520 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 ac_check_lib_save_LIBS
=$LIBS
19525 cat >conftest.
$ac_ext <<_ACEOF
19528 cat confdefs.h
>>conftest.
$ac_ext
19529 cat >>conftest.
$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19532 /* Override any GCC internal prototype to avoid an error.
19533 Use char because int might match the return type of a GCC
19534 builtin and then its argument prototype would still apply. */
19547 rm -f conftest.
$ac_objext conftest
$ac_exeext
19548 if { (ac_try
="$ac_link"
19549 case "(($ac_try" in
19550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_link") 2>conftest.er1
19556 grep -v '^ *+' conftest.er1 >conftest.err
19558 cat conftest.err >&5
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest$ac_exeext &&
19564 $as_test_x conftest$ac_exeext; then
19565 ac_cv_lib_bsd_forkpty=yes
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_cv_lib_bsd_forkpty=no
19573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19574 conftest$ac_exeext conftest.$ac_ext
19575 LIBS=$ac_check_lib_save_LIBS
19577 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
19578 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
19579 if test $ac_cv_lib_bsd_forkpty = yes; then
19580 cat >>confdefs.h <<\_ACEOF
19581 #define HAVE_FORKPTY 1
19596 for ac_func in memmove
19598 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19612 #define $ac_func innocuous_$ac_func
19614 /* System header to define __stub macros and hopefully few prototypes,
19615 which can conflict with char $ac_func (); below.
19616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19617 <limits.h> exists even on freestanding compilers. */
19620 # include <limits.h>
19622 # include <assert.h>
19627 /* Override any GCC internal prototype to avoid an error.
19628 Use char because int might match the return type of a GCC
19629 builtin and then its argument prototype would still apply. */
19634 /* The GNU C library defines this for functions which it implements
19635 to always fail with ENOSYS. Some functions are actually named
19636 something starting with __ and the normal name is an alias. */
19637 #if defined __stub_$ac_func || defined __stub___$ac_func
19644 return $ac_func ();
19649 rm -f conftest.$ac_objext conftest$ac_exeext
19650 if { (ac_try="$ac_link"
19651 case "(($ac_try" in
19652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19653 *) ac_try_echo
=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_link") 2>conftest.er1
19658 grep -v '^ *+' conftest.er1
>conftest.err
19660 cat conftest.err
>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } && {
19663 test -z "$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19665 } && test -s conftest
$ac_exeext &&
19666 $as_test_x conftest
$ac_exeext; then
19667 eval "$as_ac_var=yes"
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.
$ac_ext >&5
19672 eval "$as_ac_var=no"
19675 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19676 conftest
$ac_exeext conftest.
$ac_ext
19678 ac_res
=`eval echo '${'$as_ac_var'}'`
19679 { echo "$as_me:$LINENO: result: $ac_res" >&5
19680 echo "${ECHO_T}$ac_res" >&6; }
19681 if test `eval echo '${'$as_ac_var'}'` = yes; then
19682 cat >>confdefs.h
<<_ACEOF
19683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19690 # check for long file support functions
19697 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19699 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19702 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 cat >conftest.
$ac_ext <<_ACEOF
19708 cat confdefs.h
>>conftest.
$ac_ext
19709 cat >>conftest.
$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19713 #define $ac_func innocuous_$ac_func
19715 /* System header to define __stub macros and hopefully few prototypes,
19716 which can conflict with char $ac_func (); below.
19717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19718 <limits.h> exists even on freestanding compilers. */
19721 # include <limits.h>
19723 # include <assert.h>
19728 /* Override any GCC internal prototype to avoid an error.
19729 Use char because int might match the return type of a GCC
19730 builtin and then its argument prototype would still apply. */
19735 /* The GNU C library defines this for functions which it implements
19736 to always fail with ENOSYS. Some functions are actually named
19737 something starting with __ and the normal name is an alias. */
19738 #if defined __stub_$ac_func || defined __stub___$ac_func
19745 return $ac_func ();
19750 rm -f conftest.
$ac_objext conftest
$ac_exeext
19751 if { (ac_try
="$ac_link"
19752 case "(($ac_try" in
19753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_link") 2>conftest.er1
19759 grep -v '^ *+' conftest.er1 >conftest.err
19761 cat conftest.err >&5
19762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } && {
19764 test -z "$ac_c_werror_flag" ||
19765 test ! -s conftest.err
19766 } && test -s conftest$ac_exeext &&
19767 $as_test_x conftest$ac_exeext; then
19768 eval "$as_ac_var=yes"
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19773 eval "$as_ac_var=no"
19776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19777 conftest$ac_exeext conftest.$ac_ext
19779 ac_res=`eval echo '${'$as_ac_var'}'`
19780 { echo "$as_me:$LINENO: result: $ac_res" >&5
19781 echo "${ECHO_T}$ac_res" >&6; }
19782 if test `eval echo '${'$as_ac_var'}'` = yes; then
19783 cat >>confdefs.h <<_ACEOF
19784 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19794 for ac_func in dup2 getcwd strdup
19796 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 cat >conftest.$ac_ext <<_ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h. */
19808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19810 #define $ac_func innocuous_$ac_func
19812 /* System header to define __stub macros and hopefully few prototypes,
19813 which can conflict with char $ac_func (); below.
19814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19815 <limits.h> exists even on freestanding compilers. */
19818 # include <limits.h>
19820 # include <assert.h>
19825 /* Override any GCC internal prototype to avoid an error.
19826 Use char because int might match the return type of a GCC
19827 builtin and then its argument prototype would still apply. */
19832 /* The GNU C library defines this for functions which it implements
19833 to always fail with ENOSYS. Some functions are actually named
19834 something starting with __ and the normal name is an alias. */
19835 #if defined __stub_$ac_func || defined __stub___$ac_func
19842 return $ac_func ();
19847 rm -f conftest.$ac_objext conftest$ac_exeext
19848 if { (ac_try="$ac_link"
19849 case "(($ac_try" in
19850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19851 *) ac_try_echo
=$ac_try;;
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_link") 2>conftest.er1
19856 grep -v '^ *+' conftest.er1
>conftest.err
19858 cat conftest.err
>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); } && {
19861 test -z "$ac_c_werror_flag" ||
19862 test ! -s conftest.err
19863 } && test -s conftest
$ac_exeext &&
19864 $as_test_x conftest
$ac_exeext; then
19865 eval "$as_ac_var=yes"
19867 echo "$as_me: failed program was:" >&5
19868 sed 's/^/| /' conftest.
$ac_ext >&5
19870 eval "$as_ac_var=no"
19873 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19874 conftest
$ac_exeext conftest.
$ac_ext
19876 ac_res
=`eval echo '${'$as_ac_var'}'`
19877 { echo "$as_me:$LINENO: result: $ac_res" >&5
19878 echo "${ECHO_T}$ac_res" >&6; }
19879 if test `eval echo '${'$as_ac_var'}'` = yes; then
19880 cat >>confdefs.h
<<_ACEOF
19881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19885 case " $LIBOBJS " in
19886 *" $ac_func.$ac_objext "* ) ;;
19887 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19896 for ac_func
in getpgrp
19898 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19901 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19904 cat >conftest.
$ac_ext <<_ACEOF
19907 cat confdefs.h
>>conftest.
$ac_ext
19908 cat >>conftest.
$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19912 #define $ac_func innocuous_$ac_func
19914 /* System header to define __stub macros and hopefully few prototypes,
19915 which can conflict with char $ac_func (); below.
19916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19917 <limits.h> exists even on freestanding compilers. */
19920 # include <limits.h>
19922 # include <assert.h>
19927 /* Override any GCC internal prototype to avoid an error.
19928 Use char because int might match the return type of a GCC
19929 builtin and then its argument prototype would still apply. */
19934 /* The GNU C library defines this for functions which it implements
19935 to always fail with ENOSYS. Some functions are actually named
19936 something starting with __ and the normal name is an alias. */
19937 #if defined __stub_$ac_func || defined __stub___$ac_func
19944 return $ac_func ();
19949 rm -f conftest.
$ac_objext conftest
$ac_exeext
19950 if { (ac_try
="$ac_link"
19951 case "(($ac_try" in
19952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19958 grep -v '^ *+' conftest.er1 >conftest.err
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } && {
19963 test -z "$ac_c_werror_flag" ||
19964 test ! -s conftest.err
19965 } && test -s conftest$ac_exeext &&
19966 $as_test_x conftest$ac_exeext; then
19967 eval "$as_ac_var=yes"
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 eval "$as_ac_var=no"
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976 conftest$ac_exeext conftest.$ac_ext
19978 ac_res=`eval echo '${'$as_ac_var'}'`
19979 { echo "$as_me:$LINENO: result: $ac_res" >&5
19980 echo "${ECHO_T}$ac_res" >&6; }
19981 if test `eval echo '${'$as_ac_var'}'` = yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19985 cat >conftest.$ac_ext <<_ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 #include <unistd.h>
20000 rm -f conftest.$ac_objext
20001 if { (ac_try="$ac_compile"
20002 case "(($ac_try" in
20003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20004 *) ac_try_echo
=$ac_try;;
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_compile") 2>conftest.er1
20009 grep -v '^ *+' conftest.er1
>conftest.err
20011 cat conftest.err
>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest.
$ac_objext; then
20018 cat >>confdefs.h
<<\_ACEOF
20019 #define GETPGRP_HAVE_ARG 1
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.
$ac_ext >&5
20030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20036 for ac_func
in setpgrp
20038 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20041 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20044 cat >conftest.
$ac_ext <<_ACEOF
20047 cat confdefs.h
>>conftest.
$ac_ext
20048 cat >>conftest.
$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20052 #define $ac_func innocuous_$ac_func
20054 /* System header to define __stub macros and hopefully few prototypes,
20055 which can conflict with char $ac_func (); below.
20056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20057 <limits.h> exists even on freestanding compilers. */
20060 # include <limits.h>
20062 # include <assert.h>
20067 /* Override any GCC internal prototype to avoid an error.
20068 Use char because int might match the return type of a GCC
20069 builtin and then its argument prototype would still apply. */
20074 /* The GNU C library defines this for functions which it implements
20075 to always fail with ENOSYS. Some functions are actually named
20076 something starting with __ and the normal name is an alias. */
20077 #if defined __stub_$ac_func || defined __stub___$ac_func
20084 return $ac_func ();
20089 rm -f conftest.
$ac_objext conftest
$ac_exeext
20090 if { (ac_try
="$ac_link"
20091 case "(($ac_try" in
20092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_link") 2>conftest.er1
20098 grep -v '^ *+' conftest.er1 >conftest.err
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } && {
20103 test -z "$ac_c_werror_flag" ||
20104 test ! -s conftest.err
20105 } && test -s conftest$ac_exeext &&
20106 $as_test_x conftest$ac_exeext; then
20107 eval "$as_ac_var=yes"
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112 eval "$as_ac_var=no"
20115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20116 conftest$ac_exeext conftest.$ac_ext
20118 ac_res=`eval echo '${'$as_ac_var'}'`
20119 { echo "$as_me:$LINENO: result: $ac_res" >&5
20120 echo "${ECHO_T}$ac_res" >&6; }
20121 if test `eval echo '${'$as_ac_var'}'` = yes; then
20122 cat >>confdefs.h <<_ACEOF
20123 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 #include <unistd.h>
20140 rm -f conftest.$ac_objext
20141 if { (ac_try="$ac_compile"
20142 case "(($ac_try" in
20143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20144 *) ac_try_echo
=$ac_try;;
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_compile") 2>conftest.er1
20149 grep -v '^ *+' conftest.er1
>conftest.err
20151 cat conftest.err
>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && {
20154 test -z "$ac_c_werror_flag" ||
20155 test ! -s conftest.err
20156 } && test -s conftest.
$ac_objext; then
20158 cat >>confdefs.h
<<\_ACEOF
20159 #define SETPGRP_HAVE_ARG 1
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.
$ac_ext >&5
20170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20176 for ac_func
in gettimeofday
20178 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20181 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20182 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 cat >conftest.
$ac_ext <<_ACEOF
20187 cat confdefs.h
>>conftest.
$ac_ext
20188 cat >>conftest.
$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20192 #define $ac_func innocuous_$ac_func
20194 /* System header to define __stub macros and hopefully few prototypes,
20195 which can conflict with char $ac_func (); below.
20196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20197 <limits.h> exists even on freestanding compilers. */
20200 # include <limits.h>
20202 # include <assert.h>
20207 /* Override any GCC internal prototype to avoid an error.
20208 Use char because int might match the return type of a GCC
20209 builtin and then its argument prototype would still apply. */
20214 /* The GNU C library defines this for functions which it implements
20215 to always fail with ENOSYS. Some functions are actually named
20216 something starting with __ and the normal name is an alias. */
20217 #if defined __stub_$ac_func || defined __stub___$ac_func
20224 return $ac_func ();
20229 rm -f conftest.
$ac_objext conftest
$ac_exeext
20230 if { (ac_try
="$ac_link"
20231 case "(($ac_try" in
20232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_link") 2>conftest.er1
20238 grep -v '^ *+' conftest.er1 >conftest.err
20240 cat conftest.err >&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest$ac_exeext &&
20246 $as_test_x conftest$ac_exeext; then
20247 eval "$as_ac_var=yes"
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20252 eval "$as_ac_var=no"
20255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20256 conftest$ac_exeext conftest.$ac_ext
20258 ac_res=`eval echo '${'$as_ac_var'}'`
20259 { echo "$as_me:$LINENO: result: $ac_res" >&5
20260 echo "${ECHO_T}$ac_res" >&6; }
20261 if test `eval echo '${'$as_ac_var'}'` = yes; then
20262 cat >>confdefs.h <<_ACEOF
20263 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20265 cat >conftest.$ac_ext <<_ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 #include <sys/time.h>
20275 gettimeofday((struct timeval*)0,(struct timezone*)0);
20280 rm -f conftest.$ac_objext
20281 if { (ac_try="$ac_compile"
20282 case "(($ac_try" in
20283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20284 *) ac_try_echo
=$ac_try;;
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_compile") 2>conftest.er1
20289 grep -v '^ *+' conftest.er1
>conftest.err
20291 cat conftest.err
>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } && {
20294 test -z "$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20296 } && test -s conftest.
$ac_objext; then
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.
$ac_ext >&5
20303 cat >>confdefs.h
<<\_ACEOF
20304 #define GETTIMEOFDAY_NO_TZ 1
20310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20316 { echo "$as_me:$LINENO: checking for major" >&5
20317 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20318 cat >conftest.
$ac_ext <<_ACEOF
20321 cat confdefs.h
>>conftest.
$ac_ext
20322 cat >>conftest.
$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20325 #if defined(MAJOR_IN_MKDEV)
20326 #include <sys/mkdev.h>
20327 #elif defined(MAJOR_IN_SYSMACROS)
20328 #include <sys/sysmacros.h>
20330 #include <sys/types.h>
20337 makedev(major(0),minor(0));
20343 rm -f conftest.
$ac_objext conftest
$ac_exeext
20344 if { (ac_try
="$ac_link"
20345 case "(($ac_try" in
20346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_link") 2>conftest.er1
20352 grep -v '^ *+' conftest.er1 >conftest.err
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } && {
20357 test -z "$ac_c_werror_flag" ||
20358 test ! -s conftest.err
20359 } && test -s conftest$ac_exeext &&
20360 $as_test_x conftest$ac_exeext; then
20363 cat >>confdefs.h <<\_ACEOF
20364 #define HAVE_DEVICE_MACROS 1
20367 { echo "$as_me:$LINENO: result: yes" >&5
20368 echo "${ECHO_T}yes" >&6; }
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20375 { echo "$as_me:$LINENO: result: no" >&5
20376 echo "${ECHO_T}no" >&6; }
20380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20381 conftest$ac_exeext conftest.$ac_ext
20383 # On OSF/1 V5.1, getaddrinfo is available, but a define
20384 # for [no]getaddrinfo in netdb.h.
20385 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20386 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20387 cat >conftest.$ac_ext <<_ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20394 #include <sys/types.h>
20395 #include <sys/socket.h>
20402 getaddrinfo(NULL, NULL, NULL, NULL);
20407 rm -f conftest.$ac_objext conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20411 *) ac_try_echo
=$ac_try;;
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>conftest.er1
20416 grep -v '^ *+' conftest.er1
>conftest.err
20418 cat conftest.err
>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_c_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest
$ac_exeext &&
20424 $as_test_x conftest
$ac_exeext; then
20425 have_getaddrinfo
=yes
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.
$ac_ext >&5
20430 have_getaddrinfo
=no
20433 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20434 conftest
$ac_exeext conftest.
$ac_ext
20435 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20436 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20437 if test $have_getaddrinfo = yes
20439 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20440 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20441 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20444 if test "$cross_compiling" = yes; then
20445 ac_cv_buggy_getaddrinfo
=yes
20447 cat >conftest.
$ac_ext <<_ACEOF
20450 cat confdefs.h
>>conftest.
$ac_ext
20451 cat >>conftest.
$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20454 #include <sys/types.h>
20456 #include <string.h>
20457 #include <sys/socket.h>
20458 #include <netinet/in.h>
20462 int passive, gaierr, inet4 = 0, inet6 = 0;
20463 struct addrinfo hints, *ai, *aitop;
20464 char straddr[INET6_ADDRSTRLEN], strport[16];
20466 for (passive = 0; passive <= 1; passive++) {
20467 memset(&hints, 0, sizeof(hints));
20468 hints.ai_family = AF_UNSPEC;
20469 hints.ai_flags = passive ? AI_PASSIVE : 0;
20470 hints.ai_socktype = SOCK_STREAM;
20471 hints.ai_protocol = IPPROTO_TCP;
20472 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20473 (void)gai_strerror(gaierr);
20476 for (ai = aitop; ai; ai = ai->ai_next) {
20477 if (ai->ai_addr == NULL ||
20478 ai->ai_addrlen == 0 ||
20479 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20480 straddr, sizeof(straddr), strport, sizeof(strport),
20481 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20484 switch (ai->ai_family) {
20486 if (strcmp(strport, "54321") != 0) {
20490 if (strcmp(straddr, "0.0.0.0") != 0) {
20494 if (strcmp(straddr, "127.0.0.1") != 0) {
20501 if (strcmp(strport, "54321") != 0) {
20505 if (strcmp(straddr, "::") != 0) {
20509 if (strcmp(straddr, "::1") != 0) {
20519 /* another family support? */
20525 if (!(inet4 == 0 || inet4 == 2))
20527 if (!(inet6 == 0 || inet6 == 2))
20531 freeaddrinfo(aitop);
20536 freeaddrinfo(aitop);
20541 rm -f conftest
$ac_exeext
20542 if { (ac_try
="$ac_link"
20543 case "(($ac_try" in
20544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548 (eval "$ac_link") 2>&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20552 { (case "(($ac_try" in
20553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20554 *) ac_try_echo
=$ac_try;;
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_cv_buggy_getaddrinfo
=no
20563 echo "$as_me: program exited with status $ac_status" >&5
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.
$ac_ext >&5
20567 ( exit $ac_status )
20568 ac_cv_buggy_getaddrinfo
=yes
20570 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20578 if test $have_getaddrinfo = no
-o $ac_cv_buggy_getaddrinfo = yes
20580 if test $ipv6 = yes
20582 echo 'Fatal: You must get working getaddrinfo() function.'
20583 echo ' or you can specify "--disable-ipv6"'.
20588 cat >>confdefs.h
<<\_ACEOF
20589 #define HAVE_GETADDRINFO 1
20594 for ac_func
in getnameinfo
20596 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20599 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 cat >conftest.
$ac_ext <<_ACEOF
20605 cat confdefs.h
>>conftest.
$ac_ext
20606 cat >>conftest.
$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20610 #define $ac_func innocuous_$ac_func
20612 /* System header to define __stub macros and hopefully few prototypes,
20613 which can conflict with char $ac_func (); below.
20614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20615 <limits.h> exists even on freestanding compilers. */
20618 # include <limits.h>
20620 # include <assert.h>
20625 /* Override any GCC internal prototype to avoid an error.
20626 Use char because int might match the return type of a GCC
20627 builtin and then its argument prototype would still apply. */
20632 /* The GNU C library defines this for functions which it implements
20633 to always fail with ENOSYS. Some functions are actually named
20634 something starting with __ and the normal name is an alias. */
20635 #if defined __stub_$ac_func || defined __stub___$ac_func
20642 return $ac_func ();
20647 rm -f conftest.
$ac_objext conftest
$ac_exeext
20648 if { (ac_try
="$ac_link"
20649 case "(($ac_try" in
20650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_link") 2>conftest.er1
20656 grep -v '^ *+' conftest.er1 >conftest.err
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest$ac_exeext &&
20664 $as_test_x conftest$ac_exeext; then
20665 eval "$as_ac_var=yes"
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 eval "$as_ac_var=no"
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674 conftest$ac_exeext conftest.$ac_ext
20676 ac_res=`eval echo '${'$as_ac_var'}'`
20677 { echo "$as_me:$LINENO: result: $ac_res" >&5
20678 echo "${ECHO_T}$ac_res" >&6; }
20679 if test `eval echo '${'$as_ac_var'}'` = yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20688 # checks for structures
20689 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20690 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20691 if test "${ac_cv_header_time+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 #include <sys/types.h>
20701 #include <sys/time.h>
20707 if ((struct tm *) 0)
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20717 *) ac_try_echo
=$ac_try;;
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20722 grep -v '^ *+' conftest.er1
>conftest.err
20724 cat conftest.err
>&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && {
20727 test -z "$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20729 } && test -s conftest.
$ac_objext; then
20730 ac_cv_header_time
=yes
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.
$ac_ext >&5
20735 ac_cv_header_time
=no
20738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20740 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20741 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20742 if test $ac_cv_header_time = yes; then
20744 cat >>confdefs.h
<<\_ACEOF
20745 #define TIME_WITH_SYS_TIME 1
20750 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20751 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20752 if test "${ac_cv_struct_tm+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 cat >conftest.
$ac_ext <<_ACEOF
20758 cat confdefs.h
>>conftest.
$ac_ext
20759 cat >>conftest.
$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 #include <sys/types.h>
20768 int *p = &tm.tm_sec;
20774 rm -f conftest.
$ac_objext
20775 if { (ac_try
="$ac_compile"
20776 case "(($ac_try" in
20777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest.$ac_objext; then
20791 ac_cv_struct_tm=time.h
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_cv_struct_tm=sys/time.h
20799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20801 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20802 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20803 if test $ac_cv_struct_tm = sys/time.h; then
20805 cat >>confdefs.h <<\_ACEOF
20806 #define TM_IN_SYS_TIME 1
20811 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20812 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20813 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20816 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 #include <sys/types.h>
20823 #include <$ac_cv_struct_tm>
20829 static struct tm ac_aggr;
20830 if (ac_aggr.tm_zone)
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20840 *) ac_try_echo
=$ac_try;;
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20845 grep -v '^ *+' conftest.er1
>conftest.err
20847 cat conftest.err
>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.
$ac_objext; then
20853 ac_cv_member_struct_tm_tm_zone
=yes
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.
$ac_ext >&5
20858 cat >conftest.
$ac_ext <<_ACEOF
20861 cat confdefs.h
>>conftest.
$ac_ext
20862 cat >>conftest.
$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20864 #include <sys/types.h>
20865 #include <$ac_cv_struct_tm>
20871 static struct tm ac_aggr;
20872 if (sizeof ac_aggr.tm_zone)
20878 rm -f conftest.
$ac_objext
20879 if { (ac_try
="$ac_compile"
20880 case "(($ac_try" in
20881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20882 *) ac_try_echo=$ac_try;;
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885 (eval "$ac_compile") 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } && {
20892 test -z "$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20894 } && test -s conftest.$ac_objext; then
20895 ac_cv_member_struct_tm_tm_zone=yes
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 ac_cv_member_struct_tm_tm_zone=no
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20909 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
20910 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20912 cat >>confdefs.h <<_ACEOF
20913 #define HAVE_STRUCT_TM_TM_ZONE 1
20919 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_TM_ZONE 1
20926 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20927 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
20928 if test "${ac_cv_have_decl_tzname+set}" = set; then
20929 echo $ECHO_N "(cached) $ECHO_C" >&6
20931 cat >conftest.$ac_ext <<_ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20954 *) ac_try_echo
=$ac_try;;
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_compile") 2>conftest.er1
20959 grep -v '^ *+' conftest.er1
>conftest.err
20961 cat conftest.err
>&5
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); } && {
20964 test -z "$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20966 } && test -s conftest.
$ac_objext; then
20967 ac_cv_have_decl_tzname
=yes
20969 echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.
$ac_ext >&5
20972 ac_cv_have_decl_tzname
=no
20975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20977 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20978 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
20979 if test $ac_cv_have_decl_tzname = yes; then
20981 cat >>confdefs.h
<<_ACEOF
20982 #define HAVE_DECL_TZNAME 1
20987 cat >>confdefs.h
<<_ACEOF
20988 #define HAVE_DECL_TZNAME 0
20995 { echo "$as_me:$LINENO: checking for tzname" >&5
20996 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
20997 if test "${ac_cv_var_tzname+set}" = set; then
20998 echo $ECHO_N "(cached) $ECHO_C" >&6
21000 cat >conftest.
$ac_ext <<_ACEOF
21003 cat confdefs.h
>>conftest.
$ac_ext
21004 cat >>conftest.
$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21007 #if !HAVE_DECL_TZNAME
21008 extern char *tzname[];
21014 return tzname[0][0];
21019 rm -f conftest.
$ac_objext conftest
$ac_exeext
21020 if { (ac_try
="$ac_link"
21021 case "(($ac_try" in
21022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_link") 2>conftest.er1
21028 grep -v '^ *+' conftest.er1 >conftest.err
21030 cat conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && {
21033 test -z "$ac_c_werror_flag" ||
21034 test ! -s conftest.err
21035 } && test -s conftest$ac_exeext &&
21036 $as_test_x conftest$ac_exeext; then
21037 ac_cv_var_tzname=yes
21039 echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21042 ac_cv_var_tzname=no
21045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21046 conftest$ac_exeext conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21049 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21050 if test $ac_cv_var_tzname = yes; then
21052 cat >>confdefs.h <<\_ACEOF
21053 #define HAVE_TZNAME 1
21059 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21060 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21061 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21062 echo $ECHO_N "(cached) $ECHO_C" >&6
21064 cat >conftest.$ac_ext <<_ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h. */
21070 $ac_includes_default
21074 static struct stat ac_aggr;
21075 if (ac_aggr.st_rdev)
21081 rm -f conftest.$ac_objext
21082 if { (ac_try="$ac_compile"
21083 case "(($ac_try" in
21084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21085 *) ac_try_echo
=$ac_try;;
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_compile") 2>conftest.er1
21090 grep -v '^ *+' conftest.er1
>conftest.err
21092 cat conftest.err
>&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } && {
21095 test -z "$ac_c_werror_flag" ||
21096 test ! -s conftest.err
21097 } && test -s conftest.
$ac_objext; then
21098 ac_cv_member_struct_stat_st_rdev
=yes
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.
$ac_ext >&5
21103 cat >conftest.
$ac_ext <<_ACEOF
21106 cat confdefs.h
>>conftest.
$ac_ext
21107 cat >>conftest.
$ac_ext <<_ACEOF
21108 /* end confdefs.h. */
21109 $ac_includes_default
21113 static struct stat ac_aggr;
21114 if (sizeof ac_aggr.st_rdev)
21120 rm -f conftest.
$ac_objext
21121 if { (ac_try
="$ac_compile"
21122 case "(($ac_try" in
21123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_compile") 2>conftest.er1
21129 grep -v '^ *+' conftest.er1 >conftest.err
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest.$ac_objext; then
21137 ac_cv_member_struct_stat_st_rdev=yes
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21142 ac_cv_member_struct_stat_st_rdev=no
21145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21151 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21152 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21154 cat >>confdefs.h <<_ACEOF
21155 #define HAVE_STRUCT_STAT_ST_RDEV 1
21161 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21162 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21163 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21164 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 cat >conftest.$ac_ext <<_ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21172 $ac_includes_default
21176 static struct stat ac_aggr;
21177 if (ac_aggr.st_blksize)
21183 rm -f conftest.$ac_objext
21184 if { (ac_try="$ac_compile"
21185 case "(($ac_try" in
21186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21187 *) ac_try_echo
=$ac_try;;
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190 (eval "$ac_compile") 2>conftest.er1
21192 grep -v '^ *+' conftest.er1
>conftest.err
21194 cat conftest.err
>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); } && {
21197 test -z "$ac_c_werror_flag" ||
21198 test ! -s conftest.err
21199 } && test -s conftest.
$ac_objext; then
21200 ac_cv_member_struct_stat_st_blksize
=yes
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.
$ac_ext >&5
21205 cat >conftest.
$ac_ext <<_ACEOF
21208 cat confdefs.h
>>conftest.
$ac_ext
21209 cat >>conftest.
$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211 $ac_includes_default
21215 static struct stat ac_aggr;
21216 if (sizeof ac_aggr.st_blksize)
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_member_struct_stat_st_blksize=yes
21241 echo "$as_me: failed program was:" >&5
21242 sed 's/^/| /' conftest.$ac_ext >&5
21244 ac_cv_member_struct_stat_st_blksize=no
21247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21253 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21254 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21256 cat >>confdefs.h <<_ACEOF
21257 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21263 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21264 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21265 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 $ac_includes_default
21278 static struct stat ac_aggr;
21279 if (ac_aggr.st_flags)
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21289 *) ac_try_echo
=$ac_try;;
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_compile") 2>conftest.er1
21294 grep -v '^ *+' conftest.er1
>conftest.err
21296 cat conftest.err
>&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest.
$ac_objext; then
21302 ac_cv_member_struct_stat_st_flags
=yes
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.
$ac_ext >&5
21307 cat >conftest.
$ac_ext <<_ACEOF
21310 cat confdefs.h
>>conftest.
$ac_ext
21311 cat >>conftest.
$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 $ac_includes_default
21317 static struct stat ac_aggr;
21318 if (sizeof ac_aggr.st_flags)
21324 rm -f conftest.
$ac_objext
21325 if { (ac_try
="$ac_compile"
21326 case "(($ac_try" in
21327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_compile") 2>conftest.er1
21333 grep -v '^ *+' conftest.er1 >conftest.err
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && {
21338 test -z "$ac_c_werror_flag" ||
21339 test ! -s conftest.err
21340 } && test -s conftest.$ac_objext; then
21341 ac_cv_member_struct_stat_st_flags=yes
21343 echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21346 ac_cv_member_struct_stat_st_flags=no
21349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21355 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21356 if test $ac_cv_member_struct_stat_st_flags = yes; then
21358 cat >>confdefs.h <<_ACEOF
21359 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21365 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21366 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21367 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 cat >conftest.$ac_ext <<_ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376 $ac_includes_default
21380 static struct stat ac_aggr;
21381 if (ac_aggr.st_gen)
21387 rm -f conftest.$ac_objext
21388 if { (ac_try="$ac_compile"
21389 case "(($ac_try" in
21390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21391 *) ac_try_echo
=$ac_try;;
21393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21394 (eval "$ac_compile") 2>conftest.er1
21396 grep -v '^ *+' conftest.er1
>conftest.err
21398 cat conftest.err
>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } && {
21401 test -z "$ac_c_werror_flag" ||
21402 test ! -s conftest.err
21403 } && test -s conftest.
$ac_objext; then
21404 ac_cv_member_struct_stat_st_gen
=yes
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.
$ac_ext >&5
21409 cat >conftest.
$ac_ext <<_ACEOF
21412 cat confdefs.h
>>conftest.
$ac_ext
21413 cat >>conftest.
$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415 $ac_includes_default
21419 static struct stat ac_aggr;
21420 if (sizeof ac_aggr.st_gen)
21426 rm -f conftest.
$ac_objext
21427 if { (ac_try
="$ac_compile"
21428 case "(($ac_try" in
21429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21430 *) ac_try_echo=$ac_try;;
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_compile") 2>conftest.er1
21435 grep -v '^ *+' conftest.er1 >conftest.err
21437 cat conftest.err >&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && {
21440 test -z "$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 } && test -s conftest.$ac_objext; then
21443 ac_cv_member_struct_stat_st_gen=yes
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 ac_cv_member_struct_stat_st_gen=no
21451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21457 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21458 if test $ac_cv_member_struct_stat_st_gen = yes; then
21460 cat >>confdefs.h <<_ACEOF
21461 #define HAVE_STRUCT_STAT_ST_GEN 1
21467 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21468 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21469 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21472 cat >conftest.$ac_ext <<_ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 $ac_includes_default
21482 static struct stat ac_aggr;
21483 if (ac_aggr.st_birthtime)
21489 rm -f conftest.$ac_objext
21490 if { (ac_try="$ac_compile"
21491 case "(($ac_try" in
21492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21493 *) ac_try_echo
=$ac_try;;
21495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496 (eval "$ac_compile") 2>conftest.er1
21498 grep -v '^ *+' conftest.er1
>conftest.err
21500 cat conftest.err
>&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest.
$ac_objext; then
21506 ac_cv_member_struct_stat_st_birthtime
=yes
21508 echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.
$ac_ext >&5
21511 cat >conftest.
$ac_ext <<_ACEOF
21514 cat confdefs.h
>>conftest.
$ac_ext
21515 cat >>conftest.
$ac_ext <<_ACEOF
21516 /* end confdefs.h. */
21517 $ac_includes_default
21521 static struct stat ac_aggr;
21522 if (sizeof ac_aggr.st_birthtime)
21528 rm -f conftest.
$ac_objext
21529 if { (ac_try
="$ac_compile"
21530 case "(($ac_try" in
21531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21532 *) ac_try_echo=$ac_try;;
21534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21535 (eval "$ac_compile") 2>conftest.er1
21537 grep -v '^ *+' conftest.er1 >conftest.err
21539 cat conftest.err >&5
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } && {
21542 test -z "$ac_c_werror_flag" ||
21543 test ! -s conftest.err
21544 } && test -s conftest.$ac_objext; then
21545 ac_cv_member_struct_stat_st_birthtime=yes
21547 echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21550 ac_cv_member_struct_stat_st_birthtime=no
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21558 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
21559 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
21560 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
21562 cat >>confdefs.h <<_ACEOF
21563 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
21569 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21570 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21571 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 $ac_includes_default
21584 static struct stat ac_aggr;
21585 if (ac_aggr.st_blocks)
21591 rm -f conftest.$ac_objext
21592 if { (ac_try="$ac_compile"
21593 case "(($ac_try" in
21594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21595 *) ac_try_echo
=$ac_try;;
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598 (eval "$ac_compile") 2>conftest.er1
21600 grep -v '^ *+' conftest.er1
>conftest.err
21602 cat conftest.err
>&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } && {
21605 test -z "$ac_c_werror_flag" ||
21606 test ! -s conftest.err
21607 } && test -s conftest.
$ac_objext; then
21608 ac_cv_member_struct_stat_st_blocks
=yes
21610 echo "$as_me: failed program was:" >&5
21611 sed 's/^/| /' conftest.
$ac_ext >&5
21613 cat >conftest.
$ac_ext <<_ACEOF
21616 cat confdefs.h
>>conftest.
$ac_ext
21617 cat >>conftest.
$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 $ac_includes_default
21623 static struct stat ac_aggr;
21624 if (sizeof ac_aggr.st_blocks)
21630 rm -f conftest.
$ac_objext
21631 if { (ac_try
="$ac_compile"
21632 case "(($ac_try" in
21633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21634 *) ac_try_echo=$ac_try;;
21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637 (eval "$ac_compile") 2>conftest.er1
21639 grep -v '^ *+' conftest.er1 >conftest.err
21641 cat conftest.err >&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } && {
21644 test -z "$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 } && test -s conftest.$ac_objext; then
21647 ac_cv_member_struct_stat_st_blocks=yes
21649 echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ac_cv_member_struct_stat_st_blocks=no
21655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21661 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21662 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21664 cat >>confdefs.h <<_ACEOF
21665 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21669 cat >>confdefs.h <<\_ACEOF
21670 #define HAVE_ST_BLOCKS 1
21674 case " $LIBOBJS " in
21675 *" fileblocks.$ac_objext "* ) ;;
21676 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21684 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21685 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
21686 if test "${ac_cv_header_time_altzone+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21689 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21704 rm -f conftest.$ac_objext
21705 if { (ac_try="$ac_compile"
21706 case "(($ac_try" in
21707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21708 *) ac_try_echo
=$ac_try;;
21710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_compile") 2>conftest.er1
21713 grep -v '^ *+' conftest.er1
>conftest.err
21715 cat conftest.err
>&5
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } && {
21718 test -z "$ac_c_werror_flag" ||
21719 test ! -s conftest.err
21720 } && test -s conftest.
$ac_objext; then
21721 ac_cv_header_time_altzone
=yes
21723 echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.
$ac_ext >&5
21726 ac_cv_header_time_altzone
=no
21729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21732 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
21733 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
21734 if test $ac_cv_header_time_altzone = yes; then
21736 cat >>confdefs.h
<<\_ACEOF
21737 #define HAVE_ALTZONE 1
21743 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
21744 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
21745 cat >conftest.
$ac_ext <<_ACEOF
21748 cat confdefs.h
>>conftest.
$ac_ext
21749 cat >>conftest.
$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21752 #include <sys/types.h>
21753 #include <sys/select.h>
21754 #include <sys/time.h>
21764 rm -f conftest.
$ac_objext
21765 if { (ac_try
="$ac_compile"
21766 case "(($ac_try" in
21767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21768 *) ac_try_echo=$ac_try;;
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771 (eval "$ac_compile") 2>conftest.er1
21773 grep -v '^ *+' conftest.er1 >conftest.err
21775 cat conftest.err >&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); } && {
21778 test -z "$ac_c_werror_flag" ||
21779 test ! -s conftest.err
21780 } && test -s conftest.$ac_objext; then
21783 cat >>confdefs.h <<\_ACEOF
21784 #define SYS_SELECT_WITH_SYS_TIME 1
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
21798 echo "${ECHO_T}$was_it_defined" >&6; }
21800 { echo "$as_me:$LINENO: checking for addrinfo" >&5
21801 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
21802 if test "${ac_cv_struct_addrinfo+set}" = set; then
21803 echo $ECHO_N "(cached) $ECHO_C" >&6
21805 cat >conftest.$ac_ext <<_ACEOF
21808 cat confdefs.h >>conftest.$ac_ext
21809 cat >>conftest.$ac_ext <<_ACEOF
21810 /* end confdefs.h. */
21812 # include <netdb.h>
21821 rm -f conftest.$ac_objext
21822 if { (ac_try="$ac_compile"
21823 case "(($ac_try" in
21824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21825 *) ac_try_echo
=$ac_try;;
21827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828 (eval "$ac_compile") 2>conftest.er1
21830 grep -v '^ *+' conftest.er1
>conftest.err
21832 cat conftest.err
>&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); } && {
21835 test -z "$ac_c_werror_flag" ||
21836 test ! -s conftest.err
21837 } && test -s conftest.
$ac_objext; then
21838 ac_cv_struct_addrinfo
=yes
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.
$ac_ext >&5
21843 ac_cv_struct_addrinfo
=no
21846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21849 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
21850 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
21851 if test $ac_cv_struct_addrinfo = yes; then
21853 cat >>confdefs.h
<<\_ACEOF
21854 #define HAVE_ADDRINFO 1
21859 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
21860 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
21861 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
21862 echo $ECHO_N "(cached) $ECHO_C" >&6
21864 cat >conftest.
$ac_ext <<_ACEOF
21867 cat confdefs.h
>>conftest.
$ac_ext
21868 cat >>conftest.
$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21871 # include <sys/types.h>
21872 # include <sys/socket.h>
21876 struct sockaddr_storage s
21881 rm -f conftest.
$ac_objext
21882 if { (ac_try
="$ac_compile"
21883 case "(($ac_try" in
21884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888 (eval "$ac_compile") 2>conftest.er1
21890 grep -v '^ *+' conftest.er1 >conftest.err
21892 cat conftest.err >&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } && {
21895 test -z "$ac_c_werror_flag" ||
21896 test ! -s conftest.err
21897 } && test -s conftest.$ac_objext; then
21898 ac_cv_struct_sockaddr_storage=yes
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 ac_cv_struct_sockaddr_storage=no
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
21910 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
21911 if test $ac_cv_struct_sockaddr_storage = yes; then
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_SOCKADDR_STORAGE 1
21919 # checks for compiler characteristics
21922 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
21923 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
21924 if test "${ac_cv_c_char_unsigned+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 cat >conftest.$ac_ext <<_ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21933 $ac_includes_default
21937 static int test_array [1 - 2 * !(((char) -1) < 0)];
21944 rm -f conftest.$ac_objext
21945 if { (ac_try="$ac_compile"
21946 case "(($ac_try" in
21947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21948 *) ac_try_echo
=$ac_try;;
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_compile") 2>conftest.er1
21953 grep -v '^ *+' conftest.er1
>conftest.err
21955 cat conftest.err
>&5
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } && {
21958 test -z "$ac_c_werror_flag" ||
21959 test ! -s conftest.err
21960 } && test -s conftest.
$ac_objext; then
21961 ac_cv_c_char_unsigned
=no
21963 echo "$as_me: failed program was:" >&5
21964 sed 's/^/| /' conftest.
$ac_ext >&5
21966 ac_cv_c_char_unsigned
=yes
21969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21971 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
21972 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
21973 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21974 cat >>confdefs.h
<<\_ACEOF
21975 #define __CHAR_UNSIGNED__ 1
21980 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21981 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21982 if test "${ac_cv_c_const+set}" = set; then
21983 echo $ECHO_N "(cached) $ECHO_C" >&6
21985 cat >conftest.
$ac_ext <<_ACEOF
21988 cat confdefs.h
>>conftest.
$ac_ext
21989 cat >>conftest.
$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21995 /* FIXME: Include the comments suggested by Paul. */
21996 #ifndef __cplusplus
21997 /* Ultrix mips cc rejects this. */
21998 typedef int charset[2];
22000 /* SunOS 4.1.1 cc rejects this. */
22001 char const *const *pcpcc;
22003 /* NEC SVR4.0.2 mips cc rejects this. */
22004 struct point {int x, y;};
22005 static struct point const zero = {0,0};
22006 /* AIX XL C 1.02.0.0 rejects this.
22007 It does not let you subtract one const X* pointer from another in
22008 an arm of an if-expression whose if-part is not a constant
22010 const char *g = "string";
22011 pcpcc = &g + (g ? g-g : 0);
22012 /* HPUX 7.0 cc rejects these. */
22014 ppc = (char**) pcpcc;
22015 pcpcc = (char const *const *) ppc;
22016 { /* SCO 3.2v4 cc rejects this. */
22018 char const *s = 0 ? (char *) 0 : (char const *) 0;
22023 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22024 int x[] = {25, 17};
22025 const int *foo = &x[0];
22028 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22029 typedef const int *iptr;
22033 { /* AIX XL C 1.02.0.0 rejects this saying
22034 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22035 struct s { int j; const int *ap[3]; };
22036 struct s *b; b->j = 5;
22038 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22039 const int foo = 10;
22040 if (!foo) return 0;
22042 return !cs[0] && !zero.x;
22049 rm -f conftest.
$ac_objext
22050 if { (ac_try
="$ac_compile"
22051 case "(($ac_try" in
22052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_compile") 2>conftest.er1
22058 grep -v '^ *+' conftest.er1 >conftest.err
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest.$ac_objext; then
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22076 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22077 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22078 if test $ac_cv_c_const = no; then
22080 cat >>confdefs.h <<\_ACEOF
22088 { echo "$as_me:$LINENO: checking for working volatile" >&5
22089 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22090 cat >conftest.$ac_ext <<_ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22100 volatile int x; x = 0;
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22109 *) ac_try_echo
=$ac_try;;
22111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_compile") 2>conftest.er1
22114 grep -v '^ *+' conftest.er1
>conftest.err
22116 cat conftest.err
>&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } && {
22119 test -z "$ac_c_werror_flag" ||
22120 test ! -s conftest.err
22121 } && test -s conftest.
$ac_objext; then
22124 echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.
$ac_ext >&5
22128 cat >>confdefs.h
<<\_ACEOF
22135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22136 { echo "$as_me:$LINENO: result: $works" >&5
22137 echo "${ECHO_T}$works" >&6; }
22140 { echo "$as_me:$LINENO: checking for working signed char" >&5
22141 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22142 cat >conftest.
$ac_ext <<_ACEOF
22145 cat confdefs.h
>>conftest.
$ac_ext
22146 cat >>conftest.
$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22157 rm -f conftest.
$ac_objext
22158 if { (ac_try
="$ac_compile"
22159 case "(($ac_try" in
22160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_compile") 2>conftest.er1
22166 grep -v '^ *+' conftest.er1 >conftest.err
22168 cat conftest.err >&5
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && {
22171 test -z "$ac_c_werror_flag" ||
22172 test ! -s conftest.err
22173 } && test -s conftest.$ac_objext; then
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22180 cat >>confdefs.h <<\_ACEOF
22187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22188 { echo "$as_me:$LINENO: result: $works" >&5
22189 echo "${ECHO_T}$works" >&6; }
22192 { echo "$as_me:$LINENO: checking for prototypes" >&5
22193 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22194 cat >conftest.$ac_ext <<_ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 int foo(int x) { return 0; }
22209 rm -f conftest.$ac_objext
22210 if { (ac_try="$ac_compile"
22211 case "(($ac_try" in
22212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22213 *) ac_try_echo
=$ac_try;;
22215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216 (eval "$ac_compile") 2>conftest.er1
22218 grep -v '^ *+' conftest.er1
>conftest.err
22220 cat conftest.err
>&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } && {
22223 test -z "$ac_c_werror_flag" ||
22224 test ! -s conftest.err
22225 } && test -s conftest.
$ac_objext; then
22228 cat >>confdefs.h
<<\_ACEOF
22229 #define HAVE_PROTOTYPES 1
22232 have_prototypes
=yes
22235 echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.
$ac_ext >&5
22241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22242 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22243 echo "${ECHO_T}$have_prototypes" >&6; }
22246 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22247 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22248 cat >conftest.
$ac_ext <<_ACEOF
22251 cat confdefs.h
>>conftest.
$ac_ext
22252 cat >>conftest.
$ac_ext <<_ACEOF
22253 /* end confdefs.h. */
22255 #include <stdarg.h>
22256 int foo(int x, ...) {
22260 va_arg(va, char *);
22261 va_arg(va, double);
22268 return foo(10, "", 3.14);
22273 rm -f conftest.
$ac_objext
22274 if { (ac_try
="$ac_compile"
22275 case "(($ac_try" in
22276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_compile") 2>conftest.er1
22282 grep -v '^ *+' conftest.er1 >conftest.err
22284 cat conftest.err >&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } && {
22287 test -z "$ac_c_werror_flag" ||
22288 test ! -s conftest.err
22289 } && test -s conftest.$ac_objext; then
22292 cat >>confdefs.h <<\_ACEOF
22293 #define HAVE_STDARG_PROTOTYPES 1
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result: $works" >&5
22307 echo "${ECHO_T}$works" >&6; }
22309 # check for socketpair
22310 { echo "$as_me:$LINENO: checking for socketpair" >&5
22311 echo $ECHO_N "checking for socketpair... $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>
22330 rm -f conftest.$ac_objext
22331 if { (ac_try="$ac_compile"
22332 case "(($ac_try" in
22333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22334 *) ac_try_echo
=$ac_try;;
22336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_compile") 2>conftest.er1
22339 grep -v '^ *+' conftest.er1
>conftest.err
22341 cat conftest.err
>&5
22342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343 (exit $ac_status); } && {
22344 test -z "$ac_c_werror_flag" ||
22345 test ! -s conftest.err
22346 } && test -s conftest.
$ac_objext; then
22348 cat >>confdefs.h
<<\_ACEOF
22349 #define HAVE_SOCKETPAIR 1
22352 { echo "$as_me:$LINENO: result: yes" >&5
22353 echo "${ECHO_T}yes" >&6; }
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.
$ac_ext >&5
22358 { echo "$as_me:$LINENO: result: no" >&5
22359 echo "${ECHO_T}no" >&6; }
22363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22365 # check if sockaddr has sa_len member
22366 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22367 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22368 cat >conftest.
$ac_ext <<_ACEOF
22371 cat confdefs.h
>>conftest.
$ac_ext
22372 cat >>conftest.
$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 #include <sys/types.h>
22375 #include <sys/socket.h>
22385 rm -f conftest.
$ac_objext
22386 if { (ac_try
="$ac_compile"
22387 case "(($ac_try" in
22388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22392 (eval "$ac_compile") 2>conftest.er1
22394 grep -v '^ *+' conftest.er1 >conftest.err
22396 cat conftest.err >&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } && {
22399 test -z "$ac_c_werror_flag" ||
22400 test ! -s conftest.err
22401 } && test -s conftest.$ac_objext; then
22402 { echo "$as_me:$LINENO: result: yes" >&5
22403 echo "${ECHO_T}yes" >&6; }
22405 cat >>confdefs.h <<\_ACEOF
22406 #define HAVE_SOCKADDR_SA_LEN 1
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 { echo "$as_me:$LINENO: result: no" >&5
22414 echo "${ECHO_T}no" >&6; }
22417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22419 va_list_is_array=no
22420 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22421 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22422 cat >conftest.$ac_ext <<_ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22429 #ifdef HAVE_STDARG_PROTOTYPES
22430 #include <stdarg.h>
22432 #include <varargs.h>
22438 va_list list1, list2; list1 = list2;
22443 rm -f conftest.$ac_objext
22444 if { (ac_try="$ac_compile"
22445 case "(($ac_try" in
22446 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22447 *) ac_try_echo
=$ac_try;;
22449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22450 (eval "$ac_compile") 2>conftest.er1
22452 grep -v '^ *+' conftest.er1
>conftest.err
22454 cat conftest.err
>&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); } && {
22457 test -z "$ac_c_werror_flag" ||
22458 test ! -s conftest.err
22459 } && test -s conftest.
$ac_objext; then
22462 echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.
$ac_ext >&5
22467 cat >>confdefs.h
<<\_ACEOF
22468 #define VA_LIST_IS_ARRAY 1
22471 va_list_is_array
=yes
22475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22476 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22477 echo "${ECHO_T}$va_list_is_array" >&6; }
22479 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22483 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22484 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22485 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22486 echo $ECHO_N "(cached) $ECHO_C" >&6
22488 cat >conftest.
$ac_ext <<_ACEOF
22491 cat confdefs.h
>>conftest.
$ac_ext
22492 cat >>conftest.
$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22496 #define gethostbyname_r innocuous_gethostbyname_r
22498 /* System header to define __stub macros and hopefully few prototypes,
22499 which can conflict with char gethostbyname_r (); below.
22500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22501 <limits.h> exists even on freestanding compilers. */
22504 # include <limits.h>
22506 # include <assert.h>
22509 #undef gethostbyname_r
22511 /* Override any GCC internal prototype to avoid an error.
22512 Use char because int might match the return type of a GCC
22513 builtin and then its argument prototype would still apply. */
22517 char gethostbyname_r ();
22518 /* The GNU C library defines this for functions which it implements
22519 to always fail with ENOSYS. Some functions are actually named
22520 something starting with __ and the normal name is an alias. */
22521 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22528 return gethostbyname_r ();
22533 rm -f conftest.
$ac_objext conftest
$ac_exeext
22534 if { (ac_try
="$ac_link"
22535 case "(($ac_try" in
22536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_link") 2>conftest.er1
22542 grep -v '^ *+' conftest.er1 >conftest.err
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } && {
22547 test -z "$ac_c_werror_flag" ||
22548 test ! -s conftest.err
22549 } && test -s conftest$ac_exeext &&
22550 $as_test_x conftest$ac_exeext; then
22551 ac_cv_func_gethostbyname_r=yes
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22556 ac_cv_func_gethostbyname_r=no
22559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22560 conftest$ac_exeext conftest.$ac_ext
22562 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
22563 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
22564 if test $ac_cv_func_gethostbyname_r = yes; then
22566 cat >>confdefs.h <<\_ACEOF
22567 #define HAVE_GETHOSTBYNAME_R 1
22570 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
22571 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
22573 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
22574 cat >conftest.$ac_ext <<_ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h. */
22581 # include <netdb.h>
22588 struct hostent *he, *res;
22593 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
22599 rm -f conftest.$ac_objext
22600 if { (ac_try="$ac_compile"
22601 case "(($ac_try" in
22602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22603 *) ac_try_echo
=$ac_try;;
22605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22606 (eval "$ac_compile") 2>conftest.er1
22608 grep -v '^ *+' conftest.er1
>conftest.err
22610 cat conftest.err
>&5
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } && {
22613 test -z "$ac_c_werror_flag" ||
22614 test ! -s conftest.err
22615 } && test -s conftest.
$ac_objext; then
22617 cat >>confdefs.h
<<\_ACEOF
22618 #define HAVE_GETHOSTBYNAME_R 1
22622 cat >>confdefs.h
<<\_ACEOF
22623 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22626 { echo "$as_me:$LINENO: result: yes" >&5
22627 echo "${ECHO_T}yes" >&6; }
22630 echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.
$ac_ext >&5
22634 { echo "$as_me:$LINENO: result: no" >&5
22635 echo "${ECHO_T}no" >&6; }
22636 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22637 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
22638 cat >conftest.
$ac_ext <<_ACEOF
22641 cat confdefs.h
>>conftest.
$ac_ext
22642 cat >>conftest.
$ac_ext <<_ACEOF
22643 /* end confdefs.h. */
22645 # include <netdb.h>
22652 struct hostent *he;
22657 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22663 rm -f conftest.
$ac_objext
22664 if { (ac_try
="$ac_compile"
22665 case "(($ac_try" in
22666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22667 *) ac_try_echo=$ac_try;;
22669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22670 (eval "$ac_compile") 2>conftest.er1
22672 grep -v '^ *+' conftest.er1 >conftest.err
22674 cat conftest.err >&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && {
22677 test -z "$ac_c_werror_flag" ||
22678 test ! -s conftest.err
22679 } && test -s conftest.$ac_objext; then
22681 cat >>confdefs.h <<\_ACEOF
22682 #define HAVE_GETHOSTBYNAME_R 1
22686 cat >>confdefs.h <<\_ACEOF
22687 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22690 { echo "$as_me:$LINENO: result: yes" >&5
22691 echo "${ECHO_T}yes" >&6; }
22694 echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22698 { echo "$as_me:$LINENO: result: no" >&5
22699 echo "${ECHO_T}no" >&6; }
22700 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22701 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
22702 cat >conftest.$ac_ext <<_ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h. */
22709 # include <netdb.h>
22716 struct hostent *he;
22717 struct hostent_data data;
22719 (void) gethostbyname_r(name, he, &data);
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22729 *) ac_try_echo
=$ac_try;;
22731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22734 grep -v '^ *+' conftest.er1
>conftest.err
22736 cat conftest.err
>&5
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.
$ac_objext; then
22743 cat >>confdefs.h
<<\_ACEOF
22744 #define HAVE_GETHOSTBYNAME_R 1
22748 cat >>confdefs.h
<<\_ACEOF
22749 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
22752 { echo "$as_me:$LINENO: result: yes" >&5
22753 echo "${ECHO_T}yes" >&6; }
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.
$ac_ext >&5
22760 { echo "$as_me:$LINENO: result: no" >&5
22761 echo "${ECHO_T}no" >&6; }
22765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22779 for ac_func
in gethostbyname
22781 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22784 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22785 echo $ECHO_N "(cached) $ECHO_C" >&6
22787 cat >conftest.
$ac_ext <<_ACEOF
22790 cat confdefs.h
>>conftest.
$ac_ext
22791 cat >>conftest.
$ac_ext <<_ACEOF
22792 /* end confdefs.h. */
22793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22795 #define $ac_func innocuous_$ac_func
22797 /* System header to define __stub macros and hopefully few prototypes,
22798 which can conflict with char $ac_func (); below.
22799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22800 <limits.h> exists even on freestanding compilers. */
22803 # include <limits.h>
22805 # include <assert.h>
22810 /* Override any GCC internal prototype to avoid an error.
22811 Use char because int might match the return type of a GCC
22812 builtin and then its argument prototype would still apply. */
22817 /* The GNU C library defines this for functions which it implements
22818 to always fail with ENOSYS. Some functions are actually named
22819 something starting with __ and the normal name is an alias. */
22820 #if defined __stub_$ac_func || defined __stub___$ac_func
22827 return $ac_func ();
22832 rm -f conftest.
$ac_objext conftest
$ac_exeext
22833 if { (ac_try
="$ac_link"
22834 case "(($ac_try" in
22835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22836 *) ac_try_echo=$ac_try;;
22838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22839 (eval "$ac_link") 2>conftest.er1
22841 grep -v '^ *+' conftest.er1 >conftest.err
22843 cat conftest.err >&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } && {
22846 test -z "$ac_c_werror_flag" ||
22847 test ! -s conftest.err
22848 } && test -s conftest$ac_exeext &&
22849 $as_test_x conftest$ac_exeext; then
22850 eval "$as_ac_var=yes"
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 eval "$as_ac_var=no"
22858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22859 conftest$ac_exeext conftest.$ac_ext
22861 ac_res=`eval echo '${'$as_ac_var'}'`
22862 { echo "$as_me:$LINENO: result: $ac_res" >&5
22863 echo "${ECHO_T}$ac_res" >&6; }
22864 if test `eval echo '${'$as_ac_var'}'` = yes; then
22865 cat >>confdefs.h <<_ACEOF
22866 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22881 # checks for system services
22884 # Linux requires this for correct f.p. operations
22885 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
22886 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
22887 if test "${ac_cv_func___fpu_control+set}" = set; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
22890 cat >conftest.$ac_ext <<_ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h. */
22896 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
22897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22898 #define __fpu_control innocuous___fpu_control
22900 /* System header to define __stub macros and hopefully few prototypes,
22901 which can conflict with char __fpu_control (); below.
22902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22903 <limits.h> exists even on freestanding compilers. */
22906 # include <limits.h>
22908 # include <assert.h>
22911 #undef __fpu_control
22913 /* Override any GCC internal prototype to avoid an error.
22914 Use char because int might match the return type of a GCC
22915 builtin and then its argument prototype would still apply. */
22919 char __fpu_control ();
22920 /* The GNU C library defines this for functions which it implements
22921 to always fail with ENOSYS. Some functions are actually named
22922 something starting with __ and the normal name is an alias. */
22923 #if defined __stub___fpu_control || defined __stub_____fpu_control
22930 return __fpu_control ();
22935 rm -f conftest.$ac_objext conftest$ac_exeext
22936 if { (ac_try="$ac_link"
22937 case "(($ac_try" in
22938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22939 *) ac_try_echo
=$ac_try;;
22941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22942 (eval "$ac_link") 2>conftest.er1
22944 grep -v '^ *+' conftest.er1
>conftest.err
22946 cat conftest.err
>&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } && {
22949 test -z "$ac_c_werror_flag" ||
22950 test ! -s conftest.err
22951 } && test -s conftest
$ac_exeext &&
22952 $as_test_x conftest
$ac_exeext; then
22953 ac_cv_func___fpu_control
=yes
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.
$ac_ext >&5
22958 ac_cv_func___fpu_control
=no
22961 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22962 conftest
$ac_exeext conftest.
$ac_ext
22964 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
22965 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
22966 if test $ac_cv_func___fpu_control = yes; then
22970 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
22971 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
22972 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
22973 echo $ECHO_N "(cached) $ECHO_C" >&6
22975 ac_check_lib_save_LIBS
=$LIBS
22976 LIBS
="-lieee $LIBS"
22977 cat >conftest.
$ac_ext <<_ACEOF
22980 cat confdefs.h
>>conftest.
$ac_ext
22981 cat >>conftest.
$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22984 /* Override any GCC internal prototype to avoid an error.
22985 Use char because int might match the return type of a GCC
22986 builtin and then its argument prototype would still apply. */
22990 char __fpu_control ();
22994 return __fpu_control ();
22999 rm -f conftest.
$ac_objext conftest
$ac_exeext
23000 if { (ac_try
="$ac_link"
23001 case "(($ac_try" in
23002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23003 *) ac_try_echo=$ac_try;;
23005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23006 (eval "$ac_link") 2>conftest.er1
23008 grep -v '^ *+' conftest.er1 >conftest.err
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } && {
23013 test -z "$ac_c_werror_flag" ||
23014 test ! -s conftest.err
23015 } && test -s conftest$ac_exeext &&
23016 $as_test_x conftest$ac_exeext; then
23017 ac_cv_lib_ieee___fpu_control=yes
23019 echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23022 ac_cv_lib_ieee___fpu_control=no
23025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23026 conftest$ac_exeext conftest.$ac_ext
23027 LIBS=$ac_check_lib_save_LIBS
23029 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23030 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23031 if test $ac_cv_lib_ieee___fpu_control = yes; then
23032 cat >>confdefs.h <<_ACEOF
23033 #define HAVE_LIBIEEE 1
23036 LIBS="-lieee $LIBS"
23044 # Check for --with-fpectl
23045 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23046 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23048 # Check whether --with-fpectl was given.
23049 if test "${with_fpectl+set}" = set; then
23050 withval=$with_fpectl;
23051 if test "$withval" != no
23054 cat >>confdefs.h <<\_ACEOF
23055 #define WANT_SIGFPE_HANDLER 1
23058 { echo "$as_me:$LINENO: result: yes" >&5
23059 echo "${ECHO_T}yes" >&6; }
23060 else { echo "$as_me:$LINENO: result: no" >&5
23061 echo "${ECHO_T}no" >&6; }
23064 { echo "$as_me:$LINENO: result: no" >&5
23065 echo "${ECHO_T}no" >&6; }
23069 # check for --with-libm=...
23071 case $ac_sys_system in
23076 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23077 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23079 # Check whether --with-libm was given.
23080 if test "${with_libm+set}" = set; then
23081 withval=$with_libm;
23082 if test "$withval" = no
23084 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23085 echo "${ECHO_T}force LIBM empty" >&6; }
23086 elif test "$withval" != yes
23088 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23089 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23090 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23091 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23092 { (exit 1); exit 1; }; }
23095 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23096 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23100 # check for --with-libc=...
23102 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23103 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23105 # Check whether --with-libc was given.
23106 if test "${with_libc+set}" = set; then
23107 withval=$with_libc;
23108 if test "$withval" = no
23110 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23111 echo "${ECHO_T}force LIBC empty" >&6; }
23112 elif test "$withval" != yes
23114 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23115 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23116 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23117 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23118 { (exit 1); exit 1; }; }
23121 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23122 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23126 # ************************************
23127 # * Check for mathematical functions *
23128 # ************************************
23133 # Detect whether system arithmetic is subject to x87-style double
23134 # rounding issues. The result of this test has little meaning on non
23135 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23136 # mode is round-to-nearest and double rounding issues are present, and
23137 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23138 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23139 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23140 if test "${ac_cv_x87_double_rounding+set}" = set; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23144 if test "$cross_compiling" = yes; then
23145 ac_cv_x87_double_rounding=no
23147 cat >conftest.$ac_ext <<_ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23154 #include <stdlib.h>
23157 volatile double x, y, z;
23158 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23159 x = 0.99999999999999989; /* 1-2**-53 */
23163 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23169 /* both tests show evidence of double rounding */
23174 rm -f conftest$ac_exeext
23175 if { (ac_try="$ac_link"
23176 case "(($ac_try" in
23177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23178 *) ac_try_echo
=$ac_try;;
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181 (eval "$ac_link") 2>&5
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23185 { (case "(($ac_try" in
23186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23187 *) ac_try_echo=$ac_try;;
23189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23190 (eval "$ac_try") 2>&5
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; }; then
23194 ac_cv_x87_double_rounding=no
23196 echo "$as_me: program exited with status $ac_status" >&5
23197 echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 ( exit $ac_status )
23201 ac_cv_x87_double_rounding=yes
23203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23209 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23210 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23211 if test "$ac_cv_x87_double_rounding" = yes
23214 cat >>confdefs.h <<\_ACEOF
23215 #define X87_DOUBLE_ROUNDING 1
23220 # Multiprocessing check for broken sem_getvalue
23221 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
23222 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
23223 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
23224 echo $ECHO_N "(cached) $ECHO_C" >&6
23226 if test "$cross_compiling" = yes; then
23227 ac_cv_broken_sem_getvalue=yes
23229 cat >conftest.$ac_ext <<_ACEOF
23232 cat confdefs.h >>conftest.$ac_ext
23233 cat >>conftest.$ac_ext <<_ACEOF
23234 /* end confdefs.h. */
23236 #include <unistd.h>
23239 #include <semaphore.h>
23240 #include <sys/stat.h>
23243 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23247 perror("sem_open");
23251 res = sem_getvalue(a, &count);
23253 return res==-1 ? 1 : 0;
23257 rm -f conftest$ac_exeext
23258 if { (ac_try="$ac_link"
23259 case "(($ac_try" in
23260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23261 *) ac_try_echo
=$ac_try;;
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_link") 2>&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23268 { (case "(($ac_try" in
23269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_try") 2>&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 ac_cv_broken_sem_getvalue=no
23279 echo "$as_me: program exited with status $ac_status" >&5
23280 echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23283 ( exit $ac_status )
23284 ac_cv_broken_sem_getvalue=yes
23286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23293 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
23294 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
23295 if test $ac_cv_broken_sem_getvalue = yes
23298 cat >>confdefs.h <<\_ACEOF
23299 #define HAVE_BROKEN_SEM_GETVALUE 1
23304 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23305 # -0. on some architectures.
23306 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23307 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23308 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23309 echo $ECHO_N "(cached) $ECHO_C" >&6
23312 if test "$cross_compiling" = yes; then
23313 ac_cv_tanh_preserves_zero_sign=no
23315 cat >conftest.$ac_ext <<_ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23323 #include <stdlib.h>
23325 /* return 0 if either negative zeros don't exist
23326 on this platform or if negative zeros exist
23327 and tanh(-0.) == -0. */
23328 if (atan2(0., -1.) == atan2(-0., -1.) ||
23329 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23334 rm -f conftest$ac_exeext
23335 if { (ac_try="$ac_link"
23336 case "(($ac_try" in
23337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23338 *) ac_try_echo
=$ac_try;;
23340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23341 (eval "$ac_link") 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23345 { (case "(($ac_try" in
23346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23347 *) ac_try_echo=$ac_try;;
23349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23350 (eval "$ac_try") 2>&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; }; then
23354 ac_cv_tanh_preserves_zero_sign=yes
23356 echo "$as_me: program exited with status $ac_status" >&5
23357 echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23360 ( exit $ac_status )
23361 ac_cv_tanh_preserves_zero_sign=no
23363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23369 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23370 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
23371 if test "$ac_cv_tanh_preserves_zero_sign" = yes
23374 cat >>confdefs.h <<\_ACEOF
23375 #define TANH_PRESERVES_ZERO_SIGN 1
23389 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
23391 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23397 cat >conftest.$ac_ext <<_ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23405 #define $ac_func innocuous_$ac_func
23407 /* System header to define __stub macros and hopefully few prototypes,
23408 which can conflict with char $ac_func (); below.
23409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23410 <limits.h> exists even on freestanding compilers. */
23413 # include <limits.h>
23415 # include <assert.h>
23420 /* Override any GCC internal prototype to avoid an error.
23421 Use char because int might match the return type of a GCC
23422 builtin and then its argument prototype would still apply. */
23427 /* The GNU C library defines this for functions which it implements
23428 to always fail with ENOSYS. Some functions are actually named
23429 something starting with __ and the normal name is an alias. */
23430 #if defined __stub_$ac_func || defined __stub___$ac_func
23437 return $ac_func ();
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (ac_try="$ac_link"
23444 case "(($ac_try" in
23445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23446 *) ac_try_echo
=$ac_try;;
23448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_link") 2>conftest.er1
23451 grep -v '^ *+' conftest.er1
>conftest.err
23453 cat conftest.err
>&5
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest
$ac_exeext &&
23459 $as_test_x conftest
$ac_exeext; then
23460 eval "$as_ac_var=yes"
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.
$ac_ext >&5
23465 eval "$as_ac_var=no"
23468 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23469 conftest
$ac_exeext conftest.
$ac_ext
23471 ac_res
=`eval echo '${'$as_ac_var'}'`
23472 { echo "$as_me:$LINENO: result: $ac_res" >&5
23473 echo "${ECHO_T}$ac_res" >&6; }
23474 if test `eval echo '${'$as_ac_var'}'` = yes; then
23475 cat >>confdefs.h
<<_ACEOF
23476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23482 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
23483 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
23484 if test "${ac_cv_have_decl_isinf+set}" = set; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 cat >conftest.
$ac_ext <<_ACEOF
23490 cat confdefs.h
>>conftest.
$ac_ext
23491 cat >>conftest.
$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23506 rm -f conftest.
$ac_objext
23507 if { (ac_try
="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23515 grep -v '^ *+' conftest.er1 >conftest.err
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23523 ac_cv_have_decl_isinf=yes
23525 echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ac_cv_have_decl_isinf=no
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
23534 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
23535 if test $ac_cv_have_decl_isinf = yes; then
23537 cat >>confdefs.h <<_ACEOF
23538 #define HAVE_DECL_ISINF 1
23543 cat >>confdefs.h <<_ACEOF
23544 #define HAVE_DECL_ISINF 0
23549 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
23550 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
23551 if test "${ac_cv_have_decl_isnan+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23573 rm -f conftest.$ac_objext
23574 if { (ac_try="$ac_compile"
23575 case "(($ac_try" in
23576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23577 *) ac_try_echo
=$ac_try;;
23579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23580 (eval "$ac_compile") 2>conftest.er1
23582 grep -v '^ *+' conftest.er1
>conftest.err
23584 cat conftest.err
>&5
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); } && {
23587 test -z "$ac_c_werror_flag" ||
23588 test ! -s conftest.err
23589 } && test -s conftest.
$ac_objext; then
23590 ac_cv_have_decl_isnan
=yes
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.
$ac_ext >&5
23595 ac_cv_have_decl_isnan
=no
23598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23600 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23601 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
23602 if test $ac_cv_have_decl_isnan = yes; then
23604 cat >>confdefs.h
<<_ACEOF
23605 #define HAVE_DECL_ISNAN 1
23610 cat >>confdefs.h
<<_ACEOF
23611 #define HAVE_DECL_ISNAN 0
23616 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23617 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
23618 if test "${ac_cv_have_decl_isfinite+set}" = set; then
23619 echo $ECHO_N "(cached) $ECHO_C" >&6
23621 cat >conftest.
$ac_ext <<_ACEOF
23624 cat confdefs.h
>>conftest.
$ac_ext
23625 cat >>conftest.
$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23640 rm -f conftest.
$ac_objext
23641 if { (ac_try
="$ac_compile"
23642 case "(($ac_try" in
23643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23644 *) ac_try_echo=$ac_try;;
23646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23647 (eval "$ac_compile") 2>conftest.er1
23649 grep -v '^ *+' conftest.er1 >conftest.err
23651 cat conftest.err >&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } && {
23654 test -z "$ac_c_werror_flag" ||
23655 test ! -s conftest.err
23656 } && test -s conftest.$ac_objext; then
23657 ac_cv_have_decl_isfinite=yes
23659 echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23662 ac_cv_have_decl_isfinite=no
23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23667 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23668 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
23669 if test $ac_cv_have_decl_isfinite = yes; then
23671 cat >>confdefs.h <<_ACEOF
23672 #define HAVE_DECL_ISFINITE 1
23677 cat >>confdefs.h <<_ACEOF
23678 #define HAVE_DECL_ISFINITE 0
23688 # determine what size digit to use for Python's longs
23689 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
23690 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
23691 # Check whether --enable-big-digits was given.
23692 if test "${enable_big_digits+set}" = set; then
23693 enableval=$enable_big_digits; case $enable_big_digits in
23695 enable_big_digits=30 ;;
23697 enable_big_digits=15 ;;
23701 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
23702 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
23703 { (exit 1); exit 1; }; } ;;
23705 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
23706 echo "${ECHO_T}$enable_big_digits" >&6; }
23708 cat >>confdefs.h <<_ACEOF
23709 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
23714 { echo "$as_me:$LINENO: result: no value specified" >&5
23715 echo "${ECHO_T}no value specified" >&6; }
23719 # check for wchar.h
23720 if test "${ac_cv_header_wchar_h+set}" = set; then
23721 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23722 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23723 if test "${ac_cv_header_wchar_h+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23727 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23729 # Is the header compilable?
23730 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
23731 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
23732 cat >conftest.$ac_ext <<_ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738 $ac_includes_default
23741 rm -f conftest.$ac_objext
23742 if { (ac_try="$ac_compile"
23743 case "(($ac_try" in
23744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23745 *) ac_try_echo
=$ac_try;;
23747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23748 (eval "$ac_compile") 2>conftest.er1
23750 grep -v '^ *+' conftest.er1
>conftest.err
23752 cat conftest.err
>&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } && {
23755 test -z "$ac_c_werror_flag" ||
23756 test ! -s conftest.err
23757 } && test -s conftest.
$ac_objext; then
23758 ac_header_compiler
=yes
23760 echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.
$ac_ext >&5
23763 ac_header_compiler
=no
23766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23768 echo "${ECHO_T}$ac_header_compiler" >&6; }
23770 # Is the header present?
23771 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
23772 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
23773 cat >conftest.
$ac_ext <<_ACEOF
23776 cat confdefs.h
>>conftest.
$ac_ext
23777 cat >>conftest.
$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23781 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23782 case "(($ac_try" in
23783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23789 grep -v '^ *+' conftest.er1 >conftest.err
23791 cat conftest.err >&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } >/dev/null && {
23794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23795 test ! -s conftest.err
23797 ac_header_preproc=yes
23799 echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23802 ac_header_preproc=no
23805 rm -f conftest.err conftest.$ac_ext
23806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23807 echo "${ECHO_T}$ac_header_preproc" >&6; }
23809 # So? What about this header?
23810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23812 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
23813 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23814 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
23815 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
23816 ac_header_preproc=yes
23819 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
23820 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
23821 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
23822 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
23823 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
23824 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
23825 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
23826 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
23827 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
23828 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
23829 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
23830 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
23832 ## -------------------------------------- ##
23833 ## Report this to http://bugs.python.org/ ##
23834 ## -------------------------------------- ##
23836 ) | sed "s/^/$as_me: WARNING: /" >&2
23839 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23840 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23841 if test "${ac_cv_header_wchar_h+set}" = set; then
23842 echo $ECHO_N "(cached) $ECHO_C" >&6
23844 ac_cv_header_wchar_h=$ac_header_preproc
23846 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23847 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23850 if test $ac_cv_header_wchar_h = yes; then
23853 cat >>confdefs.h <<\_ACEOF
23854 #define HAVE_WCHAR_H 1
23866 # determine wchar_t size
23867 if test "$wchar_h" = yes
23869 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23870 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23871 if test "${ac_cv_type_wchar_t+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23874 cat >conftest.$ac_ext <<_ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23882 typedef wchar_t ac__type_new_;
23886 if ((ac__type_new_ *) 0)
23888 if (sizeof (ac__type_new_))
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23898 *) ac_try_echo
=$ac_try;;
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901 (eval "$ac_compile") 2>conftest.er1
23903 grep -v '^ *+' conftest.er1
>conftest.err
23905 cat conftest.err
>&5
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } && {
23908 test -z "$ac_c_werror_flag" ||
23909 test ! -s conftest.err
23910 } && test -s conftest.
$ac_objext; then
23911 ac_cv_type_wchar_t
=yes
23913 echo "$as_me: failed program was:" >&5
23914 sed 's/^/| /' conftest.
$ac_ext >&5
23916 ac_cv_type_wchar_t
=no
23919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23921 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23922 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23924 # The cast to long int works around a bug in the HP C Compiler
23925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23927 # This bug is HP SR number 8606223364.
23928 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23929 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23930 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23931 echo $ECHO_N "(cached) $ECHO_C" >&6
23933 if test "$cross_compiling" = yes; then
23934 # Depending upon the size, compute the lo and hi bounds.
23935 cat >conftest.
$ac_ext <<_ACEOF
23938 cat confdefs.h
>>conftest.
$ac_ext
23939 cat >>conftest.
$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23943 typedef wchar_t ac__type_sizeof_;
23947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23954 rm -f conftest.
$ac_objext
23955 if { (ac_try
="$ac_compile"
23956 case "(($ac_try" in
23957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23958 *) ac_try_echo=$ac_try;;
23960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23961 (eval "$ac_compile") 2>conftest.er1
23963 grep -v '^ *+' conftest.er1 >conftest.err
23965 cat conftest.err >&5
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); } && {
23968 test -z "$ac_c_werror_flag" ||
23969 test ! -s conftest.err
23970 } && test -s conftest.$ac_objext; then
23973 cat >conftest.$ac_ext <<_ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23981 typedef wchar_t ac__type_sizeof_;
23985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23996 *) ac_try_echo
=$ac_try;;
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_compile") 2>conftest.er1
24001 grep -v '^ *+' conftest.er1
>conftest.err
24003 cat conftest.err
>&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && {
24006 test -z "$ac_c_werror_flag" ||
24007 test ! -s conftest.err
24008 } && test -s conftest.
$ac_objext; then
24009 ac_hi
=$ac_mid; break
24011 echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.
$ac_ext >&5
24014 ac_lo
=`expr $ac_mid + 1`
24015 if test $ac_lo -le $ac_mid; then
24019 ac_mid
=`expr 2 '*' $ac_mid + 1`
24022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24025 echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.
$ac_ext >&5
24028 cat >conftest.
$ac_ext <<_ACEOF
24031 cat confdefs.h
>>conftest.
$ac_ext
24032 cat >>conftest.
$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24036 typedef wchar_t ac__type_sizeof_;
24040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24047 rm -f conftest.
$ac_objext
24048 if { (ac_try
="$ac_compile"
24049 case "(($ac_try" in
24050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24051 *) ac_try_echo=$ac_try;;
24053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054 (eval "$ac_compile") 2>conftest.er1
24056 grep -v '^ *+' conftest.er1 >conftest.err
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } && {
24061 test -z "$ac_c_werror_flag" ||
24062 test ! -s conftest.err
24063 } && test -s conftest.$ac_objext; then
24066 cat >conftest.$ac_ext <<_ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h. */
24074 typedef wchar_t ac__type_sizeof_;
24078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24085 rm -f conftest.$ac_objext
24086 if { (ac_try="$ac_compile"
24087 case "(($ac_try" in
24088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24089 *) ac_try_echo
=$ac_try;;
24091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24092 (eval "$ac_compile") 2>conftest.er1
24094 grep -v '^ *+' conftest.er1
>conftest.err
24096 cat conftest.err
>&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); } && {
24099 test -z "$ac_c_werror_flag" ||
24100 test ! -s conftest.err
24101 } && test -s conftest.
$ac_objext; then
24102 ac_lo
=$ac_mid; break
24104 echo "$as_me: failed program was:" >&5
24105 sed 's/^/| /' conftest.
$ac_ext >&5
24107 ac_hi
=`expr '(' $ac_mid ')' - 1`
24108 if test $ac_mid -le $ac_hi; then
24112 ac_mid
=`expr 2 '*' $ac_mid`
24115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.
$ac_ext >&5
24124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24128 # Binary search between lo and hi bounds.
24129 while test "x$ac_lo" != "x$ac_hi"; do
24130 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24131 cat >conftest.
$ac_ext <<_ACEOF
24134 cat confdefs.h
>>conftest.
$ac_ext
24135 cat >>conftest.
$ac_ext <<_ACEOF
24136 /* end confdefs.h. */
24139 typedef wchar_t ac__type_sizeof_;
24143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24150 rm -f conftest.
$ac_objext
24151 if { (ac_try
="$ac_compile"
24152 case "(($ac_try" in
24153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24157 (eval "$ac_compile") 2>conftest.er1
24159 grep -v '^ *+' conftest.er1 >conftest.err
24161 cat conftest.err >&5
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); } && {
24164 test -z "$ac_c_werror_flag" ||
24165 test ! -s conftest.err
24166 } && test -s conftest.$ac_objext; then
24169 echo "$as_me: failed program was:" >&5
24170 sed 's/^/| /' conftest.$ac_ext >&5
24172 ac_lo=`expr '(' $ac_mid ')' + 1`
24175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24179 '') if test "$ac_cv_type_wchar_t" = yes; then
24180 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24181 See \`config.log
' for more details." >&5
24182 echo "$as_me: error: cannot compute sizeof (wchar_t)
24183 See \`config.log' for more details.
" >&2;}
24184 { (exit 77); exit 77; }; }
24186 ac_cv_sizeof_wchar_t=0
24190 cat >conftest.$ac_ext <<_ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h. */
24198 typedef wchar_t ac__type_sizeof_;
24199 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24200 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24202 #include <stdlib.h>
24207 FILE *f = fopen ("conftest.val
", "w
");
24210 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24212 long int i = longval ();
24213 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24215 fprintf (f, "%ld
\n", i);
24219 unsigned long int i = ulongval ();
24220 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24222 fprintf (f, "%lu
\n", i);
24224 return ferror (f) || fclose (f) != 0;
24230 rm -f conftest$ac_exeext
24231 if { (ac_try="$ac_link"
24232 case "(($ac_try" in
24233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24234 *) ac_try_echo=$ac_try;;
24236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24237 (eval "$ac_link") 2>&5
24239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24241 { (case "(($ac_try" in
24242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243 *) ac_try_echo=$ac_try;;
24245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24246 (eval "$ac_try") 2>&5
24248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24249 (exit $ac_status); }; }; then
24250 ac_cv_sizeof_wchar_t=`cat conftest.val`
24252 echo "$as_me: program exited with status
$ac_status" >&5
24253 echo "$as_me: failed program was
:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24256 ( exit $ac_status )
24257 if test "$ac_cv_type_wchar_t" = yes; then
24258 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
24259 See \
`config.log' for more details." >&5
24260 echo "$as_me: error: cannot compute sizeof (wchar_t)
24261 See \`config.log
' for more details." >&2;}
24262 { (exit 77); exit 77; }; }
24264 ac_cv_sizeof_wchar_t=0
24267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24271 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24272 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24276 cat >>confdefs.h <<_ACEOF
24277 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24283 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
24284 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
24286 cat >conftest.$ac_ext <<_ACEOF
24289 cat confdefs.h >>conftest.$ac_ext
24290 cat >>conftest.$ac_ext <<_ACEOF
24291 /* end confdefs.h. */
24294 #if TCL_UTF_MAX != 6
24295 # error "NOT UCS4_TCL"
24305 rm -f conftest.$ac_objext
24306 if { (ac_try="$ac_compile"
24307 case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312 (eval "$ac_compile") 2>conftest.er1
24314 grep -v '^
*+' conftest.er1 >conftest.err
24316 cat conftest.err >&5
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest.$ac_objext; then
24324 cat >>confdefs.h <<\_ACEOF
24325 #define HAVE_UCS4_TCL 1
24331 echo "$as_me: failed program was:" >&5
24332 sed 's
/^
/|
/' conftest.$ac_ext >&5
24337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24338 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
24339 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
24341 # check whether wchar_t is signed or not
24342 if test "$wchar_h" = yes
24344 # check whether wchar_t is signed or not
24345 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
24346 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
24347 if test "${ac_cv_wchar_t_signed+set}" = set; then
24348 echo $ECHO_N "(cached) $ECHO_C" >&6
24351 if test "$cross_compiling" = yes; then
24352 ac_cv_wchar_t_signed=yes
24354 cat >conftest.$ac_ext <<_ACEOF
24357 cat confdefs.h >>conftest.$ac_ext
24358 cat >>conftest.$ac_ext <<_ACEOF
24359 /* end confdefs.h. */
24364 /* Success: exit code 0 */
24365 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24369 rm -f conftest$ac_exeext
24370 if { (ac_try="$ac_link"
24371 case "(($ac_try" in
24372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24373 *) ac_try_echo=$ac_try;;
24375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24376 (eval "$ac_link") 2>&5
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24380 { (case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385 (eval "$ac_try") 2>&5
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; }; then
24389 ac_cv_wchar_t_signed=yes
24391 echo "$as_me: program exited with status $ac_status" >&5
24392 echo "$as_me: failed program was:" >&5
24393 sed 's
/^
/|
/' conftest.$ac_ext >&5
24395 ( exit $ac_status )
24396 ac_cv_wchar_t_signed=no
24398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24404 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
24405 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
24408 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
24409 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
24410 # Check whether --enable-unicode was given.
24411 if test "${enable_unicode+set}" = set; then
24412 enableval=$enable_unicode;
24418 if test $enable_unicode = yes
24420 # Without any arguments, Py_UNICODE defaults to two-byte mode
24421 case "$have_ucs4_tcl" in
24422 yes) enable_unicode="ucs4"
24424 *) enable_unicode="ucs2"
24431 case "$enable_unicode" in
24432 ucs2) unicode_size="2"
24433 cat >>confdefs.h <<\_ACEOF
24434 #define Py_UNICODE_SIZE 2
24438 ucs4) unicode_size="4"
24439 cat >>confdefs.h <<\_ACEOF
24440 #define Py_UNICODE_SIZE 4
24450 if test "$enable_unicode" = "no"
24453 { echo "$as_me:$LINENO: result: not used" >&5
24454 echo "${ECHO_T}not used" >&6; }
24456 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
24458 cat >>confdefs.h <<\_ACEOF
24459 #define Py_USING_UNICODE 1
24463 # wchar_t is only usable if it maps to an unsigned type
24464 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
24465 -a "$ac_cv_wchar_t_signed" = "no"
24467 PY_UNICODE_TYPE="wchar_t"
24469 cat >>confdefs.h <<\_ACEOF
24470 #define HAVE_USABLE_WCHAR_T 1
24473 cat >>confdefs.h <<\_ACEOF
24474 #define PY_UNICODE_TYPE wchar_t
24477 elif test "$ac_cv_sizeof_short" = "$unicode_size"
24479 PY_UNICODE_TYPE="unsigned short"
24480 cat >>confdefs.h <<\_ACEOF
24481 #define PY_UNICODE_TYPE unsigned short
24484 elif test "$ac_cv_sizeof_long" = "$unicode_size"
24486 PY_UNICODE_TYPE="unsigned long"
24487 cat >>confdefs.h <<\_ACEOF
24488 #define PY_UNICODE_TYPE unsigned long
24492 PY_UNICODE_TYPE="no type found"
24494 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
24495 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
24498 # check for endianness
24499 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24500 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24501 if test "${ac_cv_c_bigendian+set}" = set; then
24502 echo $ECHO_N "(cached) $ECHO_C" >&6
24504 # See if sys/param.h defines the BYTE_ORDER macro.
24505 cat >conftest.$ac_ext <<_ACEOF
24508 cat confdefs.h >>conftest.$ac_ext
24509 cat >>conftest.$ac_ext <<_ACEOF
24510 /* end confdefs.h. */
24511 #include <sys/types.h>
24512 #include <sys/param.h>
24517 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
24518 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
24519 bogus endian macros
24526 rm -f conftest.$ac_objext
24527 if { (ac_try="$ac_compile"
24528 case "(($ac_try" in
24529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530 *) ac_try_echo=$ac_try;;
24532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24533 (eval "$ac_compile") 2>conftest.er1
24535 grep -v '^
*+' conftest.er1 >conftest.err
24537 cat conftest.err >&5
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); } && {
24540 test -z "$ac_c_werror_flag" ||
24541 test ! -s conftest.err
24542 } && test -s conftest.$ac_objext; then
24543 # It does; now see whether it defined to BIG_ENDIAN or not.
24544 cat >conftest.$ac_ext <<_ACEOF
24547 cat confdefs.h >>conftest.$ac_ext
24548 cat >>conftest.$ac_ext <<_ACEOF
24549 /* end confdefs.h. */
24550 #include <sys/types.h>
24551 #include <sys/param.h>
24556 #if BYTE_ORDER != BIG_ENDIAN
24564 rm -f conftest.$ac_objext
24565 if { (ac_try="$ac_compile"
24566 case "(($ac_try" in
24567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568 *) ac_try_echo=$ac_try;;
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571 (eval "$ac_compile") 2>conftest.er1
24573 grep -v '^
*+' conftest.er1 >conftest.err
24575 cat conftest.err >&5
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); } && {
24578 test -z "$ac_c_werror_flag" ||
24579 test ! -s conftest.err
24580 } && test -s conftest.$ac_objext; then
24581 ac_cv_c_bigendian=yes
24583 echo "$as_me: failed program was:" >&5
24584 sed 's
/^
/|
/' conftest.$ac_ext >&5
24586 ac_cv_c_bigendian=no
24589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24591 echo "$as_me: failed program was:" >&5
24592 sed 's
/^
/|
/' conftest.$ac_ext >&5
24594 # It does not; compile a test program.
24595 if test "$cross_compiling" = yes; then
24596 # try to guess the endianness by grepping values into an object file
24597 ac_cv_c_bigendian=unknown
24598 cat >conftest.$ac_ext <<_ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h. */
24604 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24605 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24606 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24607 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24608 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24609 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24613 _ascii (); _ebcdic ();
24618 rm -f conftest.$ac_objext
24619 if { (ac_try="$ac_compile"
24620 case "(($ac_try" in
24621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625 (eval "$ac_compile") 2>conftest.er1
24627 grep -v '^
*+' conftest.er1 >conftest.err
24629 cat conftest.err >&5
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); } && {
24632 test -z "$ac_c_werror_flag" ||
24633 test ! -s conftest.err
24634 } && test -s conftest.$ac_objext; then
24635 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24636 ac_cv_c_bigendian=yes
24638 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24639 if test "$ac_cv_c_bigendian" = unknown; then
24640 ac_cv_c_bigendian=no
24642 # finding both strings is unlikely to happen, but who knows?
24643 ac_cv_c_bigendian=unknown
24647 echo "$as_me: failed program was:" >&5
24648 sed 's
/^
/|
/' conftest.$ac_ext >&5
24653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24655 cat >conftest.$ac_ext <<_ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h. */
24661 $ac_includes_default
24666 /* Are we little or big endian? From Harbison&Steele. */
24670 char c[sizeof (long int)];
24673 return u.c[sizeof (long int) - 1] == 1;
24679 rm -f conftest$ac_exeext
24680 if { (ac_try="$ac_link"
24681 case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_link") 2>&5
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24690 { (case "(($ac_try" in
24691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692 *) ac_try_echo=$ac_try;;
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695 (eval "$ac_try") 2>&5
24697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); }; }; then
24699 ac_cv_c_bigendian=no
24701 echo "$as_me: program exited with status $ac_status" >&5
24702 echo "$as_me: failed program was:" >&5
24703 sed 's
/^
/|
/' conftest.$ac_ext >&5
24705 ( exit $ac_status )
24706 ac_cv_c_bigendian=yes
24708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24716 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24717 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24718 case $ac_cv_c_bigendian in
24721 cat >>confdefs.h <<\_ACEOF
24722 #define WORDS_BIGENDIAN 1
24728 { { echo "$as_me:$LINENO: error: unknown endianness
24729 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24730 echo "$as_me: error: unknown endianness
24731 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24732 { (exit 1); exit 1; }; } ;;
24736 # Check whether right shifting a negative integer extends the sign bit
24737 # or fills with zeros (like the Cray J90, according to Tim Peters).
24738 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
24739 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
24740 if test "${ac_cv_rshift_extends_sign+set}" = set; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24744 if test "$cross_compiling" = yes; then
24745 ac_cv_rshift_extends_sign=yes
24747 cat >conftest.$ac_ext <<_ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h. */
24756 exit(((-1)>>3 == -1) ? 0 : 1);
24760 rm -f conftest$ac_exeext
24761 if { (ac_try="$ac_link"
24762 case "(($ac_try" in
24763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764 *) ac_try_echo=$ac_try;;
24766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24767 (eval "$ac_link") 2>&5
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24771 { (case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_try") 2>&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); }; }; then
24780 ac_cv_rshift_extends_sign=yes
24782 echo "$as_me: program exited with status $ac_status" >&5
24783 echo "$as_me: failed program was:" >&5
24784 sed 's
/^
/|
/' conftest.$ac_ext >&5
24786 ( exit $ac_status )
24787 ac_cv_rshift_extends_sign=no
24789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24795 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24796 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24797 if test "$ac_cv_rshift_extends_sign" = no
24800 cat >>confdefs.h <<\_ACEOF
24801 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24806 # check for getc_unlocked and related locking functions
24807 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24808 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
24809 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24810 echo $ECHO_N "(cached) $ECHO_C" >&6
24813 cat >conftest.$ac_ext <<_ACEOF
24816 cat confdefs.h >>conftest.$ac_ext
24817 cat >>conftest.$ac_ext <<_ACEOF
24818 /* end confdefs.h. */
24824 FILE *f = fopen("/dev/null", "r");
24833 rm -f conftest.$ac_objext conftest$ac_exeext
24834 if { (ac_try="$ac_link"
24835 case "(($ac_try" in
24836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24837 *) ac_try_echo=$ac_try;;
24839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24840 (eval "$ac_link") 2>conftest.er1
24842 grep -v '^
*+' conftest.er1 >conftest.err
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } && {
24847 test -z "$ac_c_werror_flag" ||
24848 test ! -s conftest.err
24849 } && test -s conftest$ac_exeext &&
24850 $as_test_x conftest$ac_exeext; then
24851 ac_cv_have_getc_unlocked=yes
24853 echo "$as_me: failed program was:" >&5
24854 sed 's
/^
/|
/' conftest.$ac_ext >&5
24856 ac_cv_have_getc_unlocked=no
24859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24860 conftest$ac_exeext conftest.$ac_ext
24863 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24864 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24865 if test "$ac_cv_have_getc_unlocked" = yes
24868 cat >>confdefs.h <<\_ACEOF
24869 #define HAVE_GETC_UNLOCKED 1
24874 # check where readline lives
24875 # save the value of LIBS so we don't actually link Python with readline
24876 LIBS_no_readline
=$LIBS
24878 # On some systems we need to link readline to a termcap compatible
24879 # library. NOTE: Keep the precedence of listed libraries synchronised
24881 py_cv_lib_readline
=no
24882 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24883 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24884 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
24885 if test -z "$py_libtermcap"; then
24886 READLINE_LIBS
="-lreadline"
24888 READLINE_LIBS
="-lreadline -l$py_libtermcap"
24890 LIBS
="$READLINE_LIBS $LIBS_no_readline"
24891 cat >conftest.
$ac_ext <<_ACEOF
24894 cat confdefs.h
>>conftest.
$ac_ext
24895 cat >>conftest.
$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24898 /* Override any GCC internal prototype to avoid an error.
24899 Use char because int might match the return type of a GCC
24900 builtin and then its argument prototype would still apply. */
24908 return readline ();
24913 rm -f conftest.
$ac_objext conftest
$ac_exeext
24914 if { (ac_try
="$ac_link"
24915 case "(($ac_try" in
24916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24917 *) ac_try_echo=$ac_try;;
24919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24920 (eval "$ac_link") 2>conftest.er1
24922 grep -v '^ *+' conftest.er1 >conftest.err
24924 cat conftest.err >&5
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } && {
24927 test -z "$ac_c_werror_flag" ||
24928 test ! -s conftest.err
24929 } && test -s conftest$ac_exeext &&
24930 $as_test_x conftest$ac_exeext; then
24931 py_cv_lib_readline=yes
24933 echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24940 conftest$ac_exeext conftest.$ac_ext
24941 if test $py_cv_lib_readline = yes; then
24945 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24946 #AC_SUBST([READLINE_LIBS])
24947 if test $py_cv_lib_readline = no; then
24948 { echo "$as_me:$LINENO: result: none" >&5
24949 echo "${ECHO_T}none" >&6; }
24951 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24952 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24954 cat >>confdefs.h <<\_ACEOF
24955 #define HAVE_LIBREADLINE 1
24960 # check for readline 2.1
24961 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24962 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24963 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24964 echo $ECHO_N "(cached) $ECHO_C" >&6
24966 ac_check_lib_save_LIBS=$LIBS
24967 LIBS="-lreadline $READLINE_LIBS $LIBS"
24968 cat >conftest.$ac_ext <<_ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h. */
24975 /* Override any GCC internal prototype to avoid an error.
24976 Use char because int might match the return type of a GCC
24977 builtin and then its argument prototype would still apply. */
24981 char rl_callback_handler_install ();
24985 return rl_callback_handler_install ();
24990 rm -f conftest.$ac_objext conftest$ac_exeext
24991 if { (ac_try="$ac_link"
24992 case "(($ac_try" in
24993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24994 *) ac_try_echo
=$ac_try;;
24996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24997 (eval "$ac_link") 2>conftest.er1
24999 grep -v '^ *+' conftest.er1
>conftest.err
25001 cat conftest.err
>&5
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); } && {
25004 test -z "$ac_c_werror_flag" ||
25005 test ! -s conftest.err
25006 } && test -s conftest
$ac_exeext &&
25007 $as_test_x conftest
$ac_exeext; then
25008 ac_cv_lib_readline_rl_callback_handler_install
=yes
25010 echo "$as_me: failed program was:" >&5
25011 sed 's/^/| /' conftest.
$ac_ext >&5
25013 ac_cv_lib_readline_rl_callback_handler_install
=no
25016 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25017 conftest
$ac_exeext conftest.
$ac_ext
25018 LIBS
=$ac_check_lib_save_LIBS
25020 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25021 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25022 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25024 cat >>confdefs.h
<<\_ACEOF
25025 #define HAVE_RL_CALLBACK 1
25031 # check for readline 2.2
25032 cat >conftest.
$ac_ext <<_ACEOF
25035 cat confdefs.h
>>conftest.
$ac_ext
25036 cat >>conftest.
$ac_ext <<_ACEOF
25037 /* end confdefs.h. */
25038 #include <readline/readline.h>
25040 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25041 case "(($ac_try" in
25042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25043 *) ac_try_echo=$ac_try;;
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25048 grep -v '^ *+' conftest.er1 >conftest.err
25050 cat conftest.err >&5
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } >/dev/null && {
25053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25054 test ! -s conftest.err
25058 echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25064 rm -f conftest.err conftest.$ac_ext
25065 if test $have_readline = yes
25067 cat >conftest.$ac_ext <<_ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h. */
25073 #include <readline/readline.h>
25076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25077 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
25079 cat >>confdefs.h <<\_ACEOF
25080 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25088 # check for readline 4.0
25089 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
25090 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
25091 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
25092 echo $ECHO_N "(cached) $ECHO_C" >&6
25094 ac_check_lib_save_LIBS=$LIBS
25095 LIBS="-lreadline $READLINE_LIBS $LIBS"
25096 cat >conftest.$ac_ext <<_ACEOF
25099 cat confdefs.h >>conftest.$ac_ext
25100 cat >>conftest.$ac_ext <<_ACEOF
25101 /* end confdefs.h. */
25103 /* Override any GCC internal prototype to avoid an error.
25104 Use char because int might match the return type of a GCC
25105 builtin and then its argument prototype would still apply. */
25109 char rl_pre_input_hook ();
25113 return rl_pre_input_hook ();
25118 rm -f conftest.$ac_objext conftest$ac_exeext
25119 if { (ac_try="$ac_link"
25120 case "(($ac_try" in
25121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25122 *) ac_try_echo
=$ac_try;;
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125 (eval "$ac_link") 2>conftest.er1
25127 grep -v '^ *+' conftest.er1
>conftest.err
25129 cat conftest.err
>&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest
$ac_exeext &&
25135 $as_test_x conftest
$ac_exeext; then
25136 ac_cv_lib_readline_rl_pre_input_hook
=yes
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.
$ac_ext >&5
25141 ac_cv_lib_readline_rl_pre_input_hook
=no
25144 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25145 conftest
$ac_exeext conftest.
$ac_ext
25146 LIBS
=$ac_check_lib_save_LIBS
25148 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25149 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25150 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
25152 cat >>confdefs.h
<<\_ACEOF
25153 #define HAVE_RL_PRE_INPUT_HOOK 1
25160 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
25161 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
25162 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
25163 echo $ECHO_N "(cached) $ECHO_C" >&6
25165 ac_check_lib_save_LIBS
=$LIBS
25166 LIBS
="-lreadline $READLINE_LIBS $LIBS"
25167 cat >conftest.
$ac_ext <<_ACEOF
25170 cat confdefs.h
>>conftest.
$ac_ext
25171 cat >>conftest.
$ac_ext <<_ACEOF
25172 /* end confdefs.h. */
25174 /* Override any GCC internal prototype to avoid an error.
25175 Use char because int might match the return type of a GCC
25176 builtin and then its argument prototype would still apply. */
25180 char rl_completion_display_matches_hook ();
25184 return rl_completion_display_matches_hook ();
25189 rm -f conftest.
$ac_objext conftest
$ac_exeext
25190 if { (ac_try
="$ac_link"
25191 case "(($ac_try" in
25192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196 (eval "$ac_link") 2>conftest.er1
25198 grep -v '^ *+' conftest.er1 >conftest.err
25200 cat conftest.err >&5
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); } && {
25203 test -z "$ac_c_werror_flag" ||
25204 test ! -s conftest.err
25205 } && test -s conftest$ac_exeext &&
25206 $as_test_x conftest$ac_exeext; then
25207 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25209 echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25212 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25216 conftest$ac_exeext conftest.$ac_ext
25217 LIBS=$ac_check_lib_save_LIBS
25219 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
25220 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
25221 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
25223 cat >>confdefs.h <<\_ACEOF
25224 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
25230 # check for readline 4.2
25231 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
25232 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
25233 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25236 ac_check_lib_save_LIBS=$LIBS
25237 LIBS="-lreadline $READLINE_LIBS $LIBS"
25238 cat >conftest.$ac_ext <<_ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h. */
25245 /* Override any GCC internal prototype to avoid an error.
25246 Use char because int might match the return type of a GCC
25247 builtin and then its argument prototype would still apply. */
25251 char rl_completion_matches ();
25255 return rl_completion_matches ();
25260 rm -f conftest.$ac_objext conftest$ac_exeext
25261 if { (ac_try="$ac_link"
25262 case "(($ac_try" in
25263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25264 *) ac_try_echo
=$ac_try;;
25266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25267 (eval "$ac_link") 2>conftest.er1
25269 grep -v '^ *+' conftest.er1
>conftest.err
25271 cat conftest.err
>&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } && {
25274 test -z "$ac_c_werror_flag" ||
25275 test ! -s conftest.err
25276 } && test -s conftest
$ac_exeext &&
25277 $as_test_x conftest
$ac_exeext; then
25278 ac_cv_lib_readline_rl_completion_matches
=yes
25280 echo "$as_me: failed program was:" >&5
25281 sed 's/^/| /' conftest.
$ac_ext >&5
25283 ac_cv_lib_readline_rl_completion_matches
=no
25286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25287 conftest
$ac_exeext conftest.
$ac_ext
25288 LIBS
=$ac_check_lib_save_LIBS
25290 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
25291 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
25292 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
25294 cat >>confdefs.h
<<\_ACEOF
25295 #define HAVE_RL_COMPLETION_MATCHES 1
25301 # also in readline 4.2
25302 cat >conftest.
$ac_ext <<_ACEOF
25305 cat confdefs.h
>>conftest.
$ac_ext
25306 cat >>conftest.
$ac_ext <<_ACEOF
25307 /* end confdefs.h. */
25308 #include <readline/readline.h>
25310 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25311 case "(($ac_try" in
25312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25313 *) ac_try_echo=$ac_try;;
25315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25318 grep -v '^ *+' conftest.er1 >conftest.err
25320 cat conftest.err >&5
25321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } >/dev/null && {
25323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25324 test ! -s conftest.err
25328 echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25334 rm -f conftest.err conftest.$ac_ext
25335 if test $have_readline = yes
25337 cat >conftest.$ac_ext <<_ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 #include <readline/readline.h>
25346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25347 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
25349 cat >>confdefs.h <<\_ACEOF
25350 #define HAVE_RL_CATCH_SIGNAL 1
25358 # End of readline checks: restore LIBS
25359 LIBS=$LIBS_no_readline
25361 { echo "$as_me:$LINENO: checking for broken nice()" >&5
25362 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
25363 if test "${ac_cv_broken_nice+set}" = set; then
25364 echo $ECHO_N "(cached) $ECHO_C" >&6
25367 if test "$cross_compiling" = yes; then
25368 ac_cv_broken_nice=no
25370 cat >conftest.$ac_ext <<_ACEOF
25373 cat confdefs.h >>conftest.$ac_ext
25374 cat >>conftest.$ac_ext <<_ACEOF
25375 /* end confdefs.h. */
25379 int val1 = nice(1);
25380 if (val1 != -1 && val1 == nice(2))
25386 rm -f conftest$ac_exeext
25387 if { (ac_try="$ac_link"
25388 case "(($ac_try" in
25389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25390 *) ac_try_echo
=$ac_try;;
25392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25393 (eval "$ac_link") 2>&5
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25397 { (case "(($ac_try" in
25398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402 (eval "$ac_try") 2>&5
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); }; }; then
25406 ac_cv_broken_nice=yes
25408 echo "$as_me: program exited with status $ac_status" >&5
25409 echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25412 ( exit $ac_status )
25413 ac_cv_broken_nice=no
25415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25421 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
25422 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
25423 if test "$ac_cv_broken_nice" = yes
25426 cat >>confdefs.h <<\_ACEOF
25427 #define HAVE_BROKEN_NICE 1
25432 { echo "$as_me:$LINENO: checking for broken poll()" >&5
25433 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
25434 if test "${ac_cv_broken_poll+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
25437 if test "$cross_compiling" = yes; then
25438 ac_cv_broken_poll=no
25440 cat >conftest.$ac_ext <<_ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h. */
25451 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25456 poll_test = poll(&poll_struct, 1, 0);
25459 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25466 rm -f conftest$ac_exeext
25467 if { (ac_try="$ac_link"
25468 case "(($ac_try" in
25469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25470 *) ac_try_echo
=$ac_try;;
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_link") 2>&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25477 { (case "(($ac_try" in
25478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25479 *) ac_try_echo=$ac_try;;
25481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25482 (eval "$ac_try") 2>&5
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); }; }; then
25486 ac_cv_broken_poll=yes
25488 echo "$as_me: program exited with status $ac_status" >&5
25489 echo "$as_me: failed program was:" >&5
25490 sed 's/^/| /' conftest.$ac_ext >&5
25492 ( exit $ac_status )
25493 ac_cv_broken_poll=no
25495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25501 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
25502 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
25503 if test "$ac_cv_broken_poll" = yes
25506 cat >>confdefs.h <<\_ACEOF
25507 #define HAVE_BROKEN_POLL 1
25512 # Before we can test tzset, we need to check if struct tm has a tm_zone
25513 # (which is not required by ISO C or UNIX spec) and/or if we support
25515 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25516 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
25517 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25518 echo $ECHO_N "(cached) $ECHO_C" >&6
25520 cat >conftest.$ac_ext <<_ACEOF
25523 cat confdefs.h >>conftest.$ac_ext
25524 cat >>conftest.$ac_ext <<_ACEOF
25525 /* end confdefs.h. */
25526 #include <sys/types.h>
25527 #include <$ac_cv_struct_tm>
25533 static struct tm ac_aggr;
25534 if (ac_aggr.tm_zone)
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 ac_cv_member_struct_tm_tm_zone
=yes
25559 echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.
$ac_ext >&5
25562 cat >conftest.
$ac_ext <<_ACEOF
25565 cat confdefs.h
>>conftest.
$ac_ext
25566 cat >>conftest.
$ac_ext <<_ACEOF
25567 /* end confdefs.h. */
25568 #include <sys/types.h>
25569 #include <$ac_cv_struct_tm>
25575 static struct tm ac_aggr;
25576 if (sizeof ac_aggr.tm_zone)
25582 rm -f conftest.
$ac_objext
25583 if { (ac_try
="$ac_compile"
25584 case "(($ac_try" in
25585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25586 *) ac_try_echo=$ac_try;;
25588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589 (eval "$ac_compile") 2>conftest.er1
25591 grep -v '^ *+' conftest.er1 >conftest.err
25593 cat conftest.err >&5
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); } && {
25596 test -z "$ac_c_werror_flag" ||
25597 test ! -s conftest.err
25598 } && test -s conftest.$ac_objext; then
25599 ac_cv_member_struct_tm_tm_zone=yes
25601 echo "$as_me: failed program was:" >&5
25602 sed 's/^/| /' conftest.$ac_ext >&5
25604 ac_cv_member_struct_tm_tm_zone=no
25607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25612 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
25613 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25614 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25616 cat >>confdefs.h <<_ACEOF
25617 #define HAVE_STRUCT_TM_TM_ZONE 1
25623 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25625 cat >>confdefs.h <<\_ACEOF
25626 #define HAVE_TM_ZONE 1
25630 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
25631 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
25632 if test "${ac_cv_have_decl_tzname+set}" = set; then
25633 echo $ECHO_N "(cached) $ECHO_C" >&6
25635 cat >conftest.$ac_ext <<_ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h. */
25654 rm -f conftest.$ac_objext
25655 if { (ac_try="$ac_compile"
25656 case "(($ac_try" in
25657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25658 *) ac_try_echo
=$ac_try;;
25660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25661 (eval "$ac_compile") 2>conftest.er1
25663 grep -v '^ *+' conftest.er1
>conftest.err
25665 cat conftest.err
>&5
25666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667 (exit $ac_status); } && {
25668 test -z "$ac_c_werror_flag" ||
25669 test ! -s conftest.err
25670 } && test -s conftest.
$ac_objext; then
25671 ac_cv_have_decl_tzname
=yes
25673 echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.
$ac_ext >&5
25676 ac_cv_have_decl_tzname
=no
25679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25681 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
25682 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25683 if test $ac_cv_have_decl_tzname = yes; then
25685 cat >>confdefs.h
<<_ACEOF
25686 #define HAVE_DECL_TZNAME 1
25691 cat >>confdefs.h
<<_ACEOF
25692 #define HAVE_DECL_TZNAME 0
25699 { echo "$as_me:$LINENO: checking for tzname" >&5
25700 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
25701 if test "${ac_cv_var_tzname+set}" = set; then
25702 echo $ECHO_N "(cached) $ECHO_C" >&6
25704 cat >conftest.
$ac_ext <<_ACEOF
25707 cat confdefs.h
>>conftest.
$ac_ext
25708 cat >>conftest.
$ac_ext <<_ACEOF
25709 /* end confdefs.h. */
25711 #if !HAVE_DECL_TZNAME
25712 extern char *tzname[];
25718 return tzname[0][0];
25723 rm -f conftest.
$ac_objext conftest
$ac_exeext
25724 if { (ac_try
="$ac_link"
25725 case "(($ac_try" in
25726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25727 *) ac_try_echo=$ac_try;;
25729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25730 (eval "$ac_link") 2>conftest.er1
25732 grep -v '^ *+' conftest.er1 >conftest.err
25734 cat conftest.err >&5
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); } && {
25737 test -z "$ac_c_werror_flag" ||
25738 test ! -s conftest.err
25739 } && test -s conftest$ac_exeext &&
25740 $as_test_x conftest$ac_exeext; then
25741 ac_cv_var_tzname=yes
25743 echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25746 ac_cv_var_tzname=no
25749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25750 conftest$ac_exeext conftest.$ac_ext
25752 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25753 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25754 if test $ac_cv_var_tzname = yes; then
25756 cat >>confdefs.h <<\_ACEOF
25757 #define HAVE_TZNAME 1
25764 # check tzset(3) exists and works like we expect it to
25765 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25766 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25767 if test "${ac_cv_working_tzset+set}" = set; then
25768 echo $ECHO_N "(cached) $ECHO_C" >&6
25771 if test "$cross_compiling" = yes; then
25772 ac_cv_working_tzset=no
25774 cat >conftest.$ac_ext <<_ACEOF
25777 cat confdefs.h >>conftest.$ac_ext
25778 cat >>conftest.$ac_ext <<_ACEOF
25779 /* end confdefs.h. */
25781 #include <stdlib.h>
25783 #include <string.h>
25786 extern char *tzname[];
25791 /* Note that we need to ensure that not only does tzset(3)
25792 do 'something' with localtime, but it works as documented
25793 in the library reference and as expected by the test suite.
25794 This includes making sure that tzname is set properly if
25795 tm->tm_zone does not exist since it is the alternative way
25796 of getting timezone info.
25798 Red Hat 6.2 doesn't understand the southern hemisphere
25799 after New Year's Day.
25802 time_t groundhogday = 1044144000; /* GMT-based */
25803 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25805 putenv("TZ=UTC+0");
25807 if (localtime(&groundhogday)->tm_hour != 0)
25810 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25811 if (strcmp(tzname[0], "UTC") ||
25812 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25816 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25818 if (localtime(&groundhogday)->tm_hour != 19)
25821 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25825 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25827 if (localtime(&groundhogday)->tm_hour != 11)
25830 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25834 #if HAVE_STRUCT_TM_TM_ZONE
25835 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25837 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25845 rm -f conftest$ac_exeext
25846 if { (ac_try="$ac_link"
25847 case "(($ac_try" in
25848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25849 *) ac_try_echo
=$ac_try;;
25851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25852 (eval "$ac_link") 2>&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25856 { (case "(($ac_try" in
25857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25858 *) ac_try_echo=$ac_try;;
25860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25861 (eval "$ac_try") 2>&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
25865 ac_cv_working_tzset=yes
25867 echo "$as_me: program exited with status $ac_status" >&5
25868 echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25871 ( exit $ac_status )
25872 ac_cv_working_tzset=no
25874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25880 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25881 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25882 if test "$ac_cv_working_tzset" = yes
25885 cat >>confdefs.h <<\_ACEOF
25886 #define HAVE_WORKING_TZSET 1
25891 # Look for subsecond timestamps in struct stat
25892 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25893 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25894 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25895 echo $ECHO_N "(cached) $ECHO_C" >&6
25897 cat >conftest.$ac_ext <<_ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h. */
25903 #include <sys/stat.h>
25909 st.st_mtim.tv_nsec = 1;
25915 rm -f conftest.$ac_objext
25916 if { (ac_try="$ac_compile"
25917 case "(($ac_try" in
25918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25919 *) ac_try_echo
=$ac_try;;
25921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25922 (eval "$ac_compile") 2>conftest.er1
25924 grep -v '^ *+' conftest.er1
>conftest.err
25926 cat conftest.err
>&5
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } && {
25929 test -z "$ac_c_werror_flag" ||
25930 test ! -s conftest.err
25931 } && test -s conftest.
$ac_objext; then
25932 ac_cv_stat_tv_nsec
=yes
25934 echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.
$ac_ext >&5
25937 ac_cv_stat_tv_nsec
=no
25940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25943 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25944 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25945 if test "$ac_cv_stat_tv_nsec" = yes
25948 cat >>confdefs.h
<<\_ACEOF
25949 #define HAVE_STAT_TV_NSEC 1
25954 # Look for BSD style subsecond timestamps in struct stat
25955 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25956 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25957 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25958 echo $ECHO_N "(cached) $ECHO_C" >&6
25960 cat >conftest.
$ac_ext <<_ACEOF
25963 cat confdefs.h
>>conftest.
$ac_ext
25964 cat >>conftest.
$ac_ext <<_ACEOF
25965 /* end confdefs.h. */
25966 #include <sys/stat.h>
25972 st.st_mtimespec.tv_nsec = 1;
25978 rm -f conftest.
$ac_objext
25979 if { (ac_try
="$ac_compile"
25980 case "(($ac_try" in
25981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25982 *) ac_try_echo=$ac_try;;
25984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25985 (eval "$ac_compile") 2>conftest.er1
25987 grep -v '^ *+' conftest.er1 >conftest.err
25989 cat conftest.err >&5
25990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991 (exit $ac_status); } && {
25992 test -z "$ac_c_werror_flag" ||
25993 test ! -s conftest.err
25994 } && test -s conftest.$ac_objext; then
25995 ac_cv_stat_tv_nsec2=yes
25997 echo "$as_me: failed program was:" >&5
25998 sed 's/^/| /' conftest.$ac_ext >&5
26000 ac_cv_stat_tv_nsec2=no
26003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26006 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26007 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26008 if test "$ac_cv_stat_tv_nsec2" = yes
26011 cat >>confdefs.h <<\_ACEOF
26012 #define HAVE_STAT_TV_NSEC2 1
26017 # On HP/UX 11.0, mvwdelch is a block with a return statement
26018 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26019 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26020 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26021 echo $ECHO_N "(cached) $ECHO_C" >&6
26023 cat >conftest.$ac_ext <<_ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h. */
26029 #include <curses.h>
26035 rtn = mvwdelch(0,0,0);
26041 rm -f conftest.$ac_objext
26042 if { (ac_try="$ac_compile"
26043 case "(($ac_try" in
26044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26045 *) ac_try_echo
=$ac_try;;
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048 (eval "$ac_compile") 2>conftest.er1
26050 grep -v '^ *+' conftest.er1
>conftest.err
26052 cat conftest.err
>&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } && {
26055 test -z "$ac_c_werror_flag" ||
26056 test ! -s conftest.err
26057 } && test -s conftest.
$ac_objext; then
26058 ac_cv_mvwdelch_is_expression
=yes
26060 echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.
$ac_ext >&5
26063 ac_cv_mvwdelch_is_expression
=no
26066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26069 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
26070 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
26072 if test "$ac_cv_mvwdelch_is_expression" = yes
26075 cat >>confdefs.h
<<\_ACEOF
26076 #define MVWDELCH_IS_EXPRESSION 1
26081 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
26082 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
26083 if test "${ac_cv_window_has_flags+set}" = set; then
26084 echo $ECHO_N "(cached) $ECHO_C" >&6
26086 cat >conftest.
$ac_ext <<_ACEOF
26089 cat confdefs.h
>>conftest.
$ac_ext
26090 cat >>conftest.
$ac_ext <<_ACEOF
26091 /* end confdefs.h. */
26092 #include <curses.h>
26104 rm -f conftest.
$ac_objext
26105 if { (ac_try
="$ac_compile"
26106 case "(($ac_try" in
26107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26108 *) ac_try_echo=$ac_try;;
26110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26111 (eval "$ac_compile") 2>conftest.er1
26113 grep -v '^ *+' conftest.er1 >conftest.err
26115 cat conftest.err >&5
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); } && {
26118 test -z "$ac_c_werror_flag" ||
26119 test ! -s conftest.err
26120 } && test -s conftest.$ac_objext; then
26121 ac_cv_window_has_flags=yes
26123 echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 ac_cv_window_has_flags=no
26129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26132 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
26133 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
26136 if test "$ac_cv_window_has_flags" = yes
26139 cat >>confdefs.h <<\_ACEOF
26140 #define WINDOW_HAS_FLAGS 1
26145 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
26146 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
26147 cat >conftest.$ac_ext <<_ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26153 #include <curses.h>
26157 void *x=is_term_resized
26162 rm -f conftest.$ac_objext
26163 if { (ac_try="$ac_compile"
26164 case "(($ac_try" in
26165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26166 *) ac_try_echo
=$ac_try;;
26168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169 (eval "$ac_compile") 2>conftest.er1
26171 grep -v '^ *+' conftest.er1
>conftest.err
26173 cat conftest.err
>&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } && {
26176 test -z "$ac_c_werror_flag" ||
26177 test ! -s conftest.err
26178 } && test -s conftest.
$ac_objext; then
26180 cat >>confdefs.h
<<\_ACEOF
26181 #define HAVE_CURSES_IS_TERM_RESIZED 1
26184 { echo "$as_me:$LINENO: result: yes" >&5
26185 echo "${ECHO_T}yes" >&6; }
26187 echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.
$ac_ext >&5
26190 { echo "$as_me:$LINENO: result: no" >&5
26191 echo "${ECHO_T}no" >&6; }
26195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26197 { echo "$as_me:$LINENO: checking for resize_term" >&5
26198 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
26199 cat >conftest.
$ac_ext <<_ACEOF
26202 cat confdefs.h
>>conftest.
$ac_ext
26203 cat >>conftest.
$ac_ext <<_ACEOF
26204 /* end confdefs.h. */
26205 #include <curses.h>
26209 void *x=resize_term
26214 rm -f conftest.
$ac_objext
26215 if { (ac_try
="$ac_compile"
26216 case "(($ac_try" in
26217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26218 *) ac_try_echo=$ac_try;;
26220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26221 (eval "$ac_compile") 2>conftest.er1
26223 grep -v '^ *+' conftest.er1 >conftest.err
26225 cat conftest.err >&5
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); } && {
26228 test -z "$ac_c_werror_flag" ||
26229 test ! -s conftest.err
26230 } && test -s conftest.$ac_objext; then
26232 cat >>confdefs.h <<\_ACEOF
26233 #define HAVE_CURSES_RESIZE_TERM 1
26236 { echo "$as_me:$LINENO: result: yes" >&5
26237 echo "${ECHO_T}yes" >&6; }
26239 echo "$as_me: failed program was:" >&5
26240 sed 's/^/| /' conftest.$ac_ext >&5
26242 { echo "$as_me:$LINENO: result: no" >&5
26243 echo "${ECHO_T}no" >&6; }
26247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26249 { echo "$as_me:$LINENO: checking for resizeterm" >&5
26250 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
26251 cat >conftest.$ac_ext <<_ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h. */
26257 #include <curses.h>
26266 rm -f conftest.$ac_objext
26267 if { (ac_try="$ac_compile"
26268 case "(($ac_try" in
26269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26270 *) ac_try_echo
=$ac_try;;
26272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26273 (eval "$ac_compile") 2>conftest.er1
26275 grep -v '^ *+' conftest.er1
>conftest.err
26277 cat conftest.err
>&5
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } && {
26280 test -z "$ac_c_werror_flag" ||
26281 test ! -s conftest.err
26282 } && test -s conftest.
$ac_objext; then
26284 cat >>confdefs.h
<<\_ACEOF
26285 #define HAVE_CURSES_RESIZETERM 1
26288 { echo "$as_me:$LINENO: result: yes" >&5
26289 echo "${ECHO_T}yes" >&6; }
26291 echo "$as_me: failed program was:" >&5
26292 sed 's/^/| /' conftest.
$ac_ext >&5
26294 { echo "$as_me:$LINENO: result: no" >&5
26295 echo "${ECHO_T}no" >&6; }
26299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26301 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
26302 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
26304 if test -r /dev
/ptmx
26306 { echo "$as_me:$LINENO: result: yes" >&5
26307 echo "${ECHO_T}yes" >&6; }
26309 cat >>confdefs.h
<<\_ACEOF
26310 #define HAVE_DEV_PTMX 1
26314 { echo "$as_me:$LINENO: result: no" >&5
26315 echo "${ECHO_T}no" >&6; }
26318 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
26319 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
26321 if test -r /dev
/ptc
26323 { echo "$as_me:$LINENO: result: yes" >&5
26324 echo "${ECHO_T}yes" >&6; }
26326 cat >>confdefs.h
<<\_ACEOF
26327 #define HAVE_DEV_PTC 1
26331 { echo "$as_me:$LINENO: result: no" >&5
26332 echo "${ECHO_T}no" >&6; }
26335 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
26336 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
26337 if test "${ac_cv_have_size_t_format+set}" = set; then
26338 echo $ECHO_N "(cached) $ECHO_C" >&6
26340 if test "$cross_compiling" = yes; then
26341 ac_cv_have_size_t_format
=no
26343 cat >conftest.
$ac_ext <<_ACEOF
26346 cat confdefs.h
>>conftest.
$ac_ext
26347 cat >>conftest.
$ac_ext <<_ACEOF
26348 /* end confdefs.h. */
26351 #include <stddef.h>
26352 #include <string.h>
26354 #ifdef HAVE_SYS_TYPES_H
26355 #include <sys/types.h>
26358 #ifdef HAVE_SSIZE_T
26359 typedef ssize_t Py_ssize_t;
26360 #elif SIZEOF_VOID_P == SIZEOF_LONG
26361 typedef long Py_ssize_t;
26363 typedef int Py_ssize_t;
26370 if(sprintf(buffer, "%zd", (size_t)123) < 0)
26373 if (strcmp(buffer, "123"))
26376 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
26379 if (strcmp(buffer, "-123"))
26386 rm -f conftest
$ac_exeext
26387 if { (ac_try
="$ac_link"
26388 case "(($ac_try" in
26389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26390 *) ac_try_echo=$ac_try;;
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393 (eval "$ac_link") 2>&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26397 { (case "(($ac_try" in
26398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26399 *) ac_try_echo
=$ac_try;;
26401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26402 (eval "$ac_try") 2>&5
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); }; }; then
26406 ac_cv_have_size_t_format
=yes
26408 echo "$as_me: program exited with status $ac_status" >&5
26409 echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.
$ac_ext >&5
26412 ( exit $ac_status )
26413 ac_cv_have_size_t_format
=no
26415 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26422 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
26423 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
26424 if test $ac_cv_have_size_t_format = yes
26427 cat >>confdefs.h
<<\_ACEOF
26428 #define PY_FORMAT_SIZE_T "z"
26433 { echo "$as_me:$LINENO: checking for socklen_t" >&5
26434 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
26435 if test "${ac_cv_type_socklen_t+set}" = set; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26438 cat >conftest.
$ac_ext <<_ACEOF
26441 cat confdefs.h
>>conftest.
$ac_ext
26442 cat >>conftest.
$ac_ext <<_ACEOF
26443 /* end confdefs.h. */
26445 #ifdef HAVE_SYS_TYPES_H
26446 #include <sys/types.h>
26448 #ifdef HAVE_SYS_SOCKET_H
26449 #include <sys/socket.h>
26453 typedef socklen_t ac__type_new_;
26457 if ((ac__type_new_ *) 0)
26459 if (sizeof (ac__type_new_))
26465 rm -f conftest.
$ac_objext
26466 if { (ac_try
="$ac_compile"
26467 case "(($ac_try" in
26468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26469 *) ac_try_echo=$ac_try;;
26471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26472 (eval "$ac_compile") 2>conftest.er1
26474 grep -v '^ *+' conftest.er1 >conftest.err
26476 cat conftest.err >&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); } && {
26479 test -z "$ac_c_werror_flag" ||
26480 test ! -s conftest.err
26481 } && test -s conftest.$ac_objext; then
26482 ac_cv_type_socklen_t=yes
26484 echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26487 ac_cv_type_socklen_t=no
26490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26492 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26493 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
26494 if test $ac_cv_type_socklen_t = yes; then
26498 cat >>confdefs.h <<\_ACEOF
26499 #define socklen_t int
26507 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
26509 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
26513 SRCDIRS="Parser Grammar Objects Python Modules Mac"
26514 { echo "$as_me:$LINENO: checking for build directories" >&5
26515 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
26516 for dir in $SRCDIRS; do
26517 if test ! -d $dir; then
26521 { echo "$as_me:$LINENO: result: done" >&5
26522 echo "${ECHO_T}done" >&6; }
26524 # generate output files
26525 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
26527 cat >confcache <<\_ACEOF
26528 # This file is a shell script that caches the results of configure
26529 # tests run on this system so they can be shared between configure
26530 # scripts and configure runs, see configure's option --config-cache.
26531 # It is not useful on other systems. If it contains results you don't
26532 # want to keep, you may remove or edit it.
26534 # config.status only pays attention to the cache file if you give it
26535 # the --recheck option to rerun configure.
26537 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
26538 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26539 # following values.
26543 # The following way of writing the cache mishandles newlines in values,
26544 # but we know of no workaround that is simple, portable, and efficient.
26545 # So, we kill variables containing newlines.
26546 # Ultrix sh set writes to stderr and can't be redirected directly,
26547 # and sets the high bit in the cache file unless we assign to the vars.
26549 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26550 eval ac_val
=\$
$ac_var
26554 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26555 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26558 _ | IFS | as_nl
) ;; #(
26559 *) $as_unset $ac_var ;;
26565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26566 *${as_nl}ac_space
=\
*)
26567 # `set' does not quote correctly, so add quotes (double-quote
26568 # substitution turns \\\\ into \\, and sed turns \\ into \).
26571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26574 # `set' quotes correctly as required by POSIX, so do not add quotes.
26575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26588 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26589 if test -w "$cache_file"; then
26590 test "x$cache_file" != "x/dev/null" &&
26591 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26592 echo "$as_me: updating cache $cache_file" >&6;}
26593 cat confcache
>$cache_file
26595 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26596 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26601 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26602 # Let make expand exec_prefix.
26603 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26605 DEFS
=-DHAVE_CONFIG_H
26609 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26610 # 1. Remove the extension, and $U if already installed.
26611 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26612 ac_i
=`echo "$ac_i" | sed "$ac_script"`
26613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26614 # will be set to the directory where LIBOBJS objects are built.
26615 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26616 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26618 LIBOBJS
=$ac_libobjs
26620 LTLIBOBJS
=$ac_ltlibobjs
26624 : ${CONFIG_STATUS=./config.status}
26625 ac_clean_files_save
=$ac_clean_files
26626 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26627 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26628 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26629 cat >$CONFIG_STATUS <<_ACEOF
26631 # Generated by $as_me.
26632 # Run this file to recreate the current configuration.
26633 # Compiler output produced by configure, useful for debugging
26634 # configure, is in config.log if it exists.
26637 ac_cs_recheck=false
26639 SHELL=\${CONFIG_SHELL-$SHELL}
26642 cat >>$CONFIG_STATUS <<\_ACEOF
26643 ## --------------------- ##
26644 ## M4sh Initialization. ##
26645 ## --------------------- ##
26647 # Be more Bourne compatible
26648 DUALCASE
=1; export DUALCASE
# for MKS sh
26649 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26652 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26653 # is contrary to our usage. Disable this feature.
26654 alias -g '${1+"$@"}'='"$@"'
26655 setopt NO_GLOB_SUBST
26657 case `(set -o) 2>/dev/null` in
26658 *posix
*) set -o posix
;;
26667 # Avoid depending upon Character Ranges.
26668 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26669 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26670 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26671 as_cr_digits
='0123456789'
26672 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26674 # The user is always right.
26675 if test "${PATH_SEPARATOR+set}" != set; then
26676 echo "#! /bin/sh" >conf$$.sh
26677 echo "exit 0" >>conf$$.sh
26679 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26687 # Support unset when possible.
26688 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26696 # We need space, tab and new line, in precisely that order. Quoting is
26697 # there to prevent editors from complaining about space-tab.
26698 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26699 # splitting by setting IFS to empty value.)
26704 # Find who we are. Look in the path if we contain no directory separator.
26706 *[\\/]* ) as_myself
=$0 ;;
26707 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26708 for as_dir
in $PATH
26711 test -z "$as_dir" && as_dir
=.
26712 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26718 # We did not find ourselves, most probably we were run as `sh COMMAND'
26719 # in which case we are not to be found in the path.
26720 if test "x$as_myself" = x
; then
26723 if test ! -f "$as_myself"; then
26724 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26725 { (exit 1); exit 1; }
26728 # Work around bugs in pre-3.0 UWIN ksh.
26729 for as_var
in ENV MAIL MAILPATH
26730 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26738 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26739 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26740 LC_TELEPHONE LC_TIME
26742 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26743 eval $as_var=C
; export $as_var
26745 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26749 # Required to use basename.
26750 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26751 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26757 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26758 as_basename
=basename
26764 # Name of the executable.
26765 as_me
=`$as_basename -- "$0" ||
26766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26767 X"$0" : 'X\(//\)$' \| \
26768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26770 sed '/^.*\/\([^/][^/]*\)\/*$/{
26789 as_lineno_1
=$LINENO
26790 as_lineno_2
=$LINENO
26791 test "x$as_lineno_1" != "x$as_lineno_2" &&
26792 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26794 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26795 # uniformly replaced by the line number. The first 'sed' inserts a
26796 # line-number line after each line using $LINENO; the second 'sed'
26797 # does the real work. The second script uses 'N' to pair each
26798 # line-number line with the line containing $LINENO, and appends
26799 # trailing '-' during substitution so that $LINENO is not a special
26800 # case at line end.
26801 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26802 # scripts with optimization help from Paolo Bonzini. Blame Lee
26803 # E. McMahon (1931-1989) for sed's syntax. :-)
26815 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26818 ' >$as_me.lineno
&&
26819 chmod +x
"$as_me.lineno" ||
26820 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26821 { (exit 1); exit 1; }; }
26823 # Don't try to exec as it changes $[0], causing all sort of problems
26824 # (the dirname of $[0] is not the place where we might find the
26825 # original and so on. Autoconf is especially sensitive to this).
26826 .
"./$as_me.lineno"
26827 # Exit status is that of the last command.
26832 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26838 ECHO_C
= ECHO_N
= ECHO_T
=
26839 case `echo -n x` in
26841 case `echo 'x\c'` in
26842 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26849 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26850 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26856 rm -f conf$$ conf$$.exe conf$$.
file
26857 if test -d conf$$.dir
; then
26858 rm -f conf$$.dir
/conf$$.
file
26864 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26866 # ... but there are two gotchas:
26867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26869 # In both cases, we have to default to `cp -p'.
26870 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26872 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26877 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26878 rmdir conf$$.dir
2>/dev
/null
26880 if mkdir
-p .
2>/dev
/null
; then
26883 test -d .
/-p && rmdir .
/-p
26887 if test -x / >/dev
/null
2>&1; then
26888 as_test_x
='test -x'
26890 if ls -dL / >/dev
/null
2>&1; then
26897 if test -d "$1"; then
26903 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26904 ???[sx]*):;;*)false;;esac;fi
26908 as_executable_p
=$as_test_x
26910 # Sed expression to map a string onto a valid CPP name.
26911 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26913 # Sed expression to map a string onto a valid variable name.
26914 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26919 # Save the log message, to keep $[0] and so on meaningful, and to
26920 # report actual input values of CONFIG_FILES etc. instead of their
26921 # values after options handling.
26923 This file was extended by python $as_me 2.7, which was
26924 generated by GNU Autoconf 2.61. Invocation command line was
26926 CONFIG_FILES = $CONFIG_FILES
26927 CONFIG_HEADERS = $CONFIG_HEADERS
26928 CONFIG_LINKS = $CONFIG_LINKS
26929 CONFIG_COMMANDS = $CONFIG_COMMANDS
26932 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26937 cat >>$CONFIG_STATUS <<_ACEOF
26938 # Files that config.status was made for.
26939 config_files="$ac_config_files"
26940 config_headers="$ac_config_headers"
26944 cat >>$CONFIG_STATUS <<\_ACEOF
26946 \`$as_me' instantiates files from templates according to the
26947 current configuration.
26949 Usage: $0 [OPTIONS] [FILE]...
26951 -h, --help print this help, then exit
26952 -V, --version print version number and configuration settings, then exit
26953 -q, --quiet do not print progress messages
26954 -d, --debug don't remove temporary files
26955 --recheck update $as_me by reconfiguring in the same conditions
26956 --file=FILE[:TEMPLATE]
26957 instantiate the configuration file FILE
26958 --header=FILE[:TEMPLATE]
26959 instantiate the configuration header FILE
26961 Configuration files:
26964 Configuration headers:
26967 Report bugs to <bug-autoconf@gnu.org>."
26970 cat >>$CONFIG_STATUS <<_ACEOF
26972 python config.status 2.7
26973 configured by $0, generated by GNU Autoconf 2.61,
26974 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26976 Copyright (C) 2006 Free Software Foundation, Inc.
26977 This config.status script is free software; the Free Software Foundation
26978 gives unlimited permission to copy, distribute and modify it."
26985 cat >>$CONFIG_STATUS <<\_ACEOF
26986 # If no file are specified by the user, then we need to provide default
26987 # value. By we need to know if files were specified by the user.
26993 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26994 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27005 # Handling of the options.
27006 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27008 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27009 echo "$ac_cs_version"; exit ;;
27010 --debug |
--debu |
--deb |
--de |
--d |
-d )
27012 --file |
--fil |
--fi |
--f )
27014 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
27015 ac_need_defaults
=false
;;
27016 --header |
--heade |
--head |
--hea )
27018 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
27019 ac_need_defaults
=false
;;
27021 # Conflict between --help and --header
27022 { echo "$as_me: error: ambiguous option: $1
27023 Try \`$0 --help' for more information." >&2
27024 { (exit 1); exit 1; }; };;
27025 --help |
--hel |
-h )
27026 echo "$ac_cs_usage"; exit ;;
27027 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27028 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27031 # This is an error.
27032 -*) { echo "$as_me: error: unrecognized option: $1
27033 Try \`$0 --help' for more information." >&2
27034 { (exit 1); exit 1; }; } ;;
27036 *) ac_config_targets
="$ac_config_targets $1"
27037 ac_need_defaults
=false
;;
27043 ac_configure_extra_args
=
27045 if $ac_cs_silent; then
27047 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27051 cat >>$CONFIG_STATUS <<_ACEOF
27052 if \$ac_cs_recheck; then
27053 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27054 CONFIG_SHELL=$SHELL
27055 export CONFIG_SHELL
27056 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27060 cat >>$CONFIG_STATUS <<\_ACEOF
27064 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27065 ## Running $as_me. ##
27071 cat >>$CONFIG_STATUS <<_ACEOF
27074 cat >>$CONFIG_STATUS <<\_ACEOF
27076 # Handling of arguments.
27077 for ac_config_target
in $ac_config_targets
27079 case $ac_config_target in
27080 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
27081 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
27082 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27083 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
27084 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27085 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
27086 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
27087 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
27088 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
27090 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27091 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27092 { (exit 1); exit 1; }; };;
27097 # If the user did not use the arguments to specify the items to instantiate,
27098 # then the envvar interface is used. Set only those that are not.
27099 # We use the long form for the default assignment because of an extremely
27100 # bizarre bug on SunOS 4.1.3.
27101 if $ac_need_defaults; then
27102 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27103 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27106 # Have a temporary directory for convenience. Make it in the build tree
27107 # simply because there is no reason against having it here, and in addition,
27108 # creating and moving files from /tmp can sometimes cause problems.
27109 # Hook for its removal unless debugging.
27110 # Note that there is a small window in which the directory will not be cleaned:
27111 # after its creation but before its name has been assigned to `$tmp'.
27115 trap 'exit_status=$?
27116 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27118 trap '{ (exit 1); exit 1; }' 1 2 13 15
27120 # Create a (secure) tmp directory for tmp files.
27123 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27124 test -n "$tmp" && test -d "$tmp"
27127 tmp
=.
/conf$$
-$RANDOM
27128 (umask 077 && mkdir
"$tmp")
27131 echo "$me: cannot create a temporary directory in ." >&2
27132 { (exit 1); exit 1; }
27136 # Set up the sed scripts for CONFIG_FILES section.
27139 # No need to generate the scripts if there are no CONFIG_FILES.
27140 # This happens for instance when ./config.status config.h
27141 if test -n "$CONFIG_FILES"; then
27148 for ac_last_try
in false false false false false
:; do
27149 cat >conf$
$subs.
sed <<_ACEOF
27150 SHELL!$SHELL$ac_delim
27151 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27152 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27153 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27154 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27155 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27156 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27157 exec_prefix!$exec_prefix$ac_delim
27158 prefix!$prefix$ac_delim
27159 program_transform_name!$program_transform_name$ac_delim
27160 bindir!$bindir$ac_delim
27161 sbindir!$sbindir$ac_delim
27162 libexecdir!$libexecdir$ac_delim
27163 datarootdir!$datarootdir$ac_delim
27164 datadir!$datadir$ac_delim
27165 sysconfdir!$sysconfdir$ac_delim
27166 sharedstatedir!$sharedstatedir$ac_delim
27167 localstatedir!$localstatedir$ac_delim
27168 includedir!$includedir$ac_delim
27169 oldincludedir!$oldincludedir$ac_delim
27170 docdir!$docdir$ac_delim
27171 infodir!$infodir$ac_delim
27172 htmldir!$htmldir$ac_delim
27173 dvidir!$dvidir$ac_delim
27174 pdfdir!$pdfdir$ac_delim
27175 psdir!$psdir$ac_delim
27176 libdir!$libdir$ac_delim
27177 localedir!$localedir$ac_delim
27178 mandir!$mandir$ac_delim
27179 DEFS!$DEFS$ac_delim
27180 ECHO_C!$ECHO_C$ac_delim
27181 ECHO_N!$ECHO_N$ac_delim
27182 ECHO_T!$ECHO_T$ac_delim
27183 LIBS!$LIBS$ac_delim
27184 build_alias!$build_alias$ac_delim
27185 host_alias!$host_alias$ac_delim
27186 target_alias!$target_alias$ac_delim
27187 VERSION!$VERSION$ac_delim
27188 SOVERSION!$SOVERSION$ac_delim
27189 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
27190 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
27191 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
27192 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
27193 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
27194 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
27195 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
27196 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
27197 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
27198 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
27199 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
27200 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
27201 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
27202 MACHDEP!$MACHDEP$ac_delim
27203 SGI_ABI!$SGI_ABI$ac_delim
27204 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
27205 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
27206 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
27207 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
27209 CFLAGS!$CFLAGS$ac_delim
27210 LDFLAGS!$LDFLAGS$ac_delim
27211 CPPFLAGS!$CPPFLAGS$ac_delim
27212 ac_ct_CC!$ac_ct_CC$ac_delim
27213 EXEEXT!$EXEEXT$ac_delim
27214 OBJEXT!$OBJEXT$ac_delim
27216 MAINCC!$MAINCC$ac_delim
27218 GREP!$GREP$ac_delim
27219 EGREP!$EGREP$ac_delim
27220 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
27221 LIBRARY!$LIBRARY$ac_delim
27222 LDLIBRARY!$LDLIBRARY$ac_delim
27223 DLLLIBRARY!$DLLLIBRARY$ac_delim
27224 BLDLIBRARY!$BLDLIBRARY$ac_delim
27225 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
27226 INSTSONAME!$INSTSONAME$ac_delim
27227 RUNSHARED!$RUNSHARED$ac_delim
27228 LINKCC!$LINKCC$ac_delim
27229 GNULD!$GNULD$ac_delim
27230 RANLIB!$RANLIB$ac_delim
27232 ARFLAGS!$ARFLAGS$ac_delim
27233 SVNVERSION!$SVNVERSION$ac_delim
27234 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27235 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27236 INSTALL_DATA!$INSTALL_DATA$ac_delim
27239 BASECFLAGS!$BASECFLAGS$ac_delim
27240 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
27241 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
27242 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
27244 LDSHARED!$LDSHARED$ac_delim
27245 BLDSHARED!$BLDSHARED$ac_delim
27246 CCSHARED!$CCSHARED$ac_delim
27249 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27251 elif $ac_last_try; then
27252 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27253 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27254 { (exit 1); exit 1; }; }
27256 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27260 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27261 if test -n "$ac_eof"; then
27262 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27263 ac_eof
=`expr $ac_eof + 1`
27266 cat >>$CONFIG_STATUS <<_ACEOF
27267 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27271 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27272 s/^/s,@/; s/!/@,|#_!!_#|/
27275 s/'"$ac_delim"'$/,g/; t
27277 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27278 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27279 rm -f conf$
$subs.
sed
27280 cat >>$CONFIG_STATUS <<_ACEOF
27286 for ac_last_try
in false false false false false
:; do
27287 cat >conf$
$subs.
sed <<_ACEOF
27288 LINKFORSHARED!$LINKFORSHARED$ac_delim
27289 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
27290 SHLIBS!$SHLIBS$ac_delim
27291 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
27292 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
27293 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
27294 LDLAST!$LDLAST$ac_delim
27295 THREADOBJ!$THREADOBJ$ac_delim
27296 DLINCLDIR!$DLINCLDIR$ac_delim
27297 DYNLOADFILE!$DYNLOADFILE$ac_delim
27298 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
27299 TRUE!$TRUE$ac_delim
27300 LIBOBJS!$LIBOBJS$ac_delim
27301 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
27302 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
27303 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
27304 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
27305 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
27306 LIBM!$LIBM$ac_delim
27307 LIBC!$LIBC$ac_delim
27308 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
27309 THREADHEADERS!$THREADHEADERS$ac_delim
27310 SRCDIRS!$SRCDIRS$ac_delim
27311 LTLIBOBJS!$LTLIBOBJS$ac_delim
27314 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
27316 elif $ac_last_try; then
27317 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27318 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27319 { (exit 1); exit 1; }; }
27321 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27325 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27326 if test -n "$ac_eof"; then
27327 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27328 ac_eof
=`expr $ac_eof + 1`
27331 cat >>$CONFIG_STATUS <<_ACEOF
27332 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27336 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27337 s/^/s,@/; s/!/@,|#_!!_#|/
27340 s/'"$ac_delim"'$/,g/; t
27342 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27343 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27344 rm -f conf$
$subs.
sed
27345 cat >>$CONFIG_STATUS <<_ACEOF
27352 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27353 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27354 # trailing colons and then remove the whole line if VPATH becomes empty
27355 # (actually we leave an empty line to preserve line numbers).
27356 if test "x$srcdir" = x.
; then
27357 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
27358 s/:*\$(srcdir):*/:/
27359 s/:*\${srcdir}:*/:/
27361 s/^\([^=]*=[ ]*\):*/\1/
27367 cat >>$CONFIG_STATUS <<\_ACEOF
27368 fi # test -n "$CONFIG_FILES"
27371 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
27374 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27376 case $ac_mode$ac_tag in
27378 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27379 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27380 { (exit 1); exit 1; }; };;
27381 :[FH
]-) ac_tag
=-:-;;
27382 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27399 -) ac_f
="$tmp/stdin";;
27400 *) # Look for the file first in the build tree, then in the source tree
27401 # (if the path is not absolute). The absolute path cannot be DOS-style,
27402 # because $ac_f cannot contain `:'.
27406 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27408 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27409 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27410 { (exit 1); exit 1; }; };;
27412 ac_file_inputs
="$ac_file_inputs $ac_f"
27415 # Let's still pretend it is `configure' which instantiates (i.e., don't
27416 # use $as_me), people would be surprised to read:
27417 # /* config.h. Generated by config.status. */
27418 configure_input
="Generated from "`IFS=:
27419 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27420 if test x
"$ac_file" != x-
; then
27421 configure_input
="$ac_file. $configure_input"
27422 { echo "$as_me:$LINENO: creating $ac_file" >&5
27423 echo "$as_me: creating $ac_file" >&6;}
27427 *:-:* |
*:-) cat >"$tmp/stdin";;
27432 ac_dir
=`$as_dirname -- "$ac_file" ||
27433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27434 X"$ac_file" : 'X\(//\)[^/]' \| \
27435 X"$ac_file" : 'X\(//\)$' \| \
27436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27442 /^X\(\/\/\)[^/].*/{
27457 -*) as_dir
=.
/$as_dir;;
27459 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27463 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27464 *) as_qdir
=$as_dir;;
27466 as_dirs
="'$as_qdir' $as_dirs"
27467 as_dir
=`$as_dirname -- "$as_dir" ||
27468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27469 X"$as_dir" : 'X\(//\)[^/]' \| \
27470 X"$as_dir" : 'X\(//\)$' \| \
27471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27477 /^X\(\/\/\)[^/].*/{
27490 test -d "$as_dir" && break
27492 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27493 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27494 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27495 { (exit 1); exit 1; }; }; }
27499 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27501 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27502 # A ".." for each directory in $ac_dir_suffix.
27503 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27504 case $ac_top_builddir_sub in
27505 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27506 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27509 ac_abs_top_builddir
=$ac_pwd
27510 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27511 # for backward compatibility:
27512 ac_top_builddir
=$ac_top_build_prefix
27515 .
) # We are building in place.
27517 ac_top_srcdir
=$ac_top_builddir_sub
27518 ac_abs_top_srcdir
=$ac_pwd ;;
27519 [\\/]* | ?
:[\\/]* ) # Absolute name.
27520 ac_srcdir
=$srcdir$ac_dir_suffix;
27521 ac_top_srcdir
=$srcdir
27522 ac_abs_top_srcdir
=$srcdir ;;
27523 *) # Relative name.
27524 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27525 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27526 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27528 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27538 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27539 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27543 cat >>$CONFIG_STATUS <<\_ACEOF
27544 # If the template does not know about datarootdir, expand it.
27545 # FIXME: This hack should be removed a few years after 2.60.
27546 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27548 case `sed -n '/datarootdir/ {
27557 ' $ac_file_inputs` in
27558 *datarootdir
*) ac_datarootdir_seen
=yes;;
27559 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27560 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27561 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27563 cat >>$CONFIG_STATUS <<_ACEOF
27564 ac_datarootdir_hack='
27565 s&@datadir@&$datadir&g
27566 s&@docdir@&$docdir&g
27567 s&@infodir@&$infodir&g
27568 s&@localedir@&$localedir&g
27569 s&@mandir@&$mandir&g
27570 s&\\\${datarootdir}&$datarootdir&g' ;;
27574 # Neutralize VPATH when `$srcdir' = `.'.
27575 # Shell code in configure.ac might set extrasub.
27576 # FIXME: do we really want to maintain this feature?
27577 cat >>$CONFIG_STATUS <<_ACEOF
27581 cat >>$CONFIG_STATUS <<\_ACEOF
27583 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27584 s
&@configure_input@
&$configure_input&;t t
27585 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27586 s
&@srcdir@
&$ac_srcdir&;t t
27587 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27588 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27589 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27590 s
&@builddir@
&$ac_builddir&;t t
27591 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27592 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27593 s
&@INSTALL@
&$ac_INSTALL&;t t
27594 $ac_datarootdir_hack
27595 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
27597 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27598 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27600 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27601 which seems to be undefined. Please make sure it is defined." >&5
27602 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27603 which seems to be undefined. Please make sure it is defined." >&2;}
27607 -) cat "$tmp/out"; rm -f "$tmp/out";;
27608 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27617 # Transform confdefs.h into a sed script `conftest.defines', that
27618 # substitutes the proper values into config.h.in to produce config.h.
27619 rm -f conftest.defines conftest.
tail
27620 # First, append a space to every undef/define line, to ease matching.
27621 echo 's/$/ /' >conftest.defines
27622 # Then, protect against being on the right side of a sed subst, or in
27623 # an unquoted here document, in config.status. If some macros were
27624 # called several times there might be several #defines for the same
27625 # symbol, which is useless. But do not sort them, since the last
27626 # AC_DEFINE must be honored.
27627 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27628 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27629 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27630 # PARAMS is the parameter list in the macro definition--in most cases, it's
27631 # just an empty string.
27632 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27633 ac_dB
='\\)[ (].*,\\1define\\2'
27641 s/^[ ]*#[ ]*define[ ][ ]*//
27646 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27647 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27648 ' >>conftest.defines
27650 # Remove the space that was appended to ease matching.
27651 # Then replace #undef with comments. This is necessary, for
27652 # example, in the case of _POSIX_SOURCE, which is predefined and required
27653 # on some systems where configure will not decide to define it.
27654 # (The regexp can be short, since the line contains either #define or #undef.)
27656 s,^[ #]*u.*,/* & */,' >>conftest.defines
27658 # Break up conftest.defines:
27659 ac_max_sed_lines
=50
27661 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27662 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27663 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27665 ac_in
='$ac_file_inputs'
27666 ac_out
='"$tmp/out1"'
27667 ac_nxt
='"$tmp/out2"'
27671 # Write a here document:
27672 cat >>$CONFIG_STATUS <<_ACEOF
27673 # First, check the format of the line:
27674 cat >"\$tmp/defines.sed" <<\\CEOF
27675 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27676 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27680 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27682 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27683 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27684 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27685 grep . conftest.
tail >/dev
/null ||
break
27686 rm -f conftest.defines
27687 mv conftest.
tail conftest.defines
27689 rm -f conftest.defines conftest.
tail
27691 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27692 cat >>$CONFIG_STATUS <<\_ACEOF
27693 if test x
"$ac_file" != x-
; then
27694 echo "/* $configure_input */" >"$tmp/config.h"
27695 cat "$ac_result" >>"$tmp/config.h"
27696 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27697 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27698 echo "$as_me: $ac_file is unchanged" >&6;}
27701 mv "$tmp/config.h" $ac_file
27704 echo "/* $configure_input */"
27716 { (exit 0); exit 0; }
27718 chmod +x
$CONFIG_STATUS
27719 ac_clean_files
=$ac_clean_files_save
27722 # configure is writing to config.log, and then calls config.status.
27723 # config.status does its own redirection, appending to config.log.
27724 # Unfortunately, on DOS this fails, as config.log is still kept open
27725 # by configure, so config.status won't be able to write to it; its
27726 # output is simply discarded. So we exec the FD to /dev/null,
27727 # effectively closing config.log, so it can be properly (re)opened and
27728 # appended to by config.status. When coming back to configure, we
27729 # need to make the FD available again.
27730 if test "$no_create" != yes; then
27732 ac_config_status_args
=
27733 test "$silent" = yes &&
27734 ac_config_status_args
="$ac_config_status_args --quiet"
27736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27739 # would make configure fail if this is the last instruction.
27740 $ac_cs_success ||
{ (exit 1); exit 1; }
27744 echo "creating Modules/Setup"
27745 if test ! -f Modules
/Setup
27747 cp $srcdir/Modules
/Setup.dist Modules
/Setup
27750 echo "creating Modules/Setup.local"
27751 if test ! -f Modules
/Setup.
local
27753 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
27756 echo "creating Makefile"
27757 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
27758 -s Modules Modules
/Setup.config \
27759 Modules
/Setup.
local Modules
/Setup
27761 case $ac_sys_system in
27763 { echo "$as_me:$LINENO: WARNING:
27765 Support for BeOS is deprecated as of Python 2.6.
27766 See PEP 11 for the gory details.
27768 echo "$as_me: WARNING:
27770 Support for BeOS is deprecated as of Python 2.6.
27771 See PEP 11 for the gory details.
27777 mv config.c Modules