2 # From configure.in Revision: 74715 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='2.7'
579 PACKAGE_STRING
='python 2.7'
580 PACKAGE_BUGREPORT
='http://bugs.python.org/'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
741 ac_precious_vars
='build_alias
752 # Initialize some variables set by options.
754 ac_init_version
=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name
=s
,x
,x
,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir
='${exec_prefix}/bin'
779 sbindir
='${exec_prefix}/sbin'
780 libexecdir
='${exec_prefix}/libexec'
781 datarootdir
='${prefix}/share'
782 datadir
='${datarootdir}'
783 sysconfdir
='${prefix}/etc'
784 sharedstatedir
='${prefix}/com'
785 localstatedir
='${prefix}/var'
786 includedir
='${prefix}/include'
787 oldincludedir
='/usr/include'
788 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir
='${datarootdir}/info'
794 libdir
='${exec_prefix}/lib'
795 localedir
='${datarootdir}/locale'
796 mandir
='${datarootdir}/man'
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\
$ac_option
810 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
820 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
822 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
825 -build |
--build |
--buil |
--bui |
--bu)
826 ac_prev
=build_alias
;;
827 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
828 build_alias
=$ac_optarg ;;
830 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
831 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
832 ac_prev
=cache_file
;;
833 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
834 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
835 cache_file
=$ac_optarg ;;
838 cache_file
=config.cache
;;
840 -datadir |
--datadir |
--datadi |
--datad)
842 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
843 datadir
=$ac_optarg ;;
845 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
846 |
--dataroo |
--dataro |
--datar)
847 ac_prev
=datarootdir
;;
848 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
849 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
850 datarootdir
=$ac_optarg ;;
852 -disable-* |
--disable-*)
853 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_
$ac_feature=no
;;
861 -docdir |
--docdir |
--docdi |
--doc |
--do)
863 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
866 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
868 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
871 -enable-* |
--enable-*)
872 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_
$ac_feature=\
$ac_optarg ;;
880 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
881 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
882 |
--exec |
--exe |
--ex)
883 ac_prev
=exec_prefix
;;
884 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
885 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
886 |
--exec=* |
--exe=* |
--ex=*)
887 exec_prefix
=$ac_optarg ;;
889 -gas |
--gas |
--ga |
--g)
890 # Obsolete; use --with-gas.
893 -help |
--help |
--hel |
--he |
-h)
895 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
896 ac_init_help
=recursive
;;
897 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
898 ac_init_help
=short
;;
900 -host |
--host |
--hos |
--ho)
901 ac_prev
=host_alias
;;
902 -host=* |
--host=* |
--hos=* |
--ho=*)
903 host_alias
=$ac_optarg ;;
905 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
907 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
909 htmldir
=$ac_optarg ;;
911 -includedir |
--includedir |
--includedi |
--included |
--include \
912 |
--includ |
--inclu |
--incl |
--inc)
913 ac_prev
=includedir
;;
914 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
915 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
916 includedir
=$ac_optarg ;;
918 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
920 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
921 infodir
=$ac_optarg ;;
923 -libdir |
--libdir |
--libdi |
--libd)
925 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
928 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
929 |
--libexe |
--libex |
--libe)
930 ac_prev
=libexecdir
;;
931 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
932 |
--libexe=* |
--libex=* |
--libe=*)
933 libexecdir
=$ac_optarg ;;
935 -localedir |
--localedir |
--localedi |
--localed |
--locale)
937 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
938 localedir
=$ac_optarg ;;
940 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
941 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
942 ac_prev
=localstatedir
;;
943 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
944 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
945 localstatedir
=$ac_optarg ;;
947 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
949 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
953 # Obsolete; use --without-fp.
956 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
957 |
--no-cr |
--no-c |
-n)
960 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
961 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
964 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
965 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
966 |
--oldin |
--oldi |
--old |
--ol |
--o)
967 ac_prev
=oldincludedir
;;
968 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
969 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
970 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
971 oldincludedir
=$ac_optarg ;;
973 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
975 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
978 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
979 |
--program-pre |
--program-pr |
--program-p)
980 ac_prev
=program_prefix
;;
981 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
982 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
983 program_prefix
=$ac_optarg ;;
985 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
986 |
--program-suf |
--program-su |
--program-s)
987 ac_prev
=program_suffix
;;
988 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
989 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
990 program_suffix
=$ac_optarg ;;
992 -program-transform-name |
--program-transform-name \
993 |
--program-transform-nam |
--program-transform-na \
994 |
--program-transform-n |
--program-transform- \
995 |
--program-transform |
--program-transfor \
996 |
--program-transfo |
--program-transf \
997 |
--program-trans |
--program-tran \
998 |
--progr-tra |
--program-tr |
--program-t)
999 ac_prev
=program_transform_name
;;
1000 -program-transform-name=* |
--program-transform-name=* \
1001 |
--program-transform-nam=* |
--program-transform-na=* \
1002 |
--program-transform-n=* |
--program-transform-=* \
1003 |
--program-transform=* |
--program-transfor=* \
1004 |
--program-transfo=* |
--program-transf=* \
1005 |
--program-trans=* |
--program-tran=* \
1006 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1007 program_transform_name
=$ac_optarg ;;
1009 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1011 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1012 pdfdir
=$ac_optarg ;;
1014 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1016 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1019 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1020 |
-silent |
--silent |
--silen |
--sile |
--sil)
1023 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1025 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1027 sbindir
=$ac_optarg ;;
1029 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1030 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1031 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1033 ac_prev
=sharedstatedir
;;
1034 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1035 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1036 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1038 sharedstatedir
=$ac_optarg ;;
1040 -site |
--site |
--sit)
1042 -site=* |
--site=* |
--sit=*)
1045 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1047 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1048 srcdir
=$ac_optarg ;;
1050 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1051 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1052 ac_prev
=sysconfdir
;;
1053 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1054 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1055 sysconfdir
=$ac_optarg ;;
1057 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1058 ac_prev
=target_alias
;;
1059 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1060 target_alias
=$ac_optarg ;;
1062 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1065 -version |
--version |
--versio |
--versi |
--vers |
-V)
1066 ac_init_version
=: ;;
1069 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_
$ac_package=\
$ac_optarg ;;
1077 -without-* |
--without-*)
1078 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_
$ac_package=no
;;
1087 # Obsolete; use --with-x.
1090 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1091 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1092 ac_prev
=x_includes
;;
1093 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1094 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1095 x_includes
=$ac_optarg ;;
1097 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1098 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1099 ac_prev
=x_libraries
;;
1100 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1101 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1102 x_libraries
=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\
$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 if test -n "$ac_prev"; then
1130 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val
=\$
$ac_var
1143 [\\/$
]* | ?
:[\\/]* ) continue;;
1144 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1155 target
=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x
; then
1159 if test "x$build_alias" = x
; then
1160 cross_compiling
=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1169 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1171 test "$silent" = yes && exec 6>/dev
/null
1174 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di
=`ls -di .` &&
1176 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted
=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir
=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1216 ac_srcdir_defaulted
=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1236 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 for ac_var
in $ac_precious_vars; do
1239 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1241 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1252 \`configure' configures python 2.7 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1311 if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive
) echo "Configuration of python 2.7:";;
1318 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1319 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1320 --enable-universalsdk[=SDKDIR
]
1321 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1322 --enable-framework[=INSTALLDIR
]
1323 Build
(MacOSX|Darwin
) framework
1324 --enable-shared disable
/enable building shared python library
1325 --enable-profiling enable C-level code profiling
1326 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1327 --enable-ipv6 Enable ipv6
(with ipv4
) support
1328 --disable-ipv6 Disable ipv6 support
1329 --enable-big-digits[=BITS
]
1330 use big digits
for Python longs
[BITS
=30]
1331 --enable-unicode[=ucs
[24]]
1332 Enable Unicode
strings (default is
yes)
1335 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1336 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1337 --with-universal-archs=ARCH
1338 select architectures
for universal build
("32-bit",
1339 "64-bit", "3-way", "intel" or
"all")
1340 --with-framework-name=FRAMEWORK
1341 specify an alternate name of the framework built
1342 with
--enable-framework
1343 --without-gcc never use gcc
1344 --with-cxx-main=<compiler
>
1345 compile main
() and link python executable with C
++
1347 --with-suffix=.exe
set executable suffix
1348 --with-pydebug build with Py_DEBUG defined
1349 --with-libs='lib1 ...' link against additional libs
1350 --with-system-ffi build _ctypes module using an installed ffi library
1351 --with-dbmliborder=db1
:db2
:...
1352 order to check db backends
for dbm. Valid value is a
1353 colon separated string with the backend names
1354 `ndbm', `gdbm
' and `bdb'.
1355 --with-signal-module disable
/enable signal module
1356 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1357 --with(out
)-threads[=DIRECTORY
]
1358 disable
/enable thread support
1359 --with(out
)-thread[=DIRECTORY
]
1360 deprecated
; use
--with(out
)-threads
1361 --with-pth use GNU pth threading libraries
1362 --with(out
)-doc-strings disable
/enable documentation
strings
1363 --with(out
)-tsc enable
/disable timestamp counter profile
1364 --with(out
)-pymalloc disable
/enable specialized mallocs
1365 --with-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=
1916 UNIVERSAL_ARCHS="32-bit"
1917 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1918 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1920 # Check whether --with-universal-archs was given.
1921 if test "${with_universal_archs+set}" = set; then
1922 withval=$with_universal_archs;
1923 { echo "$as_me:$LINENO: result: $withval" >&5
1924 echo "${ECHO_T}$withval" >&6; }
1925 UNIVERSAL_ARCHS="$withval"
1929 { echo "$as_me:$LINENO: result: 32-bit" >&5
1930 echo "${ECHO_T}32-bit" >&6; }
1938 # Check whether --with-framework-name was given.
1939 if test "${with_framework_name+set}" = set; then
1940 withval=$with_framework_name;
1941 PYTHONFRAMEWORK=${withval}
1942 PYTHONFRAMEWORKDIR=${withval}.framework
1943 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1947 PYTHONFRAMEWORK=Python
1948 PYTHONFRAMEWORKDIR=Python.framework
1949 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1953 # Check whether --enable-framework was given.
1954 if test "${enable_framework+set}" = set; then
1955 enableval=$enable_framework;
1958 enableval=/Library/Frameworks
1963 PYTHONFRAMEWORKDIR=no-framework
1964 PYTHONFRAMEWORKPREFIX=
1965 PYTHONFRAMEWORKINSTALLDIR=
1966 FRAMEWORKINSTALLFIRST=
1967 FRAMEWORKINSTALLLAST=
1968 FRAMEWORKALTINSTALLFIRST=
1969 FRAMEWORKALTINSTALLLAST=
1970 if test "x${prefix}" = "xNONE"; then
1971 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1973 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1978 PYTHONFRAMEWORKPREFIX=$enableval
1979 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1980 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1981 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1982 if test "$UNIVERSAL_ARCHS" = "all"
1984 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1985 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1987 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1988 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1991 if test "x${prefix}" = "xNONE" ; then
1992 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1994 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1996 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1998 # Add files for Mac specific code to the list of output
2000 ac_config_files="$ac_config_files Mac/Makefile"
2002 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2004 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2006 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2008 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2015 PYTHONFRAMEWORKDIR=no-framework
2016 PYTHONFRAMEWORKPREFIX=
2017 PYTHONFRAMEWORKINSTALLDIR=
2018 FRAMEWORKINSTALLFIRST=
2019 FRAMEWORKINSTALLLAST=
2020 FRAMEWORKALTINSTALLFIRST=
2021 FRAMEWORKALTINSTALLLAST=
2022 if test "x${prefix}" = "xNONE" ; then
2023 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2025 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2029 if test "$UNIVERSAL_ARCHS" = "all"
2031 FRAMEWORKINSTALLLAST=update4wayuniversal
2032 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2049 ## AC_HELP_STRING(--with-dyld,
2050 ## Use (OpenStep|Rhapsody) dynamic linker))
2052 # Set name for machine-dependent library files
2054 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2055 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2056 if test -z "$MACHDEP"
2058 ac_sys_system=`uname
-s`
2059 if test "$ac_sys_system" = "AIX" \
2060 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2061 ac_sys_release=`uname
-v`
2063 ac_sys_release=`uname
-r`
2065 ac_md_system=`echo $ac_sys_system |
2066 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2067 ac_md_release=`echo $ac_sys_release |
2068 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2069 MACHDEP="$ac_md_system$ac_md_release"
2072 cygwin*) MACHDEP="cygwin";;
2073 darwin*) MACHDEP="darwin";;
2074 atheos*) MACHDEP="atheos";;
2075 irix646) MACHDEP="irix6";;
2076 '') MACHDEP="unknown";;
2080 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2081 # disable features if it is defined, without any means to access these
2082 # features as extensions. For these systems, we skip the definition of
2083 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2084 # some feature, make sure there is no alternative way to access this
2085 # feature. Also, when using wildcards, make sure you have verified the
2086 # need for not defining _XOPEN_SOURCE on all systems matching the
2087 # wildcard, and that the wildcard does not include future systems
2088 # (which may remove their limitations).
2089 case $ac_sys_system/$ac_sys_release in
2090 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2091 # even though select is a POSIX function. Reported by J. Ribbens.
2092 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2093 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2094 define_xopen_source=no
2095 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2096 # also defined. This can be overridden by defining _BSD_SOURCE
2097 # As this has a different meaning on Linux, only define it on OpenBSD
2099 cat >>confdefs.h <<\_ACEOF
2100 #define _BSD_SOURCE 1
2104 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2105 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2107 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2108 define_xopen_source=no;;
2109 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2110 # of union __?sigval. Reported by Stuart Bishop.
2112 define_xopen_source=no;;
2113 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2114 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2115 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2116 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2117 define_xopen_source=no;;
2118 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2119 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2121 define_xopen_source=no;;
2122 # On FreeBSD 4, the math functions C89 does not cover are never defined
2123 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2125 define_xopen_source=no;;
2126 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2127 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2128 # identifies itself as Darwin/7.*
2129 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2130 # disables platform specific features beyond repair.
2131 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2132 # has no effect, don't bother defining them
2134 define_xopen_source=no;;
2135 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2136 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2137 # or has another value. By not (re)defining it, the defaults come in place.
2139 define_xopen_source=no;;
2141 if test `uname
-r` -eq 1; then
2142 define_xopen_source=no
2145 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2146 # defining NI_NUMERICHOST.
2148 define_xopen_source=no
2153 if test $define_xopen_source = yes
2155 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2156 # defined precisely as g++ defines it
2157 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2159 case $ac_sys_system/$ac_sys_release in
2160 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2162 cat >>confdefs.h <<\_ACEOF
2163 #define _XOPEN_SOURCE 500
2169 cat >>confdefs.h <<\_ACEOF
2170 #define _XOPEN_SOURCE 600
2176 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2177 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2178 # several APIs are not declared. Since this is also needed in some
2179 # cases for HP-UX, we define it globally.
2180 # except for Solaris 10, where it must not be defined,
2181 # as it implies XPG4.2
2182 case $ac_sys_system/$ac_sys_release in
2187 cat >>confdefs.h <<\_ACEOF
2188 #define _XOPEN_SOURCE_EXTENDED 1
2195 cat >>confdefs.h <<\_ACEOF
2196 #define _POSIX_C_SOURCE 200112L
2203 # SGI compilers allow the specification of the both the ABI and the
2204 # ISA on the command line. Depending on the values of these switches,
2205 # different and often incompatable code will be generated.
2207 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2208 # thus supply support for various ABI/ISA combinations. The MACHDEP
2209 # variable is also adjusted.
2212 if test ! -z "$SGI_ABI"
2215 LDFLAGS="$SGI_ABI $LDFLAGS"
2216 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2218 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2219 echo "${ECHO_T}$MACHDEP" >&6; }
2221 # And add extra plat-mac for darwin
2224 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2225 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2226 if test -z "$EXTRAPLATDIR"
2230 EXTRAPLATDIR="\$(PLATMACDIRS)"
2231 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2239 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2240 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2242 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2243 # it may influence the way we can build extensions, so distutils
2247 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2248 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2250 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2251 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2252 ac_sys_machine=`uname
-m`
2253 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2254 echo "${ECHO_T}$ac_sys_machine" >&6; }
2256 # checks for alternative programs
2258 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2259 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2260 # just to get things to compile and link. Users are free to override OPT
2261 # when running configure or make. The build should not break if they do.
2262 # BASECFLAGS should generally not be messed with, however.
2264 # XXX shouldn't some/most/all of this code be merged with the stuff later
2265 # on that fiddles with OPT and BASECFLAGS?
2266 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2267 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2269 # Check whether --with-gcc was given.
2270 if test "${with_gcc+set}" = set; then
2278 without_gcc=$withval;;
2282 case $ac_sys_system in
2286 case $BE_HOST_CPU in
2290 BASECFLAGS="$BASECFLAGS -export pragma"
2292 LDFLAGS="$LDFLAGS -nodup"
2300 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2301 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2302 { (exit 1); exit 1; }; }
2305 AR="\$(srcdir)/Modules/ar_beos"
2312 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2313 echo "${ECHO_T}$without_gcc" >&6; }
2315 # If the user switches compilers, we can't believe the cache
2316 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2318 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2319 (it is also a good idea to do 'make clean' before compiling)" >&5
2320 echo "$as_me: error: cached CC is different -- throw away $cache_file
2321 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2322 { (exit 1); exit 1; }; }
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330 if test -n "$ac_tool_prefix"; then
2331 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_CC+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 if test -n "$CC"; then
2339 ac_cv_prog_CC="$CC" # Let the user override the test.
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 if test -n "$CC"; then
2360 { echo "$as_me:$LINENO: result: $CC" >&5
2361 echo "${ECHO_T}$CC" >&6; }
2363 { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2369 if test -z "$ac_cv_prog_CC"; then
2371 # Extract the first word of "gcc", so it can be a program name with args.
2372 set dummy gcc; ac_word=$2
2373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 if test -n "$ac_ct_CC"; then
2379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 test -z "$as_dir" && as_dir=.
2386 for ac_exec_ext in '' $ac_executable_extensions; do
2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388 ac_cv_prog_ac_ct_CC="gcc"
2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2399 if test -n "$ac_ct_CC"; then
2400 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2401 echo "${ECHO_T}$ac_ct_CC" >&6; }
2403 { echo "$as_me:$LINENO: result: no" >&5
2404 echo "${ECHO_T}no" >&6; }
2407 if test "x$ac_ct_CC" = x; then
2410 case $cross_compiling:$ac_tool_warned in
2412 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2413 whose name does not start with the host triplet. If you think this
2414 configuration is useful to you, please write to autoconf@gnu.org." >&5
2415 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2416 whose name does not start with the host triplet. If you think this
2417 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2418 ac_tool_warned=yes ;;
2426 if test -z "$CC"; then
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}cc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC="$CC" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_CC="${ac_tool_prefix}cc"
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 if test -n "$CC"; then
2457 { echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6; }
2460 { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2467 if test -z "$CC"; then
2468 # Extract the first word of "cc", so it can be a program name with args.
2469 set dummy cc; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_CC+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2487 ac_prog_rejected=yes
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498 if test $ac_prog_rejected = yes; then
2499 # We found a bogon in the path, so make sure we never use it.
2500 set dummy $ac_cv_prog_CC
2502 if test $# != 0; then
2503 # We chose a different compiler from the bogus one.
2504 # However, it has the same basename, so the bogon will be chosen
2505 # first if we set CC to just the basename; use the full file name.
2507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2513 if test -n "$CC"; then
2514 { echo "$as_me:$LINENO: result: $CC" >&5
2515 echo "${ECHO_T}$CC" >&6; }
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2523 if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
2525 for ac_prog in cl.exe
2527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_CC+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 if test -n "$CC"; then
2556 { echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6; }
2559 { echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6; }
2564 test -n "$CC" && break
2567 if test -z "$CC"; then
2569 for ac_prog in cl.exe
2571 # Extract the first word of "$ac_prog", so it can be a program name with args.
2572 set dummy $ac_prog; ac_word=$2
2573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_ac_ct_CC="$ac_prog"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599 if test -n "$ac_ct_CC"; then
2600 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2601 echo "${ECHO_T}$ac_ct_CC" >&6; }
2603 { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2608 test -n "$ac_ct_CC" && break
2611 if test "x$ac_ct_CC" = x; then
2614 case $cross_compiling:$ac_tool_warned in
2616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2617 whose name does not start with the host triplet. If you think this
2618 configuration is useful to you, please write to autoconf@gnu.org." >&5
2619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2620 whose name does not start with the host triplet. If you think this
2621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2622 ac_tool_warned=yes ;;
2631 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2632 See \`config.log
' for more details." >&5
2633 echo "$as_me: error: no acceptable C compiler found in \$PATH
2634 See \`config.log' for more details.
" >&2;}
2635 { (exit 1); exit 1; }; }
2637 # Provide some information about the compiler.
2638 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2639 ac_compiler=`set X $ac_compile; echo $2`
2640 { (ac_try="$ac_compiler --version >&5"
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compiler --version >&5") 2>&5
2648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2649 (exit $ac_status); }
2650 { (ac_try="$ac_compiler -v >&5"
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compiler -v >&5") 2>&5
2658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2659 (exit $ac_status); }
2660 { (ac_try="$ac_compiler -V >&5"
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2666 (eval "$ac_compiler -V >&5") 2>&5
2668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2669 (exit $ac_status); }
2671 cat >conftest.$ac_ext <<_ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h. */
2686 ac_clean_files_save=$ac_clean_files
2687 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2688 # Try to create an executable without -o first, disregard a.out.
2689 # It will help us diagnose broken compilers, and finding out an intuition
2691 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2692 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2693 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2695 # List of possible output files, starting from the most likely.
2696 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2697 # only as a last resort. b.out is created by i960 compilers.
2698 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2700 # The IRIX 6 linker writes into existing files which may not be
2701 # executable, retaining their permissions. Remove them first so a
2702 # subsequent execution test works.
2704 for ac_file in $ac_files
2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2708 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2713 if { (ac_try="$ac_link_default"
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_link_default") 2>&5
2721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2722 (exit $ac_status); }; then
2723 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2724 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2725 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2726 # so that the user can short-circuit this test for compilers unknown to
2728 for ac_file in $ac_files ''
2730 test -f "$ac_file" || continue
2732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2735 # We found the default executable, but exeext='' is most
2739 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2741 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2743 # We set ac_cv_exeext here because the later test for it is not
2744 # safe: cross compilers may not add the suffix if given an `-o'
2745 # argument, so we may need to know it at that point already.
2746 # Even if this section looks crufty: it has the advantage of
2753 test "$ac_cv_exeext" = no && ac_cv_exeext=
2759 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2760 echo "${ECHO_T}$ac_file" >&6; }
2761 if test -z "$ac_file"; then
2762 echo "$as_me: failed program was
:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2765 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2766 See \
`config.log' for more details." >&5
2767 echo "$as_me: error: C compiler cannot create executables
2768 See \`config.log
' for more details." >&2;}
2769 { (exit 77); exit 77; }; }
2772 ac_exeext=$ac_cv_exeext
2774 # Check that the compiler produces executables we can run. If not, either
2775 # the compiler is broken, or we cross compile.
2776 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2777 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2778 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2779 # If not cross compiling, check that we can run a simple program.
2780 if test "$cross_compiling" != yes; then
2781 if { ac_try='.
/$ac_file'
2782 { (case "(($ac_try" in
2783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784 *) ac_try_echo=$ac_try;;
2786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787 (eval "$ac_try") 2>&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2793 if test "$cross_compiling" = maybe; then
2796 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2797 If you meant to cross compile, use \`--host'.
2798 See \
`config.log' for more details." >&5
2799 echo "$as_me: error: cannot run C compiled programs.
2800 If you meant to cross compile, use \`--host'.
2801 See \`config.log' for more details.
" >&2;}
2802 { (exit 1); exit 1; }; }
2806 { echo "$as_me:$LINENO: result
: yes" >&5
2807 echo "${ECHO_T}yes" >&6; }
2809 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2810 ac_clean_files=$ac_clean_files_save
2811 # Check that the compiler produces executables we can run. If not, either
2812 # the compiler is broken, or we cross compile.
2813 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2814 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2815 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2816 echo "${ECHO_T}$cross_compiling" >&6; }
2818 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2819 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2820 if { (ac_try="$ac_link"
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2826 (eval "$ac_link") 2>&5
2828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2829 (exit $ac_status); }; then
2830 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2831 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2832 # work properly (i.e., refer to `conftest.exe'), while it won't with
2834 for ac_file in conftest.exe conftest conftest.*; do
2835 test -f "$ac_file" || continue
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2838 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2845 See \
`config.log' for more details." >&5
2846 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2847 See \`config.log
' for more details." >&2;}
2848 { (exit 1); exit 1; }; }
2851 rm -f conftest$ac_cv_exeext
2852 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2853 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2855 rm -f conftest.$ac_ext
2856 EXEEXT=$ac_cv_exeext
2858 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2859 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2860 if test "${ac_cv_objext+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 cat >conftest.$ac_ext <<_ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2878 rm -f conftest.o conftest.obj
2879 if { (ac_try="$ac_compile"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_compile") 2>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; then
2889 for ac_file in conftest.o conftest.obj conftest.*; do
2890 test -f "$ac_file" || continue;
2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2893 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2898 echo "$as_me: failed program was:" >&5
2899 sed 's
/^
/|
/' conftest.$ac_ext >&5
2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2902 See \`config.log' for more details.
" >&5
2903 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2904 See \
`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2908 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2910 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2911 echo "${ECHO_T}$ac_cv_objext" >&6; }
2912 OBJEXT=$ac_cv_objext
2914 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2915 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2916 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2941 *) ac_try_echo
=$ac_try;;
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2946 grep -v '^ *+' conftest.er1
>conftest.err
2948 cat conftest.err
>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && {
2951 test -z "$ac_c_werror_flag" ||
2952 test ! -s conftest.err
2953 } && test -s conftest.
$ac_objext; then
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.
$ac_ext >&5
2962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2963 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2966 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2967 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2968 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2969 ac_test_CFLAGS
=${CFLAGS+set}
2970 ac_save_CFLAGS
=$CFLAGS
2971 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2972 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_cc_g+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 ac_save_c_werror_flag
=$ac_c_werror_flag
2977 ac_c_werror_flag
=yes
2980 cat >conftest.
$ac_ext <<_ACEOF
2983 cat confdefs.h
>>conftest.
$ac_ext
2984 cat >>conftest.
$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2995 rm -f conftest.
$ac_objext
2996 if { (ac_try
="$ac_compile"
2998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } && {
3009 test -z "$ac_c_werror_flag" ||
3010 test ! -s conftest.err
3011 } && test -s conftest.$ac_objext; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3037 *) ac_try_echo
=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3042 grep -v '^ *+' conftest.er1
>conftest.err
3044 cat conftest.err
>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } && {
3047 test -z "$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 } && test -s conftest.
$ac_objext; then
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.
$ac_ext >&5
3055 ac_c_werror_flag
=$ac_save_c_werror_flag
3057 cat >conftest.
$ac_ext <<_ACEOF
3060 cat confdefs.h
>>conftest.
$ac_ext
3061 cat >>conftest.
$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 rm -f conftest.
$ac_objext
3073 if { (ac_try
="$ac_compile"
3075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3081 grep -v '^ *+' conftest.er1 >conftest.err
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } && {
3086 test -z "$ac_c_werror_flag" ||
3087 test ! -s conftest.err
3088 } && test -s conftest.$ac_objext; then
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104 ac_c_werror_flag=$ac_save_c_werror_flag
3106 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3107 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3108 if test "$ac_test_CFLAGS" = set; then
3109 CFLAGS=$ac_save_CFLAGS
3110 elif test $ac_cv_prog_cc_g = yes; then
3111 if test "$GCC" = yes; then
3117 if test "$GCC" = yes; then
3123 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3124 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3125 if test "${ac_cv_prog_cc_c89+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 ac_cv_prog_cc_c89=no
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3138 #include <sys/types.h>
3139 #include <sys/stat.h>
3140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3141 struct buf { int x; };
3142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3143 static char *e (p, i)
3149 static char *f (char * (*g) (char **, int), char **p, ...)
3154 s = g (p, va_arg (v,int));
3159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3160 function prototypes and stuff, but not '\xHH' hex character constants.
3161 These don't provoke an error unfortunately, instead are silently treated
3162 as 'x'. The following induces an error, until -std is added to get
3163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3164 array size at least. It's necessary to write '\x00'==0 to get something
3165 that's true only with -std. */
3166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3169 inside strings and character constants. */
3171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3173 int test (int i, double x);
3174 struct s1 {int (*f) (int a);};
3175 struct s2 {int (*f) (double a);};
3176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3182 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3187 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3188 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3190 CC="$ac_save_CC $ac_arg"
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3195 *) ac_try_echo
=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3200 grep -v '^ *+' conftest.er1
>conftest.err
3202 cat conftest.err
>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } && {
3205 test -z "$ac_c_werror_flag" ||
3206 test ! -s conftest.err
3207 } && test -s conftest.
$ac_objext; then
3208 ac_cv_prog_cc_c89
=$ac_arg
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.
$ac_ext >&5
3216 rm -f core conftest.err conftest.
$ac_objext
3217 test "x$ac_cv_prog_cc_c89" != "xno" && break
3219 rm -f conftest.
$ac_ext
3224 case "x$ac_cv_prog_cc_c89" in
3226 { echo "$as_me:$LINENO: result: none needed" >&5
3227 echo "${ECHO_T}none needed" >&6; } ;;
3229 { echo "$as_me:$LINENO: result: unsupported" >&5
3230 echo "${ECHO_T}unsupported" >&6; } ;;
3232 CC
="$CC $ac_cv_prog_cc_c89"
3233 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3234 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3239 ac_cpp
='$CPP $CPPFLAGS'
3240 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3247 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3248 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3250 # Check whether --with-cxx_main was given.
3251 if test "${with_cxx_main+set}" = set; then
3252 withval
=$with_cxx_main;
3255 no
) with_cxx_main
=no
3257 yes) with_cxx_main
=yes
3259 *) with_cxx_main
=yes
3273 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3274 echo "${ECHO_T}$with_cxx_main" >&6; }
3280 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3281 set dummy g
++; ac_word
=$2
3282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3284 if test "${ac_cv_path_CXX+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3293 for as_dir
in notfound
3296 test -z "$as_dir" && as_dir
=.
3297 for ac_exec_ext
in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3312 if test -n "$CXX"; then
3313 { echo "$as_me:$LINENO: result: $CXX" >&5
3314 echo "${ECHO_T}$CXX" >&6; }
3316 { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3321 cc
) # Extract the first word of "c++", so it can be a program name with args.
3322 set dummy c
++; ac_word
=$2
3323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3325 if test "${ac_cv_path_CXX+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3334 for as_dir
in notfound
3337 test -z "$as_dir" && as_dir
=.
3338 for ac_exec_ext
in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3353 if test -n "$CXX"; then
3354 { echo "$as_me:$LINENO: result: $CXX" >&5
3355 echo "${ECHO_T}$CXX" >&6; }
3357 { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3363 if test "$CXX" = "notfound"
3370 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3372 # Extract the first word of "$ac_prog", so it can be a program name with args.
3373 set dummy
$ac_prog; ac_word
=$2
3374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3376 if test "${ac_cv_prog_CXX+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 if test -n "$CXX"; then
3380 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3386 test -z "$as_dir" && as_dir
=.
3387 for ac_exec_ext
in '' $ac_executable_extensions; do
3388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389 ac_cv_prog_CXX
="$ac_prog"
3390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 if test -n "$CXX"; then
3401 { echo "$as_me:$LINENO: result: $CXX" >&5
3402 echo "${ECHO_T}$CXX" >&6; }
3404 { echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6; }
3409 test -n "$CXX" && break
3411 test -n "$CXX" || CXX
="notfound"
3413 if test "$CXX" = "notfound"
3418 if test "$preset_cxx" != "$CXX"
3420 { echo "$as_me:$LINENO: WARNING:
3422 By default, distutils will build C++ extension modules with \"$CXX\".
3423 If this is not intended, then set CXX on the configure command line.
3425 echo "$as_me: WARNING:
3427 By default, distutils will build C++ extension modules with \"$CXX\".
3428 If this is not intended, then set CXX on the configure command line.
3433 # checks for UNIX variants that set C preprocessor variables
3436 ac_cpp
='$CPP $CPPFLAGS'
3437 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3440 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3441 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3442 # On Suns, sometimes $CPP names a directory.
3443 if test -n "$CPP" && test -d "$CPP"; then
3446 if test -z "$CPP"; then
3447 if test "${ac_cv_prog_CPP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 # Double quotes because CPP needs to be expanded
3451 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3454 for ac_c_preproc_warn_flag
in '' yes
3456 # Use a header file that comes with gcc, so configuring glibc
3457 # with a fresh cross-compiler works.
3458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459 # <limits.h> exists even on freestanding compilers.
3460 # On the NeXT, cc -E runs the code through the compiler's parser,
3461 # not just through cpp. "Syntax error" is here to catch this case.
3462 cat >conftest.
$ac_ext <<_ACEOF
3465 cat confdefs.h
>>conftest.
$ac_ext
3466 cat >>conftest.
$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3469 # include <limits.h>
3471 # include <assert.h>
3475 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3483 grep -v '^ *+' conftest.er1 >conftest.err
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null && {
3488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3489 test ! -s conftest.err
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3496 # Broken: fails on valid input.
3500 rm -f conftest.err conftest.$ac_ext
3502 # OK, works on sane cases. Now check whether nonexistent headers
3503 # can be detected and how.
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include <ac_nonexistent.h>
3512 if { (ac_try="$ac_cpp conftest.$ac_ext"
3514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3515 *) ac_try_echo
=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1
>conftest.err
3522 cat conftest.err
>&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev
/null
&& {
3525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3528 # Broken: success on invalid input.
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.
$ac_ext >&5
3534 # Passes both tests.
3539 rm -f conftest.err conftest.
$ac_ext
3542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3543 rm -f conftest.err conftest.
$ac_ext
3544 if $ac_preproc_ok; then
3556 { echo "$as_me:$LINENO: result: $CPP" >&5
3557 echo "${ECHO_T}$CPP" >&6; }
3559 for ac_c_preproc_warn_flag
in '' yes
3561 # Use a header file that comes with gcc, so configuring glibc
3562 # with a fresh cross-compiler works.
3563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3564 # <limits.h> exists even on freestanding compilers.
3565 # On the NeXT, cc -E runs the code through the compiler's parser,
3566 # not just through cpp. "Syntax error" is here to catch this case.
3567 cat >conftest.
$ac_ext <<_ACEOF
3570 cat confdefs.h
>>conftest.
$ac_ext
3571 cat >>conftest.
$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3574 # include <limits.h>
3576 # include <assert.h>
3580 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3588 grep -v '^ *+' conftest.er1 >conftest.err
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } >/dev/null && {
3593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3594 test ! -s conftest.err
3598 echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 # Broken: fails on valid input.
3605 rm -f conftest.err conftest.$ac_ext
3607 # OK, works on sane cases. Now check whether nonexistent headers
3608 # can be detected and how.
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 #include <ac_nonexistent.h>
3617 if { (ac_try="$ac_cpp conftest.$ac_ext"
3619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3620 *) ac_try_echo
=$ac_try;;
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3625 grep -v '^ *+' conftest.er1
>conftest.err
3627 cat conftest.err
>&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } >/dev
/null
&& {
3630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3631 test ! -s conftest.err
3633 # Broken: success on invalid input.
3636 echo "$as_me: failed program was:" >&5
3637 sed 's/^/| /' conftest.
$ac_ext >&5
3639 # Passes both tests.
3644 rm -f conftest.err conftest.
$ac_ext
3647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3648 rm -f conftest.err conftest.
$ac_ext
3649 if $ac_preproc_ok; then
3652 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3653 See \`config.log' for more details." >&5
3654 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3655 See \`config.log' for more details." >&2;}
3656 { (exit 1); exit 1; }; }
3660 ac_cpp
='$CPP $CPPFLAGS'
3661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3666 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3667 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3668 if test "${ac_cv_path_GREP+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 # Extract the first word of "grep ggrep" to use in msg output
3672 if test -z "$GREP"; then
3673 set dummy
grep ggrep
; ac_prog_name
=$2
3674 if test "${ac_cv_path_GREP+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_path_GREP_found
=false
3678 # Loop through the user's path and test for each of PROGNAME-LIST
3679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3680 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3683 test -z "$as_dir" && as_dir
=.
3684 for ac_prog
in grep ggrep
; do
3685 for ac_exec_ext
in '' $ac_executable_extensions; do
3686 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3687 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3688 # Check for GNU ac_path_GREP and select it if it is found.
3689 # Check for GNU $ac_path_GREP
3690 case `"$ac_path_GREP" --version 2>&1` in
3692 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3695 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3698 cat "conftest.in" "conftest.in" >"conftest.tmp"
3699 mv "conftest.tmp" "conftest.in"
3700 cp "conftest.in" "conftest.nl"
3701 echo 'GREP' >> "conftest.nl"
3702 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3703 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3704 ac_count
=`expr $ac_count + 1`
3705 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3706 # Best one so far, save it but keep looking for a better one
3707 ac_cv_path_GREP
="$ac_path_GREP"
3708 ac_path_GREP_max
=$ac_count
3710 # 10*(2^10) chars as input seems more than enough
3711 test $ac_count -gt 10 && break
3713 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3717 $ac_path_GREP_found && break 3
3727 GREP
="$ac_cv_path_GREP"
3728 if test -z "$GREP"; then
3729 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731 { (exit 1); exit 1; }; }
3735 ac_cv_path_GREP
=$GREP
3740 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3741 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3742 GREP
="$ac_cv_path_GREP"
3745 { echo "$as_me:$LINENO: checking for egrep" >&5
3746 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3747 if test "${ac_cv_path_EGREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3751 then ac_cv_path_EGREP
="$GREP -E"
3753 # Extract the first word of "egrep" to use in msg output
3754 if test -z "$EGREP"; then
3755 set dummy
egrep; ac_prog_name
=$2
3756 if test "${ac_cv_path_EGREP+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 ac_path_EGREP_found
=false
3760 # Loop through the user's path and test for each of PROGNAME-LIST
3761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3762 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3765 test -z "$as_dir" && as_dir
=.
3766 for ac_prog
in egrep; do
3767 for ac_exec_ext
in '' $ac_executable_extensions; do
3768 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3769 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3770 # Check for GNU ac_path_EGREP and select it if it is found.
3771 # Check for GNU $ac_path_EGREP
3772 case `"$ac_path_EGREP" --version 2>&1` in
3774 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3780 cat "conftest.in" "conftest.in" >"conftest.tmp"
3781 mv "conftest.tmp" "conftest.in"
3782 cp "conftest.in" "conftest.nl"
3783 echo 'EGREP' >> "conftest.nl"
3784 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3785 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3786 ac_count
=`expr $ac_count + 1`
3787 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3788 # Best one so far, save it but keep looking for a better one
3789 ac_cv_path_EGREP
="$ac_path_EGREP"
3790 ac_path_EGREP_max
=$ac_count
3792 # 10*(2^10) chars as input seems more than enough
3793 test $ac_count -gt 10 && break
3795 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3799 $ac_path_EGREP_found && break 3
3809 EGREP
="$ac_cv_path_EGREP"
3810 if test -z "$EGREP"; then
3811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813 { (exit 1); exit 1; }; }
3817 ac_cv_path_EGREP
=$EGREP
3823 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3824 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3825 EGREP
="$ac_cv_path_EGREP"
3829 { echo "$as_me:$LINENO: checking for AIX" >&5
3830 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3831 cat >conftest.
$ac_ext <<_ACEOF
3834 cat confdefs.h
>>conftest.
$ac_ext
3835 cat >>conftest.
$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3843 $EGREP "yes" >/dev
/null
2>&1; then
3844 { echo "$as_me:$LINENO: result: yes" >&5
3845 echo "${ECHO_T}yes" >&6; }
3846 cat >>confdefs.h
<<\_ACEOF
3847 #define _ALL_SOURCE 1
3851 { echo "$as_me:$LINENO: result: no" >&5
3852 echo "${ECHO_T}no" >&6; }
3858 # Check for unsupported systems
3859 case $ac_sys_system/$ac_sys_release in
3861 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3862 echo See README
for details.
3867 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3868 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3870 # Check whether --with-suffix was given.
3871 if test "${with_suffix+set}" = set; then
3872 withval
=$with_suffix;
3876 *) EXEEXT
=$withval;;
3880 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3881 echo "${ECHO_T}$EXEEXT" >&6; }
3883 # Test whether we're running on a non-case-sensitive system, in which
3884 # case we give a warning if no ext is given
3886 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3887 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3888 if test ! -d CaseSensitiveTestDir
; then
3889 mkdir CaseSensitiveTestDir
3892 if test -d casesensitivetestdir
3894 { echo "$as_me:$LINENO: result: yes" >&5
3895 echo "${ECHO_T}yes" >&6; }
3898 { echo "$as_me:$LINENO: result: no" >&5
3899 echo "${ECHO_T}no" >&6; }
3902 rmdir CaseSensitiveTestDir
3907 gcc
) CC
="$CC -D_HAVE_BSDI";;
3911 case $ac_sys_system in
3914 cc|
*/cc
) CC
="$CC -Ae";;
3917 # Some functions have a prototype only with that define, e.g. confstr
3919 cat >>confdefs.h
<<\_ACEOF
3920 #define __EXTENSIONS__ 1
3928 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3929 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3930 if test -z "$LIBRARY"
3932 LIBRARY
='libpython$(VERSION).a'
3934 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3935 echo "${ECHO_T}$LIBRARY" >&6; }
3937 # LDLIBRARY is the name of the library to link against (as opposed to the
3938 # name of the library into which to insert object files). BLDLIBRARY is also
3939 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3940 # is blank as the main program is not linked directly against LDLIBRARY.
3941 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3942 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3943 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3944 # DLLLIBRARY is the shared (i.e., DLL) library.
3946 # RUNSHARED is used to run shared python without installed libraries
3948 # INSTSONAME is the name of the shared library that will be use to install
3949 # on the system - some systems like version suffix, others don't
3956 LDLIBRARY
="$LIBRARY"
3957 BLDLIBRARY
='$(LDLIBRARY)'
3958 INSTSONAME
='$(LDLIBRARY)'
3963 # LINKCC is the command that links the python executable -- default is $(CC).
3964 # If CXX is set, and if it is needed to link a main function that was
3965 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3966 # python might then depend on the C++ runtime
3967 # This is altered for AIX in order to build the export list before
3970 { echo "$as_me:$LINENO: checking LINKCC" >&5
3971 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3972 if test -z "$LINKCC"
3974 LINKCC
='$(PURIFY) $(MAINCC)'
3975 case $ac_sys_system in
3978 if test $ac_sys_release -ge 5 -o \
3979 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3982 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3984 # qcc must be used because the other compilers do not
3989 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3990 echo "${ECHO_T}$LINKCC" >&6; }
3992 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3993 # make sure we default having it set to "no": this is used by
3994 # distutils.unixccompiler to know if it should add --enable-new-dtags
3995 # to linker command lines, and failing to detect GNU ld simply results
3996 # in the same bahaviour as before.
3998 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3999 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4001 if test "$GCC" = yes; then
4002 ac_prog
=`$CC -print-prog-name=ld`
4004 case `"$ac_prog" -V 2>&1 < /dev/null` in
4010 { echo "$as_me:$LINENO: result: $GNULD" >&5
4011 echo "${ECHO_T}$GNULD" >&6; }
4013 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4014 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4015 # Check whether --enable-shared was given.
4016 if test "${enable_shared+set}" = set; then
4017 enableval
=$enable_shared;
4021 if test -z "$enable_shared"
4023 case $ac_sys_system in
4025 enable_shared
="yes";;
4027 enable_shared
="no";;
4030 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4031 echo "${ECHO_T}$enable_shared" >&6; }
4033 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4034 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4035 # Check whether --enable-profiling was given.
4036 if test "${enable_profiling+set}" = set; then
4037 enableval
=$enable_profiling; ac_save_cc
="$CC"
4039 if test "$cross_compiling" = yes; then
4040 ac_enable_profiling
="no"
4042 cat >conftest.
$ac_ext <<_ACEOF
4045 cat confdefs.h
>>conftest.
$ac_ext
4046 cat >>conftest.
$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 int main() { return 0; }
4050 rm -f conftest
$ac_exeext
4051 if { (ac_try
="$ac_link"
4053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_link") 2>&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4061 { (case "(($ac_try" in
4062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4063 *) ac_try_echo
=$ac_try;;
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_try") 2>&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; }; then
4070 ac_enable_profiling
="yes"
4072 echo "$as_me: program exited with status $ac_status" >&5
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.
$ac_ext >&5
4077 ac_enable_profiling
="no"
4079 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4086 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4087 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4089 case "$ac_enable_profiling" in
4091 BASECFLAGS
="-pg $BASECFLAGS"
4092 LDFLAGS
="-pg $LDFLAGS"
4096 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4097 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4099 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4100 # library that we build, but we do not want to link against it (we
4101 # will find it with a -framework option). For this reason there is an
4102 # extra variable BLDLIBRARY against which Python and the extension
4103 # modules are linked, BLDLIBRARY. This is normally the same as
4104 # LDLIBRARY, but empty for MacOSX framework builds.
4105 if test "$enable_framework"
4107 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4108 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4111 BLDLIBRARY
='$(LDLIBRARY)'
4114 # Other platforms follow
4115 if test $enable_shared = "yes"; then
4117 cat >>confdefs.h
<<\_ACEOF
4118 #define Py_ENABLE_SHARED 1
4121 case $ac_sys_system in
4123 LDLIBRARY
='libpython$(VERSION).so'
4126 LDLIBRARY
='libpython$(VERSION).dll.a'
4127 DLLLIBRARY
='libpython$(VERSION).dll'
4130 LDLIBRARY
='libpython$(VERSION).so'
4131 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4132 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4133 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4135 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4136 LDLIBRARY
='libpython$(VERSION).so'
4137 BLDLIBRARY
='-L. -lpython$(VERSION)'
4138 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4139 case $ac_sys_system in
4141 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4144 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4149 LDLIBRARY
='libpython$(VERSION).so'
4152 LDLIBRARY
='libpython$(VERSION).sl'
4155 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4156 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4159 LDLIBRARY
='libpython$(VERSION).so'
4160 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4161 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4164 LDLIBRARY
='libpython$(VERSION).so'
4165 BLDLIBRARY
='-L. -lpython$(VERSION)'
4166 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4169 LDLIBRARY
='libpython$(VERSION).dylib'
4170 BLDLIBRARY
='-L. -lpython$(VERSION)'
4171 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4175 else # shared is disabled
4176 case $ac_sys_system in
4178 BLDLIBRARY
='$(LIBRARY)'
4179 LDLIBRARY
='libpython$(VERSION).dll.a'
4184 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4185 echo "${ECHO_T}$LDLIBRARY" >&6; }
4187 if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4189 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4192 if test "${ac_cv_prog_RANLIB+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 if test -n "$RANLIB"; then
4196 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir
=.
4203 for ac_exec_ext
in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 RANLIB
=$ac_cv_prog_RANLIB
4216 if test -n "$RANLIB"; then
4217 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4218 echo "${ECHO_T}$RANLIB" >&6; }
4220 { echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6; }
4226 if test -z "$ac_cv_prog_RANLIB"; then
4227 ac_ct_RANLIB
=$RANLIB
4228 # Extract the first word of "ranlib", so it can be a program name with args.
4229 set dummy ranlib
; ac_word
=$2
4230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4232 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 if test -n "$ac_ct_RANLIB"; then
4236 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir
=.
4243 for ac_exec_ext
in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4256 if test -n "$ac_ct_RANLIB"; then
4257 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4258 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4260 { echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6; }
4264 if test "x$ac_ct_RANLIB" = x
; then
4267 case $cross_compiling:$ac_tool_warned in
4269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4270 whose name does not start with the host triplet. If you think this
4271 configuration is useful to you, please write to autoconf@gnu.org." >&5
4272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4273 whose name does not start with the host triplet. If you think this
4274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4275 ac_tool_warned
=yes ;;
4277 RANLIB
=$ac_ct_RANLIB
4280 RANLIB
="$ac_cv_prog_RANLIB"
4284 for ac_prog
in ar aal
4286 # Extract the first word of "$ac_prog", so it can be a program name with args.
4287 set dummy
$ac_prog; ac_word
=$2
4288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4290 if test "${ac_cv_prog_AR+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 if test -n "$AR"; then
4294 ac_cv_prog_AR
="$AR" # Let the user override the test.
4296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4300 test -z "$as_dir" && as_dir
=.
4301 for ac_exec_ext
in '' $ac_executable_extensions; do
4302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4303 ac_cv_prog_AR
="$ac_prog"
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 if test -n "$AR"; then
4315 { echo "$as_me:$LINENO: result: $AR" >&5
4316 echo "${ECHO_T}$AR" >&6; }
4318 { echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6; }
4323 test -n "$AR" && break
4325 test -n "$AR" || AR
="ar"
4328 # tweak ARFLAGS only if the user didn't set it on the command line
4330 if test -z "$ARFLAGS"
4336 # Extract the first word of "svnversion", so it can be a program name with args.
4337 set dummy svnversion
; ac_word
=$2
4338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4340 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 if test -n "$SVNVERSION"; then
4344 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4350 test -z "$as_dir" && as_dir
=.
4351 for ac_exec_ext
in '' $ac_executable_extensions; do
4352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4353 ac_cv_prog_SVNVERSION
="found"
4354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4364 SVNVERSION
=$ac_cv_prog_SVNVERSION
4365 if test -n "$SVNVERSION"; then
4366 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4367 echo "${ECHO_T}$SVNVERSION" >&6; }
4369 { echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6; }
4374 if test $SVNVERSION = found
4376 SVNVERSION
="svnversion \$(srcdir)"
4378 SVNVERSION
="echo Unversioned directory"
4383 # install -d does not work on BSDI or HP-UX
4384 if test -z "$INSTALL"
4386 INSTALL
="${srcdir}/install-sh -c"
4390 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4391 if test -f "$ac_dir/install-sh"; then
4393 ac_install_sh
="$ac_aux_dir/install-sh -c"
4395 elif test -f "$ac_dir/install.sh"; then
4397 ac_install_sh
="$ac_aux_dir/install.sh -c"
4399 elif test -f "$ac_dir/shtool"; then
4401 ac_install_sh
="$ac_aux_dir/shtool install -c"
4405 if test -z "$ac_aux_dir"; then
4406 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4407 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4408 { (exit 1); exit 1; }; }
4411 # These three variables are undocumented and unsupported,
4412 # and are intended to be withdrawn in a future Autoconf release.
4413 # They can cause serious problems if a builder's source tree is in a directory
4414 # whose full name contains unusual characters.
4415 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4416 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4417 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4420 # Find a good install program. We prefer a C program (faster),
4421 # so one script is as good as another. But avoid the broken or
4422 # incompatible versions:
4423 # SysV /etc/install, /usr/sbin/install
4424 # SunOS /usr/etc/install
4425 # IRIX /sbin/install
4427 # AmigaOS /C/install, which installs bootblocks on floppy discs
4428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4431 # OS/2's system install, which has a completely different semantic
4432 # ./install, which can be erroneously created by make from ./install.sh.
4433 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4434 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4435 if test -z "$INSTALL"; then
4436 if test "${ac_cv_path_install+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4443 test -z "$as_dir" && as_dir
=.
4444 # Account for people who put trailing slashes in PATH elements.
4446 .
/ | .
// |
/cC
/* | \
4447 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4448 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4451 # OSF1 and SCO ODT 3.0 have their own names for install.
4452 # Don't use installbsd from OSF since it installs stuff as root
4454 for ac_prog
in ginstall scoinst
install; do
4455 for ac_exec_ext
in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4457 if test $ac_prog = install &&
4458 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4459 # AIX install. It has an incompatible calling convention.
4461 elif test $ac_prog = install &&
4462 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4463 # program-specific install script used by HP pwplus--don't use.
4466 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4479 if test "${ac_cv_path_install+set}" = set; then
4480 INSTALL
=$ac_cv_path_install
4482 # As a last resort, use the slow shell script. Don't cache a
4483 # value for INSTALL within a source directory, because that will
4484 # break other packages using the cache if that directory is
4485 # removed, or if the value is a relative name.
4486 INSTALL
=$ac_install_sh
4489 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4490 echo "${ECHO_T}$INSTALL" >&6; }
4492 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4493 # It thinks the first close brace ends the variable substitution.
4494 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4496 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4498 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4501 # Not every filesystem supports hard links
4503 if test -z "$LN" ; then
4504 case $ac_sys_system in
4506 CYGWIN
*) LN
="ln -s";;
4507 atheos
*) LN
="ln -s";;
4512 # Check for --with-pydebug
4513 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4514 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4516 # Check whether --with-pydebug was given.
4517 if test "${with_pydebug+set}" = set; then
4518 withval
=$with_pydebug;
4519 if test "$withval" != no
4522 cat >>confdefs.h
<<\_ACEOF
4526 { echo "$as_me:$LINENO: result: yes" >&5
4527 echo "${ECHO_T}yes" >&6; };
4529 else { echo "$as_me:$LINENO: result: no" >&5
4530 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4533 { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4538 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4539 # merged with this chunk of code?
4541 # Optimizer/debugger flags
4542 # ------------------------
4543 # (The following bit of code is complicated enough - please keep things
4544 # indented properly. Just pretend you're editing Python code. ;-)
4546 # There are two parallel sets of case statements below, one that checks to
4547 # see if OPT was set and one that does BASECFLAGS setting based upon
4548 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4551 # tweak OPT based on compiler and platform, only if the user didn't set
4552 # it on the command line
4558 if test "$CC" != 'g++' ; then
4559 STRICT_PROTO
="-Wstrict-prototypes"
4561 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4562 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4565 case $ac_cv_prog_cc_g in
4567 if test "$Py_DEBUG" = 'true' ; then
4568 # Optimization messes up debuggers, so turn it off for
4570 OPT
="-g -Wall $STRICT_PROTO"
4572 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4576 OPT
="-O3 -Wall $STRICT_PROTO"
4579 case $ac_sys_system in
4580 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4593 # The -arch flags for universal builds on OSX
4594 UNIVERSAL_ARCH_FLAGS
=
4597 # tweak BASECFLAGS based on compiler and platform
4600 # Python violates C99 rules, by casting between incompatible
4601 # pointer types. GCC may generate bad code as a result of that,
4602 # so use -fno-strict-aliasing if supported.
4603 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4604 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4606 CC
="$CC -fno-strict-aliasing"
4607 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 if test "$cross_compiling" = yes; then
4611 ac_cv_no_strict_aliasing_ok
=no
4613 cat >conftest.
$ac_ext <<_ACEOF
4616 cat confdefs.h
>>conftest.
$ac_ext
4617 cat >>conftest.
$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4619 int main() { return 0; }
4621 rm -f conftest
$ac_exeext
4622 if { (ac_try
="$ac_link"
4624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_link") 2>&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4634 *) ac_try_echo
=$ac_try;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 ac_cv_no_strict_aliasing_ok
=yes
4643 echo "$as_me: program exited with status $ac_status" >&5
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.
$ac_ext >&5
4648 ac_cv_no_strict_aliasing_ok
=no
4650 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4657 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4658 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4659 if test $ac_cv_no_strict_aliasing_ok = yes
4661 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4664 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4665 # support. Without this, treatment of subnormals doesn't follow
4667 case $ac_sys_machine in
4669 BASECFLAGS
="$BASECFLAGS -mieee"
4673 case $ac_sys_system in
4675 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4677 # is there any other compiler on Darwin besides gcc?
4679 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4680 # used to be here, but non-Apple gcc doesn't accept them.
4683 if test "${enable_universalsdk}"; then
4684 UNIVERSAL_ARCH_FLAGS
=""
4685 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4686 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4689 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4690 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4691 ARCH_RUN_32BIT
="true"
4693 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4694 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4695 ARCH_RUN_32BIT
="arch -i386 -ppc"
4697 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4698 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch x86_64"
4699 ARCH_RUN_32BIT
="arch -i386"
4701 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4702 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch x86_64"
4703 ARCH_RUN_32BIT
="arch -i386 -ppc"
4706 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4707 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4708 { (exit 1); exit 1; }; }
4713 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4714 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4715 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4716 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4720 # Calculate the right deployment target for this build.
4722 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4723 if test ${cur_target} '>' 10.2; then
4725 if test ${enable_universalsdk}; then
4726 if test "${UNIVERSAL_ARCHS}" = "all"; then
4727 # Ensure that the default platform for a
4728 # 4-way universal build is OSX 10.5,
4729 # that's the first OS release where
4730 # 4-way builds make sense.
4733 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4736 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4739 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4743 if test `arch` = "i386"; then
4744 # On Intel macs default to a deployment
4745 # target of 10.4, that's the first OSX
4746 # release with Intel support.
4751 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4753 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4754 # environment with a value that is the same as what we'll use
4755 # in the Makefile to ensure that we'll get the same compiler
4756 # environment during configure and build time.
4757 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4758 export MACOSX_DEPLOYMENT_TARGET
4759 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4763 BASECFLAGS
="$BASECFLAGS -mieee"
4769 case $ac_sys_system in
4770 OpenUNIX
*|UnixWare
*)
4771 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4774 BASECFLAGS
="$BASECFLAGS -ieee -std"
4777 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4783 if test "$Py_DEBUG" = 'true'; then
4789 if test "$ac_arch_flags"
4791 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4794 # disable check for icc since it seems to pass, but generates a warning
4797 ac_cv_opt_olimit_ok
=no
4800 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4801 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4802 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 CC
="$CC -OPT:Olimit=0"
4807 if test "$cross_compiling" = yes; then
4808 ac_cv_opt_olimit_ok
=no
4810 cat >conftest.
$ac_ext <<_ACEOF
4813 cat confdefs.h
>>conftest.
$ac_ext
4814 cat >>conftest.
$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 int main() { return 0; }
4818 rm -f conftest
$ac_exeext
4819 if { (ac_try
="$ac_link"
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_link") 2>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4829 { (case "(($ac_try" in
4830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4831 *) ac_try_echo
=$ac_try;;
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_try") 2>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; }; then
4838 ac_cv_opt_olimit_ok
=yes
4840 echo "$as_me: program exited with status $ac_status" >&5
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.
$ac_ext >&5
4845 ac_cv_opt_olimit_ok
=no
4847 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4854 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4855 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4856 if test $ac_cv_opt_olimit_ok = yes; then
4857 case $ac_sys_system in
4858 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4859 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4864 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4868 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4869 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4870 if test "${ac_cv_olimit_ok+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 CC
="$CC -Olimit 1500"
4875 if test "$cross_compiling" = yes; then
4878 cat >conftest.
$ac_ext <<_ACEOF
4881 cat confdefs.h
>>conftest.
$ac_ext
4882 cat >>conftest.
$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 int main() { return 0; }
4886 rm -f conftest
$ac_exeext
4887 if { (ac_try
="$ac_link"
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_link") 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4897 { (case "(($ac_try" in
4898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4899 *) ac_try_echo
=$ac_try;;
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_try") 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4908 echo "$as_me: program exited with status $ac_status" >&5
4909 echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.
$ac_ext >&5
4915 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4922 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4923 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4924 if test $ac_cv_olimit_ok = yes; then
4925 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4929 # Check whether GCC supports PyArg_ParseTuple format
4930 if test "$GCC" = "yes"
4932 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4933 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4935 CFLAGS
="$CFLAGS -Werror"
4936 cat >conftest.
$ac_ext <<_ACEOF
4939 cat confdefs.h
>>conftest.
$ac_ext
4940 cat >>conftest.
$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4943 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4953 rm -f conftest.
$ac_objext
4954 if { (ac_try
="$ac_compile"
4956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_compile") 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } && {
4967 test -z "$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 } && test -s conftest.$ac_objext; then
4971 cat >>confdefs.h <<\_ACEOF
4972 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4975 { echo "$as_me:$LINENO: result: yes" >&5
4976 echo "${ECHO_T}yes" >&6; }
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 { echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6; }
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 # On some compilers, pthreads are available without further options
4991 # (e.g. MacOS X). On some of these systems, the compiler will not
4992 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4993 # So we have to see first whether pthreads are available without
4994 # options before we can check whether -Kpthread improves anything.
4995 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4996 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4997 if test "${ac_cv_pthread_is_default+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 if test "$cross_compiling" = yes; then
5001 ac_cv_pthread_is_default=no
5003 cat >conftest.$ac_ext <<_ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5010 #include <pthread.h>
5012 void* routine(void* p){return NULL;}
5016 if(pthread_create(&p,NULL,routine,NULL)!=0)
5018 (void)pthread_detach(p);
5023 rm -f conftest$ac_exeext
5024 if { (ac_try="$ac_link"
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_link") 2>&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5034 { (case "(($ac_try" in
5035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039 (eval "$ac_try") 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5044 ac_cv_pthread_is_default=yes
5049 echo "$as_me: program exited with status $ac_status" >&5
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5054 ac_cv_pthread_is_default=no
5056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5063 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5064 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5067 if test $ac_cv_pthread_is_default = yes
5071 # -Kpthread, if available, provides the right #defines
5072 # and linker options to make pthread_create available
5073 # Some compilers won't report that they do not support -Kpthread,
5074 # so we need to run a program to see whether it really made the
5075 # function available.
5076 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5077 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5078 if test "${ac_cv_kpthread+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 if test "$cross_compiling" = yes; then
5086 cat >conftest.$ac_ext <<_ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5093 #include <pthread.h>
5095 void* routine(void* p){return NULL;}
5099 if(pthread_create(&p,NULL,routine,NULL)!=0)
5101 (void)pthread_detach(p);
5106 rm -f conftest$ac_exeext
5107 if { (ac_try="$ac_link"
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_link") 2>&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5117 { (case "(($ac_try" in
5118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_try") 2>&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5128 echo "$as_me: program exited with status $ac_status" >&5
5129 echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5142 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5143 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5146 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5148 # -Kthread, if available, provides the right #defines
5149 # and linker options to make pthread_create available
5150 # Some compilers won't report that they do not support -Kthread,
5151 # so we need to run a program to see whether it really made the
5152 # function available.
5153 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5154 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5155 if test "${ac_cv_kthread+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 if test "$cross_compiling" = yes; then
5163 cat >conftest.$ac_ext <<_ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h. */
5170 #include <pthread.h>
5172 void* routine(void* p){return NULL;}
5176 if(pthread_create(&p,NULL,routine,NULL)!=0)
5178 (void)pthread_detach(p);
5183 rm -f conftest$ac_exeext
5184 if { (ac_try="$ac_link"
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_link") 2>&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5194 { (case "(($ac_try" in
5195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_try") 2>&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5205 echo "$as_me: program exited with status $ac_status" >&5
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5219 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5220 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5223 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5225 # -pthread, if available, provides the right #defines
5226 # and linker options to make pthread_create available
5227 # Some compilers won't report that they do not support -pthread,
5228 # so we need to run a program to see whether it really made the
5229 # function available.
5230 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5231 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5232 if test "${ac_cv_thread+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 if test "$cross_compiling" = yes; then
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5247 #include <pthread.h>
5249 void* routine(void* p){return NULL;}
5253 if(pthread_create(&p,NULL,routine,NULL)!=0)
5255 (void)pthread_detach(p);
5260 rm -f conftest$ac_exeext
5261 if { (ac_try="$ac_link"
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_link") 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5271 { (case "(($ac_try" in
5272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_try") 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5282 echo "$as_me: program exited with status $ac_status" >&5
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5296 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5297 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5300 # If we have set a CC compiler flag for thread support then
5301 # check if it works for CXX, too.
5305 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5306 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5309 if test "$ac_cv_kpthread" = "yes"
5311 CXX="$CXX -Kpthread"
5312 ac_cv_cxx_thread=yes
5313 elif test "$ac_cv_kthread" = "yes"
5316 ac_cv_cxx_thread=yes
5317 elif test "$ac_cv_pthread" = "yes"
5320 ac_cv_cxx_thread=yes
5323 if test $ac_cv_cxx_thread = yes
5325 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5326 $CXX -c conftest.$ac_ext 2>&5
5327 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5328 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5330 ac_cv_cxx_thread=yes
5336 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5337 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5342 # checks for header files
5343 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5344 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5345 if test "${ac_cv_header_stdc+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5367 rm -f conftest.$ac_objext
5368 if { (ac_try="$ac_compile"
5370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5371 *) ac_try_echo
=$ac_try;;
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_compile") 2>conftest.er1
5376 grep -v '^ *+' conftest.er1
>conftest.err
5378 cat conftest.err
>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && {
5381 test -z "$ac_c_werror_flag" ||
5382 test ! -s conftest.err
5383 } && test -s conftest.
$ac_objext; then
5384 ac_cv_header_stdc
=yes
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.
$ac_ext >&5
5389 ac_cv_header_stdc
=no
5392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5394 if test $ac_cv_header_stdc = yes; then
5395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5396 cat >conftest.
$ac_ext <<_ACEOF
5399 cat confdefs.h
>>conftest.
$ac_ext
5400 cat >>conftest.
$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5406 $EGREP "memchr" >/dev
/null
2>&1; then
5409 ac_cv_header_stdc
=no
5415 if test $ac_cv_header_stdc = yes; then
5416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5417 cat >conftest.
$ac_ext <<_ACEOF
5420 cat confdefs.h
>>conftest.
$ac_ext
5421 cat >>conftest.
$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5427 $EGREP "free" >/dev
/null
2>&1; then
5430 ac_cv_header_stdc
=no
5436 if test $ac_cv_header_stdc = yes; then
5437 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5438 if test "$cross_compiling" = yes; then
5441 cat >conftest.
$ac_ext <<_ACEOF
5444 cat confdefs.h
>>conftest.
$ac_ext
5445 cat >>conftest.
$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5449 #if ((' ' & 0x0FF) == 0x020)
5450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5453 # define ISLOWER(c) \
5454 (('a' <= (c) && (c) <= 'i') \
5455 || ('j' <= (c) && (c) <= 'r') \
5456 || ('s' <= (c) && (c) <= 'z'))
5457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5465 for (i = 0; i < 256; i++)
5466 if (XOR (islower (i), ISLOWER (i))
5467 || toupper (i) != TOUPPER (i))
5472 rm -f conftest
$ac_exeext
5473 if { (ac_try
="$ac_link"
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_link") 2>&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5483 { (case "(($ac_try" in
5484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5485 *) ac_try_echo
=$ac_try;;
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_try") 2>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5494 echo "$as_me: program exited with status $ac_status" >&5
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.
$ac_ext >&5
5499 ac_cv_header_stdc
=no
5501 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5507 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5508 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5509 if test $ac_cv_header_stdc = yes; then
5511 cat >>confdefs.h
<<\_ACEOF
5512 #define STDC_HEADERS 1
5517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5527 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5528 inttypes.h stdint.h unistd.h
5530 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5533 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 cat >conftest.
$ac_ext <<_ACEOF
5539 cat confdefs.h
>>conftest.
$ac_ext
5540 cat >>conftest.
$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5544 #include <$ac_header>
5546 rm -f conftest.
$ac_objext
5547 if { (ac_try
="$ac_compile"
5549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_compile") 2>conftest.er1
5555 grep -v '^ *+' conftest.er1 >conftest.err
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } && {
5560 test -z "$ac_c_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest.$ac_objext; then
5563 eval "$as_ac_Header=yes"
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5568 eval "$as_ac_Header=no"
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 ac_res=`eval echo '${'$as_ac_Header'}'`
5574 { echo "$as_me:$LINENO: result: $ac_res" >&5
5575 echo "${ECHO_T}$ac_res" >&6; }
5576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5577 cat >>confdefs.h <<_ACEOF
5578 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5640 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5642 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5643 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5645 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5646 sys/lock.h sys/mkdev.h sys/modem.h \
5647 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5648 sys/termio.h sys/time.h \
5649 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5650 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5651 bluetooth/bluetooth.h linux/tipc.h
5653 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 ac_res=`eval echo '${'$as_ac_Header'}'`
5661 { echo "$as_me:$LINENO: result: $ac_res" >&5
5662 echo "${ECHO_T}$ac_res" >&6; }
5664 # Is the header compilable?
5665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5667 cat >conftest.$ac_ext <<_ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 $ac_includes_default
5674 #include <$ac_header>
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5680 *) ac_try_echo
=$ac_try;;
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5685 grep -v '^ *+' conftest.er1
>conftest.err
5687 cat conftest.err
>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.
$ac_objext; then
5693 ac_header_compiler
=yes
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.
$ac_ext >&5
5698 ac_header_compiler
=no
5701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5703 echo "${ECHO_T}$ac_header_compiler" >&6; }
5705 # Is the header present?
5706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5708 cat >conftest.
$ac_ext <<_ACEOF
5711 cat confdefs.h
>>conftest.
$ac_ext
5712 cat >>conftest.
$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <$ac_header>
5716 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5724 grep -v '^ *+' conftest.er1 >conftest.err
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } >/dev/null && {
5729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5732 ac_header_preproc=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_header_preproc=no
5740 rm -f conftest.err conftest.$ac_ext
5741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5742 echo "${ECHO_T}$ac_header_preproc" >&6; }
5744 # So? What about this header?
5745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5751 ac_header_preproc=yes
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5767 ## -------------------------------------- ##
5768 ## Report this to http://bugs.python.org/ ##
5769 ## -------------------------------------- ##
5771 ) | sed "s/^/$as_me: WARNING: /" >&2
5774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 eval "$as_ac_Header=\$ac_header_preproc"
5781 ac_res=`eval echo '${'$as_ac_Header'}'`
5782 { echo "$as_me:$LINENO: result: $ac_res" >&5
5783 echo "${ECHO_T}$ac_res" >&6; }
5786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5787 cat >>confdefs.h <<_ACEOF
5788 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5801 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5802 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5803 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5804 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 cat >conftest.$ac_ext <<_ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #include <sys/types.h>
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5830 *) ac_try_echo
=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5835 grep -v '^ *+' conftest.er1
>conftest.err
5837 cat conftest.err
>&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.
$ac_objext; then
5843 eval "$as_ac_Header=yes"
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.
$ac_ext >&5
5848 eval "$as_ac_Header=no"
5851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5853 ac_res
=`eval echo '${'$as_ac_Header'}'`
5854 { echo "$as_me:$LINENO: result: $ac_res" >&5
5855 echo "${ECHO_T}$ac_res" >&6; }
5856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5857 cat >>confdefs.h
<<_ACEOF
5858 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5861 ac_header_dirent
=$ac_hdr; break
5865 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5866 if test $ac_header_dirent = dirent.h
; then
5867 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5868 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5869 if test "${ac_cv_search_opendir+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 ac_func_search_save_LIBS
=$LIBS
5873 cat >conftest.
$ac_ext <<_ACEOF
5876 cat confdefs.h
>>conftest.
$ac_ext
5877 cat >>conftest.
$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5880 /* Override any GCC internal prototype to avoid an error.
5881 Use char because int might match the return type of a GCC
5882 builtin and then its argument prototype would still apply. */
5895 for ac_lib
in '' dir
; do
5896 if test -z "$ac_lib"; then
5897 ac_res
="none required"
5900 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5902 rm -f conftest.
$ac_objext conftest
$ac_exeext
5903 if { (ac_try
="$ac_link"
5905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_link") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1 >conftest.err
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_c_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest$ac_exeext &&
5919 $as_test_x conftest$ac_exeext; then
5920 ac_cv_search_opendir=$ac_res
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5930 if test "${ac_cv_search_opendir+set}" = set; then
5934 if test "${ac_cv_search_opendir+set}" = set; then
5937 ac_cv_search_opendir=no
5940 LIBS=$ac_func_search_save_LIBS
5942 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5943 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5944 ac_res=$ac_cv_search_opendir
5945 if test "$ac_res" != no; then
5946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5951 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5952 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5953 if test "${ac_cv_search_opendir+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 ac_func_search_save_LIBS=$LIBS
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5964 /* Override any GCC internal prototype to avoid an error.
5965 Use char because int might match the return type of a GCC
5966 builtin and then its argument prototype would still apply. */
5979 for ac_lib in '' x; do
5980 if test -z "$ac_lib"; then
5981 ac_res="none required"
5984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (ac_try="$ac_link"
5989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5990 *) ac_try_echo
=$ac_try;;
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_link") 2>conftest.er1
5995 grep -v '^ *+' conftest.er1
>conftest.err
5997 cat conftest.err
>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && {
6000 test -z "$ac_c_werror_flag" ||
6001 test ! -s conftest.err
6002 } && test -s conftest
$ac_exeext &&
6003 $as_test_x conftest
$ac_exeext; then
6004 ac_cv_search_opendir
=$ac_res
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.
$ac_ext >&5
6012 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6014 if test "${ac_cv_search_opendir+set}" = set; then
6018 if test "${ac_cv_search_opendir+set}" = set; then
6021 ac_cv_search_opendir
=no
6024 LIBS
=$ac_func_search_save_LIBS
6026 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6027 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6028 ac_res
=$ac_cv_search_opendir
6029 if test "$ac_res" != no
; then
6030 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6036 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6037 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6038 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 cat >conftest.
$ac_ext <<_ACEOF
6044 cat confdefs.h
>>conftest.
$ac_ext
6045 cat >>conftest.
$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 #include <sys/types.h>
6051 return makedev(0, 0);
6056 rm -f conftest.
$ac_objext conftest
$ac_exeext
6057 if { (ac_try
="$ac_link"
6059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_link") 2>conftest.er1
6065 grep -v '^ *+' conftest.er1 >conftest.err
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } && {
6070 test -z "$ac_c_werror_flag" ||
6071 test ! -s conftest.err
6072 } && test -s conftest$ac_exeext &&
6073 $as_test_x conftest$ac_exeext; then
6074 ac_cv_header_sys_types_h_makedev=yes
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.$ac_ext >&5
6079 ac_cv_header_sys_types_h_makedev=no
6082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6083 conftest$ac_exeext conftest.$ac_ext
6086 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6087 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6089 if test $ac_cv_header_sys_types_h_makedev = no; then
6090 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6091 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6092 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6093 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6097 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6099 # Is the header compilable?
6100 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6101 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6102 cat >conftest.$ac_ext <<_ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6109 #include <sys/mkdev.h>
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6115 *) ac_try_echo
=$ac_try;;
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_compile") 2>conftest.er1
6120 grep -v '^ *+' conftest.er1
>conftest.err
6122 cat conftest.err
>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } && {
6125 test -z "$ac_c_werror_flag" ||
6126 test ! -s conftest.err
6127 } && test -s conftest.
$ac_objext; then
6128 ac_header_compiler
=yes
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.
$ac_ext >&5
6133 ac_header_compiler
=no
6136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6138 echo "${ECHO_T}$ac_header_compiler" >&6; }
6140 # Is the header present?
6141 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6142 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6143 cat >conftest.
$ac_ext <<_ACEOF
6146 cat confdefs.h
>>conftest.
$ac_ext
6147 cat >>conftest.
$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <sys/mkdev.h>
6151 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6159 grep -v '^ *+' conftest.er1 >conftest.err
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev/null && {
6164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6167 ac_header_preproc=yes
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ac_header_preproc=no
6175 rm -f conftest.err conftest.$ac_ext
6176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6177 echo "${ECHO_T}$ac_header_preproc" >&6; }
6179 # So? What about this header?
6180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6182 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6183 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6185 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6186 ac_header_preproc=yes
6189 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6190 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6192 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6194 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6196 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6198 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6200 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6202 ## -------------------------------------- ##
6203 ## Report this to http://bugs.python.org/ ##
6204 ## -------------------------------------- ##
6206 ) | sed "s/^/$as_me: WARNING: /" >&2
6209 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6210 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6211 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6216 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6217 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6220 if test $ac_cv_header_sys_mkdev_h = yes; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define MAJOR_IN_MKDEV 1
6230 if test $ac_cv_header_sys_mkdev_h = no; then
6231 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6232 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6233 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6234 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6238 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6240 # Is the header compilable?
6241 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6242 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6243 cat >conftest.$ac_ext <<_ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 $ac_includes_default
6250 #include <sys/sysmacros.h>
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6256 *) ac_try_echo
=$ac_try;;
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259 (eval "$ac_compile") 2>conftest.er1
6261 grep -v '^ *+' conftest.er1
>conftest.err
6263 cat conftest.err
>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } && {
6266 test -z "$ac_c_werror_flag" ||
6267 test ! -s conftest.err
6268 } && test -s conftest.
$ac_objext; then
6269 ac_header_compiler
=yes
6271 echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.
$ac_ext >&5
6274 ac_header_compiler
=no
6277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6279 echo "${ECHO_T}$ac_header_compiler" >&6; }
6281 # Is the header present?
6282 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6283 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6284 cat >conftest.
$ac_ext <<_ACEOF
6287 cat confdefs.h
>>conftest.
$ac_ext
6288 cat >>conftest.
$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6290 #include <sys/sysmacros.h>
6292 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6300 grep -v '^ *+' conftest.er1 >conftest.err
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } >/dev/null && {
6305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6308 ac_header_preproc=yes
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_header_preproc=no
6316 rm -f conftest.err conftest.$ac_ext
6317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6318 echo "${ECHO_T}$ac_header_preproc" >&6; }
6320 # So? What about this header?
6321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6323 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6324 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6325 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6326 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6327 ac_header_preproc=yes
6330 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6331 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6333 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6335 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6337 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6339 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6341 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6343 ## -------------------------------------- ##
6344 ## Report this to http://bugs.python.org/ ##
6345 ## -------------------------------------- ##
6347 ) | sed "s/^/$as_me: WARNING: /" >&2
6350 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6351 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6352 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6357 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6358 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6361 if test $ac_cv_header_sys_sysmacros_h = yes; then
6363 cat >>confdefs.h <<\_ACEOF
6364 #define MAJOR_IN_SYSMACROS 1
6374 # On Solaris, term.h requires curses.h
6376 for ac_header in term.h
6378 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 cat >conftest.$ac_ext <<_ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h. */
6391 #ifdef HAVE_CURSES_H
6396 #include <$ac_header>
6398 rm -f conftest.$ac_objext
6399 if { (ac_try="$ac_compile"
6401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6402 *) ac_try_echo
=$ac_try;;
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1
>conftest.err
6409 cat conftest.err
>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest.
$ac_objext; then
6415 eval "$as_ac_Header=yes"
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.
$ac_ext >&5
6420 eval "$as_ac_Header=no"
6423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6425 ac_res
=`eval echo '${'$as_ac_Header'}'`
6426 { echo "$as_me:$LINENO: result: $ac_res" >&5
6427 echo "${ECHO_T}$ac_res" >&6; }
6428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6429 cat >>confdefs.h
<<_ACEOF
6430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6438 # On Linux, netlink.h requires asm/types.h
6440 for ac_header
in linux
/netlink.h
6442 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6445 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 cat >conftest.
$ac_ext <<_ACEOF
6451 cat confdefs.h
>>conftest.
$ac_ext
6452 cat >>conftest.
$ac_ext <<_ACEOF
6453 /* end confdefs.h. */
6455 #ifdef HAVE_ASM_TYPES_H
6456 #include <asm/types.h>
6458 #ifdef HAVE_SYS_SOCKET_H
6459 #include <sys/socket.h>
6463 #include <$ac_header>
6465 rm -f conftest.
$ac_objext
6466 if { (ac_try
="$ac_compile"
6468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6474 grep -v '^ *+' conftest.er1 >conftest.err
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 eval "$as_ac_Header=yes"
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6487 eval "$as_ac_Header=no"
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 ac_res=`eval echo '${'$as_ac_Header'}'`
6493 { echo "$as_me:$LINENO: result: $ac_res" >&5
6494 echo "${ECHO_T}$ac_res" >&6; }
6495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6496 cat >>confdefs.h <<_ACEOF
6497 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6505 # checks for typedefs
6507 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6508 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6509 cat >conftest.$ac_ext <<_ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6519 $EGREP "clock_t" >/dev/null 2>&1; then
6524 cat >>confdefs.h <<\_ACEOF
6525 #define clock_t long
6532 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6533 echo "${ECHO_T}$was_it_defined" >&6; }
6535 # Check whether using makedev requires defining _OSF_SOURCE
6536 { echo "$as_me:$LINENO: checking for makedev" >&5
6537 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6538 cat >conftest.$ac_ext <<_ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6544 #include <sys/types.h>
6553 rm -f conftest.$ac_objext conftest$ac_exeext
6554 if { (ac_try="$ac_link"
6556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6557 *) ac_try_echo
=$ac_try;;
6559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560 (eval "$ac_link") 2>conftest.er1
6562 grep -v '^ *+' conftest.er1
>conftest.err
6564 cat conftest.err
>&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest
$ac_exeext &&
6570 $as_test_x conftest
$ac_exeext; then
6571 ac_cv_has_makedev
=yes
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.
$ac_ext >&5
6576 ac_cv_has_makedev
=no
6579 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6580 conftest
$ac_exeext conftest.
$ac_ext
6581 if test "$ac_cv_has_makedev" = "no"; then
6582 # we didn't link, try if _OSF_SOURCE will allow us to link
6583 cat >conftest.
$ac_ext <<_ACEOF
6586 cat confdefs.h
>>conftest.
$ac_ext
6587 cat >>conftest.
$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6590 #define _OSF_SOURCE 1
6591 #include <sys/types.h>
6601 rm -f conftest.
$ac_objext conftest
$ac_exeext
6602 if { (ac_try
="$ac_link"
6604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6605 *) ac_try_echo=$ac_try;;
6607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6608 (eval "$ac_link") 2>conftest.er1
6610 grep -v '^ *+' conftest.er1 >conftest.err
6612 cat conftest.err >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } && {
6615 test -z "$ac_c_werror_flag" ||
6616 test ! -s conftest.err
6617 } && test -s conftest$ac_exeext &&
6618 $as_test_x conftest$ac_exeext; then
6619 ac_cv_has_makedev=yes
6621 echo "$as_me: failed program was:" >&5
6622 sed 's/^/| /' conftest.$ac_ext >&5
6624 ac_cv_has_makedev=no
6627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6628 conftest$ac_exeext conftest.$ac_ext
6629 if test "$ac_cv_has_makedev" = "yes"; then
6631 cat >>confdefs.h <<\_ACEOF
6632 #define _OSF_SOURCE 1
6637 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6638 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6639 if test "$ac_cv_has_makedev" = "yes"; then
6641 cat >>confdefs.h <<\_ACEOF
6642 #define HAVE_MAKEDEV 1
6647 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6648 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6649 # defined, but the compiler does not support pragma redefine_extname,
6650 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6651 # structures (such as rlimit64) without declaring them. As a
6652 # work-around, disable LFS on such configurations
6655 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6656 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6657 cat >conftest.$ac_ext <<_ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6664 #define _LARGEFILE_SOURCE 1
6665 #define _FILE_OFFSET_BITS 64
6666 #include <sys/resource.h>
6676 rm -f conftest.$ac_objext
6677 if { (ac_try="$ac_compile"
6679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6680 *) ac_try_echo
=$ac_try;;
6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6683 (eval "$ac_compile") 2>conftest.er1
6685 grep -v '^ *+' conftest.er1
>conftest.err
6687 cat conftest.err
>&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); } && {
6690 test -z "$ac_c_werror_flag" ||
6691 test ! -s conftest.err
6692 } && test -s conftest.
$ac_objext; then
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.
$ac_ext >&5
6701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6702 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6703 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6704 if test "$sol_lfs_bug" = "yes"; then
6708 if test "$use_lfs" = "yes"; then
6709 # Two defines needed to enable largefile support on various platforms
6710 # These may affect some typedefs
6712 cat >>confdefs.h
<<\_ACEOF
6713 #define _LARGEFILE_SOURCE 1
6717 cat >>confdefs.h
<<\_ACEOF
6718 #define _FILE_OFFSET_BITS 64
6723 # Add some code to confdefs.h so that the test for off_t works on SCO
6724 cat >> confdefs.h
<<\EOF
6730 # Type availability checks
6731 { echo "$as_me:$LINENO: checking for mode_t" >&5
6732 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6733 if test "${ac_cv_type_mode_t+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 cat >conftest.
$ac_ext <<_ACEOF
6739 cat confdefs.h
>>conftest.
$ac_ext
6740 cat >>conftest.
$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 $ac_includes_default
6743 typedef mode_t ac__type_new_;
6747 if ((ac__type_new_ *) 0)
6749 if (sizeof (ac__type_new_))
6755 rm -f conftest.
$ac_objext
6756 if { (ac_try
="$ac_compile"
6758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6759 *) ac_try_echo=$ac_try;;
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762 (eval "$ac_compile") 2>conftest.er1
6764 grep -v '^ *+' conftest.er1 >conftest.err
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest.$ac_objext; then
6772 ac_cv_type_mode_t=yes
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ac_cv_type_mode_t=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6783 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6784 if test $ac_cv_type_mode_t = yes; then
6788 cat >>confdefs.h <<_ACEOF
6794 { echo "$as_me:$LINENO: checking for off_t" >&5
6795 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6796 if test "${ac_cv_type_off_t+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6806 typedef off_t ac__type_new_;
6810 if ((ac__type_new_ *) 0)
6812 if (sizeof (ac__type_new_))
6818 rm -f conftest.$ac_objext
6819 if { (ac_try="$ac_compile"
6821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6822 *) ac_try_echo
=$ac_try;;
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825 (eval "$ac_compile") 2>conftest.er1
6827 grep -v '^ *+' conftest.er1
>conftest.err
6829 cat conftest.err
>&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest.
$ac_objext; then
6835 ac_cv_type_off_t
=yes
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.
$ac_ext >&5
6843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6845 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6846 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6847 if test $ac_cv_type_off_t = yes; then
6851 cat >>confdefs.h
<<_ACEOF
6852 #define off_t long int
6857 { echo "$as_me:$LINENO: checking for pid_t" >&5
6858 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6859 if test "${ac_cv_type_pid_t+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 cat >conftest.
$ac_ext <<_ACEOF
6865 cat confdefs.h
>>conftest.
$ac_ext
6866 cat >>conftest.
$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 $ac_includes_default
6869 typedef pid_t ac__type_new_;
6873 if ((ac__type_new_ *) 0)
6875 if (sizeof (ac__type_new_))
6881 rm -f conftest.
$ac_objext
6882 if { (ac_try
="$ac_compile"
6884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6890 grep -v '^ *+' conftest.er1 >conftest.err
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 ac_cv_type_pid_t=yes
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6909 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6910 if test $ac_cv_type_pid_t = yes; then
6914 cat >>confdefs.h <<_ACEOF
6920 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6921 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6922 if test "${ac_cv_type_signal+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 cat >conftest.$ac_ext <<_ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <sys/types.h>
6937 return *(signal (0, 0)) (0) == 1;
6942 rm -f conftest.$ac_objext
6943 if { (ac_try="$ac_compile"
6945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6946 *) ac_try_echo
=$ac_try;;
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949 (eval "$ac_compile") 2>conftest.er1
6951 grep -v '^ *+' conftest.er1
>conftest.err
6953 cat conftest.err
>&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); } && {
6956 test -z "$ac_c_werror_flag" ||
6957 test ! -s conftest.err
6958 } && test -s conftest.
$ac_objext; then
6959 ac_cv_type_signal
=int
6961 echo "$as_me: failed program was:" >&5
6962 sed 's/^/| /' conftest.
$ac_ext >&5
6964 ac_cv_type_signal
=void
6967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6969 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6970 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6972 cat >>confdefs.h
<<_ACEOF
6973 #define RETSIGTYPE $ac_cv_type_signal
6977 { echo "$as_me:$LINENO: checking for size_t" >&5
6978 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6979 if test "${ac_cv_type_size_t+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 cat >conftest.
$ac_ext <<_ACEOF
6985 cat confdefs.h
>>conftest.
$ac_ext
6986 cat >>conftest.
$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 typedef size_t ac__type_new_;
6993 if ((ac__type_new_ *) 0)
6995 if (sizeof (ac__type_new_))
7001 rm -f conftest.
$ac_objext
7002 if { (ac_try
="$ac_compile"
7004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_compile") 2>conftest.er1
7010 grep -v '^ *+' conftest.er1 >conftest.err
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } && {
7015 test -z "$ac_c_werror_flag" ||
7016 test ! -s conftest.err
7017 } && test -s conftest.$ac_objext; then
7018 ac_cv_type_size_t=yes
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 ac_cv_type_size_t=no
7026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7029 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7030 if test $ac_cv_type_size_t = yes; then
7034 cat >>confdefs.h <<_ACEOF
7035 #define size_t unsigned int
7040 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7041 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7042 if test "${ac_cv_type_uid_t+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 cat >conftest.$ac_ext <<_ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <sys/types.h>
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055 $EGREP "uid_t" >/dev/null 2>&1; then
7056 ac_cv_type_uid_t=yes
7063 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7064 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7065 if test $ac_cv_type_uid_t = no; then
7067 cat >>confdefs.h <<\_ACEOF
7072 cat >>confdefs.h <<\_ACEOF
7079 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7080 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7081 if test "${ac_cv_c_uint32_t+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7086 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7087 cat >conftest.$ac_ext <<_ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 $ac_includes_default
7097 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7108 *) ac_try_echo
=$ac_try;;
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7113 grep -v '^ *+' conftest.er1
>conftest.err
7115 cat conftest.err
>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.
$ac_objext; then
7122 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7123 *) ac_cv_c_uint32_t
=$ac_type ;;
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.
$ac_ext >&5
7133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7134 test "$ac_cv_c_uint32_t" != no
&& break
7137 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7138 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7139 case $ac_cv_c_uint32_t in #(
7143 cat >>confdefs.h
<<\_ACEOF
7148 cat >>confdefs.h
<<_ACEOF
7149 #define uint32_t $ac_cv_c_uint32_t
7155 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7156 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7157 if test "${ac_cv_c_uint64_t+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7162 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7163 cat >conftest.
$ac_ext <<_ACEOF
7166 cat confdefs.h
>>conftest.
$ac_ext
7167 cat >>conftest.
$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 $ac_includes_default
7173 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7180 rm -f conftest.
$ac_objext
7181 if { (ac_try
="$ac_compile"
7183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7189 grep -v '^ *+' conftest.er1 >conftest.err
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
7198 uint64_t) ac_cv_c_uint64_t=yes ;;
7199 *) ac_cv_c_uint64_t=$ac_type ;;
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 test "$ac_cv_c_uint64_t" != no && break
7213 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7214 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7215 case $ac_cv_c_uint64_t in #(
7219 cat >>confdefs.h <<\_ACEOF
7224 cat >>confdefs.h <<_ACEOF
7225 #define uint64_t $ac_cv_c_uint64_t
7231 { echo "$as_me:$LINENO: checking for int32_t" >&5
7232 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7233 if test "${ac_cv_c_int32_t+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 for ac_type in 'int32_t' 'int' 'long int' \
7238 'long long int' 'short int' 'signed char'; do
7239 cat >conftest.$ac_ext <<_ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7249 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7256 rm -f conftest.$ac_objext
7257 if { (ac_try="$ac_compile"
7259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7260 *) ac_try_echo
=$ac_try;;
7262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263 (eval "$ac_compile") 2>conftest.er1
7265 grep -v '^ *+' conftest.er1
>conftest.err
7267 cat conftest.err
>&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } && {
7270 test -z "$ac_c_werror_flag" ||
7271 test ! -s conftest.err
7272 } && test -s conftest.
$ac_objext; then
7273 cat >conftest.
$ac_ext <<_ACEOF
7276 cat confdefs.h
>>conftest.
$ac_ext
7277 cat >>conftest.
$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 $ac_includes_default
7283 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7284 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7291 rm -f conftest.
$ac_objext
7292 if { (ac_try
="$ac_compile"
7294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7295 *) ac_try_echo=$ac_try;;
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_compile") 2>conftest.er1
7300 grep -v '^ *+' conftest.er1 >conftest.err
7302 cat conftest.err >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_c_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest.$ac_objext; then
7310 echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7314 int32_t) ac_cv_c_int32_t=yes ;;
7315 *) ac_cv_c_int32_t=$ac_type ;;
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 test "$ac_cv_c_int32_t" != no && break
7332 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7333 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7334 case $ac_cv_c_int32_t in #(
7338 cat >>confdefs.h <<_ACEOF
7339 #define int32_t $ac_cv_c_int32_t
7345 { echo "$as_me:$LINENO: checking for int64_t" >&5
7346 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7347 if test "${ac_cv_c_int64_t+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 for ac_type in 'int64_t' 'int' 'long int' \
7352 'long long int' 'short int' 'signed char'; do
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 $ac_includes_default
7363 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7370 rm -f conftest.$ac_objext
7371 if { (ac_try="$ac_compile"
7373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7374 *) ac_try_echo
=$ac_try;;
7376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377 (eval "$ac_compile") 2>conftest.er1
7379 grep -v '^ *+' conftest.er1
>conftest.err
7381 cat conftest.err
>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } && {
7384 test -z "$ac_c_werror_flag" ||
7385 test ! -s conftest.err
7386 } && test -s conftest.
$ac_objext; then
7387 cat >conftest.
$ac_ext <<_ACEOF
7390 cat confdefs.h
>>conftest.
$ac_ext
7391 cat >>conftest.
$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 $ac_includes_default
7397 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7398 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7405 rm -f conftest.
$ac_objext
7406 if { (ac_try
="$ac_compile"
7408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7414 grep -v '^ *+' conftest.er1 >conftest.err
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7428 int64_t) ac_cv_c_int64_t=yes ;;
7429 *) ac_cv_c_int64_t=$ac_type ;;
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 test "$ac_cv_c_int64_t" != no && break
7446 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7447 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7448 case $ac_cv_c_int64_t in #(
7452 cat >>confdefs.h <<_ACEOF
7453 #define int64_t $ac_cv_c_int64_t
7458 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7459 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7460 if test "${ac_cv_type_ssize_t+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7469 $ac_includes_default
7470 typedef ssize_t ac__type_new_;
7474 if ((ac__type_new_ *) 0)
7476 if (sizeof (ac__type_new_))
7482 rm -f conftest.$ac_objext
7483 if { (ac_try="$ac_compile"
7485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7486 *) ac_try_echo
=$ac_try;;
7488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7489 (eval "$ac_compile") 2>conftest.er1
7491 grep -v '^ *+' conftest.er1
>conftest.err
7493 cat conftest.err
>&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } && {
7496 test -z "$ac_c_werror_flag" ||
7497 test ! -s conftest.err
7498 } && test -s conftest.
$ac_objext; then
7499 ac_cv_type_ssize_t
=yes
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.
$ac_ext >&5
7504 ac_cv_type_ssize_t
=no
7507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7509 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7510 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7511 if test $ac_cv_type_ssize_t = yes; then
7513 cat >>confdefs.h
<<\_ACEOF
7514 #define HAVE_SSIZE_T 1
7520 # Sizes of various common basic types
7521 # ANSI C requires sizeof(char) == 1, so no need to check it
7522 { echo "$as_me:$LINENO: checking for int" >&5
7523 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7524 if test "${ac_cv_type_int+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 cat >conftest.
$ac_ext <<_ACEOF
7530 cat confdefs.h
>>conftest.
$ac_ext
7531 cat >>conftest.
$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7534 typedef int ac__type_new_;
7538 if ((ac__type_new_ *) 0)
7540 if (sizeof (ac__type_new_))
7546 rm -f conftest.
$ac_objext
7547 if { (ac_try
="$ac_compile"
7549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7553 (eval "$ac_compile") 2>conftest.er1
7555 grep -v '^ *+' conftest.er1 >conftest.err
7557 cat conftest.err >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } && {
7560 test -z "$ac_c_werror_flag" ||
7561 test ! -s conftest.err
7562 } && test -s conftest.$ac_objext; then
7565 echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7574 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7576 # The cast to long int works around a bug in the HP C Compiler
7577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7578 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7579 # This bug is HP SR number 8606223364.
7580 { echo "$as_me:$LINENO: checking size of int" >&5
7581 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7582 if test "${ac_cv_sizeof_int+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 if test "$cross_compiling" = yes; then
7586 # Depending upon the size, compute the lo and hi bounds.
7587 cat >conftest.$ac_ext <<_ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593 $ac_includes_default
7594 typedef int ac__type_sizeof_;
7598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7605 rm -f conftest.$ac_objext
7606 if { (ac_try="$ac_compile"
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7612 (eval "$ac_compile") 2>conftest.er1
7614 grep -v '^
*+' conftest.er1 >conftest.err
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } && {
7619 test -z "$ac_c_werror_flag" ||
7620 test ! -s conftest.err
7621 } && test -s conftest.$ac_objext; then
7624 cat >conftest.$ac_ext <<_ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 typedef int ac__type_sizeof_;
7635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7642 rm -f conftest.$ac_objext
7643 if { (ac_try="$ac_compile"
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7651 grep -v '^
*+' conftest.er1 >conftest.err
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
7659 ac_hi=$ac_mid; break
7661 echo "$as_me: failed program was:" >&5
7662 sed 's
/^
/|
/' conftest.$ac_ext >&5
7664 ac_lo=`expr $ac_mid + 1`
7665 if test $ac_lo -le $ac_mid; then
7669 ac_mid=`expr 2 '*' $ac_mid + 1`
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 echo "$as_me: failed program was:" >&5
7676 sed 's
/^
/|
/' conftest.$ac_ext >&5
7678 cat >conftest.$ac_ext <<_ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 $ac_includes_default
7685 typedef int ac__type_sizeof_;
7689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7705 grep -v '^
*+' conftest.er1 >conftest.err
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7715 cat >conftest.$ac_ext <<_ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721 $ac_includes_default
7722 typedef int ac__type_sizeof_;
7726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7733 rm -f conftest.$ac_objext
7734 if { (ac_try="$ac_compile"
7736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7737 *) ac_try_echo=$ac_try;;
7739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7740 (eval "$ac_compile") 2>conftest.er1
7742 grep -v '^
*+' conftest.er1 >conftest.err
7744 cat conftest.err >&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && {
7747 test -z "$ac_c_werror_flag" ||
7748 test ! -s conftest.err
7749 } && test -s conftest.$ac_objext; then
7750 ac_lo=$ac_mid; break
7752 echo "$as_me: failed program was:" >&5
7753 sed 's
/^
/|
/' conftest.$ac_ext >&5
7755 ac_hi=`expr '(' $ac_mid ')' - 1`
7756 if test $ac_mid -le $ac_hi; then
7760 ac_mid=`expr 2 '*' $ac_mid`
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 echo "$as_me: failed program was:" >&5
7767 sed 's
/^
/|
/' conftest.$ac_ext >&5
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7776 # Binary search between lo and hi bounds.
7777 while test "x$ac_lo" != "x$ac_hi"; do
7778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7785 $ac_includes_default
7786 typedef int ac__type_sizeof_;
7790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7797 rm -f conftest.$ac_objext
7798 if { (ac_try="$ac_compile"
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_compile") 2>conftest.er1
7806 grep -v '^
*+' conftest.er1 >conftest.err
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest.$ac_objext; then
7816 echo "$as_me: failed program was:" >&5
7817 sed 's
/^
/|
/' conftest.$ac_ext >&5
7819 ac_lo=`expr '(' $ac_mid ')' + 1`
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 ?*) ac_cv_sizeof_int=$ac_lo;;
7826 '') if test "$ac_cv_type_int" = yes; then
7827 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7828 See \`config.log' for more details.
" >&5
7829 echo "$as_me: error
: cannot compute sizeof
(int
)
7830 See \
`config.log' for more details." >&2;}
7831 { (exit 77); exit 77; }; }
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 $ac_includes_default
7844 typedef int ac__type_sizeof_;
7845 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7846 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7853 FILE *f = fopen ("conftest.val", "w");
7856 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7858 long int i = longval ();
7859 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7861 fprintf (f, "%ld\n", i);
7865 unsigned long int i = ulongval ();
7866 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7868 fprintf (f, "%lu\n", i);
7870 return ferror (f) || fclose (f) != 0;
7876 rm -f conftest$ac_exeext
7877 if { (ac_try="$ac_link"
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_link") 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7887 { (case "(($ac_try" in
7888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_try") 2>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_sizeof_int=`cat conftest.val
`
7898 echo "$as_me: program exited with status $ac_status" >&5
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7903 if test "$ac_cv_type_int" = yes; then
7904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7905 See \`config.log
' for more details." >&5
7906 echo "$as_me: error: cannot compute sizeof (int)
7907 See \`config.log' for more details.
" >&2;}
7908 { (exit 77); exit 77; }; }
7913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7917 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7918 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7922 cat >>confdefs.h <<_ACEOF
7923 #define SIZEOF_INT $ac_cv_sizeof_int
7927 { echo "$as_me:$LINENO: checking
for long
" >&5
7928 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7929 if test "${ac_cv_type_long+set}" = set; then
7930 echo $ECHO_N "(cached
) $ECHO_C" >&6
7932 cat >conftest.$ac_ext <<_ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 $ac_includes_default
7939 typedef long ac__type_new_;
7943 if ((ac__type_new_ *) 0)
7945 if (sizeof (ac__type_new_))
7951 rm -f conftest.$ac_objext
7952 if { (ac_try="$ac_compile"
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7958 (eval "$ac_compile") 2>conftest.er1
7960 grep -v '^ *+' conftest.er1 >conftest.err
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7964 (exit $ac_status); } && {
7965 test -z "$ac_c_werror_flag" ||
7966 test ! -s conftest.err
7967 } && test -s conftest.$ac_objext; then
7970 echo "$as_me: failed program was
:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7979 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7981 # The cast to long int works around a bug in the HP C Compiler
7982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7983 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7984 # This bug is HP SR number 8606223364.
7985 { echo "$as_me:$LINENO: checking size of long
" >&5
7986 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7987 if test "${ac_cv_sizeof_long+set}" = set; then
7988 echo $ECHO_N "(cached
) $ECHO_C" >&6
7990 if test "$cross_compiling" = yes; then
7991 # Depending upon the size, compute the lo and hi bounds.
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 $ac_includes_default
7999 typedef long ac__type_sizeof_;
8003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8017 (eval "$ac_compile") 2>conftest.er1
8019 grep -v '^ *+' conftest.er1 >conftest.err
8021 cat conftest.err >&5
8022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8023 (exit $ac_status); } && {
8024 test -z "$ac_c_werror_flag" ||
8025 test ! -s conftest.err
8026 } && test -s conftest.$ac_objext; then
8029 cat >conftest.$ac_ext <<_ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8036 typedef long ac__type_sizeof_;
8040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 ac_hi=$ac_mid; break
8066 echo "$as_me: failed program was
:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_lo=`expr $ac_mid + 1`
8070 if test $ac_lo -le $ac_mid; then
8074 ac_mid=`expr 2 '*' $ac_mid + 1`
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 echo "$as_me: failed program was
:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 $ac_includes_default
8090 typedef long ac__type_sizeof_;
8094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8101 rm -f conftest.$ac_objext
8102 if { (ac_try="$ac_compile"
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_compile") 2>conftest.er1
8110 grep -v '^ *+' conftest.er1 >conftest.err
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8114 (exit $ac_status); } && {
8115 test -z "$ac_c_werror_flag" ||
8116 test ! -s conftest.err
8117 } && test -s conftest.$ac_objext; then
8120 cat >conftest.$ac_ext <<_ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8127 typedef long ac__type_sizeof_;
8131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8147 grep -v '^ *+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest.$ac_objext; then
8155 ac_lo=$ac_mid; break
8157 echo "$as_me: failed program was
:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_hi=`expr '(' $ac_mid ')' - 1`
8161 if test $ac_mid -le $ac_hi; then
8165 ac_mid=`expr 2 '*' $ac_mid`
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 echo "$as_me: failed program was
:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 # Binary search between lo and hi bounds.
8182 while test "x
$ac_lo" != "x
$ac_hi"; do
8183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8184 cat >conftest.$ac_ext <<_ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8191 typedef long ac__type_sizeof_;
8195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest.$ac_objext; then
8221 echo "$as_me: failed program was
:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8224 ac_lo=`expr '(' $ac_mid ')' + 1`
8227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8230 ?*) ac_cv_sizeof_long=$ac_lo;;
8231 '') if test "$ac_cv_type_long" = yes; then
8232 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8233 See \
`config.log' for more details." >&5
8234 echo "$as_me: error: cannot compute sizeof (long)
8235 See \`config.log
' for more details." >&2;}
8236 { (exit 77); exit 77; }; }
8242 cat >conftest.$ac_ext <<_ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 $ac_includes_default
8249 typedef long ac__type_sizeof_;
8250 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8251 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8258 FILE *f = fopen ("conftest.val", "w");
8261 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8263 long int i = longval ();
8264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8266 fprintf (f, "%ld\n", i);
8270 unsigned long int i = ulongval ();
8271 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8273 fprintf (f, "%lu\n", i);
8275 return ferror (f) || fclose (f) != 0;
8281 rm -f conftest$ac_exeext
8282 if { (ac_try="$ac_link"
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_link") 2>&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8292 { (case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_try") 2>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_sizeof_long=`cat conftest.val`
8303 echo "$as_me: program exited with status $ac_status" >&5
8304 echo "$as_me: failed program was:" >&5
8305 sed 's
/^
/|
/' conftest.$ac_ext >&5
8308 if test "$ac_cv_type_long" = yes; then
8309 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8310 See \`config.log' for more details.
" >&5
8311 echo "$as_me: error
: cannot compute sizeof
(long
)
8312 See \
`config.log' for more details." >&2;}
8313 { (exit 77); exit 77; }; }
8318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8322 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8323 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8327 cat >>confdefs.h <<_ACEOF
8328 #define SIZEOF_LONG $ac_cv_sizeof_long
8332 { echo "$as_me:$LINENO: checking for void *" >&5
8333 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8334 if test "${ac_cv_type_void_p+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 cat >conftest.$ac_ext <<_ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 $ac_includes_default
8344 typedef void * ac__type_new_;
8348 if ((ac__type_new_ *) 0)
8350 if (sizeof (ac__type_new_))
8356 rm -f conftest.$ac_objext
8357 if { (ac_try="$ac_compile"
8359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8360 *) ac_try_echo
=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_compile") 2>conftest.er1
8365 grep -v '^ *+' conftest.er1
>conftest.err
8367 cat conftest.err
>&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && {
8370 test -z "$ac_c_werror_flag" ||
8371 test ! -s conftest.err
8372 } && test -s conftest.
$ac_objext; then
8373 ac_cv_type_void_p
=yes
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.
$ac_ext >&5
8378 ac_cv_type_void_p
=no
8381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8383 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8384 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8386 # The cast to long int works around a bug in the HP C Compiler
8387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8389 # This bug is HP SR number 8606223364.
8390 { echo "$as_me:$LINENO: checking size of void *" >&5
8391 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8392 if test "${ac_cv_sizeof_void_p+set}" = set; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 if test "$cross_compiling" = yes; then
8396 # Depending upon the size, compute the lo and hi bounds.
8397 cat >conftest.
$ac_ext <<_ACEOF
8400 cat confdefs.h
>>conftest.
$ac_ext
8401 cat >>conftest.
$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 $ac_includes_default
8404 typedef void * ac__type_sizeof_;
8408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8415 rm -f conftest.
$ac_objext
8416 if { (ac_try
="$ac_compile"
8418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_compile") 2>conftest.er1
8424 grep -v '^ *+' conftest.er1 >conftest.err
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && {
8429 test -z "$ac_c_werror_flag" ||
8430 test ! -s conftest.err
8431 } && test -s conftest.$ac_objext; then
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 typedef void * ac__type_sizeof_;
8445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8452 rm -f conftest.$ac_objext
8453 if { (ac_try="$ac_compile"
8455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8456 *) ac_try_echo
=$ac_try;;
8458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459 (eval "$ac_compile") 2>conftest.er1
8461 grep -v '^ *+' conftest.er1
>conftest.err
8463 cat conftest.err
>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } && {
8466 test -z "$ac_c_werror_flag" ||
8467 test ! -s conftest.err
8468 } && test -s conftest.
$ac_objext; then
8469 ac_hi
=$ac_mid; break
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.
$ac_ext >&5
8474 ac_lo
=`expr $ac_mid + 1`
8475 if test $ac_lo -le $ac_mid; then
8479 ac_mid
=`expr 2 '*' $ac_mid + 1`
8482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.
$ac_ext >&5
8488 cat >conftest.
$ac_ext <<_ACEOF
8491 cat confdefs.h
>>conftest.
$ac_ext
8492 cat >>conftest.
$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 $ac_includes_default
8495 typedef void * ac__type_sizeof_;
8499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8506 rm -f conftest.
$ac_objext
8507 if { (ac_try
="$ac_compile"
8509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_compile") 2>conftest.er1
8515 grep -v '^ *+' conftest.er1 >conftest.err
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_c_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest.$ac_objext; then
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 $ac_includes_default
8532 typedef void * ac__type_sizeof_;
8536 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8543 rm -f conftest.$ac_objext
8544 if { (ac_try="$ac_compile"
8546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8547 *) ac_try_echo
=$ac_try;;
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550 (eval "$ac_compile") 2>conftest.er1
8552 grep -v '^ *+' conftest.er1
>conftest.err
8554 cat conftest.err
>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && {
8557 test -z "$ac_c_werror_flag" ||
8558 test ! -s conftest.err
8559 } && test -s conftest.
$ac_objext; then
8560 ac_lo
=$ac_mid; break
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.
$ac_ext >&5
8565 ac_hi
=`expr '(' $ac_mid ')' - 1`
8566 if test $ac_mid -le $ac_hi; then
8570 ac_mid
=`expr 2 '*' $ac_mid`
8573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.
$ac_ext >&5
8582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8586 # Binary search between lo and hi bounds.
8587 while test "x$ac_lo" != "x$ac_hi"; do
8588 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8589 cat >conftest.
$ac_ext <<_ACEOF
8592 cat confdefs.h
>>conftest.
$ac_ext
8593 cat >>conftest.
$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 $ac_includes_default
8596 typedef void * ac__type_sizeof_;
8600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8607 rm -f conftest.
$ac_objext
8608 if { (ac_try
="$ac_compile"
8610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest.$ac_objext; then
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8629 ac_lo=`expr '(' $ac_mid ')' + 1`
8632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8636 '') if test "$ac_cv_type_void_p" = yes; then
8637 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8638 See \`config.log
' for more details." >&5
8639 echo "$as_me: error: cannot compute sizeof (void *)
8640 See \`config.log' for more details.
" >&2;}
8641 { (exit 77); exit 77; }; }
8643 ac_cv_sizeof_void_p=0
8647 cat >conftest.$ac_ext <<_ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 $ac_includes_default
8654 typedef void * ac__type_sizeof_;
8655 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8656 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8663 FILE *f = fopen ("conftest.val
", "w
");
8666 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8668 long int i = longval ();
8669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8671 fprintf (f, "%ld
\n", i);
8675 unsigned long int i = ulongval ();
8676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8678 fprintf (f, "%lu
\n", i);
8680 return ferror (f) || fclose (f) != 0;
8686 rm -f conftest$ac_exeext
8687 if { (ac_try="$ac_link"
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_link") 2>&5
8695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8697 { (case "(($ac_try" in
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_try") 2>&5
8704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_sizeof_void_p=`cat conftest.val`
8708 echo "$as_me: program exited with status
$ac_status" >&5
8709 echo "$as_me: failed program was
:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8713 if test "$ac_cv_type_void_p" = yes; then
8714 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8715 See \
`config.log' for more details." >&5
8716 echo "$as_me: error: cannot compute sizeof (void *)
8717 See \`config.log
' for more details." >&2;}
8718 { (exit 77); exit 77; }; }
8720 ac_cv_sizeof_void_p=0
8723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8728 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8732 cat >>confdefs.h <<_ACEOF
8733 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8737 { echo "$as_me:$LINENO: checking for short" >&5
8738 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8739 if test "${ac_cv_type_short+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 cat >conftest.$ac_ext <<_ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 $ac_includes_default
8749 typedef short ac__type_new_;
8753 if ((ac__type_new_ *) 0)
8755 if (sizeof (ac__type_new_))
8761 rm -f conftest.$ac_objext
8762 if { (ac_try="$ac_compile"
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8770 grep -v '^
*+' conftest.er1 >conftest.err
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 ac_cv_type_short=yes
8780 echo "$as_me: failed program was:" >&5
8781 sed 's
/^
/|
/' conftest.$ac_ext >&5
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8789 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8791 # The cast to long int works around a bug in the HP C Compiler
8792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8794 # This bug is HP SR number 8606223364.
8795 { echo "$as_me:$LINENO: checking size of short" >&5
8796 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8797 if test "${ac_cv_sizeof_short+set}" = set; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 if test "$cross_compiling" = yes; then
8801 # Depending upon the size, compute the lo and hi bounds.
8802 cat >conftest.
$ac_ext <<_ACEOF
8805 cat confdefs.h
>>conftest.
$ac_ext
8806 cat >>conftest.
$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8808 $ac_includes_default
8809 typedef short ac__type_sizeof_;
8813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8820 rm -f conftest.
$ac_objext
8821 if { (ac_try
="$ac_compile"
8823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8824 *) ac_try_echo=$ac_try;;
8826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8829 grep -v '^ *+' conftest.er1 >conftest.err
8831 cat conftest.err >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.$ac_objext; then
8839 cat >conftest.$ac_ext <<_ACEOF
8842 cat confdefs.h >>conftest.$ac_ext
8843 cat >>conftest.$ac_ext <<_ACEOF
8844 /* end confdefs.h. */
8845 $ac_includes_default
8846 typedef short ac__type_sizeof_;
8850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8857 rm -f conftest.$ac_objext
8858 if { (ac_try="$ac_compile"
8860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8861 *) ac_try_echo
=$ac_try;;
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_compile") 2>conftest.er1
8866 grep -v '^ *+' conftest.er1
>conftest.err
8868 cat conftest.err
>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && {
8871 test -z "$ac_c_werror_flag" ||
8872 test ! -s conftest.err
8873 } && test -s conftest.
$ac_objext; then
8874 ac_hi
=$ac_mid; break
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.
$ac_ext >&5
8879 ac_lo
=`expr $ac_mid + 1`
8880 if test $ac_lo -le $ac_mid; then
8884 ac_mid
=`expr 2 '*' $ac_mid + 1`
8887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.
$ac_ext >&5
8893 cat >conftest.
$ac_ext <<_ACEOF
8896 cat confdefs.h
>>conftest.
$ac_ext
8897 cat >>conftest.
$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 $ac_includes_default
8900 typedef short ac__type_sizeof_;
8904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8911 rm -f conftest.
$ac_objext
8912 if { (ac_try
="$ac_compile"
8914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_compile") 2>conftest.er1
8920 grep -v '^ *+' conftest.er1 >conftest.err
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest.$ac_objext; then
8930 cat >conftest.$ac_ext <<_ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8936 $ac_includes_default
8937 typedef short ac__type_sizeof_;
8941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8948 rm -f conftest.$ac_objext
8949 if { (ac_try="$ac_compile"
8951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8952 *) ac_try_echo
=$ac_try;;
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_compile") 2>conftest.er1
8957 grep -v '^ *+' conftest.er1
>conftest.err
8959 cat conftest.err
>&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && {
8962 test -z "$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest.
$ac_objext; then
8965 ac_lo
=$ac_mid; break
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.
$ac_ext >&5
8970 ac_hi
=`expr '(' $ac_mid ')' - 1`
8971 if test $ac_mid -le $ac_hi; then
8975 ac_mid
=`expr 2 '*' $ac_mid`
8978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.
$ac_ext >&5
8987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8991 # Binary search between lo and hi bounds.
8992 while test "x$ac_lo" != "x$ac_hi"; do
8993 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8994 cat >conftest.
$ac_ext <<_ACEOF
8997 cat confdefs.h
>>conftest.
$ac_ext
8998 cat >>conftest.
$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 $ac_includes_default
9001 typedef short ac__type_sizeof_;
9005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9012 rm -f conftest.
$ac_objext
9013 if { (ac_try
="$ac_compile"
9015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9016 *) ac_try_echo=$ac_try;;
9018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9019 (eval "$ac_compile") 2>conftest.er1
9021 grep -v '^ *+' conftest.er1 >conftest.err
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } && {
9026 test -z "$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9028 } && test -s conftest.$ac_objext; then
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9034 ac_lo=`expr '(' $ac_mid ')' + 1`
9037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 ?*) ac_cv_sizeof_short=$ac_lo;;
9041 '') if test "$ac_cv_type_short" = yes; then
9042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9043 See \`config.log
' for more details." >&5
9044 echo "$as_me: error: cannot compute sizeof (short)
9045 See \`config.log' for more details.
" >&2;}
9046 { (exit 77); exit 77; }; }
9048 ac_cv_sizeof_short=0
9052 cat >conftest.$ac_ext <<_ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 $ac_includes_default
9059 typedef short ac__type_sizeof_;
9060 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9061 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9068 FILE *f = fopen ("conftest.val
", "w
");
9071 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9073 long int i = longval ();
9074 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9076 fprintf (f, "%ld
\n", i);
9080 unsigned long int i = ulongval ();
9081 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9083 fprintf (f, "%lu
\n", i);
9085 return ferror (f) || fclose (f) != 0;
9091 rm -f conftest$ac_exeext
9092 if { (ac_try="$ac_link"
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_link") 2>&5
9100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9102 { (case "(($ac_try" in
9103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9104 *) ac_try_echo=$ac_try;;
9106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9107 (eval "$ac_try") 2>&5
9109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_sizeof_short=`cat conftest.val`
9113 echo "$as_me: program exited with status
$ac_status" >&5
9114 echo "$as_me: failed program was
:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9118 if test "$ac_cv_type_short" = yes; then
9119 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9120 See \
`config.log' for more details." >&5
9121 echo "$as_me: error: cannot compute sizeof (short)
9122 See \`config.log
' for more details." >&2;}
9123 { (exit 77); exit 77; }; }
9125 ac_cv_sizeof_short=0
9128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9132 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9133 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9137 cat >>confdefs.h <<_ACEOF
9138 #define SIZEOF_SHORT $ac_cv_sizeof_short
9142 { echo "$as_me:$LINENO: checking for float" >&5
9143 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9144 if test "${ac_cv_type_float+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 cat >conftest.$ac_ext <<_ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 $ac_includes_default
9154 typedef float ac__type_new_;
9158 if ((ac__type_new_ *) 0)
9160 if (sizeof (ac__type_new_))
9166 rm -f conftest.$ac_objext
9167 if { (ac_try="$ac_compile"
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_compile") 2>conftest.er1
9175 grep -v '^
*+' conftest.er1 >conftest.err
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } && {
9180 test -z "$ac_c_werror_flag" ||
9181 test ! -s conftest.err
9182 } && test -s conftest.$ac_objext; then
9183 ac_cv_type_float=yes
9185 echo "$as_me: failed program was:" >&5
9186 sed 's
/^
/|
/' conftest.$ac_ext >&5
9191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9194 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9196 # The cast to long int works around a bug in the HP C Compiler
9197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9199 # This bug is HP SR number 8606223364.
9200 { echo "$as_me:$LINENO: checking size of float" >&5
9201 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9202 if test "${ac_cv_sizeof_float+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 if test "$cross_compiling" = yes; then
9206 # Depending upon the size, compute the lo and hi bounds.
9207 cat >conftest.
$ac_ext <<_ACEOF
9210 cat confdefs.h
>>conftest.
$ac_ext
9211 cat >>conftest.
$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 $ac_includes_default
9214 typedef float ac__type_sizeof_;
9218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9225 rm -f conftest.
$ac_objext
9226 if { (ac_try
="$ac_compile"
9228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9229 *) ac_try_echo=$ac_try;;
9231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9232 (eval "$ac_compile") 2>conftest.er1
9234 grep -v '^ *+' conftest.er1 >conftest.err
9236 cat conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } && {
9239 test -z "$ac_c_werror_flag" ||
9240 test ! -s conftest.err
9241 } && test -s conftest.$ac_objext; then
9244 cat >conftest.$ac_ext <<_ACEOF
9247 cat confdefs.h >>conftest.$ac_ext
9248 cat >>conftest.$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 $ac_includes_default
9251 typedef float ac__type_sizeof_;
9255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9262 rm -f conftest.$ac_objext
9263 if { (ac_try="$ac_compile"
9265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9266 *) ac_try_echo
=$ac_try;;
9268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9269 (eval "$ac_compile") 2>conftest.er1
9271 grep -v '^ *+' conftest.er1
>conftest.err
9273 cat conftest.err
>&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } && {
9276 test -z "$ac_c_werror_flag" ||
9277 test ! -s conftest.err
9278 } && test -s conftest.
$ac_objext; then
9279 ac_hi
=$ac_mid; break
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.
$ac_ext >&5
9284 ac_lo
=`expr $ac_mid + 1`
9285 if test $ac_lo -le $ac_mid; then
9289 ac_mid
=`expr 2 '*' $ac_mid + 1`
9292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.
$ac_ext >&5
9298 cat >conftest.
$ac_ext <<_ACEOF
9301 cat confdefs.h
>>conftest.
$ac_ext
9302 cat >>conftest.
$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 $ac_includes_default
9305 typedef float ac__type_sizeof_;
9309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9316 rm -f conftest.
$ac_objext
9317 if { (ac_try
="$ac_compile"
9319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_compile") 2>conftest.er1
9325 grep -v '^ *+' conftest.er1 >conftest.err
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && {
9330 test -z "$ac_c_werror_flag" ||
9331 test ! -s conftest.err
9332 } && test -s conftest.$ac_objext; then
9335 cat >conftest.$ac_ext <<_ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9341 $ac_includes_default
9342 typedef float ac__type_sizeof_;
9346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9353 rm -f conftest.$ac_objext
9354 if { (ac_try="$ac_compile"
9356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9357 *) ac_try_echo
=$ac_try;;
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1
>conftest.err
9364 cat conftest.err
>&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.
$ac_objext; then
9370 ac_lo
=$ac_mid; break
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.
$ac_ext >&5
9375 ac_hi
=`expr '(' $ac_mid ')' - 1`
9376 if test $ac_mid -le $ac_hi; then
9380 ac_mid
=`expr 2 '*' $ac_mid`
9383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.
$ac_ext >&5
9392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9396 # Binary search between lo and hi bounds.
9397 while test "x$ac_lo" != "x$ac_hi"; do
9398 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9399 cat >conftest.
$ac_ext <<_ACEOF
9402 cat confdefs.h
>>conftest.
$ac_ext
9403 cat >>conftest.
$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9405 $ac_includes_default
9406 typedef float ac__type_sizeof_;
9410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9417 rm -f conftest.
$ac_objext
9418 if { (ac_try
="$ac_compile"
9420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_compile") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest.$ac_objext; then
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_lo=`expr '(' $ac_mid ')' + 1`
9442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9445 ?*) ac_cv_sizeof_float=$ac_lo;;
9446 '') if test "$ac_cv_type_float" = yes; then
9447 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9448 See \`config.log
' for more details." >&5
9449 echo "$as_me: error: cannot compute sizeof (float)
9450 See \`config.log' for more details.
" >&2;}
9451 { (exit 77); exit 77; }; }
9453 ac_cv_sizeof_float=0
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 $ac_includes_default
9464 typedef float ac__type_sizeof_;
9465 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9466 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9473 FILE *f = fopen ("conftest.val
", "w
");
9476 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9478 long int i = longval ();
9479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9481 fprintf (f, "%ld
\n", i);
9485 unsigned long int i = ulongval ();
9486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9488 fprintf (f, "%lu
\n", i);
9490 return ferror (f) || fclose (f) != 0;
9496 rm -f conftest$ac_exeext
9497 if { (ac_try="$ac_link"
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_link") 2>&5
9505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9507 { (case "(($ac_try" in
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_try") 2>&5
9514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9515 (exit $ac_status); }; }; then
9516 ac_cv_sizeof_float=`cat conftest.val`
9518 echo "$as_me: program exited with status
$ac_status" >&5
9519 echo "$as_me: failed program was
:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9523 if test "$ac_cv_type_float" = yes; then
9524 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9525 See \
`config.log' for more details." >&5
9526 echo "$as_me: error: cannot compute sizeof (float)
9527 See \`config.log
' for more details." >&2;}
9528 { (exit 77); exit 77; }; }
9530 ac_cv_sizeof_float=0
9533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9537 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9538 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9542 cat >>confdefs.h <<_ACEOF
9543 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9547 { echo "$as_me:$LINENO: checking for double" >&5
9548 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9549 if test "${ac_cv_type_double+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 cat >conftest.$ac_ext <<_ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9558 $ac_includes_default
9559 typedef double ac__type_new_;
9563 if ((ac__type_new_ *) 0)
9565 if (sizeof (ac__type_new_))
9571 rm -f conftest.$ac_objext
9572 if { (ac_try="$ac_compile"
9574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575 *) ac_try_echo=$ac_try;;
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578 (eval "$ac_compile") 2>conftest.er1
9580 grep -v '^
*+' conftest.er1 >conftest.err
9582 cat conftest.err >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } && {
9585 test -z "$ac_c_werror_flag" ||
9586 test ! -s conftest.err
9587 } && test -s conftest.$ac_objext; then
9588 ac_cv_type_double=yes
9590 echo "$as_me: failed program was:" >&5
9591 sed 's
/^
/|
/' conftest.$ac_ext >&5
9593 ac_cv_type_double=no
9596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9599 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9601 # The cast to long int works around a bug in the HP C Compiler
9602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9604 # This bug is HP SR number 8606223364.
9605 { echo "$as_me:$LINENO: checking size of double" >&5
9606 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9607 if test "${ac_cv_sizeof_double+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 if test "$cross_compiling" = yes; then
9611 # Depending upon the size, compute the lo and hi bounds.
9612 cat >conftest.
$ac_ext <<_ACEOF
9615 cat confdefs.h
>>conftest.
$ac_ext
9616 cat >>conftest.
$ac_ext <<_ACEOF
9617 /* end confdefs.h. */
9618 $ac_includes_default
9619 typedef double ac__type_sizeof_;
9623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9630 rm -f conftest.
$ac_objext
9631 if { (ac_try
="$ac_compile"
9633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_compile") 2>conftest.er1
9639 grep -v '^ *+' conftest.er1 >conftest.err
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest.$ac_objext; then
9649 cat >conftest.$ac_ext <<_ACEOF
9652 cat confdefs.h >>conftest.$ac_ext
9653 cat >>conftest.$ac_ext <<_ACEOF
9654 /* end confdefs.h. */
9655 $ac_includes_default
9656 typedef double ac__type_sizeof_;
9660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9667 rm -f conftest.$ac_objext
9668 if { (ac_try="$ac_compile"
9670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9671 *) ac_try_echo
=$ac_try;;
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_compile") 2>conftest.er1
9676 grep -v '^ *+' conftest.er1
>conftest.err
9678 cat conftest.err
>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } && {
9681 test -z "$ac_c_werror_flag" ||
9682 test ! -s conftest.err
9683 } && test -s conftest.
$ac_objext; then
9684 ac_hi
=$ac_mid; break
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.
$ac_ext >&5
9689 ac_lo
=`expr $ac_mid + 1`
9690 if test $ac_lo -le $ac_mid; then
9694 ac_mid
=`expr 2 '*' $ac_mid + 1`
9697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.
$ac_ext >&5
9703 cat >conftest.
$ac_ext <<_ACEOF
9706 cat confdefs.h
>>conftest.
$ac_ext
9707 cat >>conftest.
$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 $ac_includes_default
9710 typedef double ac__type_sizeof_;
9714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9721 rm -f conftest.
$ac_objext
9722 if { (ac_try
="$ac_compile"
9724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_compile") 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest.$ac_objext; then
9740 cat >conftest.$ac_ext <<_ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746 $ac_includes_default
9747 typedef double ac__type_sizeof_;
9751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9758 rm -f conftest.$ac_objext
9759 if { (ac_try="$ac_compile"
9761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9762 *) ac_try_echo
=$ac_try;;
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_compile") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1
>conftest.err
9769 cat conftest.err
>&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } && {
9772 test -z "$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9774 } && test -s conftest.
$ac_objext; then
9775 ac_lo
=$ac_mid; break
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.
$ac_ext >&5
9780 ac_hi
=`expr '(' $ac_mid ')' - 1`
9781 if test $ac_mid -le $ac_hi; then
9785 ac_mid
=`expr 2 '*' $ac_mid`
9788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.
$ac_ext >&5
9797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9801 # Binary search between lo and hi bounds.
9802 while test "x$ac_lo" != "x$ac_hi"; do
9803 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9804 cat >conftest.
$ac_ext <<_ACEOF
9807 cat confdefs.h
>>conftest.
$ac_ext
9808 cat >>conftest.
$ac_ext <<_ACEOF
9809 /* end confdefs.h. */
9810 $ac_includes_default
9811 typedef double ac__type_sizeof_;
9815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9822 rm -f conftest.
$ac_objext
9823 if { (ac_try
="$ac_compile"
9825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829 (eval "$ac_compile") 2>conftest.er1
9831 grep -v '^ *+' conftest.er1 >conftest.err
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } && {
9836 test -z "$ac_c_werror_flag" ||
9837 test ! -s conftest.err
9838 } && test -s conftest.$ac_objext; then
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ac_lo=`expr '(' $ac_mid ')' + 1`
9847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850 ?*) ac_cv_sizeof_double=$ac_lo;;
9851 '') if test "$ac_cv_type_double" = yes; then
9852 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9853 See \`config.log
' for more details." >&5
9854 echo "$as_me: error: cannot compute sizeof (double)
9855 See \`config.log' for more details.
" >&2;}
9856 { (exit 77); exit 77; }; }
9858 ac_cv_sizeof_double=0
9862 cat >conftest.$ac_ext <<_ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 $ac_includes_default
9869 typedef double ac__type_sizeof_;
9870 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9871 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9878 FILE *f = fopen ("conftest.val
", "w
");
9881 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9883 long int i = longval ();
9884 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9886 fprintf (f, "%ld
\n", i);
9890 unsigned long int i = ulongval ();
9891 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9893 fprintf (f, "%lu
\n", i);
9895 return ferror (f) || fclose (f) != 0;
9901 rm -f conftest$ac_exeext
9902 if { (ac_try="$ac_link"
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_link") 2>&5
9910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9912 { (case "(($ac_try" in
9913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_try") 2>&5
9919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 ac_cv_sizeof_double=`cat conftest.val`
9923 echo "$as_me: program exited with status
$ac_status" >&5
9924 echo "$as_me: failed program was
:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9928 if test "$ac_cv_type_double" = yes; then
9929 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9930 See \
`config.log' for more details." >&5
9931 echo "$as_me: error: cannot compute sizeof (double)
9932 See \`config.log
' for more details." >&2;}
9933 { (exit 77); exit 77; }; }
9935 ac_cv_sizeof_double=0
9938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9942 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9943 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9947 cat >>confdefs.h <<_ACEOF
9948 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9952 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9953 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9954 if test "${ac_cv_type_fpos_t+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 $ac_includes_default
9964 typedef fpos_t ac__type_new_;
9968 if ((ac__type_new_ *) 0)
9970 if (sizeof (ac__type_new_))
9976 rm -f conftest.$ac_objext
9977 if { (ac_try="$ac_compile"
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_compile") 2>conftest.er1
9985 grep -v '^
*+' conftest.er1 >conftest.err
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest.$ac_objext; then
9993 ac_cv_type_fpos_t=yes
9995 echo "$as_me: failed program was:" >&5
9996 sed 's
/^
/|
/' conftest.$ac_ext >&5
9998 ac_cv_type_fpos_t=no
10001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10004 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10006 # The cast to long int works around a bug in the HP C Compiler
10007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10009 # This bug is HP SR number 8606223364.
10010 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10011 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10012 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 if test "$cross_compiling" = yes; then
10016 # Depending upon the size, compute the lo and hi bounds.
10017 cat >conftest.
$ac_ext <<_ACEOF
10020 cat confdefs.h
>>conftest.
$ac_ext
10021 cat >>conftest.
$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 $ac_includes_default
10024 typedef fpos_t ac__type_sizeof_;
10028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10035 rm -f conftest.
$ac_objext
10036 if { (ac_try
="$ac_compile"
10037 case "(($ac_try" in
10038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_compile") 2>conftest.er1
10044 grep -v '^ *+' conftest.er1 >conftest.err
10046 cat conftest.err >&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest.$ac_objext; then
10054 cat >conftest.$ac_ext <<_ACEOF
10057 cat confdefs.h >>conftest.$ac_ext
10058 cat >>conftest.$ac_ext <<_ACEOF
10059 /* end confdefs.h. */
10060 $ac_includes_default
10061 typedef fpos_t ac__type_sizeof_;
10065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10072 rm -f conftest.$ac_objext
10073 if { (ac_try="$ac_compile"
10074 case "(($ac_try" in
10075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10076 *) ac_try_echo
=$ac_try;;
10078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10079 (eval "$ac_compile") 2>conftest.er1
10081 grep -v '^ *+' conftest.er1
>conftest.err
10083 cat conftest.err
>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } && {
10086 test -z "$ac_c_werror_flag" ||
10087 test ! -s conftest.err
10088 } && test -s conftest.
$ac_objext; then
10089 ac_hi
=$ac_mid; break
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.
$ac_ext >&5
10094 ac_lo
=`expr $ac_mid + 1`
10095 if test $ac_lo -le $ac_mid; then
10099 ac_mid
=`expr 2 '*' $ac_mid + 1`
10102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.
$ac_ext >&5
10108 cat >conftest.
$ac_ext <<_ACEOF
10111 cat confdefs.h
>>conftest.
$ac_ext
10112 cat >>conftest.
$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114 $ac_includes_default
10115 typedef fpos_t ac__type_sizeof_;
10119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10126 rm -f conftest.
$ac_objext
10127 if { (ac_try
="$ac_compile"
10128 case "(($ac_try" in
10129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_compile") 2>conftest.er1
10135 grep -v '^ *+' conftest.er1 >conftest.err
10137 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest.$ac_objext; then
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 $ac_includes_default
10152 typedef fpos_t ac__type_sizeof_;
10156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10163 rm -f conftest.$ac_objext
10164 if { (ac_try="$ac_compile"
10165 case "(($ac_try" in
10166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10167 *) ac_try_echo
=$ac_try;;
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_compile") 2>conftest.er1
10172 grep -v '^ *+' conftest.er1
>conftest.err
10174 cat conftest.err
>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest.
$ac_objext; then
10180 ac_lo
=$ac_mid; break
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.
$ac_ext >&5
10185 ac_hi
=`expr '(' $ac_mid ')' - 1`
10186 if test $ac_mid -le $ac_hi; then
10190 ac_mid
=`expr 2 '*' $ac_mid`
10193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.
$ac_ext >&5
10202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10206 # Binary search between lo and hi bounds.
10207 while test "x$ac_lo" != "x$ac_hi"; do
10208 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10209 cat >conftest.
$ac_ext <<_ACEOF
10212 cat confdefs.h
>>conftest.
$ac_ext
10213 cat >>conftest.
$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 $ac_includes_default
10216 typedef fpos_t ac__type_sizeof_;
10220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10227 rm -f conftest.
$ac_objext
10228 if { (ac_try
="$ac_compile"
10229 case "(($ac_try" in
10230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_compile") 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest.$ac_objext; then
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ac_lo=`expr '(' $ac_mid ')' + 1`
10252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10255 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10256 '') if test "$ac_cv_type_fpos_t" = yes; then
10257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10258 See \`config.log
' for more details." >&5
10259 echo "$as_me: error: cannot compute sizeof (fpos_t)
10260 See \`config.log' for more details.
" >&2;}
10261 { (exit 77); exit 77; }; }
10263 ac_cv_sizeof_fpos_t=0
10267 cat >conftest.$ac_ext <<_ACEOF
10270 cat confdefs.h >>conftest.$ac_ext
10271 cat >>conftest.$ac_ext <<_ACEOF
10272 /* end confdefs.h. */
10273 $ac_includes_default
10274 typedef fpos_t ac__type_sizeof_;
10275 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10276 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10278 #include <stdlib.h>
10283 FILE *f = fopen ("conftest.val
", "w
");
10286 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10288 long int i = longval ();
10289 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10291 fprintf (f, "%ld
\n", i);
10295 unsigned long int i = ulongval ();
10296 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10298 fprintf (f, "%lu
\n", i);
10300 return ferror (f) || fclose (f) != 0;
10306 rm -f conftest$ac_exeext
10307 if { (ac_try="$ac_link"
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_link") 2>&5
10315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10317 { (case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_try") 2>&5
10324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_cv_sizeof_fpos_t=`cat conftest.val`
10328 echo "$as_me: program exited with status
$ac_status" >&5
10329 echo "$as_me: failed program was
:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 ( exit $ac_status )
10333 if test "$ac_cv_type_fpos_t" = yes; then
10334 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10335 See \
`config.log' for more details." >&5
10336 echo "$as_me: error: cannot compute sizeof (fpos_t)
10337 See \`config.log
' for more details." >&2;}
10338 { (exit 77); exit 77; }; }
10340 ac_cv_sizeof_fpos_t=0
10343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10347 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10348 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10352 cat >>confdefs.h <<_ACEOF
10353 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10357 { echo "$as_me:$LINENO: checking for size_t" >&5
10358 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10359 if test "${ac_cv_type_size_t+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 cat >conftest.$ac_ext <<_ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 $ac_includes_default
10369 typedef size_t ac__type_new_;
10373 if ((ac__type_new_ *) 0)
10375 if (sizeof (ac__type_new_))
10381 rm -f conftest.$ac_objext
10382 if { (ac_try="$ac_compile"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_compile") 2>conftest.er1
10390 grep -v '^
*+' conftest.er1 >conftest.err
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && {
10395 test -z "$ac_c_werror_flag" ||
10396 test ! -s conftest.err
10397 } && test -s conftest.$ac_objext; then
10398 ac_cv_type_size_t=yes
10400 echo "$as_me: failed program was:" >&5
10401 sed 's
/^
/|
/' conftest.$ac_ext >&5
10403 ac_cv_type_size_t=no
10406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10408 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10409 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10411 # The cast to long int works around a bug in the HP C Compiler
10412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10414 # This bug is HP SR number 8606223364.
10415 { echo "$as_me:$LINENO: checking size of size_t" >&5
10416 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10417 if test "${ac_cv_sizeof_size_t+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 if test "$cross_compiling" = yes; then
10421 # Depending upon the size, compute the lo and hi bounds.
10422 cat >conftest.
$ac_ext <<_ACEOF
10425 cat confdefs.h
>>conftest.
$ac_ext
10426 cat >>conftest.
$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428 $ac_includes_default
10429 typedef size_t ac__type_sizeof_;
10433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10440 rm -f conftest.
$ac_objext
10441 if { (ac_try
="$ac_compile"
10442 case "(($ac_try" in
10443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_compile") 2>conftest.er1
10449 grep -v '^ *+' conftest.er1 >conftest.err
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest.$ac_objext; then
10459 cat >conftest.$ac_ext <<_ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10465 $ac_includes_default
10466 typedef size_t ac__type_sizeof_;
10470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10477 rm -f conftest.$ac_objext
10478 if { (ac_try="$ac_compile"
10479 case "(($ac_try" in
10480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10481 *) ac_try_echo
=$ac_try;;
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_compile") 2>conftest.er1
10486 grep -v '^ *+' conftest.er1
>conftest.err
10488 cat conftest.err
>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest.
$ac_objext; then
10494 ac_hi
=$ac_mid; break
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.
$ac_ext >&5
10499 ac_lo
=`expr $ac_mid + 1`
10500 if test $ac_lo -le $ac_mid; then
10504 ac_mid
=`expr 2 '*' $ac_mid + 1`
10507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.
$ac_ext >&5
10513 cat >conftest.
$ac_ext <<_ACEOF
10516 cat confdefs.h
>>conftest.
$ac_ext
10517 cat >>conftest.
$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519 $ac_includes_default
10520 typedef size_t ac__type_sizeof_;
10524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10531 rm -f conftest.
$ac_objext
10532 if { (ac_try
="$ac_compile"
10533 case "(($ac_try" in
10534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_compile") 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest.$ac_objext; then
10550 cat >conftest.$ac_ext <<_ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 $ac_includes_default
10557 typedef size_t ac__type_sizeof_;
10561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10572 *) ac_try_echo
=$ac_try;;
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575 (eval "$ac_compile") 2>conftest.er1
10577 grep -v '^ *+' conftest.er1
>conftest.err
10579 cat conftest.err
>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } && {
10582 test -z "$ac_c_werror_flag" ||
10583 test ! -s conftest.err
10584 } && test -s conftest.
$ac_objext; then
10585 ac_lo
=$ac_mid; break
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.
$ac_ext >&5
10590 ac_hi
=`expr '(' $ac_mid ')' - 1`
10591 if test $ac_mid -le $ac_hi; then
10595 ac_mid
=`expr 2 '*' $ac_mid`
10598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.
$ac_ext >&5
10607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10611 # Binary search between lo and hi bounds.
10612 while test "x$ac_lo" != "x$ac_hi"; do
10613 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10614 cat >conftest.
$ac_ext <<_ACEOF
10617 cat confdefs.h
>>conftest.
$ac_ext
10618 cat >>conftest.
$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 $ac_includes_default
10621 typedef size_t ac__type_sizeof_;
10625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10632 rm -f conftest.
$ac_objext
10633 if { (ac_try
="$ac_compile"
10634 case "(($ac_try" in
10635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10636 *) ac_try_echo=$ac_try;;
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_compile") 2>conftest.er1
10641 grep -v '^ *+' conftest.er1 >conftest.err
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest.$ac_objext; then
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 ac_lo=`expr '(' $ac_mid ')' + 1`
10657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10661 '') if test "$ac_cv_type_size_t" = yes; then
10662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10663 See \`config.log
' for more details." >&5
10664 echo "$as_me: error: cannot compute sizeof (size_t)
10665 See \`config.log' for more details.
" >&2;}
10666 { (exit 77); exit 77; }; }
10668 ac_cv_sizeof_size_t=0
10672 cat >conftest.$ac_ext <<_ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 $ac_includes_default
10679 typedef size_t ac__type_sizeof_;
10680 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10681 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10683 #include <stdlib.h>
10688 FILE *f = fopen ("conftest.val
", "w
");
10691 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10693 long int i = longval ();
10694 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10696 fprintf (f, "%ld
\n", i);
10700 unsigned long int i = ulongval ();
10701 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10703 fprintf (f, "%lu
\n", i);
10705 return ferror (f) || fclose (f) != 0;
10711 rm -f conftest$ac_exeext
10712 if { (ac_try="$ac_link"
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_link") 2>&5
10720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10722 { (case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_try") 2>&5
10729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10730 (exit $ac_status); }; }; then
10731 ac_cv_sizeof_size_t=`cat conftest.val`
10733 echo "$as_me: program exited with status
$ac_status" >&5
10734 echo "$as_me: failed program was
:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10737 ( exit $ac_status )
10738 if test "$ac_cv_type_size_t" = yes; then
10739 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10740 See \
`config.log' for more details." >&5
10741 echo "$as_me: error: cannot compute sizeof (size_t)
10742 See \`config.log
' for more details." >&2;}
10743 { (exit 77); exit 77; }; }
10745 ac_cv_sizeof_size_t=0
10748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10752 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10753 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10757 cat >>confdefs.h <<_ACEOF
10758 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10762 { echo "$as_me:$LINENO: checking for pid_t" >&5
10763 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10764 if test "${ac_cv_type_pid_t+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 cat >conftest.$ac_ext <<_ACEOF
10770 cat confdefs.h >>conftest.$ac_ext
10771 cat >>conftest.$ac_ext <<_ACEOF
10772 /* end confdefs.h. */
10773 $ac_includes_default
10774 typedef pid_t ac__type_new_;
10778 if ((ac__type_new_ *) 0)
10780 if (sizeof (ac__type_new_))
10786 rm -f conftest.$ac_objext
10787 if { (ac_try="$ac_compile"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_compile") 2>conftest.er1
10795 grep -v '^
*+' conftest.er1 >conftest.err
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest.$ac_objext; then
10803 ac_cv_type_pid_t=yes
10805 echo "$as_me: failed program was:" >&5
10806 sed 's
/^
/|
/' conftest.$ac_ext >&5
10808 ac_cv_type_pid_t=no
10811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10814 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10816 # The cast to long int works around a bug in the HP C Compiler
10817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10819 # This bug is HP SR number 8606223364.
10820 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10821 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10822 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 if test "$cross_compiling" = yes; then
10826 # Depending upon the size, compute the lo and hi bounds.
10827 cat >conftest.
$ac_ext <<_ACEOF
10830 cat confdefs.h
>>conftest.
$ac_ext
10831 cat >>conftest.
$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 $ac_includes_default
10834 typedef pid_t ac__type_sizeof_;
10838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10845 rm -f conftest.
$ac_objext
10846 if { (ac_try
="$ac_compile"
10847 case "(($ac_try" in
10848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_compile") 2>conftest.er1
10854 grep -v '^ *+' conftest.er1 >conftest.err
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } && {
10859 test -z "$ac_c_werror_flag" ||
10860 test ! -s conftest.err
10861 } && test -s conftest.$ac_objext; then
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10870 $ac_includes_default
10871 typedef pid_t ac__type_sizeof_;
10875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10882 rm -f conftest.$ac_objext
10883 if { (ac_try="$ac_compile"
10884 case "(($ac_try" in
10885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10886 *) ac_try_echo
=$ac_try;;
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_compile") 2>conftest.er1
10891 grep -v '^ *+' conftest.er1
>conftest.err
10893 cat conftest.err
>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); } && {
10896 test -z "$ac_c_werror_flag" ||
10897 test ! -s conftest.err
10898 } && test -s conftest.
$ac_objext; then
10899 ac_hi
=$ac_mid; break
10901 echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.
$ac_ext >&5
10904 ac_lo
=`expr $ac_mid + 1`
10905 if test $ac_lo -le $ac_mid; then
10909 ac_mid
=`expr 2 '*' $ac_mid + 1`
10912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.
$ac_ext >&5
10918 cat >conftest.
$ac_ext <<_ACEOF
10921 cat confdefs.h
>>conftest.
$ac_ext
10922 cat >>conftest.
$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 $ac_includes_default
10925 typedef pid_t ac__type_sizeof_;
10929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10936 rm -f conftest.
$ac_objext
10937 if { (ac_try
="$ac_compile"
10938 case "(($ac_try" in
10939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_compile") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && {
10950 test -z "$ac_c_werror_flag" ||
10951 test ! -s conftest.err
10952 } && test -s conftest.$ac_objext; then
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10961 $ac_includes_default
10962 typedef pid_t ac__type_sizeof_;
10966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10973 rm -f conftest.$ac_objext
10974 if { (ac_try="$ac_compile"
10975 case "(($ac_try" in
10976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10977 *) ac_try_echo
=$ac_try;;
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_compile") 2>conftest.er1
10982 grep -v '^ *+' conftest.er1
>conftest.err
10984 cat conftest.err
>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } && {
10987 test -z "$ac_c_werror_flag" ||
10988 test ! -s conftest.err
10989 } && test -s conftest.
$ac_objext; then
10990 ac_lo
=$ac_mid; break
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.
$ac_ext >&5
10995 ac_hi
=`expr '(' $ac_mid ')' - 1`
10996 if test $ac_mid -le $ac_hi; then
11000 ac_mid
=`expr 2 '*' $ac_mid`
11003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.
$ac_ext >&5
11012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11016 # Binary search between lo and hi bounds.
11017 while test "x$ac_lo" != "x$ac_hi"; do
11018 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11019 cat >conftest.
$ac_ext <<_ACEOF
11022 cat confdefs.h
>>conftest.
$ac_ext
11023 cat >>conftest.
$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 $ac_includes_default
11026 typedef pid_t ac__type_sizeof_;
11030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11037 rm -f conftest.
$ac_objext
11038 if { (ac_try
="$ac_compile"
11039 case "(($ac_try" in
11040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_compile") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest.$ac_objext; then
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 ac_lo=`expr '(' $ac_mid ')' + 1`
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11066 '') if test "$ac_cv_type_pid_t" = yes; then
11067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11068 See \`config.log
' for more details." >&5
11069 echo "$as_me: error: cannot compute sizeof (pid_t)
11070 See \`config.log' for more details.
" >&2;}
11071 { (exit 77); exit 77; }; }
11073 ac_cv_sizeof_pid_t=0
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 $ac_includes_default
11084 typedef pid_t ac__type_sizeof_;
11085 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11086 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11088 #include <stdlib.h>
11093 FILE *f = fopen ("conftest.val
", "w
");
11096 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11098 long int i = longval ();
11099 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11101 fprintf (f, "%ld
\n", i);
11105 unsigned long int i = ulongval ();
11106 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11108 fprintf (f, "%lu
\n", i);
11110 return ferror (f) || fclose (f) != 0;
11116 rm -f conftest$ac_exeext
11117 if { (ac_try="$ac_link"
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_link") 2>&5
11125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11127 { (case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_try") 2>&5
11134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11135 (exit $ac_status); }; }; then
11136 ac_cv_sizeof_pid_t=`cat conftest.val`
11138 echo "$as_me: program exited with status
$ac_status" >&5
11139 echo "$as_me: failed program was
:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 ( exit $ac_status )
11143 if test "$ac_cv_type_pid_t" = yes; then
11144 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11145 See \
`config.log' for more details." >&5
11146 echo "$as_me: error: cannot compute sizeof (pid_t)
11147 See \`config.log
' for more details." >&2;}
11148 { (exit 77); exit 77; }; }
11150 ac_cv_sizeof_pid_t=0
11153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11157 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11158 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11162 cat >>confdefs.h <<_ACEOF
11163 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11168 { echo "$as_me:$LINENO: checking for long long support" >&5
11169 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11181 long long x; x = (long long)0;
11186 rm -f conftest.$ac_objext
11187 if { (ac_try="$ac_compile"
11188 case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_compile") 2>conftest.er1
11195 grep -v '^
*+' conftest.er1 >conftest.err
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_c_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest.$ac_objext; then
11205 cat >>confdefs.h <<\_ACEOF
11206 #define HAVE_LONG_LONG 1
11212 echo "$as_me: failed program was:" >&5
11213 sed 's
/^
/|
/' conftest.$ac_ext >&5
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11220 echo "${ECHO_T}$have_long_long" >&6; }
11221 if test "$have_long_long" = yes ; then
11222 { echo "$as_me:$LINENO: checking for long long" >&5
11223 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11224 if test "${ac_cv_type_long_long+set}" = set; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 cat >conftest.$ac_ext <<_ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11233 $ac_includes_default
11234 typedef long long ac__type_new_;
11238 if ((ac__type_new_ *) 0)
11240 if (sizeof (ac__type_new_))
11246 rm -f conftest.$ac_objext
11247 if { (ac_try="$ac_compile"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_compile") 2>conftest.er1
11255 grep -v '^
*+' conftest.er1 >conftest.err
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && {
11260 test -z "$ac_c_werror_flag" ||
11261 test ! -s conftest.err
11262 } && test -s conftest.$ac_objext; then
11263 ac_cv_type_long_long=yes
11265 echo "$as_me: failed program was:" >&5
11266 sed 's
/^
/|
/' conftest.$ac_ext >&5
11268 ac_cv_type_long_long=no
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11274 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11276 # The cast to long int works around a bug in the HP C Compiler
11277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11279 # This bug is HP SR number 8606223364.
11280 { echo "$as_me:$LINENO: checking size of long long" >&5
11281 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11282 if test "${ac_cv_sizeof_long_long+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 if test "$cross_compiling" = yes; then
11286 # Depending upon the size, compute the lo and hi bounds.
11287 cat >conftest.
$ac_ext <<_ACEOF
11290 cat confdefs.h
>>conftest.
$ac_ext
11291 cat >>conftest.
$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 $ac_includes_default
11294 typedef long long ac__type_sizeof_;
11298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11305 rm -f conftest.
$ac_objext
11306 if { (ac_try
="$ac_compile"
11307 case "(($ac_try" in
11308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_compile") 2>conftest.er1
11314 grep -v '^ *+' conftest.er1 >conftest.err
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } && {
11319 test -z "$ac_c_werror_flag" ||
11320 test ! -s conftest.err
11321 } && test -s conftest.$ac_objext; then
11324 cat >conftest.$ac_ext <<_ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 $ac_includes_default
11331 typedef long long ac__type_sizeof_;
11335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11342 rm -f conftest.$ac_objext
11343 if { (ac_try="$ac_compile"
11344 case "(($ac_try" in
11345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11346 *) ac_try_echo
=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_compile") 2>conftest.er1
11351 grep -v '^ *+' conftest.er1
>conftest.err
11353 cat conftest.err
>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && {
11356 test -z "$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11358 } && test -s conftest.
$ac_objext; then
11359 ac_hi
=$ac_mid; break
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.
$ac_ext >&5
11364 ac_lo
=`expr $ac_mid + 1`
11365 if test $ac_lo -le $ac_mid; then
11369 ac_mid
=`expr 2 '*' $ac_mid + 1`
11372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.
$ac_ext >&5
11378 cat >conftest.
$ac_ext <<_ACEOF
11381 cat confdefs.h
>>conftest.
$ac_ext
11382 cat >>conftest.
$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 $ac_includes_default
11385 typedef long long ac__type_sizeof_;
11389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11396 rm -f conftest.
$ac_objext
11397 if { (ac_try
="$ac_compile"
11398 case "(($ac_try" in
11399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_compile") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest.$ac_objext; then
11415 cat >conftest.$ac_ext <<_ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 $ac_includes_default
11422 typedef long long ac__type_sizeof_;
11426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11433 rm -f conftest.$ac_objext
11434 if { (ac_try="$ac_compile"
11435 case "(($ac_try" in
11436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11437 *) ac_try_echo
=$ac_try;;
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_compile") 2>conftest.er1
11442 grep -v '^ *+' conftest.er1
>conftest.err
11444 cat conftest.err
>&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && {
11447 test -z "$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 } && test -s conftest.
$ac_objext; then
11450 ac_lo
=$ac_mid; break
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.
$ac_ext >&5
11455 ac_hi
=`expr '(' $ac_mid ')' - 1`
11456 if test $ac_mid -le $ac_hi; then
11460 ac_mid
=`expr 2 '*' $ac_mid`
11463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.
$ac_ext >&5
11472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11476 # Binary search between lo and hi bounds.
11477 while test "x$ac_lo" != "x$ac_hi"; do
11478 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11479 cat >conftest.
$ac_ext <<_ACEOF
11482 cat confdefs.h
>>conftest.
$ac_ext
11483 cat >>conftest.
$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 $ac_includes_default
11486 typedef long long ac__type_sizeof_;
11490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11497 rm -f conftest.
$ac_objext
11498 if { (ac_try
="$ac_compile"
11499 case "(($ac_try" in
11500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_compile") 2>conftest.er1
11506 grep -v '^ *+' conftest.er1 >conftest.err
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest.$ac_objext; then
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_lo=`expr '(' $ac_mid ')' + 1`
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11526 '') if test "$ac_cv_type_long_long" = yes; then
11527 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11528 See \`config.log
' for more details." >&5
11529 echo "$as_me: error: cannot compute sizeof (long long)
11530 See \`config.log' for more details.
" >&2;}
11531 { (exit 77); exit 77; }; }
11533 ac_cv_sizeof_long_long=0
11537 cat >conftest.$ac_ext <<_ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 $ac_includes_default
11544 typedef long long ac__type_sizeof_;
11545 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11546 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11548 #include <stdlib.h>
11553 FILE *f = fopen ("conftest.val
", "w
");
11556 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11558 long int i = longval ();
11559 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11561 fprintf (f, "%ld
\n", i);
11565 unsigned long int i = ulongval ();
11566 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11568 fprintf (f, "%lu
\n", i);
11570 return ferror (f) || fclose (f) != 0;
11576 rm -f conftest$ac_exeext
11577 if { (ac_try="$ac_link"
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_link") 2>&5
11585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_cv_sizeof_long_long=`cat conftest.val`
11598 echo "$as_me: program exited with status
$ac_status" >&5
11599 echo "$as_me: failed program was
:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ( exit $ac_status )
11603 if test "$ac_cv_type_long_long" = yes; then
11604 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11605 See \
`config.log' for more details." >&5
11606 echo "$as_me: error: cannot compute sizeof (long long)
11607 See \`config.log
' for more details." >&2;}
11608 { (exit 77); exit 77; }; }
11610 ac_cv_sizeof_long_long=0
11613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11617 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11618 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11622 cat >>confdefs.h <<_ACEOF
11623 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11629 { echo "$as_me:$LINENO: checking for long double support" >&5
11630 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11631 have_long_double=no
11632 cat >conftest.$ac_ext <<_ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h. */
11642 long double x; x = (long double)0.;
11647 rm -f conftest.$ac_objext
11648 if { (ac_try="$ac_compile"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_compile") 2>conftest.er1
11656 grep -v '^
*+' conftest.er1 >conftest.err
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest.$ac_objext; then
11666 cat >>confdefs.h <<\_ACEOF
11667 #define HAVE_LONG_DOUBLE 1
11670 have_long_double=yes
11673 echo "$as_me: failed program was:" >&5
11674 sed 's
/^
/|
/' conftest.$ac_ext >&5
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11681 echo "${ECHO_T}$have_long_double" >&6; }
11682 if test "$have_long_double" = yes ; then
11683 { echo "$as_me:$LINENO: checking for long double" >&5
11684 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11685 if test "${ac_cv_type_long_double+set}" = set; then
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 cat >conftest.$ac_ext <<_ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h. */
11694 $ac_includes_default
11695 typedef long double ac__type_new_;
11699 if ((ac__type_new_ *) 0)
11701 if (sizeof (ac__type_new_))
11707 rm -f conftest.$ac_objext
11708 if { (ac_try="$ac_compile"
11709 case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714 (eval "$ac_compile") 2>conftest.er1
11716 grep -v '^
*+' conftest.er1 >conftest.err
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && {
11721 test -z "$ac_c_werror_flag" ||
11722 test ! -s conftest.err
11723 } && test -s conftest.$ac_objext; then
11724 ac_cv_type_long_double=yes
11726 echo "$as_me: failed program was:" >&5
11727 sed 's
/^
/|
/' conftest.$ac_ext >&5
11729 ac_cv_type_long_double=no
11732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11734 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11735 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11737 # The cast to long int works around a bug in the HP C Compiler
11738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11740 # This bug is HP SR number 8606223364.
11741 { echo "$as_me:$LINENO: checking size of long double" >&5
11742 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11743 if test "${ac_cv_sizeof_long_double+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 if test "$cross_compiling" = yes; then
11747 # Depending upon the size, compute the lo and hi bounds.
11748 cat >conftest.
$ac_ext <<_ACEOF
11751 cat confdefs.h
>>conftest.
$ac_ext
11752 cat >>conftest.
$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 $ac_includes_default
11755 typedef long double ac__type_sizeof_;
11759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11766 rm -f conftest.
$ac_objext
11767 if { (ac_try
="$ac_compile"
11768 case "(($ac_try" in
11769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773 (eval "$ac_compile") 2>conftest.er1
11775 grep -v '^ *+' conftest.er1 >conftest.err
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } && {
11780 test -z "$ac_c_werror_flag" ||
11781 test ! -s conftest.err
11782 } && test -s conftest.$ac_objext; then
11785 cat >conftest.$ac_ext <<_ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 $ac_includes_default
11792 typedef long double ac__type_sizeof_;
11796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11803 rm -f conftest.$ac_objext
11804 if { (ac_try="$ac_compile"
11805 case "(($ac_try" in
11806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11807 *) ac_try_echo
=$ac_try;;
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_compile") 2>conftest.er1
11812 grep -v '^ *+' conftest.er1
>conftest.err
11814 cat conftest.err
>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && {
11817 test -z "$ac_c_werror_flag" ||
11818 test ! -s conftest.err
11819 } && test -s conftest.
$ac_objext; then
11820 ac_hi
=$ac_mid; break
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.
$ac_ext >&5
11825 ac_lo
=`expr $ac_mid + 1`
11826 if test $ac_lo -le $ac_mid; then
11830 ac_mid
=`expr 2 '*' $ac_mid + 1`
11833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.
$ac_ext >&5
11839 cat >conftest.
$ac_ext <<_ACEOF
11842 cat confdefs.h
>>conftest.
$ac_ext
11843 cat >>conftest.
$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11846 typedef long double ac__type_sizeof_;
11850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11857 rm -f conftest.
$ac_objext
11858 if { (ac_try
="$ac_compile"
11859 case "(($ac_try" in
11860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_compile") 2>conftest.er1
11866 grep -v '^ *+' conftest.er1 >conftest.err
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } && {
11871 test -z "$ac_c_werror_flag" ||
11872 test ! -s conftest.err
11873 } && test -s conftest.$ac_objext; then
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11882 $ac_includes_default
11883 typedef long double ac__type_sizeof_;
11887 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11894 rm -f conftest.$ac_objext
11895 if { (ac_try="$ac_compile"
11896 case "(($ac_try" in
11897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11898 *) ac_try_echo
=$ac_try;;
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_compile") 2>conftest.er1
11903 grep -v '^ *+' conftest.er1
>conftest.err
11905 cat conftest.err
>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } && {
11908 test -z "$ac_c_werror_flag" ||
11909 test ! -s conftest.err
11910 } && test -s conftest.
$ac_objext; then
11911 ac_lo
=$ac_mid; break
11913 echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.
$ac_ext >&5
11916 ac_hi
=`expr '(' $ac_mid ')' - 1`
11917 if test $ac_mid -le $ac_hi; then
11921 ac_mid
=`expr 2 '*' $ac_mid`
11924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.
$ac_ext >&5
11933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11937 # Binary search between lo and hi bounds.
11938 while test "x$ac_lo" != "x$ac_hi"; do
11939 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11940 cat >conftest.
$ac_ext <<_ACEOF
11943 cat confdefs.h
>>conftest.
$ac_ext
11944 cat >>conftest.
$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 $ac_includes_default
11947 typedef long double ac__type_sizeof_;
11951 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11958 rm -f conftest.
$ac_objext
11959 if { (ac_try
="$ac_compile"
11960 case "(($ac_try" in
11961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_compile") 2>conftest.er1
11967 grep -v '^ *+' conftest.er1 >conftest.err
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest.$ac_objext; then
11977 echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11980 ac_lo=`expr '(' $ac_mid ')' + 1`
11983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11987 '') if test "$ac_cv_type_long_double" = yes; then
11988 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11989 See \`config.log
' for more details." >&5
11990 echo "$as_me: error: cannot compute sizeof (long double)
11991 See \`config.log' for more details.
" >&2;}
11992 { (exit 77); exit 77; }; }
11994 ac_cv_sizeof_long_double=0
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 $ac_includes_default
12005 typedef long double ac__type_sizeof_;
12006 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12007 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12009 #include <stdlib.h>
12014 FILE *f = fopen ("conftest.val
", "w
");
12017 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12019 long int i = longval ();
12020 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12022 fprintf (f, "%ld
\n", i);
12026 unsigned long int i = ulongval ();
12027 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12029 fprintf (f, "%lu
\n", i);
12031 return ferror (f) || fclose (f) != 0;
12037 rm -f conftest$ac_exeext
12038 if { (ac_try="$ac_link"
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_link") 2>&5
12046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12048 { (case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_try") 2>&5
12055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_sizeof_long_double=`cat conftest.val`
12059 echo "$as_me: program exited with status
$ac_status" >&5
12060 echo "$as_me: failed program was
:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 ( exit $ac_status )
12064 if test "$ac_cv_type_long_double" = yes; then
12065 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12066 See \
`config.log' for more details." >&5
12067 echo "$as_me: error: cannot compute sizeof (long double)
12068 See \`config.log
' for more details." >&2;}
12069 { (exit 77); exit 77; }; }
12071 ac_cv_sizeof_long_double=0
12074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12078 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12079 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12083 cat >>confdefs.h <<_ACEOF
12084 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12090 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12091 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12103 _Bool x; x = (_Bool)0;
12108 rm -f conftest.$ac_objext
12109 if { (ac_try="$ac_compile"
12110 case "(($ac_try" in
12111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12112 *) ac_try_echo=$ac_try;;
12114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12115 (eval "$ac_compile") 2>conftest.er1
12117 grep -v '^
*+' conftest.er1 >conftest.err
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } && {
12122 test -z "$ac_c_werror_flag" ||
12123 test ! -s conftest.err
12124 } && test -s conftest.$ac_objext; then
12127 cat >>confdefs.h <<\_ACEOF
12128 #define HAVE_C99_BOOL 1
12134 echo "$as_me: failed program was:" >&5
12135 sed 's
/^
/|
/' conftest.$ac_ext >&5
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12142 echo "${ECHO_T}$have_c99_bool" >&6; }
12143 if test "$have_c99_bool" = yes ; then
12144 { echo "$as_me:$LINENO: checking for _Bool" >&5
12145 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12146 if test "${ac_cv_type__Bool+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 cat >conftest.$ac_ext <<_ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 $ac_includes_default
12156 typedef _Bool ac__type_new_;
12160 if ((ac__type_new_ *) 0)
12162 if (sizeof (ac__type_new_))
12168 rm -f conftest.$ac_objext
12169 if { (ac_try="$ac_compile"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12177 grep -v '^
*+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest.$ac_objext; then
12185 ac_cv_type__Bool=yes
12187 echo "$as_me: failed program was:" >&5
12188 sed 's
/^
/|
/' conftest.$ac_ext >&5
12190 ac_cv_type__Bool=no
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12196 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12198 # The cast to long int works around a bug in the HP C Compiler
12199 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12200 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12201 # This bug is HP SR number 8606223364.
12202 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12203 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12204 if test "${ac_cv_sizeof__Bool+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 if test "$cross_compiling" = yes; then
12208 # Depending upon the size, compute the lo and hi bounds.
12209 cat >conftest.
$ac_ext <<_ACEOF
12212 cat confdefs.h
>>conftest.
$ac_ext
12213 cat >>conftest.
$ac_ext <<_ACEOF
12214 /* end confdefs.h. */
12215 $ac_includes_default
12216 typedef _Bool ac__type_sizeof_;
12220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12227 rm -f conftest.
$ac_objext
12228 if { (ac_try
="$ac_compile"
12229 case "(($ac_try" in
12230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_compile") 2>conftest.er1
12236 grep -v '^ *+' conftest.er1 >conftest.err
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.$ac_objext; then
12246 cat >conftest.$ac_ext <<_ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 $ac_includes_default
12253 typedef _Bool ac__type_sizeof_;
12257 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12268 *) ac_try_echo
=$ac_try;;
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_compile") 2>conftest.er1
12273 grep -v '^ *+' conftest.er1
>conftest.err
12275 cat conftest.err
>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest.
$ac_objext; then
12281 ac_hi
=$ac_mid; break
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.
$ac_ext >&5
12286 ac_lo
=`expr $ac_mid + 1`
12287 if test $ac_lo -le $ac_mid; then
12291 ac_mid
=`expr 2 '*' $ac_mid + 1`
12294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.
$ac_ext >&5
12300 cat >conftest.
$ac_ext <<_ACEOF
12303 cat confdefs.h
>>conftest.
$ac_ext
12304 cat >>conftest.
$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12306 $ac_includes_default
12307 typedef _Bool ac__type_sizeof_;
12311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12318 rm -f conftest.
$ac_objext
12319 if { (ac_try
="$ac_compile"
12320 case "(($ac_try" in
12321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_compile") 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } && {
12332 test -z "$ac_c_werror_flag" ||
12333 test ! -s conftest.err
12334 } && test -s conftest.$ac_objext; then
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 $ac_includes_default
12344 typedef _Bool ac__type_sizeof_;
12348 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12355 rm -f conftest.$ac_objext
12356 if { (ac_try="$ac_compile"
12357 case "(($ac_try" in
12358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12359 *) ac_try_echo
=$ac_try;;
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_compile") 2>conftest.er1
12364 grep -v '^ *+' conftest.er1
>conftest.err
12366 cat conftest.err
>&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } && {
12369 test -z "$ac_c_werror_flag" ||
12370 test ! -s conftest.err
12371 } && test -s conftest.
$ac_objext; then
12372 ac_lo
=$ac_mid; break
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.
$ac_ext >&5
12377 ac_hi
=`expr '(' $ac_mid ')' - 1`
12378 if test $ac_mid -le $ac_hi; then
12382 ac_mid
=`expr 2 '*' $ac_mid`
12385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.
$ac_ext >&5
12394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12398 # Binary search between lo and hi bounds.
12399 while test "x$ac_lo" != "x$ac_hi"; do
12400 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12401 cat >conftest.
$ac_ext <<_ACEOF
12404 cat confdefs.h
>>conftest.
$ac_ext
12405 cat >>conftest.
$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 $ac_includes_default
12408 typedef _Bool ac__type_sizeof_;
12412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12419 rm -f conftest.
$ac_objext
12420 if { (ac_try
="$ac_compile"
12421 case "(($ac_try" in
12422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_compile") 2>conftest.er1
12428 grep -v '^ *+' conftest.er1 >conftest.err
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && {
12433 test -z "$ac_c_werror_flag" ||
12434 test ! -s conftest.err
12435 } && test -s conftest.$ac_objext; then
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_lo=`expr '(' $ac_mid ')' + 1`
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12448 '') if test "$ac_cv_type__Bool" = yes; then
12449 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12450 See \`config.log
' for more details." >&5
12451 echo "$as_me: error: cannot compute sizeof (_Bool)
12452 See \`config.log' for more details.
" >&2;}
12453 { (exit 77); exit 77; }; }
12455 ac_cv_sizeof__Bool=0
12459 cat >conftest.$ac_ext <<_ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12465 $ac_includes_default
12466 typedef _Bool ac__type_sizeof_;
12467 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12468 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12470 #include <stdlib.h>
12475 FILE *f = fopen ("conftest.val
", "w
");
12478 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12480 long int i = longval ();
12481 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12483 fprintf (f, "%ld
\n", i);
12487 unsigned long int i = ulongval ();
12488 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12490 fprintf (f, "%lu
\n", i);
12492 return ferror (f) || fclose (f) != 0;
12498 rm -f conftest$ac_exeext
12499 if { (ac_try="$ac_link"
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_link") 2>&5
12507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_try") 2>&5
12516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518 ac_cv_sizeof__Bool=`cat conftest.val`
12520 echo "$as_me: program exited with status
$ac_status" >&5
12521 echo "$as_me: failed program was
:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12524 ( exit $ac_status )
12525 if test "$ac_cv_type__Bool" = yes; then
12526 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12527 See \
`config.log' for more details." >&5
12528 echo "$as_me: error: cannot compute sizeof (_Bool)
12529 See \`config.log
' for more details." >&2;}
12530 { (exit 77); exit 77; }; }
12532 ac_cv_sizeof__Bool=0
12535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12539 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12540 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12544 cat >>confdefs.h <<_ACEOF
12545 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12551 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12552 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12553 if test "${ac_cv_type_uintptr_t+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 cat >conftest.$ac_ext <<_ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12562 #ifdef HAVE_STDINT_H
12563 #include <stdint.h>
12566 typedef uintptr_t ac__type_new_;
12570 if ((ac__type_new_ *) 0)
12572 if (sizeof (ac__type_new_))
12578 rm -f conftest.$ac_objext
12579 if { (ac_try="$ac_compile"
12580 case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_compile") 2>conftest.er1
12587 grep -v '^
*+' conftest.er1 >conftest.err
12589 cat conftest.err >&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest.$ac_objext; then
12595 ac_cv_type_uintptr_t=yes
12597 echo "$as_me: failed program was:" >&5
12598 sed 's
/^
/|
/' conftest.$ac_ext >&5
12600 ac_cv_type_uintptr_t=no
12603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12606 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12607 if test $ac_cv_type_uintptr_t = yes; then
12609 cat >>confdefs.h <<_ACEOF
12610 #define HAVE_UINTPTR_T 1
12613 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12614 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12615 if test "${ac_cv_type_uintptr_t+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 cat >conftest.$ac_ext <<_ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 $ac_includes_default
12625 typedef uintptr_t ac__type_new_;
12629 if ((ac__type_new_ *) 0)
12631 if (sizeof (ac__type_new_))
12637 rm -f conftest.$ac_objext
12638 if { (ac_try="$ac_compile"
12639 case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_compile") 2>conftest.er1
12646 grep -v '^
*+' conftest.er1 >conftest.err
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } && {
12651 test -z "$ac_c_werror_flag" ||
12652 test ! -s conftest.err
12653 } && test -s conftest.$ac_objext; then
12654 ac_cv_type_uintptr_t=yes
12656 echo "$as_me: failed program was:" >&5
12657 sed 's
/^
/|
/' conftest.$ac_ext >&5
12659 ac_cv_type_uintptr_t=no
12662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12665 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12667 # The cast to long int works around a bug in the HP C Compiler
12668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12670 # This bug is HP SR number 8606223364.
12671 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12672 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12673 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 if test "$cross_compiling" = yes; then
12677 # Depending upon the size, compute the lo and hi bounds.
12678 cat >conftest.
$ac_ext <<_ACEOF
12681 cat confdefs.h
>>conftest.
$ac_ext
12682 cat >>conftest.
$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 $ac_includes_default
12685 typedef uintptr_t ac__type_sizeof_;
12689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12696 rm -f conftest.
$ac_objext
12697 if { (ac_try
="$ac_compile"
12698 case "(($ac_try" in
12699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_compile") 2>conftest.er1
12705 grep -v '^ *+' conftest.er1 >conftest.err
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && {
12710 test -z "$ac_c_werror_flag" ||
12711 test ! -s conftest.err
12712 } && test -s conftest.$ac_objext; then
12715 cat >conftest.$ac_ext <<_ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12721 $ac_includes_default
12722 typedef uintptr_t ac__type_sizeof_;
12726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12733 rm -f conftest.$ac_objext
12734 if { (ac_try="$ac_compile"
12735 case "(($ac_try" in
12736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12737 *) ac_try_echo
=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_compile") 2>conftest.er1
12742 grep -v '^ *+' conftest.er1
>conftest.err
12744 cat conftest.err
>&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } && {
12747 test -z "$ac_c_werror_flag" ||
12748 test ! -s conftest.err
12749 } && test -s conftest.
$ac_objext; then
12750 ac_hi
=$ac_mid; break
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.
$ac_ext >&5
12755 ac_lo
=`expr $ac_mid + 1`
12756 if test $ac_lo -le $ac_mid; then
12760 ac_mid
=`expr 2 '*' $ac_mid + 1`
12763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.
$ac_ext >&5
12769 cat >conftest.
$ac_ext <<_ACEOF
12772 cat confdefs.h
>>conftest.
$ac_ext
12773 cat >>conftest.
$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12775 $ac_includes_default
12776 typedef uintptr_t ac__type_sizeof_;
12780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12787 rm -f conftest.
$ac_objext
12788 if { (ac_try
="$ac_compile"
12789 case "(($ac_try" in
12790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_compile") 2>conftest.er1
12796 grep -v '^ *+' conftest.er1 >conftest.err
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && {
12801 test -z "$ac_c_werror_flag" ||
12802 test ! -s conftest.err
12803 } && test -s conftest.$ac_objext; then
12806 cat >conftest.$ac_ext <<_ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 $ac_includes_default
12813 typedef uintptr_t ac__type_sizeof_;
12817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12824 rm -f conftest.$ac_objext
12825 if { (ac_try="$ac_compile"
12826 case "(($ac_try" in
12827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12828 *) ac_try_echo
=$ac_try;;
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_compile") 2>conftest.er1
12833 grep -v '^ *+' conftest.er1
>conftest.err
12835 cat conftest.err
>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } && {
12838 test -z "$ac_c_werror_flag" ||
12839 test ! -s conftest.err
12840 } && test -s conftest.
$ac_objext; then
12841 ac_lo
=$ac_mid; break
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.
$ac_ext >&5
12846 ac_hi
=`expr '(' $ac_mid ')' - 1`
12847 if test $ac_mid -le $ac_hi; then
12851 ac_mid
=`expr 2 '*' $ac_mid`
12854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.
$ac_ext >&5
12863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12867 # Binary search between lo and hi bounds.
12868 while test "x$ac_lo" != "x$ac_hi"; do
12869 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12870 cat >conftest.
$ac_ext <<_ACEOF
12873 cat confdefs.h
>>conftest.
$ac_ext
12874 cat >>conftest.
$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 $ac_includes_default
12877 typedef uintptr_t ac__type_sizeof_;
12881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12888 rm -f conftest.
$ac_objext
12889 if { (ac_try
="$ac_compile"
12890 case "(($ac_try" in
12891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_compile") 2>conftest.er1
12897 grep -v '^ *+' conftest.er1 >conftest.err
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } && {
12902 test -z "$ac_c_werror_flag" ||
12903 test ! -s conftest.err
12904 } && test -s conftest.$ac_objext; then
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 ac_lo=`expr '(' $ac_mid ')' + 1`
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12916 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12917 '') if test "$ac_cv_type_uintptr_t" = yes; then
12918 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12919 See \`config.log
' for more details." >&5
12920 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12921 See \`config.log' for more details.
" >&2;}
12922 { (exit 77); exit 77; }; }
12924 ac_cv_sizeof_uintptr_t=0
12928 cat >conftest.$ac_ext <<_ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12934 $ac_includes_default
12935 typedef uintptr_t ac__type_sizeof_;
12936 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12937 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12939 #include <stdlib.h>
12944 FILE *f = fopen ("conftest.val
", "w
");
12947 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12949 long int i = longval ();
12950 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12952 fprintf (f, "%ld
\n", i);
12956 unsigned long int i = ulongval ();
12957 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12959 fprintf (f, "%lu
\n", i);
12961 return ferror (f) || fclose (f) != 0;
12967 rm -f conftest$ac_exeext
12968 if { (ac_try="$ac_link"
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_link") 2>&5
12976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12978 { (case "(($ac_try" in
12979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_try") 2>&5
12985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12989 echo "$as_me: program exited with status
$ac_status" >&5
12990 echo "$as_me: failed program was
:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12993 ( exit $ac_status )
12994 if test "$ac_cv_type_uintptr_t" = yes; then
12995 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12996 See \
`config.log' for more details." >&5
12997 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12998 See \`config.log
' for more details." >&2;}
12999 { (exit 77); exit 77; }; }
13001 ac_cv_sizeof_uintptr_t=0
13004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13008 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13009 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13013 cat >>confdefs.h <<_ACEOF
13014 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13021 { echo "$as_me:$LINENO: checking for off_t" >&5
13022 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13023 if test "${ac_cv_type_off_t+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 cat >conftest.$ac_ext <<_ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13033 #ifdef HAVE_SYS_TYPES_H
13034 #include <sys/types.h>
13038 typedef off_t ac__type_new_;
13042 if ((ac__type_new_ *) 0)
13044 if (sizeof (ac__type_new_))
13050 rm -f conftest.$ac_objext
13051 if { (ac_try="$ac_compile"
13052 case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057 (eval "$ac_compile") 2>conftest.er1
13059 grep -v '^
*+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } && {
13064 test -z "$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 } && test -s conftest.$ac_objext; then
13067 ac_cv_type_off_t=yes
13069 echo "$as_me: failed program was:" >&5
13070 sed 's
/^
/|
/' conftest.$ac_ext >&5
13072 ac_cv_type_off_t=no
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13078 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13080 # The cast to long int works around a bug in the HP C Compiler
13081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13083 # This bug is HP SR number 8606223364.
13084 { echo "$as_me:$LINENO: checking size of off_t" >&5
13085 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13086 if test "${ac_cv_sizeof_off_t+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 if test "$cross_compiling" = yes; then
13090 # Depending upon the size, compute the lo and hi bounds.
13091 cat >conftest.
$ac_ext <<_ACEOF
13094 cat confdefs.h
>>conftest.
$ac_ext
13095 cat >>conftest.
$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13098 #ifdef HAVE_SYS_TYPES_H
13099 #include <sys/types.h>
13103 typedef off_t ac__type_sizeof_;
13107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13114 rm -f conftest.
$ac_objext
13115 if { (ac_try
="$ac_compile"
13116 case "(($ac_try" in
13117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_compile") 2>conftest.er1
13123 grep -v '^ *+' conftest.er1 >conftest.err
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && {
13128 test -z "$ac_c_werror_flag" ||
13129 test ! -s conftest.err
13130 } && test -s conftest.$ac_objext; then
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 #ifdef HAVE_SYS_TYPES_H
13141 #include <sys/types.h>
13145 typedef off_t ac__type_sizeof_;
13149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13156 rm -f conftest.$ac_objext
13157 if { (ac_try="$ac_compile"
13158 case "(($ac_try" in
13159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13160 *) ac_try_echo
=$ac_try;;
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163 (eval "$ac_compile") 2>conftest.er1
13165 grep -v '^ *+' conftest.er1
>conftest.err
13167 cat conftest.err
>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } && {
13170 test -z "$ac_c_werror_flag" ||
13171 test ! -s conftest.err
13172 } && test -s conftest.
$ac_objext; then
13173 ac_hi
=$ac_mid; break
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.
$ac_ext >&5
13178 ac_lo
=`expr $ac_mid + 1`
13179 if test $ac_lo -le $ac_mid; then
13183 ac_mid
=`expr 2 '*' $ac_mid + 1`
13186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.
$ac_ext >&5
13192 cat >conftest.
$ac_ext <<_ACEOF
13195 cat confdefs.h
>>conftest.
$ac_ext
13196 cat >>conftest.
$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13199 #ifdef HAVE_SYS_TYPES_H
13200 #include <sys/types.h>
13204 typedef off_t ac__type_sizeof_;
13208 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13215 rm -f conftest.
$ac_objext
13216 if { (ac_try
="$ac_compile"
13217 case "(($ac_try" in
13218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_compile") 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); } && {
13229 test -z "$ac_c_werror_flag" ||
13230 test ! -s conftest.err
13231 } && test -s conftest.$ac_objext; then
13234 cat >conftest.$ac_ext <<_ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13241 #ifdef HAVE_SYS_TYPES_H
13242 #include <sys/types.h>
13246 typedef off_t ac__type_sizeof_;
13250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13257 rm -f conftest.$ac_objext
13258 if { (ac_try="$ac_compile"
13259 case "(($ac_try" in
13260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13261 *) ac_try_echo
=$ac_try;;
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_compile") 2>conftest.er1
13266 grep -v '^ *+' conftest.er1
>conftest.err
13268 cat conftest.err
>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } && {
13271 test -z "$ac_c_werror_flag" ||
13272 test ! -s conftest.err
13273 } && test -s conftest.
$ac_objext; then
13274 ac_lo
=$ac_mid; break
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.
$ac_ext >&5
13279 ac_hi
=`expr '(' $ac_mid ')' - 1`
13280 if test $ac_mid -le $ac_hi; then
13284 ac_mid
=`expr 2 '*' $ac_mid`
13287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.
$ac_ext >&5
13296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13300 # Binary search between lo and hi bounds.
13301 while test "x$ac_lo" != "x$ac_hi"; do
13302 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13303 cat >conftest.
$ac_ext <<_ACEOF
13306 cat confdefs.h
>>conftest.
$ac_ext
13307 cat >>conftest.
$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13310 #ifdef HAVE_SYS_TYPES_H
13311 #include <sys/types.h>
13315 typedef off_t ac__type_sizeof_;
13319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13326 rm -f conftest.
$ac_objext
13327 if { (ac_try
="$ac_compile"
13328 case "(($ac_try" in
13329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_compile") 2>conftest.er1
13335 grep -v '^ *+' conftest.er1 >conftest.err
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } && {
13340 test -z "$ac_c_werror_flag" ||
13341 test ! -s conftest.err
13342 } && test -s conftest.$ac_objext; then
13345 echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13348 ac_lo=`expr '(' $ac_mid ')' + 1`
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13355 '') if test "$ac_cv_type_off_t" = yes; then
13356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13357 See \`config.log
' for more details." >&5
13358 echo "$as_me: error: cannot compute sizeof (off_t)
13359 See \`config.log' for more details.
" >&2;}
13360 { (exit 77); exit 77; }; }
13362 ac_cv_sizeof_off_t=0
13366 cat >conftest.$ac_ext <<_ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13373 #ifdef HAVE_SYS_TYPES_H
13374 #include <sys/types.h>
13378 typedef off_t ac__type_sizeof_;
13379 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13380 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13382 #include <stdlib.h>
13387 FILE *f = fopen ("conftest.val
", "w
");
13390 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13392 long int i = longval ();
13393 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13395 fprintf (f, "%ld
\n", i);
13399 unsigned long int i = ulongval ();
13400 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13402 fprintf (f, "%lu
\n", i);
13404 return ferror (f) || fclose (f) != 0;
13410 rm -f conftest$ac_exeext
13411 if { (ac_try="$ac_link"
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_link") 2>&5
13419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13420 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_cv_sizeof_off_t=`cat conftest.val`
13432 echo "$as_me: program exited with status
$ac_status" >&5
13433 echo "$as_me: failed program was
:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ( exit $ac_status )
13437 if test "$ac_cv_type_off_t" = yes; then
13438 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
13439 See \
`config.log' for more details." >&5
13440 echo "$as_me: error: cannot compute sizeof (off_t)
13441 See \`config.log
' for more details." >&2;}
13442 { (exit 77); exit 77; }; }
13444 ac_cv_sizeof_off_t=0
13447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13451 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13452 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13456 cat >>confdefs.h <<_ACEOF
13457 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13462 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13463 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13464 if test "$have_long_long" = yes -a \
13465 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13466 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13468 cat >>confdefs.h <<\_ACEOF
13469 #define HAVE_LARGEFILE_SUPPORT 1
13472 { echo "$as_me:$LINENO: result: yes" >&5
13473 echo "${ECHO_T}yes" >&6; }
13475 { echo "$as_me:$LINENO: result: no" >&5
13476 echo "${ECHO_T}no" >&6; }
13479 { echo "$as_me:$LINENO: checking for time_t" >&5
13480 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13481 if test "${ac_cv_type_time_t+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 cat >conftest.$ac_ext <<_ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13491 #ifdef HAVE_SYS_TYPES_H
13492 #include <sys/types.h>
13499 typedef time_t ac__type_new_;
13503 if ((ac__type_new_ *) 0)
13505 if (sizeof (ac__type_new_))
13511 rm -f conftest.$ac_objext
13512 if { (ac_try="$ac_compile"
13513 case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_compile") 2>conftest.er1
13520 grep -v '^
*+' conftest.er1 >conftest.err
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } && {
13525 test -z "$ac_c_werror_flag" ||
13526 test ! -s conftest.err
13527 } && test -s conftest.$ac_objext; then
13528 ac_cv_type_time_t=yes
13530 echo "$as_me: failed program was:" >&5
13531 sed 's
/^
/|
/' conftest.$ac_ext >&5
13533 ac_cv_type_time_t=no
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13539 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13541 # The cast to long int works around a bug in the HP C Compiler
13542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13544 # This bug is HP SR number 8606223364.
13545 { echo "$as_me:$LINENO: checking size of time_t" >&5
13546 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13547 if test "${ac_cv_sizeof_time_t+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13550 if test "$cross_compiling" = yes; then
13551 # Depending upon the size, compute the lo and hi bounds.
13552 cat >conftest.
$ac_ext <<_ACEOF
13555 cat confdefs.h
>>conftest.
$ac_ext
13556 cat >>conftest.
$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13559 #ifdef HAVE_SYS_TYPES_H
13560 #include <sys/types.h>
13567 typedef time_t ac__type_sizeof_;
13571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13578 rm -f conftest.
$ac_objext
13579 if { (ac_try
="$ac_compile"
13580 case "(($ac_try" in
13581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_compile") 2>conftest.er1
13587 grep -v '^ *+' conftest.er1 >conftest.err
13589 cat conftest.err >&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } && {
13592 test -z "$ac_c_werror_flag" ||
13593 test ! -s conftest.err
13594 } && test -s conftest.$ac_objext; then
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13604 #ifdef HAVE_SYS_TYPES_H
13605 #include <sys/types.h>
13612 typedef time_t ac__type_sizeof_;
13616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13623 rm -f conftest.$ac_objext
13624 if { (ac_try="$ac_compile"
13625 case "(($ac_try" in
13626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13627 *) ac_try_echo
=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_compile") 2>conftest.er1
13632 grep -v '^ *+' conftest.er1
>conftest.err
13634 cat conftest.err
>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest.
$ac_objext; then
13640 ac_hi
=$ac_mid; break
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.
$ac_ext >&5
13645 ac_lo
=`expr $ac_mid + 1`
13646 if test $ac_lo -le $ac_mid; then
13650 ac_mid
=`expr 2 '*' $ac_mid + 1`
13653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.
$ac_ext >&5
13659 cat >conftest.
$ac_ext <<_ACEOF
13662 cat confdefs.h
>>conftest.
$ac_ext
13663 cat >>conftest.
$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13666 #ifdef HAVE_SYS_TYPES_H
13667 #include <sys/types.h>
13674 typedef time_t ac__type_sizeof_;
13678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13685 rm -f conftest.
$ac_objext
13686 if { (ac_try
="$ac_compile"
13687 case "(($ac_try" in
13688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13689 *) ac_try_echo=$ac_try;;
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692 (eval "$ac_compile") 2>conftest.er1
13694 grep -v '^ *+' conftest.er1 >conftest.err
13696 cat conftest.err >&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } && {
13699 test -z "$ac_c_werror_flag" ||
13700 test ! -s conftest.err
13701 } && test -s conftest.$ac_objext; then
13704 cat >conftest.$ac_ext <<_ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 #ifdef HAVE_SYS_TYPES_H
13712 #include <sys/types.h>
13719 typedef time_t ac__type_sizeof_;
13723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13730 rm -f conftest.$ac_objext
13731 if { (ac_try="$ac_compile"
13732 case "(($ac_try" in
13733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13734 *) ac_try_echo
=$ac_try;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_compile") 2>conftest.er1
13739 grep -v '^ *+' conftest.er1
>conftest.err
13741 cat conftest.err
>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } && {
13744 test -z "$ac_c_werror_flag" ||
13745 test ! -s conftest.err
13746 } && test -s conftest.
$ac_objext; then
13747 ac_lo
=$ac_mid; break
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.
$ac_ext >&5
13752 ac_hi
=`expr '(' $ac_mid ')' - 1`
13753 if test $ac_mid -le $ac_hi; then
13757 ac_mid
=`expr 2 '*' $ac_mid`
13760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.
$ac_ext >&5
13769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13773 # Binary search between lo and hi bounds.
13774 while test "x$ac_lo" != "x$ac_hi"; do
13775 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13776 cat >conftest.
$ac_ext <<_ACEOF
13779 cat confdefs.h
>>conftest.
$ac_ext
13780 cat >>conftest.
$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13783 #ifdef HAVE_SYS_TYPES_H
13784 #include <sys/types.h>
13791 typedef time_t ac__type_sizeof_;
13795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13802 rm -f conftest.
$ac_objext
13803 if { (ac_try
="$ac_compile"
13804 case "(($ac_try" in
13805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_compile") 2>conftest.er1
13811 grep -v '^ *+' conftest.er1 >conftest.err
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } && {
13816 test -z "$ac_c_werror_flag" ||
13817 test ! -s conftest.err
13818 } && test -s conftest.$ac_objext; then
13821 echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.$ac_ext >&5
13824 ac_lo=`expr '(' $ac_mid ')' + 1`
13827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13831 '') if test "$ac_cv_type_time_t" = yes; then
13832 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13833 See \`config.log
' for more details." >&5
13834 echo "$as_me: error: cannot compute sizeof (time_t)
13835 See \`config.log' for more details.
" >&2;}
13836 { (exit 77); exit 77; }; }
13838 ac_cv_sizeof_time_t=0
13842 cat >conftest.$ac_ext <<_ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13849 #ifdef HAVE_SYS_TYPES_H
13850 #include <sys/types.h>
13857 typedef time_t ac__type_sizeof_;
13858 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13859 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13861 #include <stdlib.h>
13866 FILE *f = fopen ("conftest.val
", "w
");
13869 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13871 long int i = longval ();
13872 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13874 fprintf (f, "%ld
\n", i);
13878 unsigned long int i = ulongval ();
13879 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13881 fprintf (f, "%lu
\n", i);
13883 return ferror (f) || fclose (f) != 0;
13889 rm -f conftest$ac_exeext
13890 if { (ac_try="$ac_link"
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_link") 2>&5
13898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_cv_sizeof_time_t=`cat conftest.val`
13911 echo "$as_me: program exited with status
$ac_status" >&5
13912 echo "$as_me: failed program was
:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 ( exit $ac_status )
13916 if test "$ac_cv_type_time_t" = yes; then
13917 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(time_t
)
13918 See \
`config.log' for more details." >&5
13919 echo "$as_me: error: cannot compute sizeof (time_t)
13920 See \`config.log
' for more details." >&2;}
13921 { (exit 77); exit 77; }; }
13923 ac_cv_sizeof_time_t=0
13926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13930 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13931 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13935 cat >>confdefs.h <<_ACEOF
13936 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13941 # if have pthread_t then define SIZEOF_PTHREAD_T
13943 if test "$ac_cv_kpthread" = "yes"
13944 then CC="$CC -Kpthread"
13945 elif test "$ac_cv_kthread" = "yes"
13946 then CC="$CC -Kthread"
13947 elif test "$ac_cv_pthread" = "yes"
13948 then CC="$CC -pthread"
13950 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13951 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13953 cat >conftest.$ac_ext <<_ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h. */
13959 #include <pthread.h>
13963 pthread_t x; x = *(pthread_t*)0;
13968 rm -f conftest.$ac_objext
13969 if { (ac_try="$ac_compile"
13970 case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_compile") 2>conftest.er1
13977 grep -v '^
*+' conftest.er1 >conftest.err
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest.$ac_objext; then
13987 echo "$as_me: failed program was:" >&5
13988 sed 's
/^
/|
/' conftest.$ac_ext >&5
13993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13995 echo "${ECHO_T}$have_pthread_t" >&6; }
13996 if test "$have_pthread_t" = yes ; then
13997 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13998 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13999 if test "${ac_cv_type_pthread_t+set}" = set; then
14000 echo $ECHO_N "(cached) $ECHO_C" >&6
14002 cat >conftest.$ac_ext <<_ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14009 #ifdef HAVE_PTHREAD_H
14010 #include <pthread.h>
14014 typedef pthread_t ac__type_new_;
14018 if ((ac__type_new_ *) 0)
14020 if (sizeof (ac__type_new_))
14026 rm -f conftest.$ac_objext
14027 if { (ac_try="$ac_compile"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_compile") 2>conftest.er1
14035 grep -v '^
*+' conftest.er1 >conftest.err
14037 cat conftest.err >&5
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } && {
14040 test -z "$ac_c_werror_flag" ||
14041 test ! -s conftest.err
14042 } && test -s conftest.$ac_objext; then
14043 ac_cv_type_pthread_t=yes
14045 echo "$as_me: failed program was:" >&5
14046 sed 's
/^
/|
/' conftest.$ac_ext >&5
14048 ac_cv_type_pthread_t=no
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14054 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14056 # The cast to long int works around a bug in the HP C Compiler
14057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14059 # This bug is HP SR number 8606223364.
14060 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14061 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14062 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 if test "$cross_compiling" = yes; then
14066 # Depending upon the size, compute the lo and hi bounds.
14067 cat >conftest.
$ac_ext <<_ACEOF
14070 cat confdefs.h
>>conftest.
$ac_ext
14071 cat >>conftest.
$ac_ext <<_ACEOF
14072 /* end confdefs.h. */
14074 #ifdef HAVE_PTHREAD_H
14075 #include <pthread.h>
14079 typedef pthread_t ac__type_sizeof_;
14083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14090 rm -f conftest.
$ac_objext
14091 if { (ac_try
="$ac_compile"
14092 case "(($ac_try" in
14093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_compile") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest.$ac_objext; then
14109 cat >conftest.$ac_ext <<_ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14116 #ifdef HAVE_PTHREAD_H
14117 #include <pthread.h>
14121 typedef pthread_t ac__type_sizeof_;
14125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14136 *) ac_try_echo
=$ac_try;;
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
14141 grep -v '^ *+' conftest.er1
>conftest.err
14143 cat conftest.err
>&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.
$ac_objext; then
14149 ac_hi
=$ac_mid; break
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.
$ac_ext >&5
14154 ac_lo
=`expr $ac_mid + 1`
14155 if test $ac_lo -le $ac_mid; then
14159 ac_mid
=`expr 2 '*' $ac_mid + 1`
14162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.
$ac_ext >&5
14168 cat >conftest.
$ac_ext <<_ACEOF
14171 cat confdefs.h
>>conftest.
$ac_ext
14172 cat >>conftest.
$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14175 #ifdef HAVE_PTHREAD_H
14176 #include <pthread.h>
14180 typedef pthread_t ac__type_sizeof_;
14184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14191 rm -f conftest.
$ac_objext
14192 if { (ac_try
="$ac_compile"
14193 case "(($ac_try" in
14194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14198 (eval "$ac_compile") 2>conftest.er1
14200 grep -v '^ *+' conftest.er1 >conftest.err
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } && {
14205 test -z "$ac_c_werror_flag" ||
14206 test ! -s conftest.err
14207 } && test -s conftest.$ac_objext; then
14210 cat >conftest.$ac_ext <<_ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14217 #ifdef HAVE_PTHREAD_H
14218 #include <pthread.h>
14222 typedef pthread_t ac__type_sizeof_;
14226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14233 rm -f conftest.$ac_objext
14234 if { (ac_try="$ac_compile"
14235 case "(($ac_try" in
14236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14237 *) ac_try_echo
=$ac_try;;
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_compile") 2>conftest.er1
14242 grep -v '^ *+' conftest.er1
>conftest.err
14244 cat conftest.err
>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } && {
14247 test -z "$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14249 } && test -s conftest.
$ac_objext; then
14250 ac_lo
=$ac_mid; break
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.
$ac_ext >&5
14255 ac_hi
=`expr '(' $ac_mid ')' - 1`
14256 if test $ac_mid -le $ac_hi; then
14260 ac_mid
=`expr 2 '*' $ac_mid`
14263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.
$ac_ext >&5
14272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14276 # Binary search between lo and hi bounds.
14277 while test "x$ac_lo" != "x$ac_hi"; do
14278 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14279 cat >conftest.
$ac_ext <<_ACEOF
14282 cat confdefs.h
>>conftest.
$ac_ext
14283 cat >>conftest.
$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14286 #ifdef HAVE_PTHREAD_H
14287 #include <pthread.h>
14291 typedef pthread_t ac__type_sizeof_;
14295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14302 rm -f conftest.
$ac_objext
14303 if { (ac_try
="$ac_compile"
14304 case "(($ac_try" in
14305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14311 grep -v '^ *+' conftest.er1 >conftest.err
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && {
14316 test -z "$ac_c_werror_flag" ||
14317 test ! -s conftest.err
14318 } && test -s conftest.$ac_objext; then
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 ac_lo=`expr '(' $ac_mid ')' + 1`
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14331 '') if test "$ac_cv_type_pthread_t" = yes; then
14332 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14333 See \`config.log
' for more details." >&5
14334 echo "$as_me: error: cannot compute sizeof (pthread_t)
14335 See \`config.log' for more details.
" >&2;}
14336 { (exit 77); exit 77; }; }
14338 ac_cv_sizeof_pthread_t=0
14342 cat >conftest.$ac_ext <<_ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14349 #ifdef HAVE_PTHREAD_H
14350 #include <pthread.h>
14354 typedef pthread_t ac__type_sizeof_;
14355 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14356 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14358 #include <stdlib.h>
14363 FILE *f = fopen ("conftest.val
", "w
");
14366 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14368 long int i = longval ();
14369 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14371 fprintf (f, "%ld
\n", i);
14375 unsigned long int i = ulongval ();
14376 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14378 fprintf (f, "%lu
\n", i);
14380 return ferror (f) || fclose (f) != 0;
14386 rm -f conftest$ac_exeext
14387 if { (ac_try="$ac_link"
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_link") 2>&5
14395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14397 { (case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_try") 2>&5
14404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14405 (exit $ac_status); }; }; then
14406 ac_cv_sizeof_pthread_t=`cat conftest.val`
14408 echo "$as_me: program exited with status
$ac_status" >&5
14409 echo "$as_me: failed program was
:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ( exit $ac_status )
14413 if test "$ac_cv_type_pthread_t" = yes; then
14414 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pthread_t
)
14415 See \
`config.log' for more details." >&5
14416 echo "$as_me: error: cannot compute sizeof (pthread_t)
14417 See \`config.log
' for more details." >&2;}
14418 { (exit 77); exit 77; }; }
14420 ac_cv_sizeof_pthread_t=0
14423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14427 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14428 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14432 cat >>confdefs.h <<_ACEOF
14433 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14440 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14441 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14442 # Check whether --enable-toolbox-glue was given.
14443 if test "${enable_toolbox_glue+set}" = set; then
14444 enableval=$enable_toolbox_glue;
14448 if test -z "$enable_toolbox_glue"
14450 case $ac_sys_system/$ac_sys_release in
14452 enable_toolbox_glue="yes";;
14454 enable_toolbox_glue="no";;
14457 case "$enable_toolbox_glue" in
14459 extra_machdep_objs="Python/mactoolboxglue.o"
14460 extra_undefs="-u _PyMac_Error"
14462 cat >>confdefs.h <<\_ACEOF
14463 #define USE_TOOLBOX_OBJECT_GLUE 1
14468 extra_machdep_objs=""
14472 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14473 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14477 case $ac_sys_system/$ac_sys_release in
14478 Darwin/[01567]\..*)
14479 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14482 OTHER_LIBTOOL_OPT=""
14489 case $ac_sys_system/$ac_sys_release in
14490 Darwin/[01567]\..*)
14491 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14492 if test "${enable_universalsdk}"; then
14495 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -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
)';;
14500 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14501 if test ${gcc_version} '<' 4.0
14503 LIBTOOL_CRUFT="-lcc_dynamic"
14507 if test "$cross_compiling" = yes; then
14510 cat >conftest.$ac_ext <<_ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 #include <unistd.h>
14518 int main(int argc, char*argv[])
14520 if (sizeof(long) == 4) {
14528 rm -f conftest$ac_exeext
14529 if { (ac_try="$ac_link"
14530 case "(($ac_try" in
14531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_link") 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
14539 { (case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_try") 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14550 echo "$as_me: program exited with status $ac_status" >&5
14551 echo "$as_me: failed program was:" >&5
14552 sed 's
/^
/|
/' conftest.$ac_ext >&5
14554 ( exit $ac_status )
14557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14562 if test "${ac_osx_32bit}" = "yes"; then
14565 MACOSX_DEFAULT_ARCH="i386"
14568 MACOSX_DEFAULT_ARCH="ppc"
14571 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14572 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14573 { (exit 1); exit 1; }; }
14579 MACOSX_DEFAULT_ARCH="x86_64"
14582 MACOSX_DEFAULT_ARCH="ppc64"
14585 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14586 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14587 { (exit 1); exit 1; }; }
14591 #ARCH_RUN_32BIT="true"
14594 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14595 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14596 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14599 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14600 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14601 if test "$enable_framework"
14603 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14604 # -F. is needed to allow linking to the framework while
14605 # in the build location.
14607 cat >>confdefs.h <<\_ACEOF
14608 #define WITH_NEXT_FRAMEWORK 1
14611 { echo "$as_me:$LINENO: result: yes" >&5
14612 echo "${ECHO_T}yes" >&6; }
14613 if test $enable_shared = "yes"
14615 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
14616 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
14617 { (exit 1); exit 1; }; }
14620 { echo "$as_me:$LINENO: result: no" >&5
14621 echo "${ECHO_T}no" >&6; }
14624 { echo "$as_me:$LINENO: checking for dyld" >&5
14625 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14626 case $ac_sys_system/$ac_sys_release in
14629 cat >>confdefs.h <<\_ACEOF
14630 #define WITH_DYLD 1
14633 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14634 echo "${ECHO_T}always on for Darwin" >&6; }
14637 { echo "$as_me:$LINENO: result: no" >&5
14638 echo "${ECHO_T}no" >&6; }
14642 # Set info about shared libraries.
14648 # SO is the extension of shared libraries `(including the dot!)
14649 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14650 { echo "$as_me:$LINENO: checking SO" >&5
14651 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14654 case $ac_sys_system in
14665 # this might also be a termcap variable, see #610332
14667 echo '====================================================================='
14669 echo '+ WARNING
: You have
set SO
in your environment.
+'
14670 echo '+ Do you really mean to change the extension
for shared libraries?
+'
14671 echo '+ Continuing
in 10 seconds to
let you to ponder.
+'
14673 echo '====================================================================='
14676 { echo "$as_me:$LINENO: result: $SO" >&5
14677 echo "${ECHO_T}$SO" >&6; }
14680 cat >>confdefs.h <<_ACEOF
14681 #define SHLIB_EXT "$SO"
14684 # LDSHARED is the ld *command* used to create shared library
14685 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14686 # (Shared libraries in this instance are shared modules to be loaded into
14687 # Python, as opposed to building Python itself as a shared library.)
14688 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14689 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14690 if test -z "$LDSHARED"
14692 case $ac_sys_system/$ac_sys_release in
14694 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14695 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14698 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14699 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14701 IRIX/5*) LDSHARED="ld -shared";;
14702 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14704 if test "$GCC" = "yes"
14705 then LDSHARED='$
(CC
) -shared'
14706 else LDSHARED='$
(CC
) -G';
14709 if test "$GCC" = "yes"
14710 then LDSHARED='$
(CC
) -shared'
14711 else LDSHARED='ld
-b';
14713 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14715 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14716 if test "$enable_framework" ; then
14717 # Link against the framework. All externals should be defined.
14718 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14719 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14721 # No framework. Ignore undefined symbols, assuming they come from Python
14722 LDSHARED="$LDSHARED -undefined suppress"
14724 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14725 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14726 if test "$enable_framework" ; then
14727 # Link against the framework. All externals should be defined.
14728 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14729 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14731 # No framework, use the Python app as bundle-loader
14732 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14733 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14736 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14737 # This allows an extension to be used in any Python
14739 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14741 if test "${enable_universalsdk}"; then
14742 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14744 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle -undefined dynamic_lookup
'
14745 BLDSHARED="$LDSHARED"
14747 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14748 if test "$enable_framework" ; then
14749 # Link against the framework. All externals should be defined.
14750 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14751 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14753 # No framework, use the Python app as bundle-loader
14754 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14755 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14759 Linux*|GNU*|QNX*) LDSHARED='$
(CC
) -shared';;
14760 BSD/OS*/4*) LDSHARED="gcc -shared";;
14762 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14764 LDSHARED="$CC -shared ${LDFLAGS}"
14766 LDSHARED="ld -Bshareable ${LDFLAGS}"
14769 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14771 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14774 [01].* | 2.[0-7] | 2.[0-7].*)
14775 LDSHARED="ld -Bshareable ${LDFLAGS}"
14778 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14782 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14783 OpenUNIX*|UnixWare*)
14784 if test "$GCC" = "yes"
14785 then LDSHARED='$
(CC
) -shared'
14786 else LDSHARED='$
(CC
) -G'
14788 SCO_SV*) LDSHARED='$
(CC
) -Wl,-G,-Bexport';;
14789 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14790 atheos*) LDSHARED="gcc -shared";;
14794 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14795 echo "${ECHO_T}$LDSHARED" >&6; }
14796 BLDSHARED=${BLDSHARED-$LDSHARED}
14797 # CCSHARED are the C *flags* used to create objects to go into a shared
14798 # library (module) -- this is only needed for a few systems
14799 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14800 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14801 if test -z "$CCSHARED"
14803 case $ac_sys_system/$ac_sys_release in
14804 SunOS*) if test "$GCC" = yes;
14805 then CCSHARED="-fPIC";
14806 elif test `uname -p` = sparc;
14807 then CCSHARED="-xcode=pic32";
14808 else CCSHARED="-Kpic";
14810 hp*|HP*) if test "$GCC" = yes;
14811 then CCSHARED="-fPIC";
14812 else CCSHARED="+z";
14814 Linux*|GNU*) CCSHARED="-fPIC";;
14815 BSD/OS*/4*) CCSHARED="-fpic";;
14816 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14817 OpenUNIX*|UnixWare*)
14818 if test "$GCC" = "yes"
14819 then CCSHARED="-fPIC"
14820 else CCSHARED="-KPIC"
14823 if test "$GCC" = "yes"
14824 then CCSHARED="-fPIC"
14825 else CCSHARED="-Kpic -belf"
14827 IRIX*/6*) case $CC in
14828 *gcc*) CCSHARED="-shared";;
14831 atheos*) CCSHARED="-fPIC";;
14834 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14835 echo "${ECHO_T}$CCSHARED" >&6; }
14836 # LINKFORSHARED are the flags passed to the $(CC) command that links
14837 # the python executable -- this is only needed for a few systems
14838 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14839 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14840 if test -z "$LINKFORSHARED"
14842 case $ac_sys_system/$ac_sys_release in
14843 AIX*) LINKFORSHARED='-Wl,-bE:Modules
/python.exp
-lld';;
14845 LINKFORSHARED="-Wl,-E -Wl,+s";;
14846 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14847 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14848 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14849 # -u libsys_s pulls in all symbols in libsys
14851 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14853 # not used by the core itself but which needs to be in the core so
14854 # that dynamically loaded extension modules have access to it.
14855 # -prebind is no longer used, because it actually seems to give a
14856 # slowdown in stead of a speedup, maybe due to the large number of
14857 # dynamic loads Python does.
14859 LINKFORSHARED="$extra_undefs"
14860 if test "$enable_framework"
14862 LINKFORSHARED="$LINKFORSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14864 LINKFORSHARED="$LINKFORSHARED";;
14865 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14866 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14867 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14868 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14869 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14871 LINKFORSHARED="-Wl,--export-dynamic"
14873 SunOS/5*) case $CC in
14875 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14877 LINKFORSHARED="-Xlinker --export-dynamic"
14881 if test $enable_shared = "no"
14883 LINKFORSHARED='-Wl,--out-implib=$
(LDLIBRARY
)'
14886 # -Wl,-E causes the symbols to be added to the dynamic
14887 # symbol table so that they can be found when a module
14888 # is loaded. -N 2048K causes the stack size to be set
14889 # to 2048 kilobytes so that the stack doesn't overflow
14890 # when running test_compile.py.
14891 LINKFORSHARED
='-Wl,-E -N 2048K';;
14894 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14895 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14899 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14900 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14901 if test ! "$LIBRARY" = "$LDLIBRARY"
14903 case $ac_sys_system in
14905 # Cygwin needs CCSHARED when building extension DLLs
14906 # but not when building the interpreter DLL.
14907 CFLAGSFORSHARED
='';;
14909 CFLAGSFORSHARED
='$(CCSHARED)'
14912 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14913 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14915 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14916 # library (with --enable-shared).
14917 # For platforms on which shared libraries are not allowed to have unresolved
14918 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14919 # if it is not required, since it creates a dependency of the shared library
14920 # to LIBS. This, in turn, means that applications linking the shared libpython
14921 # don't need to link LIBS explicitly. The default should be only changed
14922 # on systems where this approach causes problems.
14924 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14925 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14926 case "$ac_sys_system" in
14930 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14931 echo "${ECHO_T}$SHLIBS" >&6; }
14934 # checks for libraries
14936 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14937 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14938 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 ac_check_lib_save_LIBS
=$LIBS
14943 cat >conftest.
$ac_ext <<_ACEOF
14946 cat confdefs.h
>>conftest.
$ac_ext
14947 cat >>conftest.
$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14950 /* Override any GCC internal prototype to avoid an error.
14951 Use char because int might match the return type of a GCC
14952 builtin and then its argument prototype would still apply. */
14965 rm -f conftest.
$ac_objext conftest
$ac_exeext
14966 if { (ac_try
="$ac_link"
14967 case "(($ac_try" in
14968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972 (eval "$ac_link") 2>conftest.er1
14974 grep -v '^ *+' conftest.er1 >conftest.err
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && {
14979 test -z "$ac_c_werror_flag" ||
14980 test ! -s conftest.err
14981 } && test -s conftest$ac_exeext &&
14982 $as_test_x conftest$ac_exeext; then
14983 ac_cv_lib_dl_dlopen=yes
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 ac_cv_lib_dl_dlopen=no
14991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14992 conftest$ac_exeext conftest.$ac_ext
14993 LIBS=$ac_check_lib_save_LIBS
14995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14997 if test $ac_cv_lib_dl_dlopen = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999 #define HAVE_LIBDL 1
15005 # Dynamic linking for SunOS/Solaris and SYSV
15007 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15008 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15009 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 ac_check_lib_save_LIBS=$LIBS
15014 cat >conftest.$ac_ext <<_ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15021 /* Override any GCC internal prototype to avoid an error.
15022 Use char because int might match the return type of a GCC
15023 builtin and then its argument prototype would still apply. */
15031 return shl_load ();
15036 rm -f conftest.$ac_objext conftest$ac_exeext
15037 if { (ac_try="$ac_link"
15038 case "(($ac_try" in
15039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15040 *) ac_try_echo
=$ac_try;;
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043 (eval "$ac_link") 2>conftest.er1
15045 grep -v '^ *+' conftest.er1
>conftest.err
15047 cat conftest.err
>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); } && {
15050 test -z "$ac_c_werror_flag" ||
15051 test ! -s conftest.err
15052 } && test -s conftest
$ac_exeext &&
15053 $as_test_x conftest
$ac_exeext; then
15054 ac_cv_lib_dld_shl_load
=yes
15056 echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.
$ac_ext >&5
15059 ac_cv_lib_dld_shl_load
=no
15062 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15063 conftest
$ac_exeext conftest.
$ac_ext
15064 LIBS
=$ac_check_lib_save_LIBS
15066 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15067 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15068 if test $ac_cv_lib_dld_shl_load = yes; then
15069 cat >>confdefs.h
<<_ACEOF
15070 #define HAVE_LIBDLD 1
15076 # Dynamic linking for HP-UX
15078 # only check for sem_init if thread support is requested
15079 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15080 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15081 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15082 if test "${ac_cv_search_sem_init+set}" = set; then
15083 echo $ECHO_N "(cached) $ECHO_C" >&6
15085 ac_func_search_save_LIBS
=$LIBS
15086 cat >conftest.
$ac_ext <<_ACEOF
15089 cat confdefs.h
>>conftest.
$ac_ext
15090 cat >>conftest.
$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15093 /* Override any GCC internal prototype to avoid an error.
15094 Use char because int might match the return type of a GCC
15095 builtin and then its argument prototype would still apply. */
15103 return sem_init ();
15108 for ac_lib
in '' pthread rt posix4
; do
15109 if test -z "$ac_lib"; then
15110 ac_res
="none required"
15113 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15115 rm -f conftest.
$ac_objext conftest
$ac_exeext
15116 if { (ac_try
="$ac_link"
15117 case "(($ac_try" in
15118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_link") 2>conftest.er1
15124 grep -v '^ *+' conftest.er1 >conftest.err
15126 cat conftest.err >&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && {
15129 test -z "$ac_c_werror_flag" ||
15130 test ! -s conftest.err
15131 } && test -s conftest$ac_exeext &&
15132 $as_test_x conftest$ac_exeext; then
15133 ac_cv_search_sem_init=$ac_res
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15143 if test "${ac_cv_search_sem_init+set}" = set; then
15147 if test "${ac_cv_search_sem_init+set}" = set; then
15150 ac_cv_search_sem_init=no
15152 rm conftest.$ac_ext
15153 LIBS=$ac_func_search_save_LIBS
15155 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15156 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15157 ac_res=$ac_cv_search_sem_init
15158 if test "$ac_res" != no; then
15159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15162 # 'Real Time' functions on Solaris
15163 # posix4 on Solaris 2.6
15164 # pthread (first!) on Linux
15167 # check if we need libintl for locale functions
15168 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15169 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15170 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 ac_check_lib_save_LIBS=$LIBS
15174 LIBS="-lintl $LIBS"
15175 cat >conftest.$ac_ext <<_ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15182 /* Override any GCC internal prototype to avoid an error.
15183 Use char because int might match the return type of a GCC
15184 builtin and then its argument prototype would still apply. */
15188 char textdomain ();
15192 return textdomain ();
15197 rm -f conftest.$ac_objext conftest$ac_exeext
15198 if { (ac_try="$ac_link"
15199 case "(($ac_try" in
15200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15201 *) ac_try_echo
=$ac_try;;
15203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204 (eval "$ac_link") 2>conftest.er1
15206 grep -v '^ *+' conftest.er1
>conftest.err
15208 cat conftest.err
>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); } && {
15211 test -z "$ac_c_werror_flag" ||
15212 test ! -s conftest.err
15213 } && test -s conftest
$ac_exeext &&
15214 $as_test_x conftest
$ac_exeext; then
15215 ac_cv_lib_intl_textdomain
=yes
15217 echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.
$ac_ext >&5
15220 ac_cv_lib_intl_textdomain
=no
15223 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15224 conftest
$ac_exeext conftest.
$ac_ext
15225 LIBS
=$ac_check_lib_save_LIBS
15227 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15228 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15229 if test $ac_cv_lib_intl_textdomain = yes; then
15231 cat >>confdefs.h
<<\_ACEOF
15232 #define WITH_LIBINTL 1
15238 # checks for system dependent C++ extensions support
15239 case "$ac_sys_system" in
15240 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15241 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15242 cat >conftest.
$ac_ext <<_ACEOF
15245 cat confdefs.h
>>conftest.
$ac_ext
15246 cat >>conftest.
$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 #include "/usr/lpp/xlC/include/load.h"
15252 loadAndInit("", 0, "")
15257 rm -f conftest.
$ac_objext conftest
$ac_exeext
15258 if { (ac_try
="$ac_link"
15259 case "(($ac_try" in
15260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_link") 2>conftest.er1
15266 grep -v '^ *+' conftest.er1 >conftest.err
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest$ac_exeext &&
15274 $as_test_x conftest$ac_exeext; then
15276 cat >>confdefs.h <<\_ACEOF
15277 #define AIX_GENUINE_CPLUSPLUS 1
15280 { echo "$as_me:$LINENO: result: yes" >&5
15281 echo "${ECHO_T}yes" >&6; }
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 { echo "$as_me:$LINENO: result: no" >&5
15287 echo "${ECHO_T}no" >&6; }
15290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291 conftest$ac_exeext conftest.$ac_ext;;
15295 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15296 # BeOS' sockets are stashed in libnet.
15297 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15298 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15299 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 ac_check_lib_save_LIBS=$LIBS
15304 cat >conftest.$ac_ext <<_ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h. */
15311 /* Override any GCC internal prototype to avoid an error.
15312 Use char because int might match the return type of a GCC
15313 builtin and then its argument prototype would still apply. */
15326 rm -f conftest.$ac_objext conftest$ac_exeext
15327 if { (ac_try="$ac_link"
15328 case "(($ac_try" in
15329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15330 *) ac_try_echo
=$ac_try;;
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_link") 2>conftest.er1
15335 grep -v '^ *+' conftest.er1
>conftest.err
15337 cat conftest.err
>&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } && {
15340 test -z "$ac_c_werror_flag" ||
15341 test ! -s conftest.err
15342 } && test -s conftest
$ac_exeext &&
15343 $as_test_x conftest
$ac_exeext; then
15344 ac_cv_lib_nsl_t_open
=yes
15346 echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.
$ac_ext >&5
15349 ac_cv_lib_nsl_t_open
=no
15352 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15353 conftest
$ac_exeext conftest.
$ac_ext
15354 LIBS
=$ac_check_lib_save_LIBS
15356 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15357 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15358 if test $ac_cv_lib_nsl_t_open = yes; then
15362 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15363 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15364 if test "${ac_cv_lib_socket_socket+set}" = set; then
15365 echo $ECHO_N "(cached) $ECHO_C" >&6
15367 ac_check_lib_save_LIBS
=$LIBS
15368 LIBS
="-lsocket $LIBS $LIBS"
15369 cat >conftest.
$ac_ext <<_ACEOF
15372 cat confdefs.h
>>conftest.
$ac_ext
15373 cat >>conftest.
$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15376 /* Override any GCC internal prototype to avoid an error.
15377 Use char because int might match the return type of a GCC
15378 builtin and then its argument prototype would still apply. */
15391 rm -f conftest.
$ac_objext conftest
$ac_exeext
15392 if { (ac_try
="$ac_link"
15393 case "(($ac_try" in
15394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_link") 2>conftest.er1
15400 grep -v '^ *+' conftest.er1 >conftest.err
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404 (exit $ac_status); } && {
15405 test -z "$ac_c_werror_flag" ||
15406 test ! -s conftest.err
15407 } && test -s conftest$ac_exeext &&
15408 $as_test_x conftest$ac_exeext; then
15409 ac_cv_lib_socket_socket=yes
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 ac_cv_lib_socket_socket=no
15417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15418 conftest$ac_exeext conftest.$ac_ext
15419 LIBS=$ac_check_lib_save_LIBS
15421 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15422 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15423 if test $ac_cv_lib_socket_socket = yes; then
15424 LIBS="-lsocket $LIBS"
15428 case "$ac_sys_system" in
15430 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15431 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15432 if test "${ac_cv_lib_net_socket+set}" = set; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15435 ac_check_lib_save_LIBS=$LIBS
15436 LIBS="-lnet $LIBS $LIBS"
15437 cat >conftest.$ac_ext <<_ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15444 /* Override any GCC internal prototype to avoid an error.
15445 Use char because int might match the return type of a GCC
15446 builtin and then its argument prototype would still apply. */
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (ac_try="$ac_link"
15461 case "(($ac_try" in
15462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15463 *) ac_try_echo
=$ac_try;;
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466 (eval "$ac_link") 2>conftest.er1
15468 grep -v '^ *+' conftest.er1
>conftest.err
15470 cat conftest.err
>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } && {
15473 test -z "$ac_c_werror_flag" ||
15474 test ! -s conftest.err
15475 } && test -s conftest
$ac_exeext &&
15476 $as_test_x conftest
$ac_exeext; then
15477 ac_cv_lib_net_socket
=yes
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.
$ac_ext >&5
15482 ac_cv_lib_net_socket
=no
15485 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15486 conftest
$ac_exeext conftest.
$ac_ext
15487 LIBS
=$ac_check_lib_save_LIBS
15489 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15490 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15491 if test $ac_cv_lib_net_socket = yes; then
15498 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15499 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15501 # Check whether --with-libs was given.
15502 if test "${with_libs+set}" = set; then
15503 withval
=$with_libs;
15504 { echo "$as_me:$LINENO: result: $withval" >&5
15505 echo "${ECHO_T}$withval" >&6; }
15506 LIBS
="$withval $LIBS"
15509 { echo "$as_me:$LINENO: result: no" >&5
15510 echo "${ECHO_T}no" >&6; }
15514 # Check for use of the system libffi library
15515 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15516 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15518 # Check whether --with-system_ffi was given.
15519 if test "${with_system_ffi+set}" = set; then
15520 withval
=$with_system_ffi;
15524 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15525 echo "${ECHO_T}$with_system_ffi" >&6; }
15527 # Check for --with-dbmliborder
15528 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15529 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15531 # Check whether --with-dbmliborder was given.
15532 if test "${with_dbmliborder+set}" = set; then
15533 withval
=$with_dbmliborder;
15534 if test x
$with_dbmliborder = xyes
15536 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15537 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15538 { (exit 1); exit 1; }; }
15540 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15541 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
15543 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15544 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15545 { (exit 1); exit 1; }; }
15551 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15552 echo "${ECHO_T}$with_dbmliborder" >&6; }
15554 # Determine if signalmodule should be used.
15557 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15558 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15560 # Check whether --with-signal-module was given.
15561 if test "${with_signal_module+set}" = set; then
15562 withval
=$with_signal_module;
15566 if test -z "$with_signal_module"
15567 then with_signal_module
="yes"
15569 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15570 echo "${ECHO_T}$with_signal_module" >&6; }
15572 if test "${with_signal_module}" = "yes"; then
15573 USE_SIGNAL_MODULE
=""
15576 USE_SIGNAL_MODULE
="#"
15577 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
15580 # This is used to generate Setup.config
15582 USE_THREAD_MODULE
=""
15584 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15585 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15588 # Check whether --with-dec-threads was given.
15589 if test "${with_dec_threads+set}" = set; then
15590 withval
=$with_dec_threads;
15591 { echo "$as_me:$LINENO: result: $withval" >&5
15592 echo "${ECHO_T}$withval" >&6; }
15594 if test "${with_thread+set}" != set; then
15595 with_thread
="$withval";
15598 { echo "$as_me:$LINENO: result: no" >&5
15599 echo "${ECHO_T}no" >&6; }
15603 # Templates for things AC_DEFINEd more than once.
15604 # For a single AC_DEFINE, no template is needed.
15612 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15613 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15615 # Check whether --with-threads was given.
15616 if test "${with_threads+set}" = set; then
15617 withval
=$with_threads;
15621 # --with-thread is deprecated, but check for it anyway
15623 # Check whether --with-thread was given.
15624 if test "${with_thread+set}" = set; then
15625 withval
=$with_thread; with_threads
=$with_thread
15629 if test -z "$with_threads"
15630 then with_threads
="yes"
15632 { echo "$as_me:$LINENO: result: $with_threads" >&5
15633 echo "${ECHO_T}$with_threads" >&6; }
15636 if test "$with_threads" = "no"
15638 USE_THREAD_MODULE
="#"
15639 elif test "$ac_cv_pthread_is_default" = yes
15641 cat >>confdefs.h
<<\_ACEOF
15642 #define WITH_THREAD 1
15645 # Defining _REENTRANT on system with POSIX threads should not hurt.
15646 cat >>confdefs.h
<<\_ACEOF
15647 #define _REENTRANT 1
15651 THREADOBJ
="Python/thread.o"
15652 elif test "$ac_cv_kpthread" = "yes"
15655 if test "$ac_cv_cxx_thread" = "yes"; then
15656 CXX
="$CXX -Kpthread"
15658 cat >>confdefs.h
<<\_ACEOF
15659 #define WITH_THREAD 1
15663 THREADOBJ
="Python/thread.o"
15664 elif test "$ac_cv_kthread" = "yes"
15667 if test "$ac_cv_cxx_thread" = "yes"; then
15668 CXX
="$CXX -Kthread"
15670 cat >>confdefs.h
<<\_ACEOF
15671 #define WITH_THREAD 1
15675 THREADOBJ
="Python/thread.o"
15676 elif test "$ac_cv_pthread" = "yes"
15679 if test "$ac_cv_cxx_thread" = "yes"; then
15680 CXX
="$CXX -pthread"
15682 cat >>confdefs.h
<<\_ACEOF
15683 #define WITH_THREAD 1
15687 THREADOBJ
="Python/thread.o"
15689 if test ! -z "$with_threads" -a -d "$with_threads"
15690 then LDFLAGS
="$LDFLAGS -L$with_threads"
15692 if test ! -z "$withval" -a -d "$withval"
15693 then LDFLAGS
="$LDFLAGS -L$withval"
15696 # According to the POSIX spec, a pthreads implementation must
15697 # define _POSIX_THREADS in unistd.h. Some apparently don't
15698 # (e.g. gnu pth with pthread emulation)
15699 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15700 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15701 cat >conftest.
$ac_ext <<_ACEOF
15704 cat confdefs.h
>>conftest.
$ac_ext
15705 cat >>conftest.
$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15708 #include <unistd.h>
15709 #ifdef _POSIX_THREADS
15714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15715 $EGREP "yes" >/dev
/null
2>&1; then
15716 unistd_defines_pthreads
=yes
15718 unistd_defines_pthreads
=no
15722 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15723 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15725 cat >>confdefs.h
<<\_ACEOF
15726 #define _REENTRANT 1
15729 if test "${ac_cv_header_cthreads_h+set}" = set; then
15730 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15731 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15732 if test "${ac_cv_header_cthreads_h+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15736 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15738 # Is the header compilable?
15739 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15740 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15741 cat >conftest.
$ac_ext <<_ACEOF
15744 cat confdefs.h
>>conftest.
$ac_ext
15745 cat >>conftest.
$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15747 $ac_includes_default
15748 #include <cthreads.h>
15750 rm -f conftest.
$ac_objext
15751 if { (ac_try
="$ac_compile"
15752 case "(($ac_try" in
15753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_compile") 2>conftest.er1
15759 grep -v '^ *+' conftest.er1 >conftest.err
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && {
15764 test -z "$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 } && test -s conftest.$ac_objext; then
15767 ac_header_compiler=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_header_compiler=no
15775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15777 echo "${ECHO_T}$ac_header_compiler" >&6; }
15779 # Is the header present?
15780 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15781 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15782 cat >conftest.$ac_ext <<_ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15788 #include <cthreads.h>
15790 if { (ac_try="$ac_cpp conftest.$ac_ext"
15791 case "(($ac_try" in
15792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15793 *) ac_try_echo
=$ac_try;;
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15798 grep -v '^ *+' conftest.er1
>conftest.err
15800 cat conftest.err
>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } >/dev
/null
&& {
15803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15804 test ! -s conftest.err
15806 ac_header_preproc
=yes
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.
$ac_ext >&5
15811 ac_header_preproc
=no
15814 rm -f conftest.err conftest.
$ac_ext
15815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15816 echo "${ECHO_T}$ac_header_preproc" >&6; }
15818 # So? What about this header?
15819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15821 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15822 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15824 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15825 ac_header_preproc
=yes
15828 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15829 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15831 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15833 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15834 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15835 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15836 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15837 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15839 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15841 ## -------------------------------------- ##
15842 ## Report this to http://bugs.python.org/ ##
15843 ## -------------------------------------- ##
15845 ) |
sed "s/^/$as_me: WARNING: /" >&2
15848 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15849 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15850 if test "${ac_cv_header_cthreads_h+set}" = set; then
15851 echo $ECHO_N "(cached) $ECHO_C" >&6
15853 ac_cv_header_cthreads_h
=$ac_header_preproc
15855 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15856 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15859 if test $ac_cv_header_cthreads_h = yes; then
15860 cat >>confdefs.h
<<\_ACEOF
15861 #define WITH_THREAD 1
15864 cat >>confdefs.h
<<\_ACEOF
15865 #define C_THREADS 1
15869 cat >>confdefs.h
<<\_ACEOF
15870 #define HURD_C_THREADS 1
15873 LIBS
="$LIBS -lthreads"
15874 THREADOBJ
="Python/thread.o"
15877 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15878 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15879 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15880 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15884 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15886 # Is the header compilable?
15887 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15888 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15889 cat >conftest.
$ac_ext <<_ACEOF
15892 cat confdefs.h
>>conftest.
$ac_ext
15893 cat >>conftest.
$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 $ac_includes_default
15896 #include <mach/cthreads.h>
15898 rm -f conftest.
$ac_objext
15899 if { (ac_try
="$ac_compile"
15900 case "(($ac_try" in
15901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_compile") 2>conftest.er1
15907 grep -v '^ *+' conftest.er1 >conftest.err
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } && {
15912 test -z "$ac_c_werror_flag" ||
15913 test ! -s conftest.err
15914 } && test -s conftest.$ac_objext; then
15915 ac_header_compiler=yes
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_header_compiler=no
15923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6; }
15927 # Is the header present?
15928 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15929 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15930 cat >conftest.$ac_ext <<_ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <mach/cthreads.h>
15938 if { (ac_try="$ac_cpp conftest.$ac_ext"
15939 case "(($ac_try" in
15940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15941 *) ac_try_echo
=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15946 grep -v '^ *+' conftest.er1
>conftest.err
15948 cat conftest.err
>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } >/dev
/null
&& {
15951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15952 test ! -s conftest.err
15954 ac_header_preproc
=yes
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.
$ac_ext >&5
15959 ac_header_preproc
=no
15962 rm -f conftest.err conftest.
$ac_ext
15963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15964 echo "${ECHO_T}$ac_header_preproc" >&6; }
15966 # So? What about this header?
15967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15969 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15970 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15972 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15973 ac_header_preproc
=yes
15976 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15977 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15979 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15980 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15981 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15982 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15983 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15985 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
15987 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
15989 ## -------------------------------------- ##
15990 ## Report this to http://bugs.python.org/ ##
15991 ## -------------------------------------- ##
15993 ) |
sed "s/^/$as_me: WARNING: /" >&2
15996 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15997 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15998 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
16003 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16004 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16007 if test $ac_cv_header_mach_cthreads_h = yes; then
16008 cat >>confdefs.h
<<\_ACEOF
16009 #define WITH_THREAD 1
16012 cat >>confdefs.h
<<\_ACEOF
16013 #define C_THREADS 1
16017 cat >>confdefs.h
<<\_ACEOF
16018 #define MACH_C_THREADS 1
16021 THREADOBJ
="Python/thread.o"
16024 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16025 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16027 # Check whether --with-pth was given.
16028 if test "${with_pth+set}" = set; then
16029 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16030 echo "${ECHO_T}$withval" >&6; }
16031 cat >>confdefs.h
<<\_ACEOF
16032 #define WITH_THREAD 1
16036 cat >>confdefs.h
<<\_ACEOF
16041 THREADOBJ
="Python/thread.o"
16043 { echo "$as_me:$LINENO: result: no" >&5
16044 echo "${ECHO_T}no" >&6; }
16046 # Just looking for pthread_create in libpthread is not enough:
16047 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16048 # So we really have to include pthread.h, and then link.
16050 LIBS
="$LIBS -lpthread"
16051 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16052 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16053 cat >conftest.
$ac_ext <<_ACEOF
16056 cat confdefs.h
>>conftest.
$ac_ext
16057 cat >>conftest.
$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 #include <pthread.h>
16061 void * start_routine (void *arg) { exit (0); }
16066 pthread_create (NULL, NULL, start_routine, NULL)
16071 rm -f conftest.
$ac_objext conftest
$ac_exeext
16072 if { (ac_try
="$ac_link"
16073 case "(($ac_try" in
16074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_link") 2>conftest.er1
16080 grep -v '^ *+' conftest.er1 >conftest.err
16082 cat conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } && {
16085 test -z "$ac_c_werror_flag" ||
16086 test ! -s conftest.err
16087 } && test -s conftest$ac_exeext &&
16088 $as_test_x conftest$ac_exeext; then
16090 { echo "$as_me:$LINENO: result: yes" >&5
16091 echo "${ECHO_T}yes" >&6; }
16092 cat >>confdefs.h <<\_ACEOF
16093 #define WITH_THREAD 1
16097 THREADOBJ="Python/thread.o"
16099 echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16104 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16105 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16106 if test "${ac_cv_func_pthread_detach+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 cat >conftest.$ac_ext <<_ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16117 #define pthread_detach innocuous_pthread_detach
16119 /* System header to define __stub macros and hopefully few prototypes,
16120 which can conflict with char pthread_detach (); below.
16121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16122 <limits.h> exists even on freestanding compilers. */
16125 # include <limits.h>
16127 # include <assert.h>
16130 #undef pthread_detach
16132 /* Override any GCC internal prototype to avoid an error.
16133 Use char because int might match the return type of a GCC
16134 builtin and then its argument prototype would still apply. */
16138 char pthread_detach ();
16139 /* The GNU C library defines this for functions which it implements
16140 to always fail with ENOSYS. Some functions are actually named
16141 something starting with __ and the normal name is an alias. */
16142 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16149 return pthread_detach ();
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (ac_try="$ac_link"
16156 case "(($ac_try" in
16157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16158 *) ac_try_echo
=$ac_try;;
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_link") 2>conftest.er1
16163 grep -v '^ *+' conftest.er1
>conftest.err
16165 cat conftest.err
>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest
$ac_exeext &&
16171 $as_test_x conftest
$ac_exeext; then
16172 ac_cv_func_pthread_detach
=yes
16174 echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.
$ac_ext >&5
16177 ac_cv_func_pthread_detach
=no
16180 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16181 conftest
$ac_exeext conftest.
$ac_ext
16183 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16184 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16185 if test $ac_cv_func_pthread_detach = yes; then
16186 cat >>confdefs.h
<<\_ACEOF
16187 #define WITH_THREAD 1
16191 THREADOBJ
="Python/thread.o"
16194 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16195 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16196 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16197 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16201 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16203 # Is the header compilable?
16204 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16205 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16206 cat >conftest.
$ac_ext <<_ACEOF
16209 cat confdefs.h
>>conftest.
$ac_ext
16210 cat >>conftest.
$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16212 $ac_includes_default
16213 #include <atheos/threads.h>
16215 rm -f conftest.
$ac_objext
16216 if { (ac_try
="$ac_compile"
16217 case "(($ac_try" in
16218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_compile") 2>conftest.er1
16224 grep -v '^ *+' conftest.er1 >conftest.err
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } && {
16229 test -z "$ac_c_werror_flag" ||
16230 test ! -s conftest.err
16231 } && test -s conftest.$ac_objext; then
16232 ac_header_compiler=yes
16234 echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16237 ac_header_compiler=no
16240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16241 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16242 echo "${ECHO_T}$ac_header_compiler" >&6; }
16244 # Is the header present?
16245 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16246 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 #include <atheos/threads.h>
16255 if { (ac_try="$ac_cpp conftest.$ac_ext"
16256 case "(($ac_try" in
16257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16258 *) ac_try_echo
=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16263 grep -v '^ *+' conftest.er1
>conftest.err
16265 cat conftest.err
>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } >/dev
/null
&& {
16268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16269 test ! -s conftest.err
16271 ac_header_preproc
=yes
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.
$ac_ext >&5
16276 ac_header_preproc
=no
16279 rm -f conftest.err conftest.
$ac_ext
16280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16281 echo "${ECHO_T}$ac_header_preproc" >&6; }
16283 # So? What about this header?
16284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16286 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16287 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16289 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16290 ac_header_preproc
=yes
16293 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16294 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16296 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16298 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16299 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16300 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16302 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16304 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16306 ## -------------------------------------- ##
16307 ## Report this to http://bugs.python.org/ ##
16308 ## -------------------------------------- ##
16310 ) |
sed "s/^/$as_me: WARNING: /" >&2
16313 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16314 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16315 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 ac_cv_header_atheos_threads_h
=$ac_header_preproc
16320 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16321 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16324 if test $ac_cv_header_atheos_threads_h = yes; then
16325 cat >>confdefs.h
<<\_ACEOF
16326 #define WITH_THREAD 1
16330 cat >>confdefs.h
<<\_ACEOF
16331 #define ATHEOS_THREADS 1
16334 THREADOBJ
="Python/thread.o"
16337 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16338 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16339 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16340 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16344 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16346 # Is the header compilable?
16347 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16348 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16349 cat >conftest.
$ac_ext <<_ACEOF
16352 cat confdefs.h
>>conftest.
$ac_ext
16353 cat >>conftest.
$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 $ac_includes_default
16356 #include <kernel/OS.h>
16358 rm -f conftest.
$ac_objext
16359 if { (ac_try
="$ac_compile"
16360 case "(($ac_try" in
16361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_compile") 2>conftest.er1
16367 grep -v '^ *+' conftest.er1 >conftest.err
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } && {
16372 test -z "$ac_c_werror_flag" ||
16373 test ! -s conftest.err
16374 } && test -s conftest.$ac_objext; then
16375 ac_header_compiler=yes
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 ac_header_compiler=no
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16385 echo "${ECHO_T}$ac_header_compiler" >&6; }
16387 # Is the header present?
16388 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16389 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16390 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 #include <kernel/OS.h>
16398 if { (ac_try="$ac_cpp conftest.$ac_ext"
16399 case "(($ac_try" in
16400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16401 *) ac_try_echo
=$ac_try;;
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16406 grep -v '^ *+' conftest.er1
>conftest.err
16408 cat conftest.err
>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } >/dev
/null
&& {
16411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16412 test ! -s conftest.err
16414 ac_header_preproc
=yes
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.
$ac_ext >&5
16419 ac_header_preproc
=no
16422 rm -f conftest.err conftest.
$ac_ext
16423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16424 echo "${ECHO_T}$ac_header_preproc" >&6; }
16426 # So? What about this header?
16427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16429 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16430 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16432 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16433 ac_header_preproc
=yes
16436 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16437 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16439 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16441 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16442 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16443 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16444 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16445 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16446 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16447 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16449 ## -------------------------------------- ##
16450 ## Report this to http://bugs.python.org/ ##
16451 ## -------------------------------------- ##
16453 ) |
sed "s/^/$as_me: WARNING: /" >&2
16456 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16457 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16458 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16461 ac_cv_header_kernel_OS_h
=$ac_header_preproc
16463 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16464 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16467 if test $ac_cv_header_kernel_OS_h = yes; then
16468 cat >>confdefs.h
<<\_ACEOF
16469 #define WITH_THREAD 1
16473 cat >>confdefs.h
<<\_ACEOF
16474 #define BEOS_THREADS 1
16477 THREADOBJ
="Python/thread.o"
16480 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16481 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16482 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16483 echo $ECHO_N "(cached) $ECHO_C" >&6
16485 ac_check_lib_save_LIBS
=$LIBS
16486 LIBS
="-lpthreads $LIBS"
16487 cat >conftest.
$ac_ext <<_ACEOF
16490 cat confdefs.h
>>conftest.
$ac_ext
16491 cat >>conftest.
$ac_ext <<_ACEOF
16492 /* end confdefs.h. */
16494 /* Override any GCC internal prototype to avoid an error.
16495 Use char because int might match the return type of a GCC
16496 builtin and then its argument prototype would still apply. */
16500 char pthread_create ();
16504 return pthread_create ();
16509 rm -f conftest.
$ac_objext conftest
$ac_exeext
16510 if { (ac_try
="$ac_link"
16511 case "(($ac_try" in
16512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16513 *) ac_try_echo=$ac_try;;
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516 (eval "$ac_link") 2>conftest.er1
16518 grep -v '^ *+' conftest.er1 >conftest.err
16520 cat conftest.err >&5
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); } && {
16523 test -z "$ac_c_werror_flag" ||
16524 test ! -s conftest.err
16525 } && test -s conftest$ac_exeext &&
16526 $as_test_x conftest$ac_exeext; then
16527 ac_cv_lib_pthreads_pthread_create=yes
16529 echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.$ac_ext >&5
16532 ac_cv_lib_pthreads_pthread_create=no
16535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16536 conftest$ac_exeext conftest.$ac_ext
16537 LIBS=$ac_check_lib_save_LIBS
16539 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16540 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16541 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16542 cat >>confdefs.h <<\_ACEOF
16543 #define WITH_THREAD 1
16547 LIBS="$LIBS -lpthreads"
16548 THREADOBJ="Python/thread.o"
16551 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16552 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16553 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16556 ac_check_lib_save_LIBS=$LIBS
16558 cat >conftest.$ac_ext <<_ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16565 /* Override any GCC internal prototype to avoid an error.
16566 Use char because int might match the return type of a GCC
16567 builtin and then its argument prototype would still apply. */
16571 char pthread_create ();
16575 return pthread_create ();
16580 rm -f conftest.$ac_objext conftest$ac_exeext
16581 if { (ac_try="$ac_link"
16582 case "(($ac_try" in
16583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16584 *) ac_try_echo
=$ac_try;;
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_link") 2>conftest.er1
16589 grep -v '^ *+' conftest.er1
>conftest.err
16591 cat conftest.err
>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } && {
16594 test -z "$ac_c_werror_flag" ||
16595 test ! -s conftest.err
16596 } && test -s conftest
$ac_exeext &&
16597 $as_test_x conftest
$ac_exeext; then
16598 ac_cv_lib_c_r_pthread_create
=yes
16600 echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.
$ac_ext >&5
16603 ac_cv_lib_c_r_pthread_create
=no
16606 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16607 conftest
$ac_exeext conftest.
$ac_ext
16608 LIBS
=$ac_check_lib_save_LIBS
16610 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16611 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16612 if test $ac_cv_lib_c_r_pthread_create = yes; then
16613 cat >>confdefs.h
<<\_ACEOF
16614 #define WITH_THREAD 1
16619 THREADOBJ
="Python/thread.o"
16622 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16623 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16624 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 ac_check_lib_save_LIBS
=$LIBS
16628 LIBS
="-lpthread $LIBS"
16629 cat >conftest.
$ac_ext <<_ACEOF
16632 cat confdefs.h
>>conftest.
$ac_ext
16633 cat >>conftest.
$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16636 /* Override any GCC internal prototype to avoid an error.
16637 Use char because int might match the return type of a GCC
16638 builtin and then its argument prototype would still apply. */
16642 char __pthread_create_system ();
16646 return __pthread_create_system ();
16651 rm -f conftest.
$ac_objext conftest
$ac_exeext
16652 if { (ac_try
="$ac_link"
16653 case "(($ac_try" in
16654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_link") 2>conftest.er1
16660 grep -v '^ *+' conftest.er1 >conftest.err
16662 cat conftest.err >&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } && {
16665 test -z "$ac_c_werror_flag" ||
16666 test ! -s conftest.err
16667 } && test -s conftest$ac_exeext &&
16668 $as_test_x conftest$ac_exeext; then
16669 ac_cv_lib_pthread___pthread_create_system=yes
16671 echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16674 ac_cv_lib_pthread___pthread_create_system=no
16677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16678 conftest$ac_exeext conftest.$ac_ext
16679 LIBS=$ac_check_lib_save_LIBS
16681 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16682 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16683 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16684 cat >>confdefs.h <<\_ACEOF
16685 #define WITH_THREAD 1
16689 LIBS="$LIBS -lpthread"
16690 THREADOBJ="Python/thread.o"
16693 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16694 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16695 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 ac_check_lib_save_LIBS=$LIBS
16700 cat >conftest.$ac_ext <<_ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h. */
16707 /* Override any GCC internal prototype to avoid an error.
16708 Use char because int might match the return type of a GCC
16709 builtin and then its argument prototype would still apply. */
16713 char pthread_create ();
16717 return pthread_create ();
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (ac_try="$ac_link"
16724 case "(($ac_try" in
16725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16726 *) ac_try_echo
=$ac_try;;
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_link") 2>conftest.er1
16731 grep -v '^ *+' conftest.er1
>conftest.err
16733 cat conftest.err
>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } && {
16736 test -z "$ac_c_werror_flag" ||
16737 test ! -s conftest.err
16738 } && test -s conftest
$ac_exeext &&
16739 $as_test_x conftest
$ac_exeext; then
16740 ac_cv_lib_cma_pthread_create
=yes
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.
$ac_ext >&5
16745 ac_cv_lib_cma_pthread_create
=no
16748 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16749 conftest
$ac_exeext conftest.
$ac_ext
16750 LIBS
=$ac_check_lib_save_LIBS
16752 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16753 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16754 if test $ac_cv_lib_cma_pthread_create = yes; then
16755 cat >>confdefs.h
<<\_ACEOF
16756 #define WITH_THREAD 1
16761 THREADOBJ
="Python/thread.o"
16764 USE_THREAD_MODULE
="#"
16784 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16785 conftest
$ac_exeext conftest.
$ac_ext
16795 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16796 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16797 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 ac_check_lib_save_LIBS
=$LIBS
16802 cat >conftest.
$ac_ext <<_ACEOF
16805 cat confdefs.h
>>conftest.
$ac_ext
16806 cat >>conftest.
$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16809 /* Override any GCC internal prototype to avoid an error.
16810 Use char because int might match the return type of a GCC
16811 builtin and then its argument prototype would still apply. */
16819 return usconfig ();
16824 rm -f conftest.
$ac_objext conftest
$ac_exeext
16825 if { (ac_try
="$ac_link"
16826 case "(($ac_try" in
16827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_link") 2>conftest.er1
16833 grep -v '^ *+' conftest.er1 >conftest.err
16835 cat conftest.err >&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } && {
16838 test -z "$ac_c_werror_flag" ||
16839 test ! -s conftest.err
16840 } && test -s conftest$ac_exeext &&
16841 $as_test_x conftest$ac_exeext; then
16842 ac_cv_lib_mpc_usconfig=yes
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16847 ac_cv_lib_mpc_usconfig=no
16850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16851 conftest$ac_exeext conftest.$ac_ext
16852 LIBS=$ac_check_lib_save_LIBS
16854 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16855 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16856 if test $ac_cv_lib_mpc_usconfig = yes; then
16857 cat >>confdefs.h <<\_ACEOF
16858 #define WITH_THREAD 1
16862 THREADOBJ="Python/thread.o"
16863 USE_THREAD_MODULE=""
16867 if test "$posix_threads" != "yes"; then
16868 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16869 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16870 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 ac_check_lib_save_LIBS=$LIBS
16874 LIBS="-lthread $LIBS"
16875 cat >conftest.$ac_ext <<_ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16882 /* Override any GCC internal prototype to avoid an error.
16883 Use char because int might match the return type of a GCC
16884 builtin and then its argument prototype would still apply. */
16888 char thr_create ();
16892 return thr_create ();
16897 rm -f conftest.$ac_objext conftest$ac_exeext
16898 if { (ac_try="$ac_link"
16899 case "(($ac_try" in
16900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16901 *) ac_try_echo
=$ac_try;;
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_link") 2>conftest.er1
16906 grep -v '^ *+' conftest.er1
>conftest.err
16908 cat conftest.err
>&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } && {
16911 test -z "$ac_c_werror_flag" ||
16912 test ! -s conftest.err
16913 } && test -s conftest
$ac_exeext &&
16914 $as_test_x conftest
$ac_exeext; then
16915 ac_cv_lib_thread_thr_create
=yes
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.
$ac_ext >&5
16920 ac_cv_lib_thread_thr_create
=no
16923 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16924 conftest
$ac_exeext conftest.
$ac_ext
16925 LIBS
=$ac_check_lib_save_LIBS
16927 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16928 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16929 if test $ac_cv_lib_thread_thr_create = yes; then
16930 cat >>confdefs.h
<<\_ACEOF
16931 #define WITH_THREAD 1
16934 LIBS
="$LIBS -lthread"
16935 THREADOBJ
="Python/thread.o"
16936 USE_THREAD_MODULE
=""
16941 if test "$USE_THREAD_MODULE" != "#"
16943 # If the above checks didn't disable threads, (at least) OSF1
16944 # needs this '-threads' argument during linking.
16945 case $ac_sys_system in
16946 OSF1
) LDLAST
=-threads;;
16951 if test "$posix_threads" = "yes"; then
16952 if test "$unistd_defines_pthreads" = "no"; then
16954 cat >>confdefs.h
<<\_ACEOF
16955 #define _POSIX_THREADS 1
16960 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16961 case $ac_sys_system/$ac_sys_release in
16963 cat >>confdefs.h
<<\_ACEOF
16964 #define HAVE_PTHREAD_DESTRUCTOR 1
16969 cat >>confdefs.h
<<\_ACEOF
16970 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16975 cat >>confdefs.h
<<\_ACEOF
16976 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16982 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16983 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16984 if test "${ac_cv_pthread_system_supported+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 if test "$cross_compiling" = yes; then
16988 ac_cv_pthread_system_supported
=no
16990 cat >conftest.
$ac_ext <<_ACEOF
16993 cat confdefs.h
>>conftest.
$ac_ext
16994 cat >>conftest.
$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 #include <pthread.h>
16997 void *foo(void *parm) {
17001 pthread_attr_t attr;
17003 if (pthread_attr_init(&attr)) exit(-1);
17004 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17005 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17009 rm -f conftest
$ac_exeext
17010 if { (ac_try
="$ac_link"
17011 case "(($ac_try" in
17012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17013 *) ac_try_echo=$ac_try;;
17015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016 (eval "$ac_link") 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17020 { (case "(($ac_try" in
17021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17022 *) ac_try_echo
=$ac_try;;
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_try") 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_pthread_system_supported
=yes
17031 echo "$as_me: program exited with status $ac_status" >&5
17032 echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.
$ac_ext >&5
17035 ( exit $ac_status )
17036 ac_cv_pthread_system_supported
=no
17038 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17045 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17046 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17047 if test "$ac_cv_pthread_system_supported" = "yes"; then
17049 cat >>confdefs.h
<<\_ACEOF
17050 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17055 for ac_func
in pthread_sigmask
17057 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17060 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 cat >conftest.
$ac_ext <<_ACEOF
17066 cat confdefs.h
>>conftest.
$ac_ext
17067 cat >>conftest.
$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17071 #define $ac_func innocuous_$ac_func
17073 /* System header to define __stub macros and hopefully few prototypes,
17074 which can conflict with char $ac_func (); below.
17075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17076 <limits.h> exists even on freestanding compilers. */
17079 # include <limits.h>
17081 # include <assert.h>
17086 /* Override any GCC internal prototype to avoid an error.
17087 Use char because int might match the return type of a GCC
17088 builtin and then its argument prototype would still apply. */
17093 /* The GNU C library defines this for functions which it implements
17094 to always fail with ENOSYS. Some functions are actually named
17095 something starting with __ and the normal name is an alias. */
17096 #if defined __stub_$ac_func || defined __stub___$ac_func
17103 return $ac_func ();
17108 rm -f conftest.
$ac_objext conftest
$ac_exeext
17109 if { (ac_try
="$ac_link"
17110 case "(($ac_try" in
17111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_link") 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } && {
17122 test -z "$ac_c_werror_flag" ||
17123 test ! -s conftest.err
17124 } && test -s conftest$ac_exeext &&
17125 $as_test_x conftest$ac_exeext; then
17126 eval "$as_ac_var=yes"
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17131 eval "$as_ac_var=no"
17134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17135 conftest$ac_exeext conftest.$ac_ext
17137 ac_res=`eval echo '${'$as_ac_var'}'`
17138 { echo "$as_me:$LINENO: result: $ac_res" >&5
17139 echo "${ECHO_T}$ac_res" >&6; }
17140 if test `eval echo '${'$as_ac_var'}'` = yes; then
17141 cat >>confdefs.h <<_ACEOF
17142 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17144 case $ac_sys_system in
17147 cat >>confdefs.h <<\_ACEOF
17148 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17159 # Check for enable-ipv6
17162 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17163 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17164 # Check whether --enable-ipv6 was given.
17165 if test "${enable_ipv6+set}" = set; then
17166 enableval=$enable_ipv6; case "$enableval" in
17168 { echo "$as_me:$LINENO: result: no" >&5
17169 echo "${ECHO_T}no" >&6; }
17172 *) { echo "$as_me:$LINENO: result: yes" >&5
17173 echo "${ECHO_T}yes" >&6; }
17174 cat >>confdefs.h <<\_ACEOF
17175 #define ENABLE_IPV6 1
17183 if test "$cross_compiling" = yes; then
17184 { echo "$as_me:$LINENO: result: no" >&5
17185 echo "${ECHO_T}no" >&6; }
17189 cat >conftest.$ac_ext <<_ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 /* AF_INET6 available check */
17196 #include <sys/types.h>
17197 #include <sys/socket.h>
17200 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17207 rm -f conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17211 *) ac_try_echo
=$ac_try;;
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_link") 2>&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17218 { (case "(($ac_try" in
17219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_try") 2>&5
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 { echo "$as_me:$LINENO: result: yes" >&5
17228 echo "${ECHO_T}yes" >&6; }
17231 echo "$as_me: program exited with status $ac_status" >&5
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17235 ( exit $ac_status )
17236 { echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6; }
17240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17245 if test "$ipv6" = "yes"; then
17246 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17247 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17248 cat >conftest.$ac_ext <<_ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17254 #include <sys/types.h>
17255 #include <netinet/in.h>
17259 struct sockaddr_in6 x;
17265 rm -f conftest.$ac_objext
17266 if { (ac_try="$ac_compile"
17267 case "(($ac_try" in
17268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17269 *) ac_try_echo
=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_compile") 2>conftest.er1
17274 grep -v '^ *+' conftest.er1
>conftest.err
17276 cat conftest.err
>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } && {
17279 test -z "$ac_c_werror_flag" ||
17280 test ! -s conftest.err
17281 } && test -s conftest.
$ac_objext; then
17282 { echo "$as_me:$LINENO: result: yes" >&5
17283 echo "${ECHO_T}yes" >&6; }
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.
$ac_ext >&5
17289 { echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6; }
17294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17297 if test "$ipv6" = "yes"; then
17298 cat >>confdefs.h
<<\_ACEOF
17299 #define ENABLE_IPV6 1
17311 if test "$ipv6" = "yes"; then
17312 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17313 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17314 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
17318 cat >conftest.
$ac_ext <<_ACEOF
17321 cat confdefs.h
>>conftest.
$ac_ext
17322 cat >>conftest.
$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17325 #include <netinet/in.h>
17326 #ifdef IPV6_INRIA_VERSION
17330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17331 $EGREP "yes" >/dev
/null
2>&1; then
17338 cat >conftest.
$ac_ext <<_ACEOF
17341 cat confdefs.h
>>conftest.
$ac_ext
17342 cat >>conftest.
$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17345 #include <netinet/in.h>
17350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17351 $EGREP "yes" >/dev
/null
2>&1; then
17354 ipv6libdir
=/usr
/local
/v
6/lib
17361 cat >conftest.
$ac_ext <<_ACEOF
17364 cat confdefs.h
>>conftest.
$ac_ext
17365 cat >>conftest.
$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17368 #include <features.h>
17369 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17374 $EGREP "yes" >/dev
/null
2>&1; then
17382 if test -d /usr
/inet6
; then
17385 ipv6libdir
=/usr
/inet
6/lib
17386 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
17390 if test -f /etc
/netconfig
; then
17391 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
17398 cat >conftest.
$ac_ext <<_ACEOF
17401 cat confdefs.h
>>conftest.
$ac_ext
17402 cat >>conftest.
$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17405 #include <sys/param.h>
17406 #ifdef _TOSHIBA_INET6
17410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17411 $EGREP "yes" >/dev
/null
2>&1; then
17414 ipv6libdir
=/usr
/local
/v
6/lib
17420 cat >conftest.
$ac_ext <<_ACEOF
17423 cat confdefs.h
>>conftest.
$ac_ext
17424 cat >>conftest.
$ac_ext <<_ACEOF
17425 /* end confdefs.h. */
17427 #include </usr/local/v6/include/sys/v6config.h>
17432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17433 $EGREP "yes" >/dev
/null
2>&1; then
17436 ipv6libdir
=/usr
/local
/v
6/lib
;
17437 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
17443 cat >conftest.
$ac_ext <<_ACEOF
17446 cat confdefs.h
>>conftest.
$ac_ext
17447 cat >>conftest.
$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17450 #include <sys/param.h>
17451 #ifdef _ZETA_MINAMI_INET6
17455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17456 $EGREP "yes" >/dev
/null
2>&1; then
17459 ipv6libdir
=/usr
/local
/v
6/lib
17465 if test "$ipv6type" != "unknown"; then
17469 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17470 echo "${ECHO_T}$ipv6type" >&6; }
17473 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17474 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
17475 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
17476 echo "using lib$ipv6lib"
17478 if test $ipv6trylibc = "yes"; then
17481 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17482 echo "You need to fetch lib$ipv6lib.a from appropriate"
17483 echo 'ipv6 kit and compile beforehand.'
17489 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17490 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17491 cat >conftest.
$ac_ext <<_ACEOF
17494 cat confdefs.h
>>conftest.
$ac_ext
17495 cat >>conftest.
$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 #include <Carbon/Carbon.h>
17501 FSIORefNum fRef = 0
17506 rm -f conftest.
$ac_objext
17507 if { (ac_try
="$ac_compile"
17508 case "(($ac_try" in
17509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_compile") 2>conftest.er1
17515 grep -v '^ *+' conftest.er1 >conftest.err
17517 cat conftest.err >&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } && {
17520 test -z "$ac_c_werror_flag" ||
17521 test ! -s conftest.err
17522 } && test -s conftest.$ac_objext; then
17524 cat >>confdefs.h <<\_ACEOF
17525 #define HAVE_OSX105_SDK 1
17528 { echo "$as_me:$LINENO: result: yes" >&5
17529 echo "${ECHO_T}yes" >&6; }
17531 echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17534 { echo "$as_me:$LINENO: result: no" >&5
17535 echo "${ECHO_T}no" >&6; }
17539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17541 # Check for --with-doc-strings
17542 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17543 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17545 # Check whether --with-doc-strings was given.
17546 if test "${with_doc_strings+set}" = set; then
17547 withval=$with_doc_strings;
17551 if test -z "$with_doc_strings"
17552 then with_doc_strings="yes"
17554 if test "$with_doc_strings" != "no"
17557 cat >>confdefs.h <<\_ACEOF
17558 #define WITH_DOC_STRINGS 1
17562 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17563 echo "${ECHO_T}$with_doc_strings" >&6; }
17565 # Check for Python-specific malloc support
17566 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17567 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17569 # Check whether --with-tsc was given.
17570 if test "${with_tsc+set}" = set; then
17572 if test "$withval" != no
17575 cat >>confdefs.h <<\_ACEOF
17579 { echo "$as_me:$LINENO: result: yes" >&5
17580 echo "${ECHO_T}yes" >&6; }
17581 else { echo "$as_me:$LINENO: result: no" >&5
17582 echo "${ECHO_T}no" >&6; }
17585 { echo "$as_me:$LINENO: result: no" >&5
17586 echo "${ECHO_T}no" >&6; }
17590 # Check for Python-specific malloc support
17591 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17592 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17594 # Check whether --with-pymalloc was given.
17595 if test "${with_pymalloc+set}" = set; then
17596 withval=$with_pymalloc;
17600 if test -z "$with_pymalloc"
17601 then with_pymalloc="yes"
17603 if test "$with_pymalloc" != "no"
17606 cat >>confdefs.h <<\_ACEOF
17607 #define WITH_PYMALLOC 1
17611 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17612 echo "${ECHO_T}$with_pymalloc" >&6; }
17614 # Check for --with-wctype-functions
17615 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17616 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17618 # Check whether --with-wctype-functions was given.
17619 if test "${with_wctype_functions+set}" = set; then
17620 withval=$with_wctype_functions;
17621 if test "$withval" != no
17624 cat >>confdefs.h <<\_ACEOF
17625 #define WANT_WCTYPE_FUNCTIONS 1
17628 { echo "$as_me:$LINENO: result: yes" >&5
17629 echo "${ECHO_T}yes" >&6; }
17630 else { echo "$as_me:$LINENO: result: no" >&5
17631 echo "${ECHO_T}no" >&6; }
17634 { echo "$as_me:$LINENO: result: no" >&5
17635 echo "${ECHO_T}no" >&6; }
17639 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17643 # the dlopen() function means we might want to use dynload_shlib.o. some
17644 # platforms, such as AIX, have dlopen(), but don't want to use it.
17646 for ac_func in dlopen
17648 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17652 echo $ECHO_N "(cached) $ECHO_C" >&6
17654 cat >conftest.$ac_ext <<_ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17662 #define $ac_func innocuous_$ac_func
17664 /* System header to define __stub macros and hopefully few prototypes,
17665 which can conflict with char $ac_func (); below.
17666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17667 <limits.h> exists even on freestanding compilers. */
17670 # include <limits.h>
17672 # include <assert.h>
17677 /* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17684 /* The GNU C library defines this for functions which it implements
17685 to always fail with ENOSYS. Some functions are actually named
17686 something starting with __ and the normal name is an alias. */
17687 #if defined __stub_$ac_func || defined __stub___$ac_func
17694 return $ac_func ();
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (ac_try="$ac_link"
17701 case "(($ac_try" in
17702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17703 *) ac_try_echo
=$ac_try;;
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_link") 2>conftest.er1
17708 grep -v '^ *+' conftest.er1
>conftest.err
17710 cat conftest.err
>&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } && {
17713 test -z "$ac_c_werror_flag" ||
17714 test ! -s conftest.err
17715 } && test -s conftest
$ac_exeext &&
17716 $as_test_x conftest
$ac_exeext; then
17717 eval "$as_ac_var=yes"
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.
$ac_ext >&5
17722 eval "$as_ac_var=no"
17725 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17726 conftest
$ac_exeext conftest.
$ac_ext
17728 ac_res
=`eval echo '${'$as_ac_var'}'`
17729 { echo "$as_me:$LINENO: result: $ac_res" >&5
17730 echo "${ECHO_T}$ac_res" >&6; }
17731 if test `eval echo '${'$as_ac_var'}'` = yes; then
17732 cat >>confdefs.h
<<_ACEOF
17733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17740 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17741 # loading of modules.
17743 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17744 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17745 if test -z "$DYNLOADFILE"
17747 case $ac_sys_system/$ac_sys_release in
17748 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17749 if test "$ac_cv_func_dlopen" = yes
17750 then DYNLOADFILE
="dynload_shlib.o"
17751 else DYNLOADFILE
="dynload_aix.o"
17754 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
17755 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
17756 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17757 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
17758 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
17760 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17761 # out any dynamic loading
17762 if test "$ac_cv_func_dlopen" = yes
17763 then DYNLOADFILE
="dynload_shlib.o"
17764 else DYNLOADFILE
="dynload_stub.o"
17769 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17770 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17771 if test "$DYNLOADFILE" != "dynload_stub.o"
17774 cat >>confdefs.h
<<\_ACEOF
17775 #define HAVE_DYNAMIC_LOADING 1
17780 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17783 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17784 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17785 if test -z "$MACHDEP_OBJS"
17787 MACHDEP_OBJS
=$extra_machdep_objs
17789 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
17791 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17792 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17794 # checks for library functions
17880 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
17881 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
17882 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
17883 getpriority getpwent getspnam getspent getsid getwd \
17884 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
17885 mremap nice pathconf pause plock poll pthread_init \
17886 putenv readlink realpath \
17887 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
17889 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
17890 sigaction siginterrupt sigrelse strftime \
17891 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
17892 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
17894 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17897 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 cat >conftest.
$ac_ext <<_ACEOF
17903 cat confdefs.h
>>conftest.
$ac_ext
17904 cat >>conftest.
$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17908 #define $ac_func innocuous_$ac_func
17910 /* System header to define __stub macros and hopefully few prototypes,
17911 which can conflict with char $ac_func (); below.
17912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17913 <limits.h> exists even on freestanding compilers. */
17916 # include <limits.h>
17918 # include <assert.h>
17923 /* Override any GCC internal prototype to avoid an error.
17924 Use char because int might match the return type of a GCC
17925 builtin and then its argument prototype would still apply. */
17930 /* The GNU C library defines this for functions which it implements
17931 to always fail with ENOSYS. Some functions are actually named
17932 something starting with __ and the normal name is an alias. */
17933 #if defined __stub_$ac_func || defined __stub___$ac_func
17940 return $ac_func ();
17945 rm -f conftest.
$ac_objext conftest
$ac_exeext
17946 if { (ac_try
="$ac_link"
17947 case "(($ac_try" in
17948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_link") 2>conftest.er1
17954 grep -v '^ *+' conftest.er1 >conftest.err
17956 cat conftest.err >&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && {
17959 test -z "$ac_c_werror_flag" ||
17960 test ! -s conftest.err
17961 } && test -s conftest$ac_exeext &&
17962 $as_test_x conftest$ac_exeext; then
17963 eval "$as_ac_var=yes"
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 eval "$as_ac_var=no"
17971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17972 conftest$ac_exeext conftest.$ac_ext
17974 ac_res=`eval echo '${'$as_ac_var'}'`
17975 { echo "$as_me:$LINENO: result: $ac_res" >&5
17976 echo "${ECHO_T}$ac_res" >&6; }
17977 if test `eval echo '${'$as_ac_var'}'` = yes; then
17978 cat >>confdefs.h <<_ACEOF
17979 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17986 # For some functions, having a definition is not sufficient, since
17987 # we want to take their address.
17988 { echo "$as_me:$LINENO: checking for chroot" >&5
17989 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
17990 cat >conftest.$ac_ext <<_ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 #include <unistd.h>
18005 rm -f conftest.$ac_objext
18006 if { (ac_try="$ac_compile"
18007 case "(($ac_try" in
18008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18009 *) ac_try_echo
=$ac_try;;
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_compile") 2>conftest.er1
18014 grep -v '^ *+' conftest.er1
>conftest.err
18016 cat conftest.err
>&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } && {
18019 test -z "$ac_c_werror_flag" ||
18020 test ! -s conftest.err
18021 } && test -s conftest.
$ac_objext; then
18023 cat >>confdefs.h
<<\_ACEOF
18024 #define HAVE_CHROOT 1
18027 { echo "$as_me:$LINENO: result: yes" >&5
18028 echo "${ECHO_T}yes" >&6; }
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.
$ac_ext >&5
18033 { echo "$as_me:$LINENO: result: no" >&5
18034 echo "${ECHO_T}no" >&6; }
18038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18039 { echo "$as_me:$LINENO: checking for link" >&5
18040 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18041 cat >conftest.
$ac_ext <<_ACEOF
18044 cat confdefs.h
>>conftest.
$ac_ext
18045 cat >>conftest.
$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 #include <unistd.h>
18056 rm -f conftest.
$ac_objext
18057 if { (ac_try
="$ac_compile"
18058 case "(($ac_try" in
18059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_compile") 2>conftest.er1
18065 grep -v '^ *+' conftest.er1 >conftest.err
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } && {
18070 test -z "$ac_c_werror_flag" ||
18071 test ! -s conftest.err
18072 } && test -s conftest.$ac_objext; then
18074 cat >>confdefs.h <<\_ACEOF
18075 #define HAVE_LINK 1
18078 { echo "$as_me:$LINENO: result: yes" >&5
18079 echo "${ECHO_T}yes" >&6; }
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 { echo "$as_me:$LINENO: result: no" >&5
18085 echo "${ECHO_T}no" >&6; }
18089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18090 { echo "$as_me:$LINENO: checking for symlink" >&5
18091 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18092 cat >conftest.$ac_ext <<_ACEOF
18095 cat confdefs.h >>conftest.$ac_ext
18096 cat >>conftest.$ac_ext <<_ACEOF
18097 /* end confdefs.h. */
18098 #include <unistd.h>
18107 rm -f conftest.$ac_objext
18108 if { (ac_try="$ac_compile"
18109 case "(($ac_try" in
18110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18111 *) ac_try_echo
=$ac_try;;
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_compile") 2>conftest.er1
18116 grep -v '^ *+' conftest.er1
>conftest.err
18118 cat conftest.err
>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); } && {
18121 test -z "$ac_c_werror_flag" ||
18122 test ! -s conftest.err
18123 } && test -s conftest.
$ac_objext; then
18125 cat >>confdefs.h
<<\_ACEOF
18126 #define HAVE_SYMLINK 1
18129 { echo "$as_me:$LINENO: result: yes" >&5
18130 echo "${ECHO_T}yes" >&6; }
18132 echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.
$ac_ext >&5
18135 { echo "$as_me:$LINENO: result: no" >&5
18136 echo "${ECHO_T}no" >&6; }
18140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18141 { echo "$as_me:$LINENO: checking for fchdir" >&5
18142 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18143 cat >conftest.
$ac_ext <<_ACEOF
18146 cat confdefs.h
>>conftest.
$ac_ext
18147 cat >>conftest.
$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 #include <unistd.h>
18158 rm -f conftest.
$ac_objext
18159 if { (ac_try
="$ac_compile"
18160 case "(($ac_try" in
18161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_compile") 2>conftest.er1
18167 grep -v '^ *+' conftest.er1 >conftest.err
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } && {
18172 test -z "$ac_c_werror_flag" ||
18173 test ! -s conftest.err
18174 } && test -s conftest.$ac_objext; then
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_FCHDIR 1
18180 { echo "$as_me:$LINENO: result: yes" >&5
18181 echo "${ECHO_T}yes" >&6; }
18183 echo "$as_me: failed program was:" >&5
18184 sed 's/^/| /' conftest.$ac_ext >&5
18186 { echo "$as_me:$LINENO: result: no" >&5
18187 echo "${ECHO_T}no" >&6; }
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192 { echo "$as_me:$LINENO: checking for fsync" >&5
18193 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18194 cat >conftest.$ac_ext <<_ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 #include <unistd.h>
18209 rm -f conftest.$ac_objext
18210 if { (ac_try="$ac_compile"
18211 case "(($ac_try" in
18212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18213 *) ac_try_echo
=$ac_try;;
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_compile") 2>conftest.er1
18218 grep -v '^ *+' conftest.er1
>conftest.err
18220 cat conftest.err
>&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } && {
18223 test -z "$ac_c_werror_flag" ||
18224 test ! -s conftest.err
18225 } && test -s conftest.
$ac_objext; then
18227 cat >>confdefs.h
<<\_ACEOF
18228 #define HAVE_FSYNC 1
18231 { echo "$as_me:$LINENO: result: yes" >&5
18232 echo "${ECHO_T}yes" >&6; }
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.
$ac_ext >&5
18237 { echo "$as_me:$LINENO: result: no" >&5
18238 echo "${ECHO_T}no" >&6; }
18242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18243 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18244 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18245 cat >conftest.
$ac_ext <<_ACEOF
18248 cat confdefs.h
>>conftest.
$ac_ext
18249 cat >>conftest.
$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18251 #include <unistd.h>
18260 rm -f conftest.
$ac_objext
18261 if { (ac_try
="$ac_compile"
18262 case "(($ac_try" in
18263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_compile") 2>conftest.er1
18269 grep -v '^ *+' conftest.er1 >conftest.err
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } && {
18274 test -z "$ac_c_werror_flag" ||
18275 test ! -s conftest.err
18276 } && test -s conftest.$ac_objext; then
18278 cat >>confdefs.h <<\_ACEOF
18279 #define HAVE_FDATASYNC 1
18282 { echo "$as_me:$LINENO: result: yes" >&5
18283 echo "${ECHO_T}yes" >&6; }
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 { echo "$as_me:$LINENO: result: no" >&5
18289 echo "${ECHO_T}no" >&6; }
18293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18294 { echo "$as_me:$LINENO: checking for epoll" >&5
18295 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18296 cat >conftest.$ac_ext <<_ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302 #include <sys/epoll.h>
18306 void *x=epoll_create
18311 rm -f conftest.$ac_objext
18312 if { (ac_try="$ac_compile"
18313 case "(($ac_try" in
18314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18315 *) ac_try_echo
=$ac_try;;
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_compile") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1
>conftest.err
18322 cat conftest.err
>&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest.
$ac_objext; then
18329 cat >>confdefs.h
<<\_ACEOF
18330 #define HAVE_EPOLL 1
18333 { echo "$as_me:$LINENO: result: yes" >&5
18334 echo "${ECHO_T}yes" >&6; }
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.
$ac_ext >&5
18339 { echo "$as_me:$LINENO: result: no" >&5
18340 echo "${ECHO_T}no" >&6; }
18344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18345 { echo "$as_me:$LINENO: checking for kqueue" >&5
18346 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18347 cat >conftest.
$ac_ext <<_ACEOF
18350 cat confdefs.h
>>conftest.
$ac_ext
18351 cat >>conftest.
$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18354 #include <sys/types.h>
18355 #include <sys/event.h>
18365 rm -f conftest.
$ac_objext
18366 if { (ac_try
="$ac_compile"
18367 case "(($ac_try" in
18368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_compile") 2>conftest.er1
18374 grep -v '^ *+' conftest.er1 >conftest.err
18376 cat conftest.err >&5
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } && {
18379 test -z "$ac_c_werror_flag" ||
18380 test ! -s conftest.err
18381 } && test -s conftest.$ac_objext; then
18383 cat >>confdefs.h <<\_ACEOF
18384 #define HAVE_KQUEUE 1
18387 { echo "$as_me:$LINENO: result: yes" >&5
18388 echo "${ECHO_T}yes" >&6; }
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 { echo "$as_me:$LINENO: result: no" >&5
18394 echo "${ECHO_T}no" >&6; }
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399 # On some systems (eg. FreeBSD 5), we would find a definition of the
18400 # functions ctermid_r, setgroups in the library, but no prototype
18401 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18402 # address to avoid compiler warnings and potential miscompilations
18403 # because of the missing prototypes.
18405 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18406 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18414 #include "confdefs.h"
18420 void* p = ctermid_r
18425 rm -f conftest.$ac_objext
18426 if { (ac_try="$ac_compile"
18427 case "(($ac_try" in
18428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18429 *) ac_try_echo
=$ac_try;;
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_compile") 2>conftest.er1
18434 grep -v '^ *+' conftest.er1
>conftest.err
18436 cat conftest.err
>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } && {
18439 test -z "$ac_c_werror_flag" ||
18440 test ! -s conftest.err
18441 } && test -s conftest.
$ac_objext; then
18443 cat >>confdefs.h
<<\_ACEOF
18444 #define HAVE_CTERMID_R 1
18447 { echo "$as_me:$LINENO: result: yes" >&5
18448 echo "${ECHO_T}yes" >&6; }
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.
$ac_ext >&5
18453 { echo "$as_me:$LINENO: result: no" >&5
18454 echo "${ECHO_T}no" >&6; }
18458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18460 { echo "$as_me:$LINENO: checking for flock" >&5
18461 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18462 cat >conftest.
$ac_ext <<_ACEOF
18465 cat confdefs.h
>>conftest.
$ac_ext
18466 cat >>conftest.
$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18469 #include "confdefs.h"
18470 #include <sys/file.h>
18480 rm -f conftest.
$ac_objext
18481 if { (ac_try
="$ac_compile"
18482 case "(($ac_try" in
18483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_compile") 2>conftest.er1
18489 grep -v '^ *+' conftest.er1 >conftest.err
18491 cat conftest.err >&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } && {
18494 test -z "$ac_c_werror_flag" ||
18495 test ! -s conftest.err
18496 } && test -s conftest.$ac_objext; then
18498 cat >>confdefs.h <<\_ACEOF
18499 #define HAVE_FLOCK 1
18502 { echo "$as_me:$LINENO: result: yes" >&5
18503 echo "${ECHO_T}yes" >&6; }
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18508 { echo "$as_me:$LINENO: result: no" >&5
18509 echo "${ECHO_T}no" >&6; }
18513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18516 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18524 #include "confdefs.h"
18525 #include <unistd.h>
18530 void* p = getpagesize
18535 rm -f conftest.$ac_objext
18536 if { (ac_try="$ac_compile"
18537 case "(($ac_try" in
18538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18539 *) ac_try_echo
=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_compile") 2>conftest.er1
18544 grep -v '^ *+' conftest.er1
>conftest.err
18546 cat conftest.err
>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); } && {
18549 test -z "$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 } && test -s conftest.
$ac_objext; then
18553 cat >>confdefs.h
<<\_ACEOF
18554 #define HAVE_GETPAGESIZE 1
18557 { echo "$as_me:$LINENO: result: yes" >&5
18558 echo "${ECHO_T}yes" >&6; }
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.
$ac_ext >&5
18563 { echo "$as_me:$LINENO: result: no" >&5
18564 echo "${ECHO_T}no" >&6; }
18568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18570 for ac_prog
in true
18572 # Extract the first word of "$ac_prog", so it can be a program name with args.
18573 set dummy
$ac_prog; ac_word
=$2
18574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18576 if test "${ac_cv_prog_TRUE+set}" = set; then
18577 echo $ECHO_N "(cached) $ECHO_C" >&6
18579 if test -n "$TRUE"; then
18580 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
18582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18583 for as_dir
in $PATH
18586 test -z "$as_dir" && as_dir
=.
18587 for ac_exec_ext
in '' $ac_executable_extensions; do
18588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18589 ac_cv_prog_TRUE
="$ac_prog"
18590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18599 TRUE
=$ac_cv_prog_TRUE
18600 if test -n "$TRUE"; then
18601 { echo "$as_me:$LINENO: result: $TRUE" >&5
18602 echo "${ECHO_T}$TRUE" >&6; }
18604 { echo "$as_me:$LINENO: result: no" >&5
18605 echo "${ECHO_T}no" >&6; }
18609 test -n "$TRUE" && break
18611 test -n "$TRUE" || TRUE
="/bin/true"
18614 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18615 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18616 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 ac_check_lib_save_LIBS
=$LIBS
18621 cat >conftest.
$ac_ext <<_ACEOF
18624 cat confdefs.h
>>conftest.
$ac_ext
18625 cat >>conftest.
$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18628 /* Override any GCC internal prototype to avoid an error.
18629 Use char because int might match the return type of a GCC
18630 builtin and then its argument prototype would still apply. */
18638 return inet_aton ();
18643 rm -f conftest.
$ac_objext conftest
$ac_exeext
18644 if { (ac_try
="$ac_link"
18645 case "(($ac_try" in
18646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_link") 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest$ac_exeext &&
18660 $as_test_x conftest$ac_exeext; then
18661 ac_cv_lib_c_inet_aton=yes
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18666 ac_cv_lib_c_inet_aton=no
18669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18670 conftest$ac_exeext conftest.$ac_ext
18671 LIBS=$ac_check_lib_save_LIBS
18673 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18674 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18675 if test $ac_cv_lib_c_inet_aton = yes; then
18679 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18680 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18681 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18684 ac_check_lib_save_LIBS=$LIBS
18685 LIBS="-lresolv $LIBS"
18686 cat >conftest.$ac_ext <<_ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h. */
18693 /* Override any GCC internal prototype to avoid an error.
18694 Use char because int might match the return type of a GCC
18695 builtin and then its argument prototype would still apply. */
18703 return inet_aton ();
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (ac_try="$ac_link"
18710 case "(($ac_try" in
18711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18712 *) ac_try_echo
=$ac_try;;
18714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_link") 2>conftest.er1
18717 grep -v '^ *+' conftest.er1
>conftest.err
18719 cat conftest.err
>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); } && {
18722 test -z "$ac_c_werror_flag" ||
18723 test ! -s conftest.err
18724 } && test -s conftest
$ac_exeext &&
18725 $as_test_x conftest
$ac_exeext; then
18726 ac_cv_lib_resolv_inet_aton
=yes
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.
$ac_ext >&5
18731 ac_cv_lib_resolv_inet_aton
=no
18734 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18735 conftest
$ac_exeext conftest.
$ac_ext
18736 LIBS
=$ac_check_lib_save_LIBS
18738 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18739 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18740 if test $ac_cv_lib_resolv_inet_aton = yes; then
18741 cat >>confdefs.h
<<_ACEOF
18742 #define HAVE_LIBRESOLV 1
18745 LIBS
="-lresolv $LIBS"
18753 # On Tru64, chflags seems to be present, but calling it will
18755 { echo "$as_me:$LINENO: checking for chflags" >&5
18756 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18757 if test "${ac_cv_have_chflags+set}" = set; then
18758 echo $ECHO_N "(cached) $ECHO_C" >&6
18760 if test "$cross_compiling" = yes; then
18761 ac_cv_have_chflags
=no
18763 cat >conftest.
$ac_ext <<_ACEOF
18766 cat confdefs.h
>>conftest.
$ac_ext
18767 cat >>conftest.
$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18770 #include <sys/stat.h>
18771 #include <unistd.h>
18772 int main(int argc, char*argv[])
18774 if(chflags(argv[0], 0) != 0)
18780 rm -f conftest
$ac_exeext
18781 if { (ac_try
="$ac_link"
18782 case "(($ac_try" in
18783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_link") 2>&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18793 *) ac_try_echo
=$ac_try;;
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; }; then
18800 ac_cv_have_chflags
=yes
18802 echo "$as_me: program exited with status $ac_status" >&5
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.
$ac_ext >&5
18806 ( exit $ac_status )
18807 ac_cv_have_chflags
=no
18809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18816 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18817 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18818 if test $ac_cv_have_chflags = yes
18821 cat >>confdefs.h
<<\_ACEOF
18822 #define HAVE_CHFLAGS 1
18827 { echo "$as_me:$LINENO: checking for lchflags" >&5
18828 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
18829 if test "${ac_cv_have_lchflags+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18832 if test "$cross_compiling" = yes; then
18833 ac_cv_have_lchflags
=no
18835 cat >conftest.
$ac_ext <<_ACEOF
18838 cat confdefs.h
>>conftest.
$ac_ext
18839 cat >>conftest.
$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18842 #include <sys/stat.h>
18843 #include <unistd.h>
18844 int main(int argc, char*argv[])
18846 if(lchflags(argv[0], 0) != 0)
18852 rm -f conftest
$ac_exeext
18853 if { (ac_try
="$ac_link"
18854 case "(($ac_try" in
18855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_link") 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18863 { (case "(($ac_try" in
18864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18865 *) ac_try_echo
=$ac_try;;
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_cv_have_lchflags
=yes
18874 echo "$as_me: program exited with status $ac_status" >&5
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.
$ac_ext >&5
18878 ( exit $ac_status )
18879 ac_cv_have_lchflags
=no
18881 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18888 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
18889 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
18890 if test $ac_cv_have_lchflags = yes
18893 cat >>confdefs.h
<<\_ACEOF
18894 #define HAVE_LCHFLAGS 1
18899 case $ac_sys_system/$ac_sys_release in
18901 _CUR_CFLAGS
="${CFLAGS}"
18902 _CUR_LDFLAGS
="${LDFLAGS}"
18903 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
18904 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
18908 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
18909 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
18910 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
18911 echo $ECHO_N "(cached) $ECHO_C" >&6
18913 ac_check_lib_save_LIBS
=$LIBS
18915 cat >conftest.
$ac_ext <<_ACEOF
18918 cat confdefs.h
>>conftest.
$ac_ext
18919 cat >>conftest.
$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18922 /* Override any GCC internal prototype to avoid an error.
18923 Use char because int might match the return type of a GCC
18924 builtin and then its argument prototype would still apply. */
18928 char inflateCopy ();
18932 return inflateCopy ();
18937 rm -f conftest.
$ac_objext conftest
$ac_exeext
18938 if { (ac_try
="$ac_link"
18939 case "(($ac_try" in
18940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_link") 2>conftest.er1
18946 grep -v '^ *+' conftest.er1 >conftest.err
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } && {
18951 test -z "$ac_c_werror_flag" ||
18952 test ! -s conftest.err
18953 } && test -s conftest$ac_exeext &&
18954 $as_test_x conftest$ac_exeext; then
18955 ac_cv_lib_z_inflateCopy=yes
18957 echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 ac_cv_lib_z_inflateCopy=no
18963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18964 conftest$ac_exeext conftest.$ac_ext
18965 LIBS=$ac_check_lib_save_LIBS
18967 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
18968 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
18969 if test $ac_cv_lib_z_inflateCopy = yes; then
18971 cat >>confdefs.h <<\_ACEOF
18972 #define HAVE_ZLIB_COPY 1
18978 case $ac_sys_system/$ac_sys_release in
18980 CFLAGS="${_CUR_CFLAGS}"
18981 LDFLAGS="${_CUR_LDFLAGS}"
18985 { echo "$as_me:$LINENO: checking for hstrerror" >&5
18986 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
18987 cat >conftest.$ac_ext <<_ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18994 #include "confdefs.h"
19000 void* p = hstrerror; hstrerror(0)
19005 rm -f conftest.$ac_objext conftest$ac_exeext
19006 if { (ac_try="$ac_link"
19007 case "(($ac_try" in
19008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19009 *) ac_try_echo
=$ac_try;;
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_link") 2>conftest.er1
19014 grep -v '^ *+' conftest.er1
>conftest.err
19016 cat conftest.err
>&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } && {
19019 test -z "$ac_c_werror_flag" ||
19020 test ! -s conftest.err
19021 } && test -s conftest
$ac_exeext &&
19022 $as_test_x conftest
$ac_exeext; then
19024 cat >>confdefs.h
<<\_ACEOF
19025 #define HAVE_HSTRERROR 1
19028 { echo "$as_me:$LINENO: result: yes" >&5
19029 echo "${ECHO_T}yes" >&6; }
19031 echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.
$ac_ext >&5
19034 { echo "$as_me:$LINENO: result: no" >&5
19035 echo "${ECHO_T}no" >&6; }
19039 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19040 conftest
$ac_exeext conftest.
$ac_ext
19042 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19043 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19044 cat >conftest.
$ac_ext <<_ACEOF
19047 cat confdefs.h
>>conftest.
$ac_ext
19048 cat >>conftest.
$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19051 #include "confdefs.h"
19052 #include <sys/types.h>
19053 #include <sys/socket.h>
19054 #include <netinet/in.h>
19055 #include <arpa/inet.h>
19060 void* p = inet_aton;inet_aton(0,0)
19065 rm -f conftest.
$ac_objext conftest
$ac_exeext
19066 if { (ac_try
="$ac_link"
19067 case "(($ac_try" in
19068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_link") 2>conftest.er1
19074 grep -v '^ *+' conftest.er1 >conftest.err
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest$ac_exeext &&
19082 $as_test_x conftest$ac_exeext; then
19084 cat >>confdefs.h <<\_ACEOF
19085 #define HAVE_INET_ATON 1
19088 { echo "$as_me:$LINENO: result: yes" >&5
19089 echo "${ECHO_T}yes" >&6; }
19091 echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 { echo "$as_me:$LINENO: result: no" >&5
19095 echo "${ECHO_T}no" >&6; }
19099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19100 conftest$ac_exeext conftest.$ac_ext
19102 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19103 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19104 cat >conftest.$ac_ext <<_ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19111 #include "confdefs.h"
19112 #include <sys/types.h>
19113 #include <sys/socket.h>
19114 #include <netinet/in.h>
19115 #include <arpa/inet.h>
19120 void* p = inet_pton
19125 rm -f conftest.$ac_objext
19126 if { (ac_try="$ac_compile"
19127 case "(($ac_try" in
19128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19129 *) ac_try_echo
=$ac_try;;
19131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_compile") 2>conftest.er1
19134 grep -v '^ *+' conftest.er1
>conftest.err
19136 cat conftest.err
>&5
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } && {
19139 test -z "$ac_c_werror_flag" ||
19140 test ! -s conftest.err
19141 } && test -s conftest.
$ac_objext; then
19143 cat >>confdefs.h
<<\_ACEOF
19144 #define HAVE_INET_PTON 1
19147 { echo "$as_me:$LINENO: result: yes" >&5
19148 echo "${ECHO_T}yes" >&6; }
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.
$ac_ext >&5
19153 { echo "$as_me:$LINENO: result: no" >&5
19154 echo "${ECHO_T}no" >&6; }
19158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19160 # On some systems, setgroups is in unistd.h, on others, in grp.h
19161 { echo "$as_me:$LINENO: checking for setgroups" >&5
19162 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19163 cat >conftest.
$ac_ext <<_ACEOF
19166 cat confdefs.h
>>conftest.
$ac_ext
19167 cat >>conftest.
$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19170 #include "confdefs.h"
19171 #include <unistd.h>
19179 void* p = setgroups
19184 rm -f conftest.
$ac_objext
19185 if { (ac_try
="$ac_compile"
19186 case "(($ac_try" in
19187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_compile") 2>conftest.er1
19193 grep -v '^ *+' conftest.er1 >conftest.err
19195 cat conftest.err >&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest.$ac_objext; then
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE_SETGROUPS 1
19206 { echo "$as_me:$LINENO: result: yes" >&5
19207 echo "${ECHO_T}yes" >&6; }
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 { echo "$as_me:$LINENO: result: no" >&5
19213 echo "${ECHO_T}no" >&6; }
19217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219 # check for openpty and forkpty
19222 for ac_func in openpty
19224 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 cat >conftest.$ac_ext <<_ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19238 #define $ac_func innocuous_$ac_func
19240 /* System header to define __stub macros and hopefully few prototypes,
19241 which can conflict with char $ac_func (); below.
19242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19243 <limits.h> exists even on freestanding compilers. */
19246 # include <limits.h>
19248 # include <assert.h>
19253 /* Override any GCC internal prototype to avoid an error.
19254 Use char because int might match the return type of a GCC
19255 builtin and then its argument prototype would still apply. */
19260 /* The GNU C library defines this for functions which it implements
19261 to always fail with ENOSYS. Some functions are actually named
19262 something starting with __ and the normal name is an alias. */
19263 #if defined __stub_$ac_func || defined __stub___$ac_func
19270 return $ac_func ();
19275 rm -f conftest.$ac_objext conftest$ac_exeext
19276 if { (ac_try="$ac_link"
19277 case "(($ac_try" in
19278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19279 *) ac_try_echo
=$ac_try;;
19281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19282 (eval "$ac_link") 2>conftest.er1
19284 grep -v '^ *+' conftest.er1
>conftest.err
19286 cat conftest.err
>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); } && {
19289 test -z "$ac_c_werror_flag" ||
19290 test ! -s conftest.err
19291 } && test -s conftest
$ac_exeext &&
19292 $as_test_x conftest
$ac_exeext; then
19293 eval "$as_ac_var=yes"
19295 echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.
$ac_ext >&5
19298 eval "$as_ac_var=no"
19301 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19302 conftest
$ac_exeext conftest.
$ac_ext
19304 ac_res
=`eval echo '${'$as_ac_var'}'`
19305 { echo "$as_me:$LINENO: result: $ac_res" >&5
19306 echo "${ECHO_T}$ac_res" >&6; }
19307 if test `eval echo '${'$as_ac_var'}'` = yes; then
19308 cat >>confdefs.h
<<_ACEOF
19309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19313 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19314 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19315 if test "${ac_cv_lib_util_openpty+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 ac_check_lib_save_LIBS
=$LIBS
19319 LIBS
="-lutil $LIBS"
19320 cat >conftest.
$ac_ext <<_ACEOF
19323 cat confdefs.h
>>conftest.
$ac_ext
19324 cat >>conftest.
$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19327 /* Override any GCC internal prototype to avoid an error.
19328 Use char because int might match the return type of a GCC
19329 builtin and then its argument prototype would still apply. */
19342 rm -f conftest.
$ac_objext conftest
$ac_exeext
19343 if { (ac_try
="$ac_link"
19344 case "(($ac_try" in
19345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19346 *) ac_try_echo=$ac_try;;
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349 (eval "$ac_link") 2>conftest.er1
19351 grep -v '^ *+' conftest.er1 >conftest.err
19353 cat conftest.err >&5
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } && {
19356 test -z "$ac_c_werror_flag" ||
19357 test ! -s conftest.err
19358 } && test -s conftest$ac_exeext &&
19359 $as_test_x conftest$ac_exeext; then
19360 ac_cv_lib_util_openpty=yes
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.$ac_ext >&5
19365 ac_cv_lib_util_openpty=no
19368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19369 conftest$ac_exeext conftest.$ac_ext
19370 LIBS=$ac_check_lib_save_LIBS
19372 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19373 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19374 if test $ac_cv_lib_util_openpty = yes; then
19375 cat >>confdefs.h <<\_ACEOF
19376 #define HAVE_OPENPTY 1
19378 LIBS="$LIBS -lutil"
19380 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19381 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19382 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 ac_check_lib_save_LIBS=$LIBS
19387 cat >conftest.$ac_ext <<_ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 /* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19413 *) ac_try_echo
=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>conftest.er1
19418 grep -v '^ *+' conftest.er1
>conftest.err
19420 cat conftest.err
>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && {
19423 test -z "$ac_c_werror_flag" ||
19424 test ! -s conftest.err
19425 } && test -s conftest
$ac_exeext &&
19426 $as_test_x conftest
$ac_exeext; then
19427 ac_cv_lib_bsd_openpty
=yes
19429 echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.
$ac_ext >&5
19432 ac_cv_lib_bsd_openpty
=no
19435 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19436 conftest
$ac_exeext conftest.
$ac_ext
19437 LIBS
=$ac_check_lib_save_LIBS
19439 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19440 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19441 if test $ac_cv_lib_bsd_openpty = yes; then
19442 cat >>confdefs.h
<<\_ACEOF
19443 #define HAVE_OPENPTY 1
19456 for ac_func
in forkpty
19458 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19459 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19461 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 cat >conftest.
$ac_ext <<_ACEOF
19467 cat confdefs.h
>>conftest.
$ac_ext
19468 cat >>conftest.
$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19472 #define $ac_func innocuous_$ac_func
19474 /* System header to define __stub macros and hopefully few prototypes,
19475 which can conflict with char $ac_func (); below.
19476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19477 <limits.h> exists even on freestanding compilers. */
19480 # include <limits.h>
19482 # include <assert.h>
19487 /* Override any GCC internal prototype to avoid an error.
19488 Use char because int might match the return type of a GCC
19489 builtin and then its argument prototype would still apply. */
19494 /* The GNU C library defines this for functions which it implements
19495 to always fail with ENOSYS. Some functions are actually named
19496 something starting with __ and the normal name is an alias. */
19497 #if defined __stub_$ac_func || defined __stub___$ac_func
19504 return $ac_func ();
19509 rm -f conftest.
$ac_objext conftest
$ac_exeext
19510 if { (ac_try
="$ac_link"
19511 case "(($ac_try" in
19512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_link") 2>conftest.er1
19518 grep -v '^ *+' conftest.er1 >conftest.err
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest$ac_exeext &&
19526 $as_test_x conftest$ac_exeext; then
19527 eval "$as_ac_var=yes"
19529 echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 eval "$as_ac_var=no"
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19538 ac_res=`eval echo '${'$as_ac_var'}'`
19539 { echo "$as_me:$LINENO: result: $ac_res" >&5
19540 echo "${ECHO_T}$ac_res" >&6; }
19541 if test `eval echo '${'$as_ac_var'}'` = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19547 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19548 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19549 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 ac_check_lib_save_LIBS=$LIBS
19553 LIBS="-lutil $LIBS"
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19561 /* Override any GCC internal prototype to avoid an error.
19562 Use char because int might match the return type of a GCC
19563 builtin and then its argument prototype would still apply. */
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (ac_try="$ac_link"
19578 case "(($ac_try" in
19579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19580 *) ac_try_echo
=$ac_try;;
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_link") 2>conftest.er1
19585 grep -v '^ *+' conftest.er1
>conftest.err
19587 cat conftest.err
>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } && {
19590 test -z "$ac_c_werror_flag" ||
19591 test ! -s conftest.err
19592 } && test -s conftest
$ac_exeext &&
19593 $as_test_x conftest
$ac_exeext; then
19594 ac_cv_lib_util_forkpty
=yes
19596 echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.
$ac_ext >&5
19599 ac_cv_lib_util_forkpty
=no
19602 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19603 conftest
$ac_exeext conftest.
$ac_ext
19604 LIBS
=$ac_check_lib_save_LIBS
19606 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19607 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19608 if test $ac_cv_lib_util_forkpty = yes; then
19609 cat >>confdefs.h
<<\_ACEOF
19610 #define HAVE_FORKPTY 1
19612 LIBS
="$LIBS -lutil"
19614 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19615 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19616 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19617 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 ac_check_lib_save_LIBS
=$LIBS
19621 cat >conftest.
$ac_ext <<_ACEOF
19624 cat confdefs.h
>>conftest.
$ac_ext
19625 cat >>conftest.
$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19628 /* Override any GCC internal prototype to avoid an error.
19629 Use char because int might match the return type of a GCC
19630 builtin and then its argument prototype would still apply. */
19643 rm -f conftest.
$ac_objext conftest
$ac_exeext
19644 if { (ac_try
="$ac_link"
19645 case "(($ac_try" in
19646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_link") 2>conftest.er1
19652 grep -v '^ *+' conftest.er1 >conftest.err
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); } && {
19657 test -z "$ac_c_werror_flag" ||
19658 test ! -s conftest.err
19659 } && test -s conftest$ac_exeext &&
19660 $as_test_x conftest$ac_exeext; then
19661 ac_cv_lib_bsd_forkpty=yes
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_cv_lib_bsd_forkpty=no
19669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19670 conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19673 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
19674 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
19675 if test $ac_cv_lib_bsd_forkpty = yes; then
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_FORKPTY 1
19692 for ac_func in memmove
19694 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19700 cat >conftest.$ac_ext <<_ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19708 #define $ac_func innocuous_$ac_func
19710 /* System header to define __stub macros and hopefully few prototypes,
19711 which can conflict with char $ac_func (); below.
19712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19713 <limits.h> exists even on freestanding compilers. */
19716 # include <limits.h>
19718 # include <assert.h>
19723 /* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19730 /* The GNU C library defines this for functions which it implements
19731 to always fail with ENOSYS. Some functions are actually named
19732 something starting with __ and the normal name is an alias. */
19733 #if defined __stub_$ac_func || defined __stub___$ac_func
19740 return $ac_func ();
19745 rm -f conftest.$ac_objext conftest$ac_exeext
19746 if { (ac_try="$ac_link"
19747 case "(($ac_try" in
19748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19749 *) ac_try_echo
=$ac_try;;
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752 (eval "$ac_link") 2>conftest.er1
19754 grep -v '^ *+' conftest.er1
>conftest.err
19756 cat conftest.err
>&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } && {
19759 test -z "$ac_c_werror_flag" ||
19760 test ! -s conftest.err
19761 } && test -s conftest
$ac_exeext &&
19762 $as_test_x conftest
$ac_exeext; then
19763 eval "$as_ac_var=yes"
19765 echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.
$ac_ext >&5
19768 eval "$as_ac_var=no"
19771 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19772 conftest
$ac_exeext conftest.
$ac_ext
19774 ac_res
=`eval echo '${'$as_ac_var'}'`
19775 { echo "$as_me:$LINENO: result: $ac_res" >&5
19776 echo "${ECHO_T}$ac_res" >&6; }
19777 if test `eval echo '${'$as_ac_var'}'` = yes; then
19778 cat >>confdefs.h
<<_ACEOF
19779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19786 # check for long file support functions
19793 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19795 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19798 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 cat >conftest.
$ac_ext <<_ACEOF
19804 cat confdefs.h
>>conftest.
$ac_ext
19805 cat >>conftest.
$ac_ext <<_ACEOF
19806 /* end confdefs.h. */
19807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19809 #define $ac_func innocuous_$ac_func
19811 /* System header to define __stub macros and hopefully few prototypes,
19812 which can conflict with char $ac_func (); below.
19813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19814 <limits.h> exists even on freestanding compilers. */
19817 # include <limits.h>
19819 # include <assert.h>
19824 /* Override any GCC internal prototype to avoid an error.
19825 Use char because int might match the return type of a GCC
19826 builtin and then its argument prototype would still apply. */
19831 /* The GNU C library defines this for functions which it implements
19832 to always fail with ENOSYS. Some functions are actually named
19833 something starting with __ and the normal name is an alias. */
19834 #if defined __stub_$ac_func || defined __stub___$ac_func
19841 return $ac_func ();
19846 rm -f conftest.
$ac_objext conftest
$ac_exeext
19847 if { (ac_try
="$ac_link"
19848 case "(($ac_try" in
19849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_link") 2>conftest.er1
19855 grep -v '^ *+' conftest.er1 >conftest.err
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } && {
19860 test -z "$ac_c_werror_flag" ||
19861 test ! -s conftest.err
19862 } && test -s conftest$ac_exeext &&
19863 $as_test_x conftest$ac_exeext; then
19864 eval "$as_ac_var=yes"
19866 echo "$as_me: failed program was:" >&5
19867 sed 's/^/| /' conftest.$ac_ext >&5
19869 eval "$as_ac_var=no"
19872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19873 conftest$ac_exeext conftest.$ac_ext
19875 ac_res=`eval echo '${'$as_ac_var'}'`
19876 { echo "$as_me:$LINENO: result: $ac_res" >&5
19877 echo "${ECHO_T}$ac_res" >&6; }
19878 if test `eval echo '${'$as_ac_var'}'` = yes; then
19879 cat >>confdefs.h <<_ACEOF
19880 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19890 for ac_func in dup2 getcwd strdup
19892 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19896 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19906 #define $ac_func innocuous_$ac_func
19908 /* System header to define __stub macros and hopefully few prototypes,
19909 which can conflict with char $ac_func (); below.
19910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19911 <limits.h> exists even on freestanding compilers. */
19914 # include <limits.h>
19916 # include <assert.h>
19921 /* Override any GCC internal prototype to avoid an error.
19922 Use char because int might match the return type of a GCC
19923 builtin and then its argument prototype would still apply. */
19928 /* The GNU C library defines this for functions which it implements
19929 to always fail with ENOSYS. Some functions are actually named
19930 something starting with __ and the normal name is an alias. */
19931 #if defined __stub_$ac_func || defined __stub___$ac_func
19938 return $ac_func ();
19943 rm -f conftest.$ac_objext conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19947 *) ac_try_echo
=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_link") 2>conftest.er1
19952 grep -v '^ *+' conftest.er1
>conftest.err
19954 cat conftest.err
>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } && {
19957 test -z "$ac_c_werror_flag" ||
19958 test ! -s conftest.err
19959 } && test -s conftest
$ac_exeext &&
19960 $as_test_x conftest
$ac_exeext; then
19961 eval "$as_ac_var=yes"
19963 echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.
$ac_ext >&5
19966 eval "$as_ac_var=no"
19969 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19970 conftest
$ac_exeext conftest.
$ac_ext
19972 ac_res
=`eval echo '${'$as_ac_var'}'`
19973 { echo "$as_me:$LINENO: result: $ac_res" >&5
19974 echo "${ECHO_T}$ac_res" >&6; }
19975 if test `eval echo '${'$as_ac_var'}'` = yes; then
19976 cat >>confdefs.h
<<_ACEOF
19977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19981 case " $LIBOBJS " in
19982 *" $ac_func.$ac_objext "* ) ;;
19983 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19992 for ac_func
in getpgrp
19994 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19997 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 cat >conftest.
$ac_ext <<_ACEOF
20003 cat confdefs.h
>>conftest.
$ac_ext
20004 cat >>conftest.
$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20008 #define $ac_func innocuous_$ac_func
20010 /* System header to define __stub macros and hopefully few prototypes,
20011 which can conflict with char $ac_func (); below.
20012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20013 <limits.h> exists even on freestanding compilers. */
20016 # include <limits.h>
20018 # include <assert.h>
20023 /* Override any GCC internal prototype to avoid an error.
20024 Use char because int might match the return type of a GCC
20025 builtin and then its argument prototype would still apply. */
20030 /* The GNU C library defines this for functions which it implements
20031 to always fail with ENOSYS. Some functions are actually named
20032 something starting with __ and the normal name is an alias. */
20033 #if defined __stub_$ac_func || defined __stub___$ac_func
20040 return $ac_func ();
20045 rm -f conftest.
$ac_objext conftest
$ac_exeext
20046 if { (ac_try
="$ac_link"
20047 case "(($ac_try" in
20048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_link") 2>conftest.er1
20054 grep -v '^ *+' conftest.er1 >conftest.err
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } && {
20059 test -z "$ac_c_werror_flag" ||
20060 test ! -s conftest.err
20061 } && test -s conftest$ac_exeext &&
20062 $as_test_x conftest$ac_exeext; then
20063 eval "$as_ac_var=yes"
20065 echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20068 eval "$as_ac_var=no"
20071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20072 conftest$ac_exeext conftest.$ac_ext
20074 ac_res=`eval echo '${'$as_ac_var'}'`
20075 { echo "$as_me:$LINENO: result: $ac_res" >&5
20076 echo "${ECHO_T}$ac_res" >&6; }
20077 if test `eval echo '${'$as_ac_var'}'` = yes; then
20078 cat >>confdefs.h <<_ACEOF
20079 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20081 cat >conftest.$ac_ext <<_ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20087 #include <unistd.h>
20096 rm -f conftest.$ac_objext
20097 if { (ac_try="$ac_compile"
20098 case "(($ac_try" in
20099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20100 *) ac_try_echo
=$ac_try;;
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_compile") 2>conftest.er1
20105 grep -v '^ *+' conftest.er1
>conftest.err
20107 cat conftest.err
>&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } && {
20110 test -z "$ac_c_werror_flag" ||
20111 test ! -s conftest.err
20112 } && test -s conftest.
$ac_objext; then
20114 cat >>confdefs.h
<<\_ACEOF
20115 #define GETPGRP_HAVE_ARG 1
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.
$ac_ext >&5
20126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20132 for ac_func
in setpgrp
20134 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20137 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20140 cat >conftest.
$ac_ext <<_ACEOF
20143 cat confdefs.h
>>conftest.
$ac_ext
20144 cat >>conftest.
$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20148 #define $ac_func innocuous_$ac_func
20150 /* System header to define __stub macros and hopefully few prototypes,
20151 which can conflict with char $ac_func (); below.
20152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20153 <limits.h> exists even on freestanding compilers. */
20156 # include <limits.h>
20158 # include <assert.h>
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20170 /* The GNU C library defines this for functions which it implements
20171 to always fail with ENOSYS. Some functions are actually named
20172 something starting with __ and the normal name is an alias. */
20173 #if defined __stub_$ac_func || defined __stub___$ac_func
20180 return $ac_func ();
20185 rm -f conftest.
$ac_objext conftest
$ac_exeext
20186 if { (ac_try
="$ac_link"
20187 case "(($ac_try" in
20188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_link") 2>conftest.er1
20194 grep -v '^ *+' conftest.er1 >conftest.err
20196 cat conftest.err >&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && {
20199 test -z "$ac_c_werror_flag" ||
20200 test ! -s conftest.err
20201 } && test -s conftest$ac_exeext &&
20202 $as_test_x conftest$ac_exeext; then
20203 eval "$as_ac_var=yes"
20205 echo "$as_me: failed program was:" >&5
20206 sed 's/^/| /' conftest.$ac_ext >&5
20208 eval "$as_ac_var=no"
20211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20212 conftest$ac_exeext conftest.$ac_ext
20214 ac_res=`eval echo '${'$as_ac_var'}'`
20215 { echo "$as_me:$LINENO: result: $ac_res" >&5
20216 echo "${ECHO_T}$ac_res" >&6; }
20217 if test `eval echo '${'$as_ac_var'}'` = yes; then
20218 cat >>confdefs.h <<_ACEOF
20219 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20221 cat >conftest.$ac_ext <<_ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 #include <unistd.h>
20236 rm -f conftest.$ac_objext
20237 if { (ac_try="$ac_compile"
20238 case "(($ac_try" in
20239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20240 *) ac_try_echo
=$ac_try;;
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_compile") 2>conftest.er1
20245 grep -v '^ *+' conftest.er1
>conftest.err
20247 cat conftest.err
>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } && {
20250 test -z "$ac_c_werror_flag" ||
20251 test ! -s conftest.err
20252 } && test -s conftest.
$ac_objext; then
20254 cat >>confdefs.h
<<\_ACEOF
20255 #define SETPGRP_HAVE_ARG 1
20260 echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.
$ac_ext >&5
20266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20272 for ac_func
in gettimeofday
20274 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20277 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20280 cat >conftest.
$ac_ext <<_ACEOF
20283 cat confdefs.h
>>conftest.
$ac_ext
20284 cat >>conftest.
$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20288 #define $ac_func innocuous_$ac_func
20290 /* System header to define __stub macros and hopefully few prototypes,
20291 which can conflict with char $ac_func (); below.
20292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20293 <limits.h> exists even on freestanding compilers. */
20296 # include <limits.h>
20298 # include <assert.h>
20303 /* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20310 /* The GNU C library defines this for functions which it implements
20311 to always fail with ENOSYS. Some functions are actually named
20312 something starting with __ and the normal name is an alias. */
20313 #if defined __stub_$ac_func || defined __stub___$ac_func
20320 return $ac_func ();
20325 rm -f conftest.
$ac_objext conftest
$ac_exeext
20326 if { (ac_try
="$ac_link"
20327 case "(($ac_try" in
20328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && {
20339 test -z "$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 } && test -s conftest$ac_exeext &&
20342 $as_test_x conftest$ac_exeext; then
20343 eval "$as_ac_var=yes"
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 eval "$as_ac_var=no"
20351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20352 conftest$ac_exeext conftest.$ac_ext
20354 ac_res=`eval echo '${'$as_ac_var'}'`
20355 { echo "$as_me:$LINENO: result: $ac_res" >&5
20356 echo "${ECHO_T}$ac_res" >&6; }
20357 if test `eval echo '${'$as_ac_var'}'` = yes; then
20358 cat >>confdefs.h <<_ACEOF
20359 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20361 cat >conftest.$ac_ext <<_ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20367 #include <sys/time.h>
20371 gettimeofday((struct timeval*)0,(struct timezone*)0);
20376 rm -f conftest.$ac_objext
20377 if { (ac_try="$ac_compile"
20378 case "(($ac_try" in
20379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20380 *) ac_try_echo
=$ac_try;;
20382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_compile") 2>conftest.er1
20385 grep -v '^ *+' conftest.er1
>conftest.err
20387 cat conftest.err
>&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.
$ac_objext; then
20395 echo "$as_me: failed program was:" >&5
20396 sed 's/^/| /' conftest.
$ac_ext >&5
20399 cat >>confdefs.h
<<\_ACEOF
20400 #define GETTIMEOFDAY_NO_TZ 1
20406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20412 { echo "$as_me:$LINENO: checking for major" >&5
20413 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20414 cat >conftest.
$ac_ext <<_ACEOF
20417 cat confdefs.h
>>conftest.
$ac_ext
20418 cat >>conftest.
$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20421 #if defined(MAJOR_IN_MKDEV)
20422 #include <sys/mkdev.h>
20423 #elif defined(MAJOR_IN_SYSMACROS)
20424 #include <sys/sysmacros.h>
20426 #include <sys/types.h>
20433 makedev(major(0),minor(0));
20439 rm -f conftest.
$ac_objext conftest
$ac_exeext
20440 if { (ac_try
="$ac_link"
20441 case "(($ac_try" in
20442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446 (eval "$ac_link") 2>conftest.er1
20448 grep -v '^ *+' conftest.er1 >conftest.err
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest$ac_exeext &&
20456 $as_test_x conftest$ac_exeext; then
20459 cat >>confdefs.h <<\_ACEOF
20460 #define HAVE_DEVICE_MACROS 1
20463 { echo "$as_me:$LINENO: result: yes" >&5
20464 echo "${ECHO_T}yes" >&6; }
20467 echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20471 { echo "$as_me:$LINENO: result: no" >&5
20472 echo "${ECHO_T}no" >&6; }
20476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20477 conftest$ac_exeext conftest.$ac_ext
20479 # On OSF/1 V5.1, getaddrinfo is available, but a define
20480 # for [no]getaddrinfo in netdb.h.
20481 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20482 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20483 cat >conftest.$ac_ext <<_ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20490 #include <sys/types.h>
20491 #include <sys/socket.h>
20498 getaddrinfo(NULL, NULL, NULL, NULL);
20503 rm -f conftest.$ac_objext conftest$ac_exeext
20504 if { (ac_try="$ac_link"
20505 case "(($ac_try" in
20506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20507 *) ac_try_echo
=$ac_try;;
20509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510 (eval "$ac_link") 2>conftest.er1
20512 grep -v '^ *+' conftest.er1
>conftest.err
20514 cat conftest.err
>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } && {
20517 test -z "$ac_c_werror_flag" ||
20518 test ! -s conftest.err
20519 } && test -s conftest
$ac_exeext &&
20520 $as_test_x conftest
$ac_exeext; then
20521 have_getaddrinfo
=yes
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.
$ac_ext >&5
20526 have_getaddrinfo
=no
20529 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20530 conftest
$ac_exeext conftest.
$ac_ext
20531 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20532 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20533 if test $have_getaddrinfo = yes
20535 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20536 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20537 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20538 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 if test "$cross_compiling" = yes; then
20541 ac_cv_buggy_getaddrinfo
=yes
20543 cat >conftest.
$ac_ext <<_ACEOF
20546 cat confdefs.h
>>conftest.
$ac_ext
20547 cat >>conftest.
$ac_ext <<_ACEOF
20548 /* end confdefs.h. */
20550 #include <sys/types.h>
20552 #include <string.h>
20553 #include <sys/socket.h>
20554 #include <netinet/in.h>
20558 int passive, gaierr, inet4 = 0, inet6 = 0;
20559 struct addrinfo hints, *ai, *aitop;
20560 char straddr[INET6_ADDRSTRLEN], strport[16];
20562 for (passive = 0; passive <= 1; passive++) {
20563 memset(&hints, 0, sizeof(hints));
20564 hints.ai_family = AF_UNSPEC;
20565 hints.ai_flags = passive ? AI_PASSIVE : 0;
20566 hints.ai_socktype = SOCK_STREAM;
20567 hints.ai_protocol = IPPROTO_TCP;
20568 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20569 (void)gai_strerror(gaierr);
20572 for (ai = aitop; ai; ai = ai->ai_next) {
20573 if (ai->ai_addr == NULL ||
20574 ai->ai_addrlen == 0 ||
20575 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20576 straddr, sizeof(straddr), strport, sizeof(strport),
20577 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20580 switch (ai->ai_family) {
20582 if (strcmp(strport, "54321") != 0) {
20586 if (strcmp(straddr, "0.0.0.0") != 0) {
20590 if (strcmp(straddr, "127.0.0.1") != 0) {
20597 if (strcmp(strport, "54321") != 0) {
20601 if (strcmp(straddr, "::") != 0) {
20605 if (strcmp(straddr, "::1") != 0) {
20615 /* another family support? */
20621 if (!(inet4 == 0 || inet4 == 2))
20623 if (!(inet6 == 0 || inet6 == 2))
20627 freeaddrinfo(aitop);
20632 freeaddrinfo(aitop);
20637 rm -f conftest
$ac_exeext
20638 if { (ac_try
="$ac_link"
20639 case "(($ac_try" in
20640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20648 { (case "(($ac_try" in
20649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20650 *) ac_try_echo
=$ac_try;;
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_try") 2>&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; }; then
20657 ac_cv_buggy_getaddrinfo
=no
20659 echo "$as_me: program exited with status $ac_status" >&5
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.
$ac_ext >&5
20663 ( exit $ac_status )
20664 ac_cv_buggy_getaddrinfo
=yes
20666 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20674 if test $have_getaddrinfo = no
-o $ac_cv_buggy_getaddrinfo = yes
20676 if test $ipv6 = yes
20678 echo 'Fatal: You must get working getaddrinfo() function.'
20679 echo ' or you can specify "--disable-ipv6"'.
20684 cat >>confdefs.h
<<\_ACEOF
20685 #define HAVE_GETADDRINFO 1
20690 for ac_func
in getnameinfo
20692 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20695 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20698 cat >conftest.
$ac_ext <<_ACEOF
20701 cat confdefs.h
>>conftest.
$ac_ext
20702 cat >>conftest.
$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20706 #define $ac_func innocuous_$ac_func
20708 /* System header to define __stub macros and hopefully few prototypes,
20709 which can conflict with char $ac_func (); below.
20710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20711 <limits.h> exists even on freestanding compilers. */
20714 # include <limits.h>
20716 # include <assert.h>
20721 /* Override any GCC internal prototype to avoid an error.
20722 Use char because int might match the return type of a GCC
20723 builtin and then its argument prototype would still apply. */
20728 /* The GNU C library defines this for functions which it implements
20729 to always fail with ENOSYS. Some functions are actually named
20730 something starting with __ and the normal name is an alias. */
20731 #if defined __stub_$ac_func || defined __stub___$ac_func
20738 return $ac_func ();
20743 rm -f conftest.
$ac_objext conftest
$ac_exeext
20744 if { (ac_try
="$ac_link"
20745 case "(($ac_try" in
20746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_link") 2>conftest.er1
20752 grep -v '^ *+' conftest.er1 >conftest.err
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest$ac_exeext &&
20760 $as_test_x conftest$ac_exeext; then
20761 eval "$as_ac_var=yes"
20763 echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 eval "$as_ac_var=no"
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770 conftest$ac_exeext conftest.$ac_ext
20772 ac_res=`eval echo '${'$as_ac_var'}'`
20773 { echo "$as_me:$LINENO: result: $ac_res" >&5
20774 echo "${ECHO_T}$ac_res" >&6; }
20775 if test `eval echo '${'$as_ac_var'}'` = yes; then
20776 cat >>confdefs.h <<_ACEOF
20777 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20784 # checks for structures
20785 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20786 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20787 if test "${ac_cv_header_time+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 cat >conftest.$ac_ext <<_ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20796 #include <sys/types.h>
20797 #include <sys/time.h>
20803 if ((struct tm *) 0)
20809 rm -f conftest.$ac_objext
20810 if { (ac_try="$ac_compile"
20811 case "(($ac_try" in
20812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20813 *) ac_try_echo
=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_compile") 2>conftest.er1
20818 grep -v '^ *+' conftest.er1
>conftest.err
20820 cat conftest.err
>&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } && {
20823 test -z "$ac_c_werror_flag" ||
20824 test ! -s conftest.err
20825 } && test -s conftest.
$ac_objext; then
20826 ac_cv_header_time
=yes
20828 echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.
$ac_ext >&5
20831 ac_cv_header_time
=no
20834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20836 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20837 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20838 if test $ac_cv_header_time = yes; then
20840 cat >>confdefs.h
<<\_ACEOF
20841 #define TIME_WITH_SYS_TIME 1
20846 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20847 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20848 if test "${ac_cv_struct_tm+set}" = set; then
20849 echo $ECHO_N "(cached) $ECHO_C" >&6
20851 cat >conftest.
$ac_ext <<_ACEOF
20854 cat confdefs.h
>>conftest.
$ac_ext
20855 cat >>conftest.
$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 #include <sys/types.h>
20864 int *p = &tm.tm_sec;
20870 rm -f conftest.
$ac_objext
20871 if { (ac_try
="$ac_compile"
20872 case "(($ac_try" in
20873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_compile") 2>conftest.er1
20879 grep -v '^ *+' conftest.er1 >conftest.err
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && {
20884 test -z "$ac_c_werror_flag" ||
20885 test ! -s conftest.err
20886 } && test -s conftest.$ac_objext; then
20887 ac_cv_struct_tm=time.h
20889 echo "$as_me: failed program was:" >&5
20890 sed 's/^/| /' conftest.$ac_ext >&5
20892 ac_cv_struct_tm=sys/time.h
20895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20897 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20898 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20899 if test $ac_cv_struct_tm = sys/time.h; then
20901 cat >>confdefs.h <<\_ACEOF
20902 #define TM_IN_SYS_TIME 1
20907 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20908 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20909 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20910 echo $ECHO_N "(cached) $ECHO_C" >&6
20912 cat >conftest.$ac_ext <<_ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 #include <sys/types.h>
20919 #include <$ac_cv_struct_tm>
20925 static struct tm ac_aggr;
20926 if (ac_aggr.tm_zone)
20932 rm -f conftest.$ac_objext
20933 if { (ac_try="$ac_compile"
20934 case "(($ac_try" in
20935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20936 *) ac_try_echo
=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_compile") 2>conftest.er1
20941 grep -v '^ *+' conftest.er1
>conftest.err
20943 cat conftest.err
>&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && {
20946 test -z "$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 } && test -s conftest.
$ac_objext; then
20949 ac_cv_member_struct_tm_tm_zone
=yes
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.
$ac_ext >&5
20954 cat >conftest.
$ac_ext <<_ACEOF
20957 cat confdefs.h
>>conftest.
$ac_ext
20958 cat >>conftest.
$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <sys/types.h>
20961 #include <$ac_cv_struct_tm>
20967 static struct tm ac_aggr;
20968 if (sizeof ac_aggr.tm_zone)
20974 rm -f conftest.
$ac_objext
20975 if { (ac_try
="$ac_compile"
20976 case "(($ac_try" in
20977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_compile") 2>conftest.er1
20983 grep -v '^ *+' conftest.er1 >conftest.err
20985 cat conftest.err >&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } && {
20988 test -z "$ac_c_werror_flag" ||
20989 test ! -s conftest.err
20990 } && test -s conftest.$ac_objext; then
20991 ac_cv_member_struct_tm_tm_zone=yes
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20996 ac_cv_member_struct_tm_tm_zone=no
20999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21005 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21006 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21008 cat >>confdefs.h <<_ACEOF
21009 #define HAVE_STRUCT_TM_TM_ZONE 1
21015 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21017 cat >>confdefs.h <<\_ACEOF
21018 #define HAVE_TM_ZONE 1
21022 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21023 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21024 if test "${ac_cv_have_decl_tzname+set}" = set; then
21025 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 cat >conftest.$ac_ext <<_ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21050 *) ac_try_echo
=$ac_try;;
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053 (eval "$ac_compile") 2>conftest.er1
21055 grep -v '^ *+' conftest.er1
>conftest.err
21057 cat conftest.err
>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } && {
21060 test -z "$ac_c_werror_flag" ||
21061 test ! -s conftest.err
21062 } && test -s conftest.
$ac_objext; then
21063 ac_cv_have_decl_tzname
=yes
21065 echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.
$ac_ext >&5
21068 ac_cv_have_decl_tzname
=no
21071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21073 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21074 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21075 if test $ac_cv_have_decl_tzname = yes; then
21077 cat >>confdefs.h
<<_ACEOF
21078 #define HAVE_DECL_TZNAME 1
21083 cat >>confdefs.h
<<_ACEOF
21084 #define HAVE_DECL_TZNAME 0
21091 { echo "$as_me:$LINENO: checking for tzname" >&5
21092 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21093 if test "${ac_cv_var_tzname+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21096 cat >conftest.
$ac_ext <<_ACEOF
21099 cat confdefs.h
>>conftest.
$ac_ext
21100 cat >>conftest.
$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21103 #if !HAVE_DECL_TZNAME
21104 extern char *tzname[];
21110 return tzname[0][0];
21115 rm -f conftest.
$ac_objext conftest
$ac_exeext
21116 if { (ac_try
="$ac_link"
21117 case "(($ac_try" in
21118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_link") 2>conftest.er1
21124 grep -v '^ *+' conftest.er1 >conftest.err
21126 cat conftest.err >&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } && {
21129 test -z "$ac_c_werror_flag" ||
21130 test ! -s conftest.err
21131 } && test -s conftest$ac_exeext &&
21132 $as_test_x conftest$ac_exeext; then
21133 ac_cv_var_tzname=yes
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21138 ac_cv_var_tzname=no
21141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21142 conftest$ac_exeext conftest.$ac_ext
21144 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21145 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21146 if test $ac_cv_var_tzname = yes; then
21148 cat >>confdefs.h <<\_ACEOF
21149 #define HAVE_TZNAME 1
21155 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21156 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21157 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21158 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 cat >conftest.$ac_ext <<_ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 $ac_includes_default
21170 static struct stat ac_aggr;
21171 if (ac_aggr.st_rdev)
21177 rm -f conftest.$ac_objext
21178 if { (ac_try="$ac_compile"
21179 case "(($ac_try" in
21180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21181 *) ac_try_echo
=$ac_try;;
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_compile") 2>conftest.er1
21186 grep -v '^ *+' conftest.er1
>conftest.err
21188 cat conftest.err
>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } && {
21191 test -z "$ac_c_werror_flag" ||
21192 test ! -s conftest.err
21193 } && test -s conftest.
$ac_objext; then
21194 ac_cv_member_struct_stat_st_rdev
=yes
21196 echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.
$ac_ext >&5
21199 cat >conftest.
$ac_ext <<_ACEOF
21202 cat confdefs.h
>>conftest.
$ac_ext
21203 cat >>conftest.
$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21205 $ac_includes_default
21209 static struct stat ac_aggr;
21210 if (sizeof ac_aggr.st_rdev)
21216 rm -f conftest.
$ac_objext
21217 if { (ac_try
="$ac_compile"
21218 case "(($ac_try" in
21219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_compile") 2>conftest.er1
21225 grep -v '^ *+' conftest.er1 >conftest.err
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && {
21230 test -z "$ac_c_werror_flag" ||
21231 test ! -s conftest.err
21232 } && test -s conftest.$ac_objext; then
21233 ac_cv_member_struct_stat_st_rdev=yes
21235 echo "$as_me: failed program was:" >&5
21236 sed 's/^/| /' conftest.$ac_ext >&5
21238 ac_cv_member_struct_stat_st_rdev=no
21241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21248 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21250 cat >>confdefs.h <<_ACEOF
21251 #define HAVE_STRUCT_STAT_ST_RDEV 1
21257 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21258 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21259 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 cat >conftest.$ac_ext <<_ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 $ac_includes_default
21272 static struct stat ac_aggr;
21273 if (ac_aggr.st_blksize)
21279 rm -f conftest.$ac_objext
21280 if { (ac_try="$ac_compile"
21281 case "(($ac_try" in
21282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21283 *) ac_try_echo
=$ac_try;;
21285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_compile") 2>conftest.er1
21288 grep -v '^ *+' conftest.er1
>conftest.err
21290 cat conftest.err
>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } && {
21293 test -z "$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21295 } && test -s conftest.
$ac_objext; then
21296 ac_cv_member_struct_stat_st_blksize
=yes
21298 echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.
$ac_ext >&5
21301 cat >conftest.
$ac_ext <<_ACEOF
21304 cat confdefs.h
>>conftest.
$ac_ext
21305 cat >>conftest.
$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307 $ac_includes_default
21311 static struct stat ac_aggr;
21312 if (sizeof ac_aggr.st_blksize)
21318 rm -f conftest.
$ac_objext
21319 if { (ac_try
="$ac_compile"
21320 case "(($ac_try" in
21321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21322 *) ac_try_echo=$ac_try;;
21324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21325 (eval "$ac_compile") 2>conftest.er1
21327 grep -v '^ *+' conftest.er1 >conftest.err
21329 cat conftest.err >&5
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } && {
21332 test -z "$ac_c_werror_flag" ||
21333 test ! -s conftest.err
21334 } && test -s conftest.$ac_objext; then
21335 ac_cv_member_struct_stat_st_blksize=yes
21337 echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340 ac_cv_member_struct_stat_st_blksize=no
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21348 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21349 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21350 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21352 cat >>confdefs.h <<_ACEOF
21353 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21359 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21360 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21361 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21362 echo $ECHO_N "(cached) $ECHO_C" >&6
21364 cat >conftest.$ac_ext <<_ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 $ac_includes_default
21374 static struct stat ac_aggr;
21375 if (ac_aggr.st_flags)
21381 rm -f conftest.$ac_objext
21382 if { (ac_try="$ac_compile"
21383 case "(($ac_try" in
21384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21385 *) ac_try_echo
=$ac_try;;
21387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21388 (eval "$ac_compile") 2>conftest.er1
21390 grep -v '^ *+' conftest.er1
>conftest.err
21392 cat conftest.err
>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } && {
21395 test -z "$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 } && test -s conftest.
$ac_objext; then
21398 ac_cv_member_struct_stat_st_flags
=yes
21400 echo "$as_me: failed program was:" >&5
21401 sed 's/^/| /' conftest.
$ac_ext >&5
21403 cat >conftest.
$ac_ext <<_ACEOF
21406 cat confdefs.h
>>conftest.
$ac_ext
21407 cat >>conftest.
$ac_ext <<_ACEOF
21408 /* end confdefs.h. */
21409 $ac_includes_default
21413 static struct stat ac_aggr;
21414 if (sizeof ac_aggr.st_flags)
21420 rm -f conftest.
$ac_objext
21421 if { (ac_try
="$ac_compile"
21422 case "(($ac_try" in
21423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21427 (eval "$ac_compile") 2>conftest.er1
21429 grep -v '^ *+' conftest.er1 >conftest.err
21431 cat conftest.err >&5
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } && {
21434 test -z "$ac_c_werror_flag" ||
21435 test ! -s conftest.err
21436 } && test -s conftest.$ac_objext; then
21437 ac_cv_member_struct_stat_st_flags=yes
21439 echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21442 ac_cv_member_struct_stat_st_flags=no
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21450 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21451 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21452 if test $ac_cv_member_struct_stat_st_flags = yes; then
21454 cat >>confdefs.h <<_ACEOF
21455 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21461 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21462 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21463 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21466 cat >conftest.$ac_ext <<_ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 $ac_includes_default
21476 static struct stat ac_aggr;
21477 if (ac_aggr.st_gen)
21483 rm -f conftest.$ac_objext
21484 if { (ac_try="$ac_compile"
21485 case "(($ac_try" in
21486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21487 *) ac_try_echo
=$ac_try;;
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21492 grep -v '^ *+' conftest.er1
>conftest.err
21494 cat conftest.err
>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.
$ac_objext; then
21500 ac_cv_member_struct_stat_st_gen
=yes
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.
$ac_ext >&5
21505 cat >conftest.
$ac_ext <<_ACEOF
21508 cat confdefs.h
>>conftest.
$ac_ext
21509 cat >>conftest.
$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 $ac_includes_default
21515 static struct stat ac_aggr;
21516 if (sizeof ac_aggr.st_gen)
21522 rm -f conftest.
$ac_objext
21523 if { (ac_try
="$ac_compile"
21524 case "(($ac_try" in
21525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_compile") 2>conftest.er1
21531 grep -v '^ *+' conftest.er1 >conftest.err
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } && {
21536 test -z "$ac_c_werror_flag" ||
21537 test ! -s conftest.err
21538 } && test -s conftest.$ac_objext; then
21539 ac_cv_member_struct_stat_st_gen=yes
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ac_cv_member_struct_stat_st_gen=no
21547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21553 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21554 if test $ac_cv_member_struct_stat_st_gen = yes; then
21556 cat >>confdefs.h <<_ACEOF
21557 #define HAVE_STRUCT_STAT_ST_GEN 1
21563 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21564 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21565 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21566 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 cat >conftest.$ac_ext <<_ACEOF
21571 cat confdefs.h >>conftest.$ac_ext
21572 cat >>conftest.$ac_ext <<_ACEOF
21573 /* end confdefs.h. */
21574 $ac_includes_default
21578 static struct stat ac_aggr;
21579 if (ac_aggr.st_birthtime)
21585 rm -f conftest.$ac_objext
21586 if { (ac_try="$ac_compile"
21587 case "(($ac_try" in
21588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21589 *) ac_try_echo
=$ac_try;;
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_compile") 2>conftest.er1
21594 grep -v '^ *+' conftest.er1
>conftest.err
21596 cat conftest.err
>&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); } && {
21599 test -z "$ac_c_werror_flag" ||
21600 test ! -s conftest.err
21601 } && test -s conftest.
$ac_objext; then
21602 ac_cv_member_struct_stat_st_birthtime
=yes
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.
$ac_ext >&5
21607 cat >conftest.
$ac_ext <<_ACEOF
21610 cat confdefs.h
>>conftest.
$ac_ext
21611 cat >>conftest.
$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 $ac_includes_default
21617 static struct stat ac_aggr;
21618 if (sizeof ac_aggr.st_birthtime)
21624 rm -f conftest.
$ac_objext
21625 if { (ac_try
="$ac_compile"
21626 case "(($ac_try" in
21627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21628 *) ac_try_echo=$ac_try;;
21630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21631 (eval "$ac_compile") 2>conftest.er1
21633 grep -v '^ *+' conftest.er1 >conftest.err
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } && {
21638 test -z "$ac_c_werror_flag" ||
21639 test ! -s conftest.err
21640 } && test -s conftest.$ac_objext; then
21641 ac_cv_member_struct_stat_st_birthtime=yes
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21646 ac_cv_member_struct_stat_st_birthtime=no
21649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
21655 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
21656 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
21658 cat >>confdefs.h <<_ACEOF
21659 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
21665 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21666 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21667 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 cat >conftest.$ac_ext <<_ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21680 static struct stat ac_aggr;
21681 if (ac_aggr.st_blocks)
21687 rm -f conftest.$ac_objext
21688 if { (ac_try="$ac_compile"
21689 case "(($ac_try" in
21690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21691 *) ac_try_echo
=$ac_try;;
21693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21694 (eval "$ac_compile") 2>conftest.er1
21696 grep -v '^ *+' conftest.er1
>conftest.err
21698 cat conftest.err
>&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && {
21701 test -z "$ac_c_werror_flag" ||
21702 test ! -s conftest.err
21703 } && test -s conftest.
$ac_objext; then
21704 ac_cv_member_struct_stat_st_blocks
=yes
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.
$ac_ext >&5
21709 cat >conftest.
$ac_ext <<_ACEOF
21712 cat confdefs.h
>>conftest.
$ac_ext
21713 cat >>conftest.
$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 $ac_includes_default
21719 static struct stat ac_aggr;
21720 if (sizeof ac_aggr.st_blocks)
21726 rm -f conftest.
$ac_objext
21727 if { (ac_try
="$ac_compile"
21728 case "(($ac_try" in
21729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21730 *) ac_try_echo=$ac_try;;
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733 (eval "$ac_compile") 2>conftest.er1
21735 grep -v '^ *+' conftest.er1 >conftest.err
21737 cat conftest.err >&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } && {
21740 test -z "$ac_c_werror_flag" ||
21741 test ! -s conftest.err
21742 } && test -s conftest.$ac_objext; then
21743 ac_cv_member_struct_stat_st_blocks=yes
21745 echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21748 ac_cv_member_struct_stat_st_blocks=no
21751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21756 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21757 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21758 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21760 cat >>confdefs.h <<_ACEOF
21761 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21765 cat >>confdefs.h <<\_ACEOF
21766 #define HAVE_ST_BLOCKS 1
21770 case " $LIBOBJS " in
21771 *" fileblocks.$ac_objext "* ) ;;
21772 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21780 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21781 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
21782 if test "${ac_cv_header_time_altzone+set}" = set; then
21783 echo $ECHO_N "(cached) $ECHO_C" >&6
21785 cat >conftest.$ac_ext <<_ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21800 rm -f conftest.$ac_objext
21801 if { (ac_try="$ac_compile"
21802 case "(($ac_try" in
21803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21804 *) ac_try_echo
=$ac_try;;
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807 (eval "$ac_compile") 2>conftest.er1
21809 grep -v '^ *+' conftest.er1
>conftest.err
21811 cat conftest.err
>&5
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } && {
21814 test -z "$ac_c_werror_flag" ||
21815 test ! -s conftest.err
21816 } && test -s conftest.
$ac_objext; then
21817 ac_cv_header_time_altzone
=yes
21819 echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.
$ac_ext >&5
21822 ac_cv_header_time_altzone
=no
21825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21828 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
21829 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
21830 if test $ac_cv_header_time_altzone = yes; then
21832 cat >>confdefs.h
<<\_ACEOF
21833 #define HAVE_ALTZONE 1
21839 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
21840 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
21841 cat >conftest.
$ac_ext <<_ACEOF
21844 cat confdefs.h
>>conftest.
$ac_ext
21845 cat >>conftest.
$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21848 #include <sys/types.h>
21849 #include <sys/select.h>
21850 #include <sys/time.h>
21860 rm -f conftest.
$ac_objext
21861 if { (ac_try
="$ac_compile"
21862 case "(($ac_try" in
21863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21867 (eval "$ac_compile") 2>conftest.er1
21869 grep -v '^ *+' conftest.er1 >conftest.err
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } && {
21874 test -z "$ac_c_werror_flag" ||
21875 test ! -s conftest.err
21876 } && test -s conftest.$ac_objext; then
21879 cat >>confdefs.h <<\_ACEOF
21880 #define SYS_SELECT_WITH_SYS_TIME 1
21886 echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.$ac_ext >&5
21892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21893 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
21894 echo "${ECHO_T}$was_it_defined" >&6; }
21896 { echo "$as_me:$LINENO: checking for addrinfo" >&5
21897 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
21898 if test "${ac_cv_struct_addrinfo+set}" = set; then
21899 echo $ECHO_N "(cached) $ECHO_C" >&6
21901 cat >conftest.$ac_ext <<_ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21908 # include <netdb.h>
21917 rm -f conftest.$ac_objext
21918 if { (ac_try="$ac_compile"
21919 case "(($ac_try" in
21920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21921 *) ac_try_echo
=$ac_try;;
21923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924 (eval "$ac_compile") 2>conftest.er1
21926 grep -v '^ *+' conftest.er1
>conftest.err
21928 cat conftest.err
>&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); } && {
21931 test -z "$ac_c_werror_flag" ||
21932 test ! -s conftest.err
21933 } && test -s conftest.
$ac_objext; then
21934 ac_cv_struct_addrinfo
=yes
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.
$ac_ext >&5
21939 ac_cv_struct_addrinfo
=no
21942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21945 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
21946 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
21947 if test $ac_cv_struct_addrinfo = yes; then
21949 cat >>confdefs.h
<<\_ACEOF
21950 #define HAVE_ADDRINFO 1
21955 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
21956 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
21957 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 cat >conftest.
$ac_ext <<_ACEOF
21963 cat confdefs.h
>>conftest.
$ac_ext
21964 cat >>conftest.
$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21967 # include <sys/types.h>
21968 # include <sys/socket.h>
21972 struct sockaddr_storage s
21977 rm -f conftest.
$ac_objext
21978 if { (ac_try
="$ac_compile"
21979 case "(($ac_try" in
21980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_compile") 2>conftest.er1
21986 grep -v '^ *+' conftest.er1 >conftest.err
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } && {
21991 test -z "$ac_c_werror_flag" ||
21992 test ! -s conftest.err
21993 } && test -s conftest.$ac_objext; then
21994 ac_cv_struct_sockaddr_storage=yes
21996 echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.$ac_ext >&5
21999 ac_cv_struct_sockaddr_storage=no
22002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22006 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22007 if test $ac_cv_struct_sockaddr_storage = yes; then
22009 cat >>confdefs.h <<\_ACEOF
22010 #define HAVE_SOCKADDR_STORAGE 1
22015 # checks for compiler characteristics
22018 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22019 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22020 if test "${ac_cv_c_char_unsigned+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 $ac_includes_default
22033 static int test_array [1 - 2 * !(((char) -1) < 0)];
22040 rm -f conftest.$ac_objext
22041 if { (ac_try="$ac_compile"
22042 case "(($ac_try" in
22043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22044 *) ac_try_echo
=$ac_try;;
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_compile") 2>conftest.er1
22049 grep -v '^ *+' conftest.er1
>conftest.err
22051 cat conftest.err
>&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } && {
22054 test -z "$ac_c_werror_flag" ||
22055 test ! -s conftest.err
22056 } && test -s conftest.
$ac_objext; then
22057 ac_cv_c_char_unsigned
=no
22059 echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.
$ac_ext >&5
22062 ac_cv_c_char_unsigned
=yes
22065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22067 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22068 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22069 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22070 cat >>confdefs.h
<<\_ACEOF
22071 #define __CHAR_UNSIGNED__ 1
22076 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22077 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22078 if test "${ac_cv_c_const+set}" = set; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
22081 cat >conftest.
$ac_ext <<_ACEOF
22084 cat confdefs.h
>>conftest.
$ac_ext
22085 cat >>conftest.
$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22091 /* FIXME: Include the comments suggested by Paul. */
22092 #ifndef __cplusplus
22093 /* Ultrix mips cc rejects this. */
22094 typedef int charset[2];
22096 /* SunOS 4.1.1 cc rejects this. */
22097 char const *const *pcpcc;
22099 /* NEC SVR4.0.2 mips cc rejects this. */
22100 struct point {int x, y;};
22101 static struct point const zero = {0,0};
22102 /* AIX XL C 1.02.0.0 rejects this.
22103 It does not let you subtract one const X* pointer from another in
22104 an arm of an if-expression whose if-part is not a constant
22106 const char *g = "string";
22107 pcpcc = &g + (g ? g-g : 0);
22108 /* HPUX 7.0 cc rejects these. */
22110 ppc = (char**) pcpcc;
22111 pcpcc = (char const *const *) ppc;
22112 { /* SCO 3.2v4 cc rejects this. */
22114 char const *s = 0 ? (char *) 0 : (char const *) 0;
22119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22120 int x[] = {25, 17};
22121 const int *foo = &x[0];
22124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22125 typedef const int *iptr;
22129 { /* AIX XL C 1.02.0.0 rejects this saying
22130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22131 struct s { int j; const int *ap[3]; };
22132 struct s *b; b->j = 5;
22134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22135 const int foo = 10;
22136 if (!foo) return 0;
22138 return !cs[0] && !zero.x;
22145 rm -f conftest.
$ac_objext
22146 if { (ac_try
="$ac_compile"
22147 case "(($ac_try" in
22148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22149 *) ac_try_echo=$ac_try;;
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152 (eval "$ac_compile") 2>conftest.er1
22154 grep -v '^ *+' conftest.er1 >conftest.err
22156 cat conftest.err >&5
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); } && {
22159 test -z "$ac_c_werror_flag" ||
22160 test ! -s conftest.err
22161 } && test -s conftest.$ac_objext; then
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22173 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22174 if test $ac_cv_c_const = no; then
22176 cat >>confdefs.h <<\_ACEOF
22184 { echo "$as_me:$LINENO: checking for working volatile" >&5
22185 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22186 cat >conftest.$ac_ext <<_ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h. */
22196 volatile int x; x = 0;
22201 rm -f conftest.$ac_objext
22202 if { (ac_try="$ac_compile"
22203 case "(($ac_try" in
22204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22205 *) ac_try_echo
=$ac_try;;
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208 (eval "$ac_compile") 2>conftest.er1
22210 grep -v '^ *+' conftest.er1
>conftest.err
22212 cat conftest.err
>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } && {
22215 test -z "$ac_c_werror_flag" ||
22216 test ! -s conftest.err
22217 } && test -s conftest.
$ac_objext; then
22220 echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.
$ac_ext >&5
22224 cat >>confdefs.h
<<\_ACEOF
22231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22232 { echo "$as_me:$LINENO: result: $works" >&5
22233 echo "${ECHO_T}$works" >&6; }
22236 { echo "$as_me:$LINENO: checking for working signed char" >&5
22237 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22238 cat >conftest.
$ac_ext <<_ACEOF
22241 cat confdefs.h
>>conftest.
$ac_ext
22242 cat >>conftest.
$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22253 rm -f conftest.
$ac_objext
22254 if { (ac_try
="$ac_compile"
22255 case "(($ac_try" in
22256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22257 *) ac_try_echo=$ac_try;;
22259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260 (eval "$ac_compile") 2>conftest.er1
22262 grep -v '^ *+' conftest.er1 >conftest.err
22264 cat conftest.err >&5
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); } && {
22267 test -z "$ac_c_werror_flag" ||
22268 test ! -s conftest.err
22269 } && test -s conftest.$ac_objext; then
22272 echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22276 cat >>confdefs.h <<\_ACEOF
22283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284 { echo "$as_me:$LINENO: result: $works" >&5
22285 echo "${ECHO_T}$works" >&6; }
22288 { echo "$as_me:$LINENO: checking for prototypes" >&5
22289 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22290 cat >conftest.$ac_ext <<_ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h. */
22296 int foo(int x) { return 0; }
22305 rm -f conftest.$ac_objext
22306 if { (ac_try="$ac_compile"
22307 case "(($ac_try" in
22308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22309 *) ac_try_echo
=$ac_try;;
22311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_compile") 2>conftest.er1
22314 grep -v '^ *+' conftest.er1
>conftest.err
22316 cat conftest.err
>&5
22317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest.
$ac_objext; then
22324 cat >>confdefs.h
<<\_ACEOF
22325 #define HAVE_PROTOTYPES 1
22328 have_prototypes
=yes
22331 echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.
$ac_ext >&5
22337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22338 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22339 echo "${ECHO_T}$have_prototypes" >&6; }
22342 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22343 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22344 cat >conftest.
$ac_ext <<_ACEOF
22347 cat confdefs.h
>>conftest.
$ac_ext
22348 cat >>conftest.
$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22351 #include <stdarg.h>
22352 int foo(int x, ...) {
22356 va_arg(va, char *);
22357 va_arg(va, double);
22364 return foo(10, "", 3.14);
22369 rm -f conftest.
$ac_objext
22370 if { (ac_try
="$ac_compile"
22371 case "(($ac_try" in
22372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_compile") 2>conftest.er1
22378 grep -v '^ *+' conftest.er1 >conftest.err
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } && {
22383 test -z "$ac_c_werror_flag" ||
22384 test ! -s conftest.err
22385 } && test -s conftest.$ac_objext; then
22388 cat >>confdefs.h <<\_ACEOF
22389 #define HAVE_STDARG_PROTOTYPES 1
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22402 { echo "$as_me:$LINENO: result: $works" >&5
22403 echo "${ECHO_T}$works" >&6; }
22405 # check for socketpair
22406 { echo "$as_me:$LINENO: checking for socketpair" >&5
22407 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22408 cat >conftest.$ac_ext <<_ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */
22415 #include <sys/types.h>
22416 #include <sys/socket.h>
22426 rm -f conftest.$ac_objext
22427 if { (ac_try="$ac_compile"
22428 case "(($ac_try" in
22429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22430 *) ac_try_echo
=$ac_try;;
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_compile") 2>conftest.er1
22435 grep -v '^ *+' conftest.er1
>conftest.err
22437 cat conftest.err
>&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } && {
22440 test -z "$ac_c_werror_flag" ||
22441 test ! -s conftest.err
22442 } && test -s conftest.
$ac_objext; then
22444 cat >>confdefs.h
<<\_ACEOF
22445 #define HAVE_SOCKETPAIR 1
22448 { echo "$as_me:$LINENO: result: yes" >&5
22449 echo "${ECHO_T}yes" >&6; }
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.
$ac_ext >&5
22454 { echo "$as_me:$LINENO: result: no" >&5
22455 echo "${ECHO_T}no" >&6; }
22459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22461 # check if sockaddr has sa_len member
22462 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22463 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22464 cat >conftest.
$ac_ext <<_ACEOF
22467 cat confdefs.h
>>conftest.
$ac_ext
22468 cat >>conftest.
$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22470 #include <sys/types.h>
22471 #include <sys/socket.h>
22481 rm -f conftest.
$ac_objext
22482 if { (ac_try
="$ac_compile"
22483 case "(($ac_try" in
22484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_compile") 2>conftest.er1
22490 grep -v '^ *+' conftest.er1 >conftest.err
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } && {
22495 test -z "$ac_c_werror_flag" ||
22496 test ! -s conftest.err
22497 } && test -s conftest.$ac_objext; then
22498 { echo "$as_me:$LINENO: result: yes" >&5
22499 echo "${ECHO_T}yes" >&6; }
22501 cat >>confdefs.h <<\_ACEOF
22502 #define HAVE_SOCKADDR_SA_LEN 1
22506 echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22509 { echo "$as_me:$LINENO: result: no" >&5
22510 echo "${ECHO_T}no" >&6; }
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515 va_list_is_array=no
22516 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22517 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22518 cat >conftest.$ac_ext <<_ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22525 #ifdef HAVE_STDARG_PROTOTYPES
22526 #include <stdarg.h>
22528 #include <varargs.h>
22534 va_list list1, list2; list1 = list2;
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22543 *) ac_try_echo
=$ac_try;;
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22548 grep -v '^ *+' conftest.er1
>conftest.err
22550 cat conftest.err
>&5
22551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.
$ac_objext; then
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.
$ac_ext >&5
22563 cat >>confdefs.h
<<\_ACEOF
22564 #define VA_LIST_IS_ARRAY 1
22567 va_list_is_array
=yes
22571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22572 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22573 echo "${ECHO_T}$va_list_is_array" >&6; }
22575 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22579 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22580 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22581 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22582 echo $ECHO_N "(cached) $ECHO_C" >&6
22584 cat >conftest.
$ac_ext <<_ACEOF
22587 cat confdefs.h
>>conftest.
$ac_ext
22588 cat >>conftest.
$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22590 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22592 #define gethostbyname_r innocuous_gethostbyname_r
22594 /* System header to define __stub macros and hopefully few prototypes,
22595 which can conflict with char gethostbyname_r (); below.
22596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22597 <limits.h> exists even on freestanding compilers. */
22600 # include <limits.h>
22602 # include <assert.h>
22605 #undef gethostbyname_r
22607 /* Override any GCC internal prototype to avoid an error.
22608 Use char because int might match the return type of a GCC
22609 builtin and then its argument prototype would still apply. */
22613 char gethostbyname_r ();
22614 /* The GNU C library defines this for functions which it implements
22615 to always fail with ENOSYS. Some functions are actually named
22616 something starting with __ and the normal name is an alias. */
22617 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22624 return gethostbyname_r ();
22629 rm -f conftest.
$ac_objext conftest
$ac_exeext
22630 if { (ac_try
="$ac_link"
22631 case "(($ac_try" in
22632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636 (eval "$ac_link") 2>conftest.er1
22638 grep -v '^ *+' conftest.er1 >conftest.err
22640 cat conftest.err >&5
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest$ac_exeext &&
22646 $as_test_x conftest$ac_exeext; then
22647 ac_cv_func_gethostbyname_r=yes
22649 echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22652 ac_cv_func_gethostbyname_r=no
22655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22656 conftest$ac_exeext conftest.$ac_ext
22658 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
22659 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
22660 if test $ac_cv_func_gethostbyname_r = yes; then
22662 cat >>confdefs.h <<\_ACEOF
22663 #define HAVE_GETHOSTBYNAME_R 1
22666 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
22667 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
22669 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
22670 cat >conftest.$ac_ext <<_ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22677 # include <netdb.h>
22684 struct hostent *he, *res;
22689 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
22695 rm -f conftest.$ac_objext
22696 if { (ac_try="$ac_compile"
22697 case "(($ac_try" in
22698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22699 *) ac_try_echo
=$ac_try;;
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702 (eval "$ac_compile") 2>conftest.er1
22704 grep -v '^ *+' conftest.er1
>conftest.err
22706 cat conftest.err
>&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } && {
22709 test -z "$ac_c_werror_flag" ||
22710 test ! -s conftest.err
22711 } && test -s conftest.
$ac_objext; then
22713 cat >>confdefs.h
<<\_ACEOF
22714 #define HAVE_GETHOSTBYNAME_R 1
22718 cat >>confdefs.h
<<\_ACEOF
22719 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22722 { echo "$as_me:$LINENO: result: yes" >&5
22723 echo "${ECHO_T}yes" >&6; }
22726 echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.
$ac_ext >&5
22730 { echo "$as_me:$LINENO: result: no" >&5
22731 echo "${ECHO_T}no" >&6; }
22732 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22733 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
22734 cat >conftest.
$ac_ext <<_ACEOF
22737 cat confdefs.h
>>conftest.
$ac_ext
22738 cat >>conftest.
$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22741 # include <netdb.h>
22748 struct hostent *he;
22753 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22759 rm -f conftest.
$ac_objext
22760 if { (ac_try
="$ac_compile"
22761 case "(($ac_try" in
22762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_compile") 2>conftest.er1
22768 grep -v '^ *+' conftest.er1 >conftest.err
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } && {
22773 test -z "$ac_c_werror_flag" ||
22774 test ! -s conftest.err
22775 } && test -s conftest.$ac_objext; then
22777 cat >>confdefs.h <<\_ACEOF
22778 #define HAVE_GETHOSTBYNAME_R 1
22782 cat >>confdefs.h <<\_ACEOF
22783 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22786 { echo "$as_me:$LINENO: result: yes" >&5
22787 echo "${ECHO_T}yes" >&6; }
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22794 { echo "$as_me:$LINENO: result: no" >&5
22795 echo "${ECHO_T}no" >&6; }
22796 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22797 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
22798 cat >conftest.$ac_ext <<_ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22805 # include <netdb.h>
22812 struct hostent *he;
22813 struct hostent_data data;
22815 (void) gethostbyname_r(name, he, &data);
22821 rm -f conftest.$ac_objext
22822 if { (ac_try="$ac_compile"
22823 case "(($ac_try" in
22824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22825 *) ac_try_echo
=$ac_try;;
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828 (eval "$ac_compile") 2>conftest.er1
22830 grep -v '^ *+' conftest.er1
>conftest.err
22832 cat conftest.err
>&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && {
22835 test -z "$ac_c_werror_flag" ||
22836 test ! -s conftest.err
22837 } && test -s conftest.
$ac_objext; then
22839 cat >>confdefs.h
<<\_ACEOF
22840 #define HAVE_GETHOSTBYNAME_R 1
22844 cat >>confdefs.h
<<\_ACEOF
22845 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
22848 { echo "$as_me:$LINENO: result: yes" >&5
22849 echo "${ECHO_T}yes" >&6; }
22852 echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.
$ac_ext >&5
22856 { echo "$as_me:$LINENO: result: no" >&5
22857 echo "${ECHO_T}no" >&6; }
22861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22875 for ac_func
in gethostbyname
22877 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22880 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22883 cat >conftest.
$ac_ext <<_ACEOF
22886 cat confdefs.h
>>conftest.
$ac_ext
22887 cat >>conftest.
$ac_ext <<_ACEOF
22888 /* end confdefs.h. */
22889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22891 #define $ac_func innocuous_$ac_func
22893 /* System header to define __stub macros and hopefully few prototypes,
22894 which can conflict with char $ac_func (); below.
22895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22896 <limits.h> exists even on freestanding compilers. */
22899 # include <limits.h>
22901 # include <assert.h>
22906 /* Override any GCC internal prototype to avoid an error.
22907 Use char because int might match the return type of a GCC
22908 builtin and then its argument prototype would still apply. */
22913 /* The GNU C library defines this for functions which it implements
22914 to always fail with ENOSYS. Some functions are actually named
22915 something starting with __ and the normal name is an alias. */
22916 #if defined __stub_$ac_func || defined __stub___$ac_func
22923 return $ac_func ();
22928 rm -f conftest.
$ac_objext conftest
$ac_exeext
22929 if { (ac_try
="$ac_link"
22930 case "(($ac_try" in
22931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22932 *) ac_try_echo=$ac_try;;
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935 (eval "$ac_link") 2>conftest.er1
22937 grep -v '^ *+' conftest.er1 >conftest.err
22939 cat conftest.err >&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } && {
22942 test -z "$ac_c_werror_flag" ||
22943 test ! -s conftest.err
22944 } && test -s conftest$ac_exeext &&
22945 $as_test_x conftest$ac_exeext; then
22946 eval "$as_ac_var=yes"
22948 echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22951 eval "$as_ac_var=no"
22954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22955 conftest$ac_exeext conftest.$ac_ext
22957 ac_res=`eval echo '${'$as_ac_var'}'`
22958 { echo "$as_me:$LINENO: result: $ac_res" >&5
22959 echo "${ECHO_T}$ac_res" >&6; }
22960 if test `eval echo '${'$as_ac_var'}'` = yes; then
22961 cat >>confdefs.h <<_ACEOF
22962 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22977 # checks for system services
22980 # Linux requires this for correct f.p. operations
22981 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
22982 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
22983 if test "${ac_cv_func___fpu_control+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22986 cat >conftest.$ac_ext <<_ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
22993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22994 #define __fpu_control innocuous___fpu_control
22996 /* System header to define __stub macros and hopefully few prototypes,
22997 which can conflict with char __fpu_control (); below.
22998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22999 <limits.h> exists even on freestanding compilers. */
23002 # include <limits.h>
23004 # include <assert.h>
23007 #undef __fpu_control
23009 /* Override any GCC internal prototype to avoid an error.
23010 Use char because int might match the return type of a GCC
23011 builtin and then its argument prototype would still apply. */
23015 char __fpu_control ();
23016 /* The GNU C library defines this for functions which it implements
23017 to always fail with ENOSYS. Some functions are actually named
23018 something starting with __ and the normal name is an alias. */
23019 #if defined __stub___fpu_control || defined __stub_____fpu_control
23026 return __fpu_control ();
23031 rm -f conftest.$ac_objext conftest$ac_exeext
23032 if { (ac_try="$ac_link"
23033 case "(($ac_try" in
23034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23035 *) ac_try_echo
=$ac_try;;
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_link") 2>conftest.er1
23040 grep -v '^ *+' conftest.er1
>conftest.err
23042 cat conftest.err
>&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && {
23045 test -z "$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 } && test -s conftest
$ac_exeext &&
23048 $as_test_x conftest
$ac_exeext; then
23049 ac_cv_func___fpu_control
=yes
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.
$ac_ext >&5
23054 ac_cv_func___fpu_control
=no
23057 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23058 conftest
$ac_exeext conftest.
$ac_ext
23060 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23061 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23062 if test $ac_cv_func___fpu_control = yes; then
23066 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23067 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23068 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23071 ac_check_lib_save_LIBS
=$LIBS
23072 LIBS
="-lieee $LIBS"
23073 cat >conftest.
$ac_ext <<_ACEOF
23076 cat confdefs.h
>>conftest.
$ac_ext
23077 cat >>conftest.
$ac_ext <<_ACEOF
23078 /* end confdefs.h. */
23080 /* Override any GCC internal prototype to avoid an error.
23081 Use char because int might match the return type of a GCC
23082 builtin and then its argument prototype would still apply. */
23086 char __fpu_control ();
23090 return __fpu_control ();
23095 rm -f conftest.
$ac_objext conftest
$ac_exeext
23096 if { (ac_try
="$ac_link"
23097 case "(($ac_try" in
23098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23099 *) ac_try_echo=$ac_try;;
23101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23102 (eval "$ac_link") 2>conftest.er1
23104 grep -v '^ *+' conftest.er1 >conftest.err
23106 cat conftest.err >&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } && {
23109 test -z "$ac_c_werror_flag" ||
23110 test ! -s conftest.err
23111 } && test -s conftest$ac_exeext &&
23112 $as_test_x conftest$ac_exeext; then
23113 ac_cv_lib_ieee___fpu_control=yes
23115 echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_cv_lib_ieee___fpu_control=no
23121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23122 conftest$ac_exeext conftest.$ac_ext
23123 LIBS=$ac_check_lib_save_LIBS
23125 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23126 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23127 if test $ac_cv_lib_ieee___fpu_control = yes; then
23128 cat >>confdefs.h <<_ACEOF
23129 #define HAVE_LIBIEEE 1
23132 LIBS="-lieee $LIBS"
23140 # Check for --with-fpectl
23141 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23142 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23144 # Check whether --with-fpectl was given.
23145 if test "${with_fpectl+set}" = set; then
23146 withval=$with_fpectl;
23147 if test "$withval" != no
23150 cat >>confdefs.h <<\_ACEOF
23151 #define WANT_SIGFPE_HANDLER 1
23154 { echo "$as_me:$LINENO: result: yes" >&5
23155 echo "${ECHO_T}yes" >&6; }
23156 else { echo "$as_me:$LINENO: result: no" >&5
23157 echo "${ECHO_T}no" >&6; }
23160 { echo "$as_me:$LINENO: result: no" >&5
23161 echo "${ECHO_T}no" >&6; }
23165 # check for --with-libm=...
23167 case $ac_sys_system in
23172 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23173 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23175 # Check whether --with-libm was given.
23176 if test "${with_libm+set}" = set; then
23177 withval=$with_libm;
23178 if test "$withval" = no
23180 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23181 echo "${ECHO_T}force LIBM empty" >&6; }
23182 elif test "$withval" != yes
23184 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23185 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23186 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23187 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23188 { (exit 1); exit 1; }; }
23191 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23192 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23196 # check for --with-libc=...
23198 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23199 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23201 # Check whether --with-libc was given.
23202 if test "${with_libc+set}" = set; then
23203 withval=$with_libc;
23204 if test "$withval" = no
23206 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23207 echo "${ECHO_T}force LIBC empty" >&6; }
23208 elif test "$withval" != yes
23210 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23211 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23212 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23213 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23214 { (exit 1); exit 1; }; }
23217 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23218 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23222 # ************************************
23223 # * Check for mathematical functions *
23224 # ************************************
23229 # Detect whether system arithmetic is subject to x87-style double
23230 # rounding issues. The result of this test has little meaning on non
23231 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23232 # mode is round-to-nearest and double rounding issues are present, and
23233 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23234 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23235 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23236 if test "${ac_cv_x87_double_rounding+set}" = set; then
23237 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 if test "$cross_compiling" = yes; then
23241 ac_cv_x87_double_rounding=no
23243 cat >conftest.$ac_ext <<_ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23250 #include <stdlib.h>
23253 volatile double x, y, z;
23254 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23255 x = 0.99999999999999989; /* 1-2**-53 */
23259 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23265 /* both tests show evidence of double rounding */
23270 rm -f conftest$ac_exeext
23271 if { (ac_try="$ac_link"
23272 case "(($ac_try" in
23273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23274 *) ac_try_echo
=$ac_try;;
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277 (eval "$ac_link") 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23281 { (case "(($ac_try" in
23282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23283 *) ac_try_echo=$ac_try;;
23285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23286 (eval "$ac_try") 2>&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); }; }; then
23290 ac_cv_x87_double_rounding=no
23292 echo "$as_me: program exited with status $ac_status" >&5
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ( exit $ac_status )
23297 ac_cv_x87_double_rounding=yes
23299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23305 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23306 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23307 if test "$ac_cv_x87_double_rounding" = yes
23310 cat >>confdefs.h <<\_ACEOF
23311 #define X87_DOUBLE_ROUNDING 1
23316 # Multiprocessing check for broken sem_getvalue
23317 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
23318 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
23319 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23322 if test "$cross_compiling" = yes; then
23323 ac_cv_broken_sem_getvalue=yes
23325 cat >conftest.$ac_ext <<_ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23332 #include <unistd.h>
23335 #include <semaphore.h>
23336 #include <sys/stat.h>
23339 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23343 perror("sem_open");
23347 res = sem_getvalue(a, &count);
23349 return res==-1 ? 1 : 0;
23353 rm -f conftest$ac_exeext
23354 if { (ac_try="$ac_link"
23355 case "(($ac_try" in
23356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23357 *) ac_try_echo
=$ac_try;;
23359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23360 (eval "$ac_link") 2>&5
23362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23364 { (case "(($ac_try" in
23365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_try") 2>&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; }; then
23373 ac_cv_broken_sem_getvalue=no
23375 echo "$as_me: program exited with status $ac_status" >&5
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 ( exit $ac_status )
23380 ac_cv_broken_sem_getvalue=yes
23382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23389 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
23390 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
23391 if test $ac_cv_broken_sem_getvalue = yes
23394 cat >>confdefs.h <<\_ACEOF
23395 #define HAVE_BROKEN_SEM_GETVALUE 1
23400 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23401 # -0. on some architectures.
23402 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23403 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23404 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23405 echo $ECHO_N "(cached) $ECHO_C" >&6
23408 if test "$cross_compiling" = yes; then
23409 ac_cv_tanh_preserves_zero_sign=no
23411 cat >conftest.$ac_ext <<_ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h. */
23419 #include <stdlib.h>
23421 /* return 0 if either negative zeros don't exist
23422 on this platform or if negative zeros exist
23423 and tanh(-0.) == -0. */
23424 if (atan2(0., -1.) == atan2(-0., -1.) ||
23425 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23430 rm -f conftest$ac_exeext
23431 if { (ac_try="$ac_link"
23432 case "(($ac_try" in
23433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23434 *) ac_try_echo
=$ac_try;;
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_link") 2>&5
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23441 { (case "(($ac_try" in
23442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23443 *) ac_try_echo=$ac_try;;
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446 (eval "$ac_try") 2>&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); }; }; then
23450 ac_cv_tanh_preserves_zero_sign=yes
23452 echo "$as_me: program exited with status $ac_status" >&5
23453 echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 ( exit $ac_status )
23457 ac_cv_tanh_preserves_zero_sign=no
23459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23465 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23466 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
23467 if test "$ac_cv_tanh_preserves_zero_sign" = yes
23470 cat >>confdefs.h <<\_ACEOF
23471 #define TANH_PRESERVES_ZERO_SIGN 1
23485 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
23487 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 cat >conftest.$ac_ext <<_ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23501 #define $ac_func innocuous_$ac_func
23503 /* System header to define __stub macros and hopefully few prototypes,
23504 which can conflict with char $ac_func (); below.
23505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23506 <limits.h> exists even on freestanding compilers. */
23509 # include <limits.h>
23511 # include <assert.h>
23516 /* Override any GCC internal prototype to avoid an error.
23517 Use char because int might match the return type of a GCC
23518 builtin and then its argument prototype would still apply. */
23523 /* The GNU C library defines this for functions which it implements
23524 to always fail with ENOSYS. Some functions are actually named
23525 something starting with __ and the normal name is an alias. */
23526 #if defined __stub_$ac_func || defined __stub___$ac_func
23533 return $ac_func ();
23538 rm -f conftest.$ac_objext conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23542 *) ac_try_echo
=$ac_try;;
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_link") 2>conftest.er1
23547 grep -v '^ *+' conftest.er1
>conftest.err
23549 cat conftest.err
>&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } && {
23552 test -z "$ac_c_werror_flag" ||
23553 test ! -s conftest.err
23554 } && test -s conftest
$ac_exeext &&
23555 $as_test_x conftest
$ac_exeext; then
23556 eval "$as_ac_var=yes"
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.
$ac_ext >&5
23561 eval "$as_ac_var=no"
23564 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23565 conftest
$ac_exeext conftest.
$ac_ext
23567 ac_res
=`eval echo '${'$as_ac_var'}'`
23568 { echo "$as_me:$LINENO: result: $ac_res" >&5
23569 echo "${ECHO_T}$ac_res" >&6; }
23570 if test `eval echo '${'$as_ac_var'}'` = yes; then
23571 cat >>confdefs.h
<<_ACEOF
23572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23583 for ac_func
in hypot lgamma log1p round tgamma
23585 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23588 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23591 cat >conftest.
$ac_ext <<_ACEOF
23594 cat confdefs.h
>>conftest.
$ac_ext
23595 cat >>conftest.
$ac_ext <<_ACEOF
23596 /* end confdefs.h. */
23597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23599 #define $ac_func innocuous_$ac_func
23601 /* System header to define __stub macros and hopefully few prototypes,
23602 which can conflict with char $ac_func (); below.
23603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23604 <limits.h> exists even on freestanding compilers. */
23607 # include <limits.h>
23609 # include <assert.h>
23614 /* Override any GCC internal prototype to avoid an error.
23615 Use char because int might match the return type of a GCC
23616 builtin and then its argument prototype would still apply. */
23621 /* The GNU C library defines this for functions which it implements
23622 to always fail with ENOSYS. Some functions are actually named
23623 something starting with __ and the normal name is an alias. */
23624 #if defined __stub_$ac_func || defined __stub___$ac_func
23631 return $ac_func ();
23636 rm -f conftest.
$ac_objext conftest
$ac_exeext
23637 if { (ac_try
="$ac_link"
23638 case "(($ac_try" in
23639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_link") 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest$ac_exeext &&
23653 $as_test_x conftest$ac_exeext; then
23654 eval "$as_ac_var=yes"
23656 echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23659 eval "$as_ac_var=no"
23662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23663 conftest$ac_exeext conftest.$ac_ext
23665 ac_res=`eval echo '${'$as_ac_var'}'`
23666 { echo "$as_me:$LINENO: result: $ac_res" >&5
23667 echo "${ECHO_T}$ac_res" >&6; }
23668 if test `eval echo '${'$as_ac_var'}'` = yes; then
23669 cat >>confdefs.h <<_ACEOF
23670 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23676 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
23677 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
23678 if test "${ac_cv_have_decl_isinf+set}" = set; then
23679 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 cat >conftest.$ac_ext <<_ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23700 rm -f conftest.$ac_objext
23701 if { (ac_try="$ac_compile"
23702 case "(($ac_try" in
23703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23704 *) ac_try_echo
=$ac_try;;
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707 (eval "$ac_compile") 2>conftest.er1
23709 grep -v '^ *+' conftest.er1
>conftest.err
23711 cat conftest.err
>&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } && {
23714 test -z "$ac_c_werror_flag" ||
23715 test ! -s conftest.err
23716 } && test -s conftest.
$ac_objext; then
23717 ac_cv_have_decl_isinf
=yes
23719 echo "$as_me: failed program was:" >&5
23720 sed 's/^/| /' conftest.
$ac_ext >&5
23722 ac_cv_have_decl_isinf
=no
23725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23727 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
23728 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
23729 if test $ac_cv_have_decl_isinf = yes; then
23731 cat >>confdefs.h
<<_ACEOF
23732 #define HAVE_DECL_ISINF 1
23737 cat >>confdefs.h
<<_ACEOF
23738 #define HAVE_DECL_ISINF 0
23743 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
23744 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
23745 if test "${ac_cv_have_decl_isnan+set}" = set; then
23746 echo $ECHO_N "(cached) $ECHO_C" >&6
23748 cat >conftest.
$ac_ext <<_ACEOF
23751 cat confdefs.h
>>conftest.
$ac_ext
23752 cat >>conftest.
$ac_ext <<_ACEOF
23753 /* end confdefs.h. */
23767 rm -f conftest.
$ac_objext
23768 if { (ac_try
="$ac_compile"
23769 case "(($ac_try" in
23770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23771 *) ac_try_echo=$ac_try;;
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_compile") 2>conftest.er1
23776 grep -v '^ *+' conftest.er1 >conftest.err
23778 cat conftest.err >&5
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } && {
23781 test -z "$ac_c_werror_flag" ||
23782 test ! -s conftest.err
23783 } && test -s conftest.$ac_objext; then
23784 ac_cv_have_decl_isnan=yes
23786 echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23789 ac_cv_have_decl_isnan=no
23792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23794 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23795 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
23796 if test $ac_cv_have_decl_isnan = yes; then
23798 cat >>confdefs.h <<_ACEOF
23799 #define HAVE_DECL_ISNAN 1
23804 cat >>confdefs.h <<_ACEOF
23805 #define HAVE_DECL_ISNAN 0
23810 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23811 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
23812 if test "${ac_cv_have_decl_isfinite+set}" = set; then
23813 echo $ECHO_N "(cached) $ECHO_C" >&6
23815 cat >conftest.$ac_ext <<_ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23834 rm -f conftest.$ac_objext
23835 if { (ac_try="$ac_compile"
23836 case "(($ac_try" in
23837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23838 *) ac_try_echo
=$ac_try;;
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841 (eval "$ac_compile") 2>conftest.er1
23843 grep -v '^ *+' conftest.er1
>conftest.err
23845 cat conftest.err
>&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } && {
23848 test -z "$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 } && test -s conftest.
$ac_objext; then
23851 ac_cv_have_decl_isfinite
=yes
23853 echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.
$ac_ext >&5
23856 ac_cv_have_decl_isfinite
=no
23859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23861 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23862 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
23863 if test $ac_cv_have_decl_isfinite = yes; then
23865 cat >>confdefs.h
<<_ACEOF
23866 #define HAVE_DECL_ISFINITE 1
23871 cat >>confdefs.h
<<_ACEOF
23872 #define HAVE_DECL_ISFINITE 0
23882 # determine what size digit to use for Python's longs
23883 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
23884 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
23885 # Check whether --enable-big-digits was given.
23886 if test "${enable_big_digits+set}" = set; then
23887 enableval
=$enable_big_digits; case $enable_big_digits in
23889 enable_big_digits
=30 ;;
23891 enable_big_digits
=15 ;;
23895 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
23896 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
23897 { (exit 1); exit 1; }; } ;;
23899 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
23900 echo "${ECHO_T}$enable_big_digits" >&6; }
23902 cat >>confdefs.h
<<_ACEOF
23903 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
23908 { echo "$as_me:$LINENO: result: no value specified" >&5
23909 echo "${ECHO_T}no value specified" >&6; }
23913 # check for wchar.h
23914 if test "${ac_cv_header_wchar_h+set}" = set; then
23915 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23916 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23917 if test "${ac_cv_header_wchar_h+set}" = set; then
23918 echo $ECHO_N "(cached) $ECHO_C" >&6
23920 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23921 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23923 # Is the header compilable?
23924 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
23925 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
23926 cat >conftest.
$ac_ext <<_ACEOF
23929 cat confdefs.h
>>conftest.
$ac_ext
23930 cat >>conftest.
$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 $ac_includes_default
23935 rm -f conftest.
$ac_objext
23936 if { (ac_try
="$ac_compile"
23937 case "(($ac_try" in
23938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942 (eval "$ac_compile") 2>conftest.er1
23944 grep -v '^ *+' conftest.er1 >conftest.err
23946 cat conftest.err >&5
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); } && {
23949 test -z "$ac_c_werror_flag" ||
23950 test ! -s conftest.err
23951 } && test -s conftest.$ac_objext; then
23952 ac_header_compiler=yes
23954 echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23957 ac_header_compiler=no
23960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23962 echo "${ECHO_T}$ac_header_compiler" >&6; }
23964 # Is the header present?
23965 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
23966 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
23967 cat >conftest.$ac_ext <<_ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h. */
23975 if { (ac_try="$ac_cpp conftest.$ac_ext"
23976 case "(($ac_try" in
23977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23978 *) ac_try_echo
=$ac_try;;
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23983 grep -v '^ *+' conftest.er1
>conftest.err
23985 cat conftest.err
>&5
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } >/dev
/null
&& {
23988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23989 test ! -s conftest.err
23991 ac_header_preproc
=yes
23993 echo "$as_me: failed program was:" >&5
23994 sed 's/^/| /' conftest.
$ac_ext >&5
23996 ac_header_preproc
=no
23999 rm -f conftest.err conftest.
$ac_ext
24000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24001 echo "${ECHO_T}$ac_header_preproc" >&6; }
24003 # So? What about this header?
24004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24006 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24007 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24008 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24009 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24010 ac_header_preproc
=yes
24013 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24014 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24015 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24016 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24017 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24018 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24019 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24020 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24021 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24022 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24023 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24024 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24026 ## -------------------------------------- ##
24027 ## Report this to http://bugs.python.org/ ##
24028 ## -------------------------------------- ##
24030 ) |
sed "s/^/$as_me: WARNING: /" >&2
24033 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24034 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24035 if test "${ac_cv_header_wchar_h+set}" = set; then
24036 echo $ECHO_N "(cached) $ECHO_C" >&6
24038 ac_cv_header_wchar_h
=$ac_header_preproc
24040 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24041 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24044 if test $ac_cv_header_wchar_h = yes; then
24047 cat >>confdefs.h
<<\_ACEOF
24048 #define HAVE_WCHAR_H 1
24060 # determine wchar_t size
24061 if test "$wchar_h" = yes
24063 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24064 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24065 if test "${ac_cv_type_wchar_t+set}" = set; then
24066 echo $ECHO_N "(cached) $ECHO_C" >&6
24068 cat >conftest.
$ac_ext <<_ACEOF
24071 cat confdefs.h
>>conftest.
$ac_ext
24072 cat >>conftest.
$ac_ext <<_ACEOF
24073 /* end confdefs.h. */
24076 typedef wchar_t ac__type_new_;
24080 if ((ac__type_new_ *) 0)
24082 if (sizeof (ac__type_new_))
24088 rm -f conftest.
$ac_objext
24089 if { (ac_try
="$ac_compile"
24090 case "(($ac_try" in
24091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095 (eval "$ac_compile") 2>conftest.er1
24097 grep -v '^ *+' conftest.er1 >conftest.err
24099 cat conftest.err >&5
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } && {
24102 test -z "$ac_c_werror_flag" ||
24103 test ! -s conftest.err
24104 } && test -s conftest.$ac_objext; then
24105 ac_cv_type_wchar_t=yes
24107 echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24110 ac_cv_type_wchar_t=no
24113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24115 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24116 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24118 # The cast to long int works around a bug in the HP C Compiler
24119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24120 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
24121 # This bug is HP SR number 8606223364.
24122 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24123 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24124 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24125 echo $ECHO_N "(cached) $ECHO_C" >&6
24127 if test "$cross_compiling" = yes; then
24128 # Depending upon the size, compute the lo and hi bounds.
24129 cat >conftest.$ac_ext <<_ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h. */
24137 typedef wchar_t ac__type_sizeof_;
24141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24148 rm -f conftest.$ac_objext
24149 if { (ac_try="$ac_compile"
24150 case "(($ac_try" in
24151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24152 *) ac_try_echo=$ac_try;;
24154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24155 (eval "$ac_compile") 2>conftest.er1
24157 grep -v '^
*+' conftest.er1 >conftest.err
24159 cat conftest.err >&5
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } && {
24162 test -z "$ac_c_werror_flag" ||
24163 test ! -s conftest.err
24164 } && test -s conftest.$ac_objext; then
24167 cat >conftest.$ac_ext <<_ACEOF
24170 cat confdefs.h >>conftest.$ac_ext
24171 cat >>conftest.$ac_ext <<_ACEOF
24172 /* end confdefs.h. */
24175 typedef wchar_t ac__type_sizeof_;
24179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24186 rm -f conftest.$ac_objext
24187 if { (ac_try="$ac_compile"
24188 case "(($ac_try" in
24189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24190 *) ac_try_echo=$ac_try;;
24192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24193 (eval "$ac_compile") 2>conftest.er1
24195 grep -v '^
*+' conftest.er1 >conftest.err
24197 cat conftest.err >&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); } && {
24200 test -z "$ac_c_werror_flag" ||
24201 test ! -s conftest.err
24202 } && test -s conftest.$ac_objext; then
24203 ac_hi=$ac_mid; break
24205 echo "$as_me: failed program was:" >&5
24206 sed 's
/^
/|
/' conftest.$ac_ext >&5
24208 ac_lo=`expr $ac_mid + 1`
24209 if test $ac_lo -le $ac_mid; then
24213 ac_mid=`expr 2 '*' $ac_mid + 1`
24216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24219 echo "$as_me: failed program was:" >&5
24220 sed 's
/^
/|
/' conftest.$ac_ext >&5
24222 cat >conftest.$ac_ext <<_ACEOF
24225 cat confdefs.h >>conftest.$ac_ext
24226 cat >>conftest.$ac_ext <<_ACEOF
24227 /* end confdefs.h. */
24230 typedef wchar_t ac__type_sizeof_;
24234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24241 rm -f conftest.$ac_objext
24242 if { (ac_try="$ac_compile"
24243 case "(($ac_try" in
24244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245 *) ac_try_echo=$ac_try;;
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248 (eval "$ac_compile") 2>conftest.er1
24250 grep -v '^
*+' conftest.er1 >conftest.err
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } && {
24255 test -z "$ac_c_werror_flag" ||
24256 test ! -s conftest.err
24257 } && test -s conftest.$ac_objext; then
24260 cat >conftest.$ac_ext <<_ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24268 typedef wchar_t ac__type_sizeof_;
24272 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24279 rm -f conftest.$ac_objext
24280 if { (ac_try="$ac_compile"
24281 case "(($ac_try" in
24282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283 *) ac_try_echo=$ac_try;;
24285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24286 (eval "$ac_compile") 2>conftest.er1
24288 grep -v '^
*+' conftest.er1 >conftest.err
24290 cat conftest.err >&5
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); } && {
24293 test -z "$ac_c_werror_flag" ||
24294 test ! -s conftest.err
24295 } && test -s conftest.$ac_objext; then
24296 ac_lo=$ac_mid; break
24298 echo "$as_me: failed program was:" >&5
24299 sed 's
/^
/|
/' conftest.$ac_ext >&5
24301 ac_hi=`expr '(' $ac_mid ')' - 1`
24302 if test $ac_mid -le $ac_hi; then
24306 ac_mid=`expr 2 '*' $ac_mid`
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24312 echo "$as_me: failed program was:" >&5
24313 sed 's
/^
/|
/' conftest.$ac_ext >&5
24318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24322 # Binary search between lo and hi bounds.
24323 while test "x$ac_lo" != "x$ac_hi"; do
24324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24333 typedef wchar_t ac__type_sizeof_;
24337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24344 rm -f conftest.$ac_objext
24345 if { (ac_try="$ac_compile"
24346 case "(($ac_try" in
24347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348 *) ac_try_echo=$ac_try;;
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351 (eval "$ac_compile") 2>conftest.er1
24353 grep -v '^
*+' conftest.er1 >conftest.err
24355 cat conftest.err >&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } && {
24358 test -z "$ac_c_werror_flag" ||
24359 test ! -s conftest.err
24360 } && test -s conftest.$ac_objext; then
24363 echo "$as_me: failed program was:" >&5
24364 sed 's
/^
/|
/' conftest.$ac_ext >&5
24366 ac_lo=`expr '(' $ac_mid ')' + 1`
24369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24373 '') if test "$ac_cv_type_wchar_t" = yes; then
24374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24375 See \`config.log' for more details.
" >&5
24376 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
24377 See \
`config.log' for more details." >&2;}
24378 { (exit 77); exit 77; }; }
24380 ac_cv_sizeof_wchar_t=0
24384 cat >conftest.$ac_ext <<_ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24392 typedef wchar_t ac__type_sizeof_;
24393 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24394 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24396 #include <stdlib.h>
24401 FILE *f = fopen ("conftest.val", "w");
24404 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24406 long int i = longval ();
24407 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24409 fprintf (f, "%ld\n", i);
24413 unsigned long int i = ulongval ();
24414 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24416 fprintf (f, "%lu\n", i);
24418 return ferror (f) || fclose (f) != 0;
24424 rm -f conftest$ac_exeext
24425 if { (ac_try="$ac_link"
24426 case "(($ac_try" in
24427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24428 *) ac_try_echo
=$ac_try;;
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_link") 2>&5
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24435 { (case "(($ac_try" in
24436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_try") 2>&5
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; }; then
24444 ac_cv_sizeof_wchar_t=`cat conftest.val
`
24446 echo "$as_me: program exited with status $ac_status" >&5
24447 echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24450 ( exit $ac_status )
24451 if test "$ac_cv_type_wchar_t" = yes; then
24452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24453 See \`config.log
' for more details." >&5
24454 echo "$as_me: error: cannot compute sizeof (wchar_t)
24455 See \`config.log' for more details.
" >&2;}
24456 { (exit 77); exit 77; }; }
24458 ac_cv_sizeof_wchar_t=0
24461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24465 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_wchar_t" >&5
24466 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24470 cat >>confdefs.h <<_ACEOF
24471 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24477 { echo "$as_me:$LINENO: checking
for UCS-4 tcl
" >&5
24478 echo $ECHO_N "checking
for UCS-4 tcl...
$ECHO_C" >&6; }
24480 cat >conftest.$ac_ext <<_ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h. */
24488 #if TCL_UTF_MAX != 6
24489 # error "NOT UCS4_TCL
"
24499 rm -f conftest.$ac_objext
24500 if { (ac_try="$ac_compile"
24501 case "(($ac_try" in
24502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24503 *) ac_try_echo=$ac_try;;
24505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24506 (eval "$ac_compile") 2>conftest.er1
24508 grep -v '^ *+' conftest.er1 >conftest.err
24510 cat conftest.err >&5
24511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24512 (exit $ac_status); } && {
24513 test -z "$ac_c_werror_flag" ||
24514 test ! -s conftest.err
24515 } && test -s conftest.$ac_objext; then
24518 cat >>confdefs.h <<\_ACEOF
24519 #define HAVE_UCS4_TCL 1
24525 echo "$as_me: failed program was
:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24532 { echo "$as_me:$LINENO: result
: $have_ucs4_tcl" >&5
24533 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
24535 # check whether wchar_t is signed or not
24536 if test "$wchar_h" = yes
24538 # check whether wchar_t is signed or not
24539 { echo "$as_me:$LINENO: checking whether wchar_t is signed
" >&5
24540 echo $ECHO_N "checking whether wchar_t is signed...
$ECHO_C" >&6; }
24541 if test "${ac_cv_wchar_t_signed+set}" = set; then
24542 echo $ECHO_N "(cached
) $ECHO_C" >&6
24545 if test "$cross_compiling" = yes; then
24546 ac_cv_wchar_t_signed=yes
24548 cat >conftest.$ac_ext <<_ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h. */
24558 /* Success: exit code 0 */
24559 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24563 rm -f conftest$ac_exeext
24564 if { (ac_try="$ac_link"
24565 case "(($ac_try" in
24566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567 *) ac_try_echo=$ac_try;;
24569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_link") 2>&5
24572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24574 { (case "(($ac_try" in
24575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24576 *) ac_try_echo=$ac_try;;
24578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24579 (eval "$ac_try") 2>&5
24581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24582 (exit $ac_status); }; }; then
24583 ac_cv_wchar_t_signed=yes
24585 echo "$as_me: program exited with status
$ac_status" >&5
24586 echo "$as_me: failed program was
:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 ( exit $ac_status )
24590 ac_cv_wchar_t_signed=no
24592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24598 { echo "$as_me:$LINENO: result
: $ac_cv_wchar_t_signed" >&5
24599 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
24602 { echo "$as_me:$LINENO: checking what
type to use
for unicode
" >&5
24603 echo $ECHO_N "checking what
type to use
for unicode...
$ECHO_C" >&6; }
24604 # Check whether --enable-unicode was given.
24605 if test "${enable_unicode+set}" = set; then
24606 enableval=$enable_unicode;
24612 if test $enable_unicode = yes
24614 # Without any arguments, Py_UNICODE defaults to two-byte mode
24615 case "$have_ucs4_tcl" in
24616 yes) enable_unicode="ucs4
"
24618 *) enable_unicode="ucs2
"
24625 case "$enable_unicode" in
24626 ucs2) unicode_size="2"
24627 cat >>confdefs.h <<\_ACEOF
24628 #define Py_UNICODE_SIZE 2
24632 ucs4) unicode_size="4"
24633 cat >>confdefs.h <<\_ACEOF
24634 #define Py_UNICODE_SIZE 4
24644 if test "$enable_unicode" = "no
"
24647 { echo "$as_me:$LINENO: result
: not used
" >&5
24648 echo "${ECHO_T}not used
" >&6; }
24650 UNICODE_OBJS="Objects
/unicodeobject.o Objects
/unicodectype.o
"
24652 cat >>confdefs.h <<\_ACEOF
24653 #define Py_USING_UNICODE 1
24657 # wchar_t is only usable if it maps to an unsigned type
24658 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
24659 -a "$ac_cv_wchar_t_signed" = "no
"
24661 PY_UNICODE_TYPE="wchar_t
"
24663 cat >>confdefs.h <<\_ACEOF
24664 #define HAVE_USABLE_WCHAR_T 1
24667 cat >>confdefs.h <<\_ACEOF
24668 #define PY_UNICODE_TYPE wchar_t
24671 elif test "$ac_cv_sizeof_short" = "$unicode_size"
24673 PY_UNICODE_TYPE="unsigned short
"
24674 cat >>confdefs.h <<\_ACEOF
24675 #define PY_UNICODE_TYPE unsigned short
24678 elif test "$ac_cv_sizeof_long" = "$unicode_size"
24680 PY_UNICODE_TYPE="unsigned long
"
24681 cat >>confdefs.h <<\_ACEOF
24682 #define PY_UNICODE_TYPE unsigned long
24686 PY_UNICODE_TYPE="no
type found
"
24688 { echo "$as_me:$LINENO: result
: $PY_UNICODE_TYPE" >&5
24689 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
24692 # check for endianness
24693 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian
" >&5
24694 echo $ECHO_N "checking whether byte ordering is bigendian...
$ECHO_C" >&6; }
24695 if test "${ac_cv_c_bigendian+set}" = set; then
24696 echo $ECHO_N "(cached
) $ECHO_C" >&6
24698 # See if sys/param.h defines the BYTE_ORDER macro.
24699 cat >conftest.$ac_ext <<_ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24705 #include <sys/types.h>
24706 #include <sys/param.h>
24711 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
24712 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
24713 bogus endian macros
24720 rm -f conftest.$ac_objext
24721 if { (ac_try="$ac_compile"
24722 case "(($ac_try" in
24723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724 *) ac_try_echo=$ac_try;;
24726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24727 (eval "$ac_compile") 2>conftest.er1
24729 grep -v '^ *+' conftest.er1 >conftest.err
24731 cat conftest.err >&5
24732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24733 (exit $ac_status); } && {
24734 test -z "$ac_c_werror_flag" ||
24735 test ! -s conftest.err
24736 } && test -s conftest.$ac_objext; then
24737 # It does; now see whether it defined to BIG_ENDIAN or not.
24738 cat >conftest.$ac_ext <<_ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 #include <sys/types.h>
24745 #include <sys/param.h>
24750 #if BYTE_ORDER != BIG_ENDIAN
24758 rm -f conftest.$ac_objext
24759 if { (ac_try="$ac_compile"
24760 case "(($ac_try" in
24761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762 *) ac_try_echo=$ac_try;;
24764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24765 (eval "$ac_compile") 2>conftest.er1
24767 grep -v '^ *+' conftest.er1 >conftest.err
24769 cat conftest.err >&5
24770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24771 (exit $ac_status); } && {
24772 test -z "$ac_c_werror_flag" ||
24773 test ! -s conftest.err
24774 } && test -s conftest.$ac_objext; then
24775 ac_cv_c_bigendian=yes
24777 echo "$as_me: failed program was
:" >&5
24778 sed 's/^/| /' conftest.$ac_ext >&5
24780 ac_cv_c_bigendian=no
24783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24785 echo "$as_me: failed program was
:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24788 # It does not; compile a test program.
24789 if test "$cross_compiling" = yes; then
24790 # try to guess the endianness by grepping values into an object file
24791 ac_cv_c_bigendian=unknown
24792 cat >conftest.$ac_ext <<_ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24798 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24799 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24800 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24801 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24802 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24803 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24807 _ascii (); _ebcdic ();
24812 rm -f conftest.$ac_objext
24813 if { (ac_try="$ac_compile"
24814 case "(($ac_try" in
24815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816 *) ac_try_echo=$ac_try;;
24818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24819 (eval "$ac_compile") 2>conftest.er1
24821 grep -v '^ *+' conftest.er1 >conftest.err
24823 cat conftest.err >&5
24824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24825 (exit $ac_status); } && {
24826 test -z "$ac_c_werror_flag" ||
24827 test ! -s conftest.err
24828 } && test -s conftest.$ac_objext; then
24829 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24830 ac_cv_c_bigendian=yes
24832 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24833 if test "$ac_cv_c_bigendian" = unknown; then
24834 ac_cv_c_bigendian=no
24836 # finding both strings is unlikely to happen, but who knows?
24837 ac_cv_c_bigendian=unknown
24841 echo "$as_me: failed program was
:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24849 cat >conftest.$ac_ext <<_ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h. */
24855 $ac_includes_default
24860 /* Are we little or big endian? From Harbison&Steele. */
24864 char c[sizeof (long int)];
24867 return u.c[sizeof (long int) - 1] == 1;
24873 rm -f conftest$ac_exeext
24874 if { (ac_try="$ac_link"
24875 case "(($ac_try" in
24876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877 *) ac_try_echo=$ac_try;;
24879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24880 (eval "$ac_link") 2>&5
24882 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24884 { (case "(($ac_try" in
24885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886 *) ac_try_echo=$ac_try;;
24888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24889 (eval "$ac_try") 2>&5
24891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24892 (exit $ac_status); }; }; then
24893 ac_cv_c_bigendian=no
24895 echo "$as_me: program exited with status
$ac_status" >&5
24896 echo "$as_me: failed program was
:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24899 ( exit $ac_status )
24900 ac_cv_c_bigendian=yes
24902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24910 { echo "$as_me:$LINENO: result
: $ac_cv_c_bigendian" >&5
24911 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24912 case $ac_cv_c_bigendian in
24915 cat >>confdefs.h <<\_ACEOF
24916 #define WORDS_BIGENDIAN 1
24922 { { echo "$as_me:$LINENO: error
: unknown endianness
24923 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&5
24924 echo "$as_me: error
: unknown endianness
24925 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&2;}
24926 { (exit 1); exit 1; }; } ;;
24930 # Check whether right shifting a negative integer extends the sign bit
24931 # or fills with zeros (like the Cray J90, according to Tim Peters).
24932 { echo "$as_me:$LINENO: checking whether right
shift extends the sign bit
" >&5
24933 echo $ECHO_N "checking whether right
shift extends the sign bit...
$ECHO_C" >&6; }
24934 if test "${ac_cv_rshift_extends_sign+set}" = set; then
24935 echo $ECHO_N "(cached
) $ECHO_C" >&6
24938 if test "$cross_compiling" = yes; then
24939 ac_cv_rshift_extends_sign=yes
24941 cat >conftest.$ac_ext <<_ACEOF
24944 cat confdefs.h >>conftest.$ac_ext
24945 cat >>conftest.$ac_ext <<_ACEOF
24946 /* end confdefs.h. */
24950 exit(((-1)>>3 == -1) ? 0 : 1);
24954 rm -f conftest$ac_exeext
24955 if { (ac_try="$ac_link"
24956 case "(($ac_try" in
24957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958 *) ac_try_echo=$ac_try;;
24960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24961 (eval "$ac_link") 2>&5
24963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24965 { (case "(($ac_try" in
24966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967 *) ac_try_echo=$ac_try;;
24969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24970 (eval "$ac_try") 2>&5
24972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24973 (exit $ac_status); }; }; then
24974 ac_cv_rshift_extends_sign=yes
24976 echo "$as_me: program exited with status
$ac_status" >&5
24977 echo "$as_me: failed program was
:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24980 ( exit $ac_status )
24981 ac_cv_rshift_extends_sign=no
24983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24989 { echo "$as_me:$LINENO: result
: $ac_cv_rshift_extends_sign" >&5
24990 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24991 if test "$ac_cv_rshift_extends_sign" = no
24994 cat >>confdefs.h <<\_ACEOF
24995 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25000 # check for getc_unlocked and related locking functions
25001 { echo "$as_me:$LINENO: checking
for getc_unlocked
() and friends
" >&5
25002 echo $ECHO_N "checking
for getc_unlocked
() and friends...
$ECHO_C" >&6; }
25003 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25004 echo $ECHO_N "(cached
) $ECHO_C" >&6
25007 cat >conftest.$ac_ext <<_ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h. */
25018 FILE *f = fopen("/dev
/null
", "r
");
25027 rm -f conftest.$ac_objext conftest$ac_exeext
25028 if { (ac_try="$ac_link"
25029 case "(($ac_try" in
25030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25031 *) ac_try_echo=$ac_try;;
25033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25034 (eval "$ac_link") 2>conftest.er1
25036 grep -v '^ *+' conftest.er1 >conftest.err
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25040 (exit $ac_status); } && {
25041 test -z "$ac_c_werror_flag" ||
25042 test ! -s conftest.err
25043 } && test -s conftest$ac_exeext &&
25044 $as_test_x conftest$ac_exeext; then
25045 ac_cv_have_getc_unlocked=yes
25047 echo "$as_me: failed program was
:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25050 ac_cv_have_getc_unlocked=no
25053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25054 conftest$ac_exeext conftest.$ac_ext
25057 { echo "$as_me:$LINENO: result
: $ac_cv_have_getc_unlocked" >&5
25058 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25059 if test "$ac_cv_have_getc_unlocked" = yes
25062 cat >>confdefs.h <<\_ACEOF
25063 #define HAVE_GETC_UNLOCKED 1
25068 # check where readline lives
25069 # save the value of LIBS so we don't actually link Python with readline
25070 LIBS_no_readline=$LIBS
25072 # On some systems we need to link readline to a termcap compatible
25073 # library. NOTE: Keep the precedence of listed libraries synchronised
25075 py_cv_lib_readline=no
25076 { echo "$as_me:$LINENO: checking how to link readline libs
" >&5
25077 echo $ECHO_N "checking how to link readline libs...
$ECHO_C" >&6; }
25078 for py_libtermcap in "" ncursesw ncurses curses termcap; do
25079 if test -z "$py_libtermcap"; then
25080 READLINE_LIBS="-lreadline"
25082 READLINE_LIBS="-lreadline -l$py_libtermcap"
25084 LIBS="$READLINE_LIBS $LIBS_no_readline"
25085 cat >conftest.$ac_ext <<_ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h. */
25092 /* Override any GCC internal prototype to avoid an error.
25093 Use char because int might match the return type of a GCC
25094 builtin and then its argument prototype would still apply. */
25102 return readline ();
25107 rm -f conftest.$ac_objext conftest$ac_exeext
25108 if { (ac_try="$ac_link"
25109 case "(($ac_try" in
25110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25114 (eval "$ac_link") 2>conftest.er1
25116 grep -v '^ *+' conftest.er1 >conftest.err
25118 cat conftest.err >&5
25119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25120 (exit $ac_status); } && {
25121 test -z "$ac_c_werror_flag" ||
25122 test ! -s conftest.err
25123 } && test -s conftest$ac_exeext &&
25124 $as_test_x conftest$ac_exeext; then
25125 py_cv_lib_readline=yes
25127 echo "$as_me: failed program was
:" >&5
25128 sed 's/^/| /' conftest.$ac_ext >&5
25133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25134 conftest$ac_exeext conftest.$ac_ext
25135 if test $py_cv_lib_readline = yes; then
25139 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25140 #AC_SUBST([READLINE_LIBS])
25141 if test $py_cv_lib_readline = no; then
25142 { echo "$as_me:$LINENO: result
: none
" >&5
25143 echo "${ECHO_T}none
" >&6; }
25145 { echo "$as_me:$LINENO: result
: $READLINE_LIBS" >&5
25146 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25148 cat >>confdefs.h <<\_ACEOF
25149 #define HAVE_LIBREADLINE 1
25154 # check for readline 2.1
25155 { echo "$as_me:$LINENO: checking
for rl_callback_handler_install
in -lreadline" >&5
25156 echo $ECHO_N "checking
for rl_callback_handler_install
in -lreadline...
$ECHO_C" >&6; }
25157 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25158 echo $ECHO_N "(cached
) $ECHO_C" >&6
25160 ac_check_lib_save_LIBS=$LIBS
25161 LIBS="-lreadline $READLINE_LIBS $LIBS"
25162 cat >conftest.$ac_ext <<_ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25169 /* Override any GCC internal prototype to avoid an error.
25170 Use char because int might match the return type of a GCC
25171 builtin and then its argument prototype would still apply. */
25175 char rl_callback_handler_install ();
25179 return rl_callback_handler_install ();
25184 rm -f conftest.$ac_objext conftest$ac_exeext
25185 if { (ac_try="$ac_link"
25186 case "(($ac_try" in
25187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188 *) ac_try_echo=$ac_try;;
25190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25191 (eval "$ac_link") 2>conftest.er1
25193 grep -v '^ *+' conftest.er1 >conftest.err
25195 cat conftest.err >&5
25196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25197 (exit $ac_status); } && {
25198 test -z "$ac_c_werror_flag" ||
25199 test ! -s conftest.err
25200 } && test -s conftest$ac_exeext &&
25201 $as_test_x conftest$ac_exeext; then
25202 ac_cv_lib_readline_rl_callback_handler_install=yes
25204 echo "$as_me: failed program was
:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25207 ac_cv_lib_readline_rl_callback_handler_install=no
25210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25211 conftest$ac_exeext conftest.$ac_ext
25212 LIBS=$ac_check_lib_save_LIBS
25214 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25215 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25216 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25218 cat >>confdefs.h <<\_ACEOF
25219 #define HAVE_RL_CALLBACK 1
25225 # check for readline 2.2
25226 cat >conftest.$ac_ext <<_ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25232 #include <readline/readline.h>
25234 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25235 case "(($ac_try" in
25236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237 *) ac_try_echo=$ac_try;;
25239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25240 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25242 grep -v '^ *+' conftest.er1 >conftest.err
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25246 (exit $ac_status); } >/dev/null && {
25247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25248 test ! -s conftest.err
25252 echo "$as_me: failed program was
:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25258 rm -f conftest.err conftest.$ac_ext
25259 if test $have_readline = yes
25261 cat >conftest.$ac_ext <<_ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h. */
25267 #include <readline/readline.h>
25270 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25271 $EGREP "extern int rl_completion_append_character
;" >/dev/null 2>&1; then
25273 cat >>confdefs.h <<\_ACEOF
25274 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25282 # check for readline 4.0
25283 { echo "$as_me:$LINENO: checking
for rl_pre_input_hook
in -lreadline" >&5
25284 echo $ECHO_N "checking
for rl_pre_input_hook
in -lreadline...
$ECHO_C" >&6; }
25285 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
25286 echo $ECHO_N "(cached
) $ECHO_C" >&6
25288 ac_check_lib_save_LIBS=$LIBS
25289 LIBS="-lreadline $READLINE_LIBS $LIBS"
25290 cat >conftest.$ac_ext <<_ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h. */
25297 /* Override any GCC internal prototype to avoid an error.
25298 Use char because int might match the return type of a GCC
25299 builtin and then its argument prototype would still apply. */
25303 char rl_pre_input_hook ();
25307 return rl_pre_input_hook ();
25312 rm -f conftest.$ac_objext conftest$ac_exeext
25313 if { (ac_try="$ac_link"
25314 case "(($ac_try" in
25315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25316 *) ac_try_echo=$ac_try;;
25318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25319 (eval "$ac_link") 2>conftest.er1
25321 grep -v '^ *+' conftest.er1 >conftest.err
25323 cat conftest.err >&5
25324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25325 (exit $ac_status); } && {
25326 test -z "$ac_c_werror_flag" ||
25327 test ! -s conftest.err
25328 } && test -s conftest$ac_exeext &&
25329 $as_test_x conftest$ac_exeext; then
25330 ac_cv_lib_readline_rl_pre_input_hook=yes
25332 echo "$as_me: failed program was
:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25335 ac_cv_lib_readline_rl_pre_input_hook=no
25338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25339 conftest$ac_exeext conftest.$ac_ext
25340 LIBS=$ac_check_lib_save_LIBS
25342 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25343 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25344 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
25346 cat >>confdefs.h <<\_ACEOF
25347 #define HAVE_RL_PRE_INPUT_HOOK 1
25354 { echo "$as_me:$LINENO: checking
for rl_completion_display_matches_hook
in -lreadline" >&5
25355 echo $ECHO_N "checking
for rl_completion_display_matches_hook
in -lreadline...
$ECHO_C" >&6; }
25356 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
25357 echo $ECHO_N "(cached
) $ECHO_C" >&6
25359 ac_check_lib_save_LIBS=$LIBS
25360 LIBS="-lreadline $READLINE_LIBS $LIBS"
25361 cat >conftest.$ac_ext <<_ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h. */
25368 /* Override any GCC internal prototype to avoid an error.
25369 Use char because int might match the return type of a GCC
25370 builtin and then its argument prototype would still apply. */
25374 char rl_completion_display_matches_hook ();
25378 return rl_completion_display_matches_hook ();
25383 rm -f conftest.$ac_objext conftest$ac_exeext
25384 if { (ac_try="$ac_link"
25385 case "(($ac_try" in
25386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25387 *) ac_try_echo=$ac_try;;
25389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25390 (eval "$ac_link") 2>conftest.er1
25392 grep -v '^ *+' conftest.er1 >conftest.err
25394 cat conftest.err >&5
25395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25396 (exit $ac_status); } && {
25397 test -z "$ac_c_werror_flag" ||
25398 test ! -s conftest.err
25399 } && test -s conftest$ac_exeext &&
25400 $as_test_x conftest$ac_exeext; then
25401 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25403 echo "$as_me: failed program was
:" >&5
25404 sed 's/^/| /' conftest.$ac_ext >&5
25406 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25410 conftest$ac_exeext conftest.$ac_ext
25411 LIBS=$ac_check_lib_save_LIBS
25413 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
25414 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
25415 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
25417 cat >>confdefs.h <<\_ACEOF
25418 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
25424 # check for readline 4.2
25425 { echo "$as_me:$LINENO: checking
for rl_completion_matches
in -lreadline" >&5
25426 echo $ECHO_N "checking
for rl_completion_matches
in -lreadline...
$ECHO_C" >&6; }
25427 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
25428 echo $ECHO_N "(cached
) $ECHO_C" >&6
25430 ac_check_lib_save_LIBS=$LIBS
25431 LIBS="-lreadline $READLINE_LIBS $LIBS"
25432 cat >conftest.$ac_ext <<_ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25439 /* Override any GCC internal prototype to avoid an error.
25440 Use char because int might match the return type of a GCC
25441 builtin and then its argument prototype would still apply. */
25445 char rl_completion_matches ();
25449 return rl_completion_matches ();
25454 rm -f conftest.$ac_objext conftest$ac_exeext
25455 if { (ac_try="$ac_link"
25456 case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_link") 2>conftest.er1
25463 grep -v '^ *+' conftest.er1 >conftest.err
25465 cat conftest.err >&5
25466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25467 (exit $ac_status); } && {
25468 test -z "$ac_c_werror_flag" ||
25469 test ! -s conftest.err
25470 } && test -s conftest$ac_exeext &&
25471 $as_test_x conftest$ac_exeext; then
25472 ac_cv_lib_readline_rl_completion_matches=yes
25474 echo "$as_me: failed program was
:" >&5
25475 sed 's/^/| /' conftest.$ac_ext >&5
25477 ac_cv_lib_readline_rl_completion_matches=no
25480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25481 conftest$ac_exeext conftest.$ac_ext
25482 LIBS=$ac_check_lib_save_LIBS
25484 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_matches" >&5
25485 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
25486 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
25488 cat >>confdefs.h <<\_ACEOF
25489 #define HAVE_RL_COMPLETION_MATCHES 1
25495 # also in readline 4.2
25496 cat >conftest.$ac_ext <<_ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h. */
25502 #include <readline/readline.h>
25504 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25505 case "(($ac_try" in
25506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25507 *) ac_try_echo=$ac_try;;
25509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25510 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25512 grep -v '^ *+' conftest.er1 >conftest.err
25514 cat conftest.err >&5
25515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25516 (exit $ac_status); } >/dev/null && {
25517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25518 test ! -s conftest.err
25522 echo "$as_me: failed program was
:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25528 rm -f conftest.err conftest.$ac_ext
25529 if test $have_readline = yes
25531 cat >conftest.$ac_ext <<_ACEOF
25534 cat confdefs.h >>conftest.$ac_ext
25535 cat >>conftest.$ac_ext <<_ACEOF
25536 /* end confdefs.h. */
25537 #include <readline/readline.h>
25540 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25541 $EGREP "extern int rl_catch_signals
;" >/dev/null 2>&1; then
25543 cat >>confdefs.h <<\_ACEOF
25544 #define HAVE_RL_CATCH_SIGNAL 1
25552 # End of readline checks: restore LIBS
25553 LIBS=$LIBS_no_readline
25555 { echo "$as_me:$LINENO: checking
for broken nice
()" >&5
25556 echo $ECHO_N "checking
for broken nice
()...
$ECHO_C" >&6; }
25557 if test "${ac_cv_broken_nice+set}" = set; then
25558 echo $ECHO_N "(cached
) $ECHO_C" >&6
25561 if test "$cross_compiling" = yes; then
25562 ac_cv_broken_nice=no
25564 cat >conftest.$ac_ext <<_ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h. */
25573 int val1 = nice(1);
25574 if (val1 != -1 && val1 == nice(2))
25580 rm -f conftest$ac_exeext
25581 if { (ac_try="$ac_link"
25582 case "(($ac_try" in
25583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584 *) ac_try_echo=$ac_try;;
25586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25587 (eval "$ac_link") 2>&5
25589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25591 { (case "(($ac_try" in
25592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25593 *) ac_try_echo=$ac_try;;
25595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25596 (eval "$ac_try") 2>&5
25598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 ac_cv_broken_nice=yes
25602 echo "$as_me: program exited with status
$ac_status" >&5
25603 echo "$as_me: failed program was
:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25606 ( exit $ac_status )
25607 ac_cv_broken_nice=no
25609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25615 { echo "$as_me:$LINENO: result
: $ac_cv_broken_nice" >&5
25616 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
25617 if test "$ac_cv_broken_nice" = yes
25620 cat >>confdefs.h <<\_ACEOF
25621 #define HAVE_BROKEN_NICE 1
25626 { echo "$as_me:$LINENO: checking
for broken poll
()" >&5
25627 echo $ECHO_N "checking
for broken poll
()...
$ECHO_C" >&6; }
25628 if test "${ac_cv_broken_poll+set}" = set; then
25629 echo $ECHO_N "(cached
) $ECHO_C" >&6
25631 if test "$cross_compiling" = yes; then
25632 ac_cv_broken_poll=no
25634 cat >conftest.$ac_ext <<_ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h. */
25645 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25650 poll_test = poll(&poll_struct, 1, 0);
25653 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25660 rm -f conftest$ac_exeext
25661 if { (ac_try="$ac_link"
25662 case "(($ac_try" in
25663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664 *) ac_try_echo=$ac_try;;
25666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25667 (eval "$ac_link") 2>&5
25669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25671 { (case "(($ac_try" in
25672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673 *) ac_try_echo=$ac_try;;
25675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25676 (eval "$ac_try") 2>&5
25678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25679 (exit $ac_status); }; }; then
25680 ac_cv_broken_poll=yes
25682 echo "$as_me: program exited with status
$ac_status" >&5
25683 echo "$as_me: failed program was
:" >&5
25684 sed 's/^/| /' conftest.$ac_ext >&5
25686 ( exit $ac_status )
25687 ac_cv_broken_poll=no
25689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25695 { echo "$as_me:$LINENO: result
: $ac_cv_broken_poll" >&5
25696 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
25697 if test "$ac_cv_broken_poll" = yes
25700 cat >>confdefs.h <<\_ACEOF
25701 #define HAVE_BROKEN_POLL 1
25706 # Before we can test tzset, we need to check if struct tm has a tm_zone
25707 # (which is not required by ISO C or UNIX spec) and/or if we support
25709 { echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
25710 echo $ECHO_N "checking
for struct tm.tm_zone...
$ECHO_C" >&6; }
25711 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25712 echo $ECHO_N "(cached
) $ECHO_C" >&6
25714 cat >conftest.$ac_ext <<_ACEOF
25717 cat confdefs.h >>conftest.$ac_ext
25718 cat >>conftest.$ac_ext <<_ACEOF
25719 /* end confdefs.h. */
25720 #include <sys/types.h>
25721 #include <$ac_cv_struct_tm>
25727 static struct tm ac_aggr;
25728 if (ac_aggr.tm_zone)
25734 rm -f conftest.$ac_objext
25735 if { (ac_try="$ac_compile"
25736 case "(($ac_try" in
25737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25738 *) ac_try_echo=$ac_try;;
25740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25741 (eval "$ac_compile") 2>conftest.er1
25743 grep -v '^ *+' conftest.er1 >conftest.err
25745 cat conftest.err >&5
25746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25747 (exit $ac_status); } && {
25748 test -z "$ac_c_werror_flag" ||
25749 test ! -s conftest.err
25750 } && test -s conftest.$ac_objext; then
25751 ac_cv_member_struct_tm_tm_zone=yes
25753 echo "$as_me: failed program was
:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25756 cat >conftest.$ac_ext <<_ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h. */
25762 #include <sys/types.h>
25763 #include <$ac_cv_struct_tm>
25769 static struct tm ac_aggr;
25770 if (sizeof ac_aggr.tm_zone)
25776 rm -f conftest.$ac_objext
25777 if { (ac_try="$ac_compile"
25778 case "(($ac_try" in
25779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780 *) ac_try_echo=$ac_try;;
25782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25783 (eval "$ac_compile") 2>conftest.er1
25785 grep -v '^ *+' conftest.er1 >conftest.err
25787 cat conftest.err >&5
25788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25789 (exit $ac_status); } && {
25790 test -z "$ac_c_werror_flag" ||
25791 test ! -s conftest.err
25792 } && test -s conftest.$ac_objext; then
25793 ac_cv_member_struct_tm_tm_zone=yes
25795 echo "$as_me: failed program was
:" >&5
25796 sed 's/^/| /' conftest.$ac_ext >&5
25798 ac_cv_member_struct_tm_tm_zone=no
25801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25806 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
25807 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25808 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25810 cat >>confdefs.h <<_ACEOF
25811 #define HAVE_STRUCT_TM_TM_ZONE 1
25817 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25819 cat >>confdefs.h <<\_ACEOF
25820 #define HAVE_TM_ZONE 1
25824 { echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
25825 echo $ECHO_N "checking whether tzname is declared...
$ECHO_C" >&6; }
25826 if test "${ac_cv_have_decl_tzname+set}" = set; then
25827 echo $ECHO_N "(cached
) $ECHO_C" >&6
25829 cat >conftest.$ac_ext <<_ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h. */
25848 rm -f conftest.$ac_objext
25849 if { (ac_try="$ac_compile"
25850 case "(($ac_try" in
25851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25852 *) ac_try_echo=$ac_try;;
25854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25855 (eval "$ac_compile") 2>conftest.er1
25857 grep -v '^ *+' conftest.er1 >conftest.err
25859 cat conftest.err >&5
25860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25861 (exit $ac_status); } && {
25862 test -z "$ac_c_werror_flag" ||
25863 test ! -s conftest.err
25864 } && test -s conftest.$ac_objext; then
25865 ac_cv_have_decl_tzname=yes
25867 echo "$as_me: failed program was
:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_cv_have_decl_tzname=no
25873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25875 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
25876 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25877 if test $ac_cv_have_decl_tzname = yes; then
25879 cat >>confdefs.h <<_ACEOF
25880 #define HAVE_DECL_TZNAME 1
25885 cat >>confdefs.h <<_ACEOF
25886 #define HAVE_DECL_TZNAME 0
25893 { echo "$as_me:$LINENO: checking
for tzname
" >&5
25894 echo $ECHO_N "checking
for tzname...
$ECHO_C" >&6; }
25895 if test "${ac_cv_var_tzname+set}" = set; then
25896 echo $ECHO_N "(cached
) $ECHO_C" >&6
25898 cat >conftest.$ac_ext <<_ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h. */
25905 #if !HAVE_DECL_TZNAME
25906 extern char *tzname[];
25912 return tzname[0][0];
25917 rm -f conftest.$ac_objext conftest$ac_exeext
25918 if { (ac_try="$ac_link"
25919 case "(($ac_try" in
25920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921 *) ac_try_echo=$ac_try;;
25923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25924 (eval "$ac_link") 2>conftest.er1
25926 grep -v '^ *+' conftest.er1 >conftest.err
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25930 (exit $ac_status); } && {
25931 test -z "$ac_c_werror_flag" ||
25932 test ! -s conftest.err
25933 } && test -s conftest$ac_exeext &&
25934 $as_test_x conftest$ac_exeext; then
25935 ac_cv_var_tzname=yes
25937 echo "$as_me: failed program was
:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25940 ac_cv_var_tzname=no
25943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25944 conftest$ac_exeext conftest.$ac_ext
25946 { echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
25947 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25948 if test $ac_cv_var_tzname = yes; then
25950 cat >>confdefs.h <<\_ACEOF
25951 #define HAVE_TZNAME 1
25958 # check tzset(3) exists and works like we expect it to
25959 { echo "$as_me:$LINENO: checking
for working tzset
()" >&5
25960 echo $ECHO_N "checking
for working tzset
()...
$ECHO_C" >&6; }
25961 if test "${ac_cv_working_tzset+set}" = set; then
25962 echo $ECHO_N "(cached
) $ECHO_C" >&6
25965 if test "$cross_compiling" = yes; then
25966 ac_cv_working_tzset=no
25968 cat >conftest.$ac_ext <<_ACEOF
25971 cat confdefs.h >>conftest.$ac_ext
25972 cat >>conftest.$ac_ext <<_ACEOF
25973 /* end confdefs.h. */
25975 #include <stdlib.h>
25977 #include <string.h>
25980 extern char *tzname[];
25985 /* Note that we need to ensure that not only does tzset(3)
25986 do 'something' with localtime, but it works as documented
25987 in the library reference and as expected by the test suite.
25988 This includes making sure that tzname is set properly if
25989 tm->tm_zone does not exist since it is the alternative way
25990 of getting timezone info.
25992 Red Hat 6.2 doesn't understand the southern hemisphere
25993 after New Year's Day.
25996 time_t groundhogday = 1044144000; /* GMT-based */
25997 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25999 putenv("TZ
=UTC
+0");
26001 if (localtime(&groundhogday)->tm_hour != 0)
26004 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26005 if (strcmp(tzname[0], "UTC
") ||
26006 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26010 putenv("TZ
=EST
+5EDT
,M4.1
.0,M10.5
.0");
26012 if (localtime(&groundhogday)->tm_hour != 19)
26015 if (strcmp(tzname[0], "EST
") || strcmp(tzname[1], "EDT
"))
26019 putenv("TZ
=AEST-10AEDT-11
,M10.5
.0,M3.5
.0");
26021 if (localtime(&groundhogday)->tm_hour != 11)
26024 if (strcmp(tzname[0], "AEST
") || strcmp(tzname[1], "AEDT
"))
26028 #if HAVE_STRUCT_TM_TM_ZONE
26029 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT
"))
26031 if (strcmp(localtime(&midyear)->tm_zone, "AEST
"))
26039 rm -f conftest$ac_exeext
26040 if { (ac_try="$ac_link"
26041 case "(($ac_try" in
26042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26043 *) ac_try_echo=$ac_try;;
26045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26046 (eval "$ac_link") 2>&5
26048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26050 { (case "(($ac_try" in
26051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26052 *) ac_try_echo=$ac_try;;
26054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26055 (eval "$ac_try") 2>&5
26057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26058 (exit $ac_status); }; }; then
26059 ac_cv_working_tzset=yes
26061 echo "$as_me: program exited with status
$ac_status" >&5
26062 echo "$as_me: failed program was
:" >&5
26063 sed 's/^/| /' conftest.$ac_ext >&5
26065 ( exit $ac_status )
26066 ac_cv_working_tzset=no
26068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26074 { echo "$as_me:$LINENO: result
: $ac_cv_working_tzset" >&5
26075 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26076 if test "$ac_cv_working_tzset" = yes
26079 cat >>confdefs.h <<\_ACEOF
26080 #define HAVE_WORKING_TZSET 1
26085 # Look for subsecond timestamps in struct stat
26086 { echo "$as_me:$LINENO: checking
for tv_nsec
in struct stat
" >&5
26087 echo $ECHO_N "checking
for tv_nsec
in struct stat...
$ECHO_C" >&6; }
26088 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26089 echo $ECHO_N "(cached
) $ECHO_C" >&6
26091 cat >conftest.$ac_ext <<_ACEOF
26094 cat confdefs.h >>conftest.$ac_ext
26095 cat >>conftest.$ac_ext <<_ACEOF
26096 /* end confdefs.h. */
26097 #include <sys/stat.h>
26103 st.st_mtim.tv_nsec = 1;
26109 rm -f conftest.$ac_objext
26110 if { (ac_try="$ac_compile"
26111 case "(($ac_try" in
26112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26113 *) ac_try_echo=$ac_try;;
26115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26116 (eval "$ac_compile") 2>conftest.er1
26118 grep -v '^ *+' conftest.er1 >conftest.err
26120 cat conftest.err >&5
26121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26122 (exit $ac_status); } && {
26123 test -z "$ac_c_werror_flag" ||
26124 test ! -s conftest.err
26125 } && test -s conftest.$ac_objext; then
26126 ac_cv_stat_tv_nsec=yes
26128 echo "$as_me: failed program was
:" >&5
26129 sed 's/^/| /' conftest.$ac_ext >&5
26131 ac_cv_stat_tv_nsec=no
26134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26137 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec" >&5
26138 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26139 if test "$ac_cv_stat_tv_nsec" = yes
26142 cat >>confdefs.h <<\_ACEOF
26143 #define HAVE_STAT_TV_NSEC 1
26148 # Look for BSD style subsecond timestamps in struct stat
26149 { echo "$as_me:$LINENO: checking
for tv_nsec2
in struct stat
" >&5
26150 echo $ECHO_N "checking
for tv_nsec2
in struct stat...
$ECHO_C" >&6; }
26151 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26152 echo $ECHO_N "(cached
) $ECHO_C" >&6
26154 cat >conftest.$ac_ext <<_ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h. */
26160 #include <sys/stat.h>
26166 st.st_mtimespec.tv_nsec = 1;
26172 rm -f conftest.$ac_objext
26173 if { (ac_try="$ac_compile"
26174 case "(($ac_try" in
26175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26176 *) ac_try_echo=$ac_try;;
26178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26179 (eval "$ac_compile") 2>conftest.er1
26181 grep -v '^ *+' conftest.er1 >conftest.err
26183 cat conftest.err >&5
26184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26185 (exit $ac_status); } && {
26186 test -z "$ac_c_werror_flag" ||
26187 test ! -s conftest.err
26188 } && test -s conftest.$ac_objext; then
26189 ac_cv_stat_tv_nsec2=yes
26191 echo "$as_me: failed program was
:" >&5
26192 sed 's/^/| /' conftest.$ac_ext >&5
26194 ac_cv_stat_tv_nsec2=no
26197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec2" >&5
26201 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26202 if test "$ac_cv_stat_tv_nsec2" = yes
26205 cat >>confdefs.h <<\_ACEOF
26206 #define HAVE_STAT_TV_NSEC2 1
26211 # On HP/UX 11.0, mvwdelch is a block with a return statement
26212 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression
" >&5
26213 echo $ECHO_N "checking whether mvwdelch is an expression...
$ECHO_C" >&6; }
26214 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26215 echo $ECHO_N "(cached
) $ECHO_C" >&6
26217 cat >conftest.$ac_ext <<_ACEOF
26220 cat confdefs.h >>conftest.$ac_ext
26221 cat >>conftest.$ac_ext <<_ACEOF
26222 /* end confdefs.h. */
26223 #include <curses.h>
26229 rtn = mvwdelch(0,0,0);
26235 rm -f conftest.$ac_objext
26236 if { (ac_try="$ac_compile"
26237 case "(($ac_try" in
26238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239 *) ac_try_echo=$ac_try;;
26241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26242 (eval "$ac_compile") 2>conftest.er1
26244 grep -v '^ *+' conftest.er1 >conftest.err
26246 cat conftest.err >&5
26247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26248 (exit $ac_status); } && {
26249 test -z "$ac_c_werror_flag" ||
26250 test ! -s conftest.err
26251 } && test -s conftest.$ac_objext; then
26252 ac_cv_mvwdelch_is_expression=yes
26254 echo "$as_me: failed program was
:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26257 ac_cv_mvwdelch_is_expression=no
26260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26263 { echo "$as_me:$LINENO: result
: $ac_cv_mvwdelch_is_expression" >&5
26264 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
26266 if test "$ac_cv_mvwdelch_is_expression" = yes
26269 cat >>confdefs.h <<\_ACEOF
26270 #define MVWDELCH_IS_EXPRESSION 1
26275 { echo "$as_me:$LINENO: checking whether WINDOW has _flags
" >&5
26276 echo $ECHO_N "checking whether WINDOW has _flags...
$ECHO_C" >&6; }
26277 if test "${ac_cv_window_has_flags+set}" = set; then
26278 echo $ECHO_N "(cached
) $ECHO_C" >&6
26280 cat >conftest.$ac_ext <<_ACEOF
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h. */
26286 #include <curses.h>
26298 rm -f conftest.$ac_objext
26299 if { (ac_try="$ac_compile"
26300 case "(($ac_try" in
26301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26302 *) ac_try_echo=$ac_try;;
26304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26305 (eval "$ac_compile") 2>conftest.er1
26307 grep -v '^ *+' conftest.er1 >conftest.err
26309 cat conftest.err >&5
26310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26311 (exit $ac_status); } && {
26312 test -z "$ac_c_werror_flag" ||
26313 test ! -s conftest.err
26314 } && test -s conftest.$ac_objext; then
26315 ac_cv_window_has_flags=yes
26317 echo "$as_me: failed program was
:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26320 ac_cv_window_has_flags=no
26323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26326 { echo "$as_me:$LINENO: result
: $ac_cv_window_has_flags" >&5
26327 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
26330 if test "$ac_cv_window_has_flags" = yes
26333 cat >>confdefs.h <<\_ACEOF
26334 #define WINDOW_HAS_FLAGS 1
26339 { echo "$as_me:$LINENO: checking
for is_term_resized
" >&5
26340 echo $ECHO_N "checking
for is_term_resized...
$ECHO_C" >&6; }
26341 cat >conftest.$ac_ext <<_ACEOF
26344 cat confdefs.h >>conftest.$ac_ext
26345 cat >>conftest.$ac_ext <<_ACEOF
26346 /* end confdefs.h. */
26347 #include <curses.h>
26351 void *x=is_term_resized
26356 rm -f conftest.$ac_objext
26357 if { (ac_try="$ac_compile"
26358 case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26363 (eval "$ac_compile") 2>conftest.er1
26365 grep -v '^ *+' conftest.er1 >conftest.err
26367 cat conftest.err >&5
26368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26369 (exit $ac_status); } && {
26370 test -z "$ac_c_werror_flag" ||
26371 test ! -s conftest.err
26372 } && test -s conftest.$ac_objext; then
26374 cat >>confdefs.h <<\_ACEOF
26375 #define HAVE_CURSES_IS_TERM_RESIZED 1
26378 { echo "$as_me:$LINENO: result
: yes" >&5
26379 echo "${ECHO_T}yes" >&6; }
26381 echo "$as_me: failed program was
:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26384 { echo "$as_me:$LINENO: result
: no
" >&5
26385 echo "${ECHO_T}no
" >&6; }
26389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26391 { echo "$as_me:$LINENO: checking
for resize_term
" >&5
26392 echo $ECHO_N "checking
for resize_term...
$ECHO_C" >&6; }
26393 cat >conftest.$ac_ext <<_ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h. */
26399 #include <curses.h>
26403 void *x=resize_term
26408 rm -f conftest.$ac_objext
26409 if { (ac_try="$ac_compile"
26410 case "(($ac_try" in
26411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412 *) ac_try_echo=$ac_try;;
26414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26415 (eval "$ac_compile") 2>conftest.er1
26417 grep -v '^ *+' conftest.er1 >conftest.err
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
26424 } && test -s conftest.$ac_objext; then
26426 cat >>confdefs.h <<\_ACEOF
26427 #define HAVE_CURSES_RESIZE_TERM 1
26430 { echo "$as_me:$LINENO: result
: yes" >&5
26431 echo "${ECHO_T}yes" >&6; }
26433 echo "$as_me: failed program was
:" >&5
26434 sed 's/^/| /' conftest.$ac_ext >&5
26436 { echo "$as_me:$LINENO: result
: no
" >&5
26437 echo "${ECHO_T}no
" >&6; }
26441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26443 { echo "$as_me:$LINENO: checking
for resizeterm
" >&5
26444 echo $ECHO_N "checking
for resizeterm...
$ECHO_C" >&6; }
26445 cat >conftest.$ac_ext <<_ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h. */
26451 #include <curses.h>
26460 rm -f conftest.$ac_objext
26461 if { (ac_try="$ac_compile"
26462 case "(($ac_try" in
26463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26464 *) ac_try_echo=$ac_try;;
26466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26467 (eval "$ac_compile") 2>conftest.er1
26469 grep -v '^ *+' conftest.er1 >conftest.err
26471 cat conftest.err >&5
26472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26473 (exit $ac_status); } && {
26474 test -z "$ac_c_werror_flag" ||
26475 test ! -s conftest.err
26476 } && test -s conftest.$ac_objext; then
26478 cat >>confdefs.h <<\_ACEOF
26479 #define HAVE_CURSES_RESIZETERM 1
26482 { echo "$as_me:$LINENO: result
: yes" >&5
26483 echo "${ECHO_T}yes" >&6; }
26485 echo "$as_me: failed program was
:" >&5
26486 sed 's/^/| /' conftest.$ac_ext >&5
26488 { echo "$as_me:$LINENO: result
: no
" >&5
26489 echo "${ECHO_T}no
" >&6; }
26493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26495 { echo "$as_me:$LINENO: checking
for /dev
/ptmx
" >&5
26496 echo $ECHO_N "checking
for /dev
/ptmx...
$ECHO_C" >&6; }
26498 if test -r /dev/ptmx
26500 { echo "$as_me:$LINENO: result
: yes" >&5
26501 echo "${ECHO_T}yes" >&6; }
26503 cat >>confdefs.h <<\_ACEOF
26504 #define HAVE_DEV_PTMX 1
26508 { echo "$as_me:$LINENO: result
: no
" >&5
26509 echo "${ECHO_T}no
" >&6; }
26512 { echo "$as_me:$LINENO: checking
for /dev
/ptc
" >&5
26513 echo $ECHO_N "checking
for /dev
/ptc...
$ECHO_C" >&6; }
26515 if test -r /dev/ptc
26517 { echo "$as_me:$LINENO: result
: yes" >&5
26518 echo "${ECHO_T}yes" >&6; }
26520 cat >>confdefs.h <<\_ACEOF
26521 #define HAVE_DEV_PTC 1
26525 { echo "$as_me:$LINENO: result
: no
" >&5
26526 echo "${ECHO_T}no
" >&6; }
26529 { echo "$as_me:$LINENO: checking
for %zd
printf() format support
" >&5
26530 echo $ECHO_N "checking
for %zd
printf() format support...
$ECHO_C" >&6; }
26531 if test "${ac_cv_have_size_t_format+set}" = set; then
26532 echo $ECHO_N "(cached
) $ECHO_C" >&6
26534 if test "$cross_compiling" = yes; then
26535 ac_cv_have_size_t_format=no
26537 cat >conftest.$ac_ext <<_ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26545 #include <stddef.h>
26546 #include <string.h>
26548 #ifdef HAVE_SYS_TYPES_H
26549 #include <sys/types.h>
26552 #ifdef HAVE_SSIZE_T
26553 typedef ssize_t Py_ssize_t;
26554 #elif SIZEOF_VOID_P == SIZEOF_LONG
26555 typedef long Py_ssize_t;
26557 typedef int Py_ssize_t;
26564 if(sprintf(buffer, "%zd
", (size_t)123) < 0)
26567 if (strcmp(buffer, "123"))
26570 if (sprintf(buffer, "%zd
", (Py_ssize_t)-123) < 0)
26573 if (strcmp(buffer, "-123"))
26580 rm -f conftest$ac_exeext
26581 if { (ac_try="$ac_link"
26582 case "(($ac_try" in
26583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584 *) ac_try_echo=$ac_try;;
26586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26587 (eval "$ac_link") 2>&5
26589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26591 { (case "(($ac_try" in
26592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26593 *) ac_try_echo=$ac_try;;
26595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26596 (eval "$ac_try") 2>&5
26598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26599 (exit $ac_status); }; }; then
26600 ac_cv_have_size_t_format=yes
26602 echo "$as_me: program exited with status
$ac_status" >&5
26603 echo "$as_me: failed program was
:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26606 ( exit $ac_status )
26607 ac_cv_have_size_t_format=no
26609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26616 { echo "$as_me:$LINENO: result
: $ac_cv_have_size_t_format" >&5
26617 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
26618 if test $ac_cv_have_size_t_format = yes
26621 cat >>confdefs.h <<\_ACEOF
26622 #define PY_FORMAT_SIZE_T "z
"
26627 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
26628 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
26629 if test "${ac_cv_type_socklen_t+set}" = set; then
26630 echo $ECHO_N "(cached
) $ECHO_C" >&6
26632 cat >conftest.$ac_ext <<_ACEOF
26635 cat confdefs.h >>conftest.$ac_ext
26636 cat >>conftest.$ac_ext <<_ACEOF
26637 /* end confdefs.h. */
26639 #ifdef HAVE_SYS_TYPES_H
26640 #include <sys/types.h>
26642 #ifdef HAVE_SYS_SOCKET_H
26643 #include <sys/socket.h>
26647 typedef socklen_t ac__type_new_;
26651 if ((ac__type_new_ *) 0)
26653 if (sizeof (ac__type_new_))
26659 rm -f conftest.$ac_objext
26660 if { (ac_try="$ac_compile"
26661 case "(($ac_try" in
26662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26663 *) ac_try_echo=$ac_try;;
26665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26666 (eval "$ac_compile") 2>conftest.er1
26668 grep -v '^ *+' conftest.er1 >conftest.err
26670 cat conftest.err >&5
26671 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26672 (exit $ac_status); } && {
26673 test -z "$ac_c_werror_flag" ||
26674 test ! -s conftest.err
26675 } && test -s conftest.$ac_objext; then
26676 ac_cv_type_socklen_t=yes
26678 echo "$as_me: failed program was
:" >&5
26679 sed 's/^/| /' conftest.$ac_ext >&5
26681 ac_cv_type_socklen_t=no
26684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26686 { echo "$as_me:$LINENO: result
: $ac_cv_type_socklen_t" >&5
26687 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
26688 if test $ac_cv_type_socklen_t = yes; then
26692 cat >>confdefs.h <<\_ACEOF
26693 #define socklen_t int
26701 for h in `(cd $srcdir;echo Python/thread_*.h)`
26703 THREADHEADERS="$THREADHEADERS \$
(srcdir
)/$h"
26707 SRCDIRS="Parser Grammar Objects Python Modules Mac
"
26708 { echo "$as_me:$LINENO: checking
for build directories
" >&5
26709 echo $ECHO_N "checking
for build directories...
$ECHO_C" >&6; }
26710 for dir in $SRCDIRS; do
26711 if test ! -d $dir; then
26715 { echo "$as_me:$LINENO: result
: done" >&5
26716 echo "${ECHO_T}done" >&6; }
26718 # generate output files
26719 ac_config_files="$ac_config_files Makefile.pre Modules
/Setup.config Misc
/python.pc
"
26721 cat >confcache <<\_ACEOF
26722 # This file is a shell script that caches the results of configure
26723 # tests run on this system so they can be shared between configure
26724 # scripts and configure runs, see configure's option --config-cache.
26725 # It is not useful on other systems. If it contains results you don't
26726 # want to keep, you may remove or edit it.
26728 # config.status only pays attention to the cache file if you give it
26729 # the --recheck option to rerun configure.
26731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26733 # following values.
26737 # The following way of writing the cache mishandles newlines in values,
26738 # but we know of no workaround that is simple, portable, and efficient.
26739 # So, we kill variables containing newlines.
26740 # Ultrix sh set writes to stderr and can't be redirected directly,
26741 # and sets the high bit in the cache file unless we assign to the vars.
26743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26744 eval ac_val=\$$ac_var
26748 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
26749 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
26752 _ | IFS | as_nl) ;; #(
26753 *) $as_unset $ac_var ;;
26759 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26760 *${as_nl}ac_space=\ *)
26761 # `set' does not quote correctly, so add quotes (double-quote
26762 # substitution turns \\\\ into \\, and sed turns \\ into \).
26765 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
26768 # `set' quotes correctly as required by POSIX, so do not add quotes.
26769 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
26778 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26780 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26782 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26783 if test -w "$cache_file"; then
26784 test "x
$cache_file" != "x
/dev
/null
" &&
26785 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
26786 echo "$as_me: updating cache
$cache_file" >&6;}
26787 cat confcache >$cache_file
26789 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
26790 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
26795 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
26796 # Let make expand exec_prefix.
26797 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
26799 DEFS=-DHAVE_CONFIG_H
26803 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
26804 # 1. Remove the extension, and $U if already installed.
26805 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26806 ac_i=`echo "$ac_i" | sed "$ac_script"`
26807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26808 # will be set to the directory where LIBOBJS objects are built.
26809 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
26810 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
26812 LIBOBJS=$ac_libobjs
26814 LTLIBOBJS=$ac_ltlibobjs
26818 : ${CONFIG_STATUS=./config.status}
26819 ac_clean_files_save=$ac_clean_files
26820 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26821 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
26822 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
26823 cat >$CONFIG_STATUS <<_ACEOF
26825 # Generated by $as_me.
26826 # Run this file to recreate the current configuration.
26827 # Compiler output produced by configure, useful for debugging
26828 # configure, is in config.log if it exists.
26831 ac_cs_recheck=false
26833 SHELL=\${CONFIG_SHELL-$SHELL}
26836 cat >>$CONFIG_STATUS <<\_ACEOF
26837 ## --------------------- ##
26838 ## M4sh Initialization. ##
26839 ## --------------------- ##
26841 # Be more Bourne compatible
26842 DUALCASE=1; export DUALCASE # for MKS sh
26843 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26846 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26847 # is contrary to our usage. Disable this feature.
26848 alias -g '${1+"$@"}'='"$@
"'
26849 setopt NO_GLOB_SUBST
26851 case `(set -o) 2>/dev/null` in
26852 *posix*) set -o posix ;;
26861 # Avoid depending upon Character Ranges.
26862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26865 as_cr_digits='0123456789'
26866 as_cr_alnum=$as_cr_Letters$as_cr_digits
26868 # The user is always right.
26869 if test "${PATH_SEPARATOR+set}" != set; then
26870 echo "#! /bin/sh" >conf$$.sh
26871 echo "exit 0" >>conf$$.sh
26873 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26881 # Support unset when possible.
26882 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26890 # We need space, tab and new line, in precisely that order. Quoting is
26891 # there to prevent editors from complaining about space-tab.
26892 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26893 # splitting by setting IFS to empty value.)
26898 # Find who we are. Look in the path if we contain no directory separator.
26900 *[\\/]* ) as_myself
=$0 ;;
26901 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26902 for as_dir
in $PATH
26905 test -z "$as_dir" && as_dir
=.
26906 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26912 # We did not find ourselves, most probably we were run as `sh COMMAND'
26913 # in which case we are not to be found in the path.
26914 if test "x$as_myself" = x
; then
26917 if test ! -f "$as_myself"; then
26918 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26919 { (exit 1); exit 1; }
26922 # Work around bugs in pre-3.0 UWIN ksh.
26923 for as_var
in ENV MAIL MAILPATH
26924 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26932 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26933 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26934 LC_TELEPHONE LC_TIME
26936 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26937 eval $as_var=C
; export $as_var
26939 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26943 # Required to use basename.
26944 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26945 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26951 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26952 as_basename
=basename
26958 # Name of the executable.
26959 as_me
=`$as_basename -- "$0" ||
26960 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26961 X"$0" : 'X\(//\)$' \| \
26962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26964 sed '/^.*\/\([^/][^/]*\)\/*$/{
26983 as_lineno_1
=$LINENO
26984 as_lineno_2
=$LINENO
26985 test "x$as_lineno_1" != "x$as_lineno_2" &&
26986 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26988 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26989 # uniformly replaced by the line number. The first 'sed' inserts a
26990 # line-number line after each line using $LINENO; the second 'sed'
26991 # does the real work. The second script uses 'N' to pair each
26992 # line-number line with the line containing $LINENO, and appends
26993 # trailing '-' during substitution so that $LINENO is not a special
26994 # case at line end.
26995 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26996 # scripts with optimization help from Paolo Bonzini. Blame Lee
26997 # E. McMahon (1931-1989) for sed's syntax. :-)
27009 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27012 ' >$as_me.lineno
&&
27013 chmod +x
"$as_me.lineno" ||
27014 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27015 { (exit 1); exit 1; }; }
27017 # Don't try to exec as it changes $[0], causing all sort of problems
27018 # (the dirname of $[0] is not the place where we might find the
27019 # original and so on. Autoconf is especially sensitive to this).
27020 .
"./$as_me.lineno"
27021 # Exit status is that of the last command.
27026 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27032 ECHO_C
= ECHO_N
= ECHO_T
=
27033 case `echo -n x` in
27035 case `echo 'x\c'` in
27036 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27043 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27044 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27050 rm -f conf$$ conf$$.exe conf$$.
file
27051 if test -d conf$$.dir
; then
27052 rm -f conf$$.dir
/conf$$.
file
27058 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27060 # ... but there are two gotchas:
27061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27063 # In both cases, we have to default to `cp -p'.
27064 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27066 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27071 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27072 rmdir conf$$.dir
2>/dev
/null
27074 if mkdir
-p .
2>/dev
/null
; then
27077 test -d .
/-p && rmdir .
/-p
27081 if test -x / >/dev
/null
2>&1; then
27082 as_test_x
='test -x'
27084 if ls -dL / >/dev
/null
2>&1; then
27091 if test -d "$1"; then
27097 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27098 ???[sx]*):;;*)false;;esac;fi
27102 as_executable_p
=$as_test_x
27104 # Sed expression to map a string onto a valid CPP name.
27105 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27107 # Sed expression to map a string onto a valid variable name.
27108 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27113 # Save the log message, to keep $[0] and so on meaningful, and to
27114 # report actual input values of CONFIG_FILES etc. instead of their
27115 # values after options handling.
27117 This file was extended by python $as_me 2.7, which was
27118 generated by GNU Autoconf 2.61. Invocation command line was
27120 CONFIG_FILES = $CONFIG_FILES
27121 CONFIG_HEADERS = $CONFIG_HEADERS
27122 CONFIG_LINKS = $CONFIG_LINKS
27123 CONFIG_COMMANDS = $CONFIG_COMMANDS
27126 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27131 cat >>$CONFIG_STATUS <<_ACEOF
27132 # Files that config.status was made for.
27133 config_files="$ac_config_files"
27134 config_headers="$ac_config_headers"
27138 cat >>$CONFIG_STATUS <<\_ACEOF
27140 \`$as_me' instantiates files from templates according to the
27141 current configuration.
27143 Usage: $0 [OPTIONS] [FILE]...
27145 -h, --help print this help, then exit
27146 -V, --version print version number and configuration settings, then exit
27147 -q, --quiet do not print progress messages
27148 -d, --debug don't remove temporary files
27149 --recheck update $as_me by reconfiguring in the same conditions
27150 --file=FILE[:TEMPLATE]
27151 instantiate the configuration file FILE
27152 --header=FILE[:TEMPLATE]
27153 instantiate the configuration header FILE
27155 Configuration files:
27158 Configuration headers:
27161 Report bugs to <bug-autoconf@gnu.org>."
27164 cat >>$CONFIG_STATUS <<_ACEOF
27166 python config.status 2.7
27167 configured by $0, generated by GNU Autoconf 2.61,
27168 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27170 Copyright (C) 2006 Free Software Foundation, Inc.
27171 This config.status script is free software; the Free Software Foundation
27172 gives unlimited permission to copy, distribute and modify it."
27179 cat >>$CONFIG_STATUS <<\_ACEOF
27180 # If no file are specified by the user, then we need to provide default
27181 # value. By we need to know if files were specified by the user.
27187 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27188 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27199 # Handling of the options.
27200 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27202 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27203 echo "$ac_cs_version"; exit ;;
27204 --debug |
--debu |
--deb |
--de |
--d |
-d )
27206 --file |
--fil |
--fi |
--f )
27208 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
27209 ac_need_defaults
=false
;;
27210 --header |
--heade |
--head |
--hea )
27212 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
27213 ac_need_defaults
=false
;;
27215 # Conflict between --help and --header
27216 { echo "$as_me: error: ambiguous option: $1
27217 Try \`$0 --help' for more information." >&2
27218 { (exit 1); exit 1; }; };;
27219 --help |
--hel |
-h )
27220 echo "$ac_cs_usage"; exit ;;
27221 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27222 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27225 # This is an error.
27226 -*) { echo "$as_me: error: unrecognized option: $1
27227 Try \`$0 --help' for more information." >&2
27228 { (exit 1); exit 1; }; } ;;
27230 *) ac_config_targets
="$ac_config_targets $1"
27231 ac_need_defaults
=false
;;
27237 ac_configure_extra_args
=
27239 if $ac_cs_silent; then
27241 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27245 cat >>$CONFIG_STATUS <<_ACEOF
27246 if \$ac_cs_recheck; then
27247 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27248 CONFIG_SHELL=$SHELL
27249 export CONFIG_SHELL
27250 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27254 cat >>$CONFIG_STATUS <<\_ACEOF
27258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27259 ## Running $as_me. ##
27265 cat >>$CONFIG_STATUS <<_ACEOF
27268 cat >>$CONFIG_STATUS <<\_ACEOF
27270 # Handling of arguments.
27271 for ac_config_target
in $ac_config_targets
27273 case $ac_config_target in
27274 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
27275 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
27276 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27277 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
27278 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27279 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
27280 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
27281 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
27282 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
27284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27285 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27286 { (exit 1); exit 1; }; };;
27291 # If the user did not use the arguments to specify the items to instantiate,
27292 # then the envvar interface is used. Set only those that are not.
27293 # We use the long form for the default assignment because of an extremely
27294 # bizarre bug on SunOS 4.1.3.
27295 if $ac_need_defaults; then
27296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27297 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27300 # Have a temporary directory for convenience. Make it in the build tree
27301 # simply because there is no reason against having it here, and in addition,
27302 # creating and moving files from /tmp can sometimes cause problems.
27303 # Hook for its removal unless debugging.
27304 # Note that there is a small window in which the directory will not be cleaned:
27305 # after its creation but before its name has been assigned to `$tmp'.
27309 trap 'exit_status=$?
27310 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27312 trap '{ (exit 1); exit 1; }' 1 2 13 15
27314 # Create a (secure) tmp directory for tmp files.
27317 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27318 test -n "$tmp" && test -d "$tmp"
27321 tmp
=.
/conf$$
-$RANDOM
27322 (umask 077 && mkdir
"$tmp")
27325 echo "$me: cannot create a temporary directory in ." >&2
27326 { (exit 1); exit 1; }
27330 # Set up the sed scripts for CONFIG_FILES section.
27333 # No need to generate the scripts if there are no CONFIG_FILES.
27334 # This happens for instance when ./config.status config.h
27335 if test -n "$CONFIG_FILES"; then
27342 for ac_last_try
in false false false false false
:; do
27343 cat >conf$
$subs.
sed <<_ACEOF
27344 SHELL!$SHELL$ac_delim
27345 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27346 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27347 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27348 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27349 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27350 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27351 exec_prefix!$exec_prefix$ac_delim
27352 prefix!$prefix$ac_delim
27353 program_transform_name!$program_transform_name$ac_delim
27354 bindir!$bindir$ac_delim
27355 sbindir!$sbindir$ac_delim
27356 libexecdir!$libexecdir$ac_delim
27357 datarootdir!$datarootdir$ac_delim
27358 datadir!$datadir$ac_delim
27359 sysconfdir!$sysconfdir$ac_delim
27360 sharedstatedir!$sharedstatedir$ac_delim
27361 localstatedir!$localstatedir$ac_delim
27362 includedir!$includedir$ac_delim
27363 oldincludedir!$oldincludedir$ac_delim
27364 docdir!$docdir$ac_delim
27365 infodir!$infodir$ac_delim
27366 htmldir!$htmldir$ac_delim
27367 dvidir!$dvidir$ac_delim
27368 pdfdir!$pdfdir$ac_delim
27369 psdir!$psdir$ac_delim
27370 libdir!$libdir$ac_delim
27371 localedir!$localedir$ac_delim
27372 mandir!$mandir$ac_delim
27373 DEFS!$DEFS$ac_delim
27374 ECHO_C!$ECHO_C$ac_delim
27375 ECHO_N!$ECHO_N$ac_delim
27376 ECHO_T!$ECHO_T$ac_delim
27377 LIBS!$LIBS$ac_delim
27378 build_alias!$build_alias$ac_delim
27379 host_alias!$host_alias$ac_delim
27380 target_alias!$target_alias$ac_delim
27381 VERSION!$VERSION$ac_delim
27382 SOVERSION!$SOVERSION$ac_delim
27383 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
27384 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
27385 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
27386 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
27387 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
27388 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
27389 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
27390 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
27391 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
27392 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
27393 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
27394 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
27395 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
27396 MACHDEP!$MACHDEP$ac_delim
27397 SGI_ABI!$SGI_ABI$ac_delim
27398 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
27399 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
27400 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
27401 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
27403 CFLAGS!$CFLAGS$ac_delim
27404 LDFLAGS!$LDFLAGS$ac_delim
27405 CPPFLAGS!$CPPFLAGS$ac_delim
27406 ac_ct_CC!$ac_ct_CC$ac_delim
27407 EXEEXT!$EXEEXT$ac_delim
27408 OBJEXT!$OBJEXT$ac_delim
27410 MAINCC!$MAINCC$ac_delim
27412 GREP!$GREP$ac_delim
27413 EGREP!$EGREP$ac_delim
27414 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
27415 LIBRARY!$LIBRARY$ac_delim
27416 LDLIBRARY!$LDLIBRARY$ac_delim
27417 DLLLIBRARY!$DLLLIBRARY$ac_delim
27418 BLDLIBRARY!$BLDLIBRARY$ac_delim
27419 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
27420 INSTSONAME!$INSTSONAME$ac_delim
27421 RUNSHARED!$RUNSHARED$ac_delim
27422 LINKCC!$LINKCC$ac_delim
27423 GNULD!$GNULD$ac_delim
27424 RANLIB!$RANLIB$ac_delim
27426 ARFLAGS!$ARFLAGS$ac_delim
27427 SVNVERSION!$SVNVERSION$ac_delim
27428 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27429 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27430 INSTALL_DATA!$INSTALL_DATA$ac_delim
27433 BASECFLAGS!$BASECFLAGS$ac_delim
27434 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
27435 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
27436 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
27438 LDSHARED!$LDSHARED$ac_delim
27439 BLDSHARED!$BLDSHARED$ac_delim
27440 CCSHARED!$CCSHARED$ac_delim
27443 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27445 elif $ac_last_try; then
27446 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27447 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27448 { (exit 1); exit 1; }; }
27450 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27454 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27455 if test -n "$ac_eof"; then
27456 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27457 ac_eof
=`expr $ac_eof + 1`
27460 cat >>$CONFIG_STATUS <<_ACEOF
27461 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27465 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27466 s/^/s,@/; s/!/@,|#_!!_#|/
27469 s/'"$ac_delim"'$/,g/; t
27471 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27472 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27473 rm -f conf$
$subs.
sed
27474 cat >>$CONFIG_STATUS <<_ACEOF
27480 for ac_last_try
in false false false false false
:; do
27481 cat >conf$
$subs.
sed <<_ACEOF
27482 LINKFORSHARED!$LINKFORSHARED$ac_delim
27483 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
27484 SHLIBS!$SHLIBS$ac_delim
27485 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
27486 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
27487 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
27488 LDLAST!$LDLAST$ac_delim
27489 THREADOBJ!$THREADOBJ$ac_delim
27490 DLINCLDIR!$DLINCLDIR$ac_delim
27491 DYNLOADFILE!$DYNLOADFILE$ac_delim
27492 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
27493 TRUE!$TRUE$ac_delim
27494 LIBOBJS!$LIBOBJS$ac_delim
27495 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
27496 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
27497 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
27498 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
27499 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
27500 LIBM!$LIBM$ac_delim
27501 LIBC!$LIBC$ac_delim
27502 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
27503 THREADHEADERS!$THREADHEADERS$ac_delim
27504 SRCDIRS!$SRCDIRS$ac_delim
27505 LTLIBOBJS!$LTLIBOBJS$ac_delim
27508 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
27510 elif $ac_last_try; then
27511 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27512 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27513 { (exit 1); exit 1; }; }
27515 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27519 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27520 if test -n "$ac_eof"; then
27521 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27522 ac_eof
=`expr $ac_eof + 1`
27525 cat >>$CONFIG_STATUS <<_ACEOF
27526 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27530 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27531 s/^/s,@/; s/!/@,|#_!!_#|/
27534 s/'"$ac_delim"'$/,g/; t
27536 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27537 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27538 rm -f conf$
$subs.
sed
27539 cat >>$CONFIG_STATUS <<_ACEOF
27546 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27547 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27548 # trailing colons and then remove the whole line if VPATH becomes empty
27549 # (actually we leave an empty line to preserve line numbers).
27550 if test "x$srcdir" = x.
; then
27551 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
27552 s/:*\$(srcdir):*/:/
27553 s/:*\${srcdir}:*/:/
27555 s/^\([^=]*=[ ]*\):*/\1/
27561 cat >>$CONFIG_STATUS <<\_ACEOF
27562 fi # test -n "$CONFIG_FILES"
27565 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
27568 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27570 case $ac_mode$ac_tag in
27572 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27573 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27574 { (exit 1); exit 1; }; };;
27575 :[FH
]-) ac_tag
=-:-;;
27576 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27593 -) ac_f
="$tmp/stdin";;
27594 *) # Look for the file first in the build tree, then in the source tree
27595 # (if the path is not absolute). The absolute path cannot be DOS-style,
27596 # because $ac_f cannot contain `:'.
27600 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27602 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27603 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27604 { (exit 1); exit 1; }; };;
27606 ac_file_inputs
="$ac_file_inputs $ac_f"
27609 # Let's still pretend it is `configure' which instantiates (i.e., don't
27610 # use $as_me), people would be surprised to read:
27611 # /* config.h. Generated by config.status. */
27612 configure_input
="Generated from "`IFS=:
27613 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27614 if test x
"$ac_file" != x-
; then
27615 configure_input
="$ac_file. $configure_input"
27616 { echo "$as_me:$LINENO: creating $ac_file" >&5
27617 echo "$as_me: creating $ac_file" >&6;}
27621 *:-:* |
*:-) cat >"$tmp/stdin";;
27626 ac_dir
=`$as_dirname -- "$ac_file" ||
27627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27628 X"$ac_file" : 'X\(//\)[^/]' \| \
27629 X"$ac_file" : 'X\(//\)$' \| \
27630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27636 /^X\(\/\/\)[^/].*/{
27651 -*) as_dir
=.
/$as_dir;;
27653 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27657 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27658 *) as_qdir
=$as_dir;;
27660 as_dirs
="'$as_qdir' $as_dirs"
27661 as_dir
=`$as_dirname -- "$as_dir" ||
27662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27663 X"$as_dir" : 'X\(//\)[^/]' \| \
27664 X"$as_dir" : 'X\(//\)$' \| \
27665 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27671 /^X\(\/\/\)[^/].*/{
27684 test -d "$as_dir" && break
27686 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27687 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27688 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27689 { (exit 1); exit 1; }; }; }
27693 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27695 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27696 # A ".." for each directory in $ac_dir_suffix.
27697 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27698 case $ac_top_builddir_sub in
27699 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27700 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27703 ac_abs_top_builddir
=$ac_pwd
27704 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27705 # for backward compatibility:
27706 ac_top_builddir
=$ac_top_build_prefix
27709 .
) # We are building in place.
27711 ac_top_srcdir
=$ac_top_builddir_sub
27712 ac_abs_top_srcdir
=$ac_pwd ;;
27713 [\\/]* | ?
:[\\/]* ) # Absolute name.
27714 ac_srcdir
=$srcdir$ac_dir_suffix;
27715 ac_top_srcdir
=$srcdir
27716 ac_abs_top_srcdir
=$srcdir ;;
27717 *) # Relative name.
27718 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27719 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27720 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27722 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27732 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27733 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27737 cat >>$CONFIG_STATUS <<\_ACEOF
27738 # If the template does not know about datarootdir, expand it.
27739 # FIXME: This hack should be removed a few years after 2.60.
27740 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27742 case `sed -n '/datarootdir/ {
27751 ' $ac_file_inputs` in
27752 *datarootdir
*) ac_datarootdir_seen
=yes;;
27753 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27754 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27755 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27757 cat >>$CONFIG_STATUS <<_ACEOF
27758 ac_datarootdir_hack='
27759 s&@datadir@&$datadir&g
27760 s&@docdir@&$docdir&g
27761 s&@infodir@&$infodir&g
27762 s&@localedir@&$localedir&g
27763 s&@mandir@&$mandir&g
27764 s&\\\${datarootdir}&$datarootdir&g' ;;
27768 # Neutralize VPATH when `$srcdir' = `.'.
27769 # Shell code in configure.ac might set extrasub.
27770 # FIXME: do we really want to maintain this feature?
27771 cat >>$CONFIG_STATUS <<_ACEOF
27775 cat >>$CONFIG_STATUS <<\_ACEOF
27777 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27778 s
&@configure_input@
&$configure_input&;t t
27779 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27780 s
&@srcdir@
&$ac_srcdir&;t t
27781 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27782 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27783 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27784 s
&@builddir@
&$ac_builddir&;t t
27785 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27786 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27787 s
&@INSTALL@
&$ac_INSTALL&;t t
27788 $ac_datarootdir_hack
27789 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
27791 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27792 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27793 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27794 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27795 which seems to be undefined. Please make sure it is defined." >&5
27796 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27797 which seems to be undefined. Please make sure it is defined." >&2;}
27801 -) cat "$tmp/out"; rm -f "$tmp/out";;
27802 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27811 # Transform confdefs.h into a sed script `conftest.defines', that
27812 # substitutes the proper values into config.h.in to produce config.h.
27813 rm -f conftest.defines conftest.
tail
27814 # First, append a space to every undef/define line, to ease matching.
27815 echo 's/$/ /' >conftest.defines
27816 # Then, protect against being on the right side of a sed subst, or in
27817 # an unquoted here document, in config.status. If some macros were
27818 # called several times there might be several #defines for the same
27819 # symbol, which is useless. But do not sort them, since the last
27820 # AC_DEFINE must be honored.
27821 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27822 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27823 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27824 # PARAMS is the parameter list in the macro definition--in most cases, it's
27825 # just an empty string.
27826 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27827 ac_dB
='\\)[ (].*,\\1define\\2'
27835 s/^[ ]*#[ ]*define[ ][ ]*//
27840 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27841 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27842 ' >>conftest.defines
27844 # Remove the space that was appended to ease matching.
27845 # Then replace #undef with comments. This is necessary, for
27846 # example, in the case of _POSIX_SOURCE, which is predefined and required
27847 # on some systems where configure will not decide to define it.
27848 # (The regexp can be short, since the line contains either #define or #undef.)
27850 s,^[ #]*u.*,/* & */,' >>conftest.defines
27852 # Break up conftest.defines:
27853 ac_max_sed_lines
=50
27855 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27856 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27857 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27859 ac_in
='$ac_file_inputs'
27860 ac_out
='"$tmp/out1"'
27861 ac_nxt
='"$tmp/out2"'
27865 # Write a here document:
27866 cat >>$CONFIG_STATUS <<_ACEOF
27867 # First, check the format of the line:
27868 cat >"\$tmp/defines.sed" <<\\CEOF
27869 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27870 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27874 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27876 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27877 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27878 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27879 grep . conftest.
tail >/dev
/null ||
break
27880 rm -f conftest.defines
27881 mv conftest.
tail conftest.defines
27883 rm -f conftest.defines conftest.
tail
27885 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27886 cat >>$CONFIG_STATUS <<\_ACEOF
27887 if test x
"$ac_file" != x-
; then
27888 echo "/* $configure_input */" >"$tmp/config.h"
27889 cat "$ac_result" >>"$tmp/config.h"
27890 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27891 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27892 echo "$as_me: $ac_file is unchanged" >&6;}
27895 mv "$tmp/config.h" $ac_file
27898 echo "/* $configure_input */"
27910 { (exit 0); exit 0; }
27912 chmod +x
$CONFIG_STATUS
27913 ac_clean_files
=$ac_clean_files_save
27916 # configure is writing to config.log, and then calls config.status.
27917 # config.status does its own redirection, appending to config.log.
27918 # Unfortunately, on DOS this fails, as config.log is still kept open
27919 # by configure, so config.status won't be able to write to it; its
27920 # output is simply discarded. So we exec the FD to /dev/null,
27921 # effectively closing config.log, so it can be properly (re)opened and
27922 # appended to by config.status. When coming back to configure, we
27923 # need to make the FD available again.
27924 if test "$no_create" != yes; then
27926 ac_config_status_args
=
27927 test "$silent" = yes &&
27928 ac_config_status_args
="$ac_config_status_args --quiet"
27930 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27932 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27933 # would make configure fail if this is the last instruction.
27934 $ac_cs_success ||
{ (exit 1); exit 1; }
27938 echo "creating Modules/Setup"
27939 if test ! -f Modules
/Setup
27941 cp $srcdir/Modules
/Setup.dist Modules
/Setup
27944 echo "creating Modules/Setup.local"
27945 if test ! -f Modules
/Setup.
local
27947 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
27950 echo "creating Makefile"
27951 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
27952 -s Modules Modules
/Setup.config \
27953 Modules
/Setup.
local Modules
/Setup
27955 case $ac_sys_system in
27957 { echo "$as_me:$LINENO: WARNING:
27959 Support for BeOS is deprecated as of Python 2.6.
27960 See PEP 11 for the gory details.
27962 echo "$as_me: WARNING:
27964 Support for BeOS is deprecated as of Python 2.6.
27965 See PEP 11 for the gory details.
27971 mv config.c Modules