2 # From configure.in Revision: 70903 .
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://www.python.org/python-bugs>.
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://www.python.org/python-bugs'
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
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
739 ac_precious_vars
='build_alias
750 # Initialize some variables set by options.
752 ac_init_version
=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
762 program_transform_name
=s
,x
,x
,
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir
='${exec_prefix}/bin'
777 sbindir
='${exec_prefix}/sbin'
778 libexecdir
='${exec_prefix}/libexec'
779 datarootdir
='${prefix}/share'
780 datadir
='${datarootdir}'
781 sysconfdir
='${prefix}/etc'
782 sharedstatedir
='${prefix}/com'
783 localstatedir
='${prefix}/var'
784 includedir
='${prefix}/include'
785 oldincludedir
='/usr/include'
786 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir
='${datarootdir}/info'
792 libdir
='${exec_prefix}/lib'
793 localedir
='${datarootdir}/locale'
794 mandir
='${datarootdir}/man'
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\
$ac_option
808 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 # Accept the important Cygnus configure options, so we can diagnose typos.
814 case $ac_dashdash$ac_option in
818 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
820 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
823 -build |
--build |
--buil |
--bui |
--bu)
824 ac_prev
=build_alias
;;
825 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
826 build_alias
=$ac_optarg ;;
828 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
829 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
830 ac_prev
=cache_file
;;
831 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
832 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
833 cache_file
=$ac_optarg ;;
836 cache_file
=config.cache
;;
838 -datadir |
--datadir |
--datadi |
--datad)
840 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
841 datadir
=$ac_optarg ;;
843 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
844 |
--dataroo |
--dataro |
--datar)
845 ac_prev
=datarootdir
;;
846 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
847 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
848 datarootdir
=$ac_optarg ;;
850 -disable-* |
--disable-*)
851 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_
$ac_feature=no
;;
859 -docdir |
--docdir |
--docdi |
--doc |
--do)
861 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
864 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
866 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
869 -enable-* |
--enable-*)
870 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_
$ac_feature=\
$ac_optarg ;;
878 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
879 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
880 |
--exec |
--exe |
--ex)
881 ac_prev
=exec_prefix
;;
882 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
883 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
884 |
--exec=* |
--exe=* |
--ex=*)
885 exec_prefix
=$ac_optarg ;;
887 -gas |
--gas |
--ga |
--g)
888 # Obsolete; use --with-gas.
891 -help |
--help |
--hel |
--he |
-h)
893 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
894 ac_init_help
=recursive
;;
895 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
896 ac_init_help
=short
;;
898 -host |
--host |
--hos |
--ho)
899 ac_prev
=host_alias
;;
900 -host=* |
--host=* |
--hos=* |
--ho=*)
901 host_alias
=$ac_optarg ;;
903 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
905 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
907 htmldir
=$ac_optarg ;;
909 -includedir |
--includedir |
--includedi |
--included |
--include \
910 |
--includ |
--inclu |
--incl |
--inc)
911 ac_prev
=includedir
;;
912 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
913 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
914 includedir
=$ac_optarg ;;
916 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
918 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
919 infodir
=$ac_optarg ;;
921 -libdir |
--libdir |
--libdi |
--libd)
923 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
926 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
927 |
--libexe |
--libex |
--libe)
928 ac_prev
=libexecdir
;;
929 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
930 |
--libexe=* |
--libex=* |
--libe=*)
931 libexecdir
=$ac_optarg ;;
933 -localedir |
--localedir |
--localedi |
--localed |
--locale)
935 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
936 localedir
=$ac_optarg ;;
938 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
939 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
940 ac_prev
=localstatedir
;;
941 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
942 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
943 localstatedir
=$ac_optarg ;;
945 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
947 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
951 # Obsolete; use --without-fp.
954 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
955 |
--no-cr |
--no-c |
-n)
958 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
959 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
962 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
963 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
964 |
--oldin |
--oldi |
--old |
--ol |
--o)
965 ac_prev
=oldincludedir
;;
966 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
967 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
968 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
969 oldincludedir
=$ac_optarg ;;
971 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
973 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
976 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
977 |
--program-pre |
--program-pr |
--program-p)
978 ac_prev
=program_prefix
;;
979 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
980 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
981 program_prefix
=$ac_optarg ;;
983 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
984 |
--program-suf |
--program-su |
--program-s)
985 ac_prev
=program_suffix
;;
986 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
987 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
988 program_suffix
=$ac_optarg ;;
990 -program-transform-name |
--program-transform-name \
991 |
--program-transform-nam |
--program-transform-na \
992 |
--program-transform-n |
--program-transform- \
993 |
--program-transform |
--program-transfor \
994 |
--program-transfo |
--program-transf \
995 |
--program-trans |
--program-tran \
996 |
--progr-tra |
--program-tr |
--program-t)
997 ac_prev
=program_transform_name
;;
998 -program-transform-name=* |
--program-transform-name=* \
999 |
--program-transform-nam=* |
--program-transform-na=* \
1000 |
--program-transform-n=* |
--program-transform-=* \
1001 |
--program-transform=* |
--program-transfor=* \
1002 |
--program-transfo=* |
--program-transf=* \
1003 |
--program-trans=* |
--program-tran=* \
1004 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1005 program_transform_name
=$ac_optarg ;;
1007 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1009 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1010 pdfdir
=$ac_optarg ;;
1012 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1014 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1017 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1018 |
-silent |
--silent |
--silen |
--sile |
--sil)
1021 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1023 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1025 sbindir
=$ac_optarg ;;
1027 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1028 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1029 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1031 ac_prev
=sharedstatedir
;;
1032 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1033 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1034 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1036 sharedstatedir
=$ac_optarg ;;
1038 -site |
--site |
--sit)
1040 -site=* |
--site=* |
--sit=*)
1043 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1045 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1046 srcdir
=$ac_optarg ;;
1048 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1049 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1050 ac_prev
=sysconfdir
;;
1051 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1052 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1053 sysconfdir
=$ac_optarg ;;
1055 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1056 ac_prev
=target_alias
;;
1057 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1058 target_alias
=$ac_optarg ;;
1060 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1063 -version |
--version |
--versio |
--versi |
--vers |
-V)
1064 ac_init_version
=: ;;
1067 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_
$ac_package=\
$ac_optarg ;;
1075 -without-* |
--without-*)
1076 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_
$ac_package=no
;;
1085 # Obsolete; use --with-x.
1088 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1089 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1090 ac_prev
=x_includes
;;
1091 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1092 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1093 x_includes
=$ac_optarg ;;
1095 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1096 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1097 ac_prev
=x_libraries
;;
1098 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1099 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1100 x_libraries
=$ac_optarg ;;
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1108 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\
$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 if test -n "$ac_prev"; then
1128 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1133 # Be sure to have absolute directory names.
1134 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val
=\$
$ac_var
1141 [\\/$
]* | ?
:[\\/]* ) continue;;
1142 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1153 target
=$target_alias
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x
; then
1157 if test "x$build_alias" = x
; then
1158 cross_compiling
=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1167 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1169 test "$silent" = yes && exec 6>/dev
/null
1172 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di
=`ls -di .` &&
1174 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted
=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir
=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1214 ac_srcdir_defaulted
=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1221 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1234 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 for ac_var
in $ac_precious_vars; do
1237 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1239 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1250 \`configure' configures python 2.7 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive
) echo "Configuration of python 2.7:";;
1316 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1317 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1318 --enable-universalsdk[=SDKDIR
]
1319 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1320 --enable-framework[=INSTALLDIR
]
1321 Build
(MacOSX|Darwin
) framework
1322 --enable-shared disable
/enable building shared python library
1323 --enable-profiling enable C-level code profiling
1324 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1325 --enable-ipv6 Enable ipv6
(with ipv4
) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS
]
1328 use big digits
for Python longs
[BITS
=30]
1329 --enable-unicode[=ucs
[24]]
1330 Enable Unicode
strings (default is
yes)
1333 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1334 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1335 --with-universal-archs=ARCH
1336 select architectures
for universal build
("32-bit",
1338 --with-framework-name=FRAMEWORK
1339 specify an alternate name of the framework built
1340 with
--enable-framework
1341 --without-gcc never use gcc
1342 --with-cxx-main=<compiler
>
1343 compile main
() and link python executable with C
++
1345 --with-suffix=.exe
set executable suffix
1346 --with-pydebug build with Py_DEBUG defined
1347 --with-libs='lib1 ...' link against additional libs
1348 --with-system-ffi build _ctypes module using an installed ffi library
1349 --with-signal-module disable
/enable signal module
1350 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1351 --with(out
)-threads[=DIRECTORY
]
1352 disable
/enable thread support
1353 --with(out
)-thread[=DIRECTORY
]
1354 deprecated
; use
--with(out
)-threads
1355 --with-pth use GNU pth threading libraries
1356 --with(out
)-doc-strings disable
/enable documentation
strings
1357 --with(out
)-tsc enable
/disable timestamp counter profile
1358 --with(out
)-pymalloc disable
/enable specialized mallocs
1359 --with-wctype-functions use wctype.h functions
1360 --with-fpectl enable SIGFPE catching
1361 --with-libm=STRING math library
1362 --with-libc=STRING C library
1364 Some influential environment variables
:
1365 CC C compiler
command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1368 nonstandard directory
<lib dir
>
1369 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1370 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1371 you have headers
in a nonstandard directory
<include dir
>
1374 Use these variables to override the choices made by
`configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 Report bugs to <http://www.python.org/python-bugs>.
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" || continue
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1405 .) # We are building in place.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1438 python configure 2.7
1439 generated by GNU Autoconf 2.61
1441 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1442 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1448 cat >config.log <<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by python $as_me 2.7, which was
1453 generated by GNU Autoconf 2.61. Invocation command line was
1465 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1466 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1467 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1468 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1469 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1471 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1472 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1474 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1475 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1476 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1477 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1478 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1479 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1480 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 echo "PATH: $as_dir"
1505 # Keep a trace of the command line.
1506 # Strip out --no-create and --no-recursion so they do not pile up.
1507 # Strip out --silent because we don't want to record it for future runs.
1508 # Also quote any args containing shell meta-characters.
1509 # Make two passes to allow for proper duplicate-argument suppression.
1513 ac_must_keep_next=false
1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1524 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true; then
1531 ac_must_keep_next=false # Got value, back to normal.
1534 *=* | --config-cache | -C | -disable-* | --disable-* \
1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537 | -with-* | --with-* | -without-* | --without-* | --x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 -* ) ac_must_keep_next=true ;;
1545 ac_configure_args="$ac_configure_args '$ac_arg'"
1550 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1551 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1553 # When interrupted or exit'd, cleanup temporary files, and complete
1554 # config.log. We remove comments because anyway the quotes in there
1555 # would cause problems or look ugly.
1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1558 trap 'exit_status=$?
1559 # Save into config.log some information that might help in debugging.
1564 ## ---------------- ##
1565 ## Cache variables. ##
1566 ## ---------------- ##
1569 # The following way of writing the cache mishandles newlines in values,
1571 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1572 eval ac_val=\$$ac_var
1576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 _ | IFS | as_nl) ;; #(
1581 *) $as_unset $ac_var ;;
1586 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1587 *${as_nl}ac_space=\ *)
1589 "s/'\''/'\''\\\\'\'''\''/g;
1590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 ## ----------------- ##
1602 ## Output variables. ##
1603 ## ----------------- ##
1606 for ac_var in $ac_subst_vars
1608 eval ac_val=\$$ac_var
1610 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1612 echo "$ac_var='\''$ac_val'\''"
1616 if test -n "$ac_subst_files"; then
1618 ## ------------------- ##
1619 ## File substitutions. ##
1620 ## ------------------- ##
1623 for ac_var in $ac_subst_files
1625 eval ac_val=\$$ac_var
1627 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629 echo "$ac_var='\''$ac_val'\''"
1634 if test -s confdefs.h; then
1644 test "$ac_signal" != 0 &&
1645 echo "$as_me: caught signal $ac_signal"
1646 echo "$as_me: exit $exit_status"
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1660 # Predefined preprocessor variables.
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_NAME "$PACKAGE_NAME"
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_STRING "$PACKAGE_STRING"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687 # Let the site file select an alternate cache file if it wants to.
1688 # Prefer explicitly selected file to automatically selected ones.
1689 if test -n "$CONFIG_SITE"; then
1690 set x "$CONFIG_SITE"
1691 elif test "x$prefix" != xNONE; then
1692 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1694 set x "$ac_default_prefix/share/config.site" \
1695 "$ac_default_prefix/etc/config.site"
1700 if test -r "$ac_site_file"; then
1701 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1702 echo "$as_me: loading site script $ac_site_file" >&6;}
1703 sed 's/^/| /' "$ac_site_file" >&5
1708 if test -r "$cache_file"; then
1709 # Some versions of bash will fail to source /dev/null (special
1710 # files actually), so we avoid doing that.
1711 if test -f "$cache_file"; then
1712 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1713 echo "$as_me: loading cache $cache_file" >&6;}
1715 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1716 *) . "./$cache_file";;
1720 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1721 echo "$as_me: creating cache $cache_file" >&6;}
1725 # Check that the precious variables saved in the cache have kept the same
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1736 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1740 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1747 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1748 echo "$as_me: former value
: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1750 echo "$as_me: current value
: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1768 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1769 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 ac_config_headers="$ac_config_headers pyconfig.h"
1810 if test "$prefix" != "/"; then
1811 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1819 # We don't use PACKAGE_ variables, and they cause conflicts
1820 # with other autoconf-based packages that include Python.h
1821 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1823 mv confdefs.h.new confdefs.h
1831 # The later defininition of _XOPEN_SOURCE disables certain features
1832 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1834 cat >>confdefs.h <<\_ACEOF
1835 #define _GNU_SOURCE 1
1839 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1840 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1843 cat >>confdefs.h <<\_ACEOF
1844 #define _NETBSD_SOURCE 1
1848 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1849 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1852 cat >>confdefs.h <<\_ACEOF
1853 #define __BSD_VISIBLE 1
1857 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1858 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1860 cat >>confdefs.h <<\_ACEOF
1861 #define _BSD_TYPES 1
1865 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1866 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1869 cat >>confdefs.h <<\_ACEOF
1870 #define _DARWIN_C_SOURCE 1
1875 define_xopen_source=yes
1877 # Arguments passed to configure.
1879 CONFIG_ARGS="$ac_configure_args"
1881 # Check whether --enable-universalsdk was given.
1882 if test "${enable_universalsdk+set}" = set; then
1883 enableval=$enable_universalsdk;
1886 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1892 enable_universalsdk=
1895 UNIVERSALSDK=$enableval
1902 enable_universalsdk=
1911 UNIVERSAL_ARCHS="32-bit"
1912 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1913 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1915 # Check whether --with-universal-archs was given.
1916 if test "${with_universal_archs+set}" = set; then
1917 withval=$with_universal_archs;
1918 { echo "$as_me:$LINENO: result: $withval" >&5
1919 echo "${ECHO_T}$withval" >&6; }
1920 UNIVERSAL_ARCHS="$withval"
1924 { echo "$as_me:$LINENO: result: 32-bit" >&5
1925 echo "${ECHO_T}32-bit" >&6; }
1933 # Check whether --with-framework-name was given.
1934 if test "${with_framework_name+set}" = set; then
1935 withval=$with_framework_name;
1936 PYTHONFRAMEWORK=${withval}
1937 PYTHONFRAMEWORKDIR=${withval}.framework
1938 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1942 PYTHONFRAMEWORK=Python
1943 PYTHONFRAMEWORKDIR=Python.framework
1944 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1948 # Check whether --enable-framework was given.
1949 if test "${enable_framework+set}" = set; then
1950 enableval=$enable_framework;
1953 enableval=/Library/Frameworks
1958 PYTHONFRAMEWORKDIR=no-framework
1959 PYTHONFRAMEWORKPREFIX=
1960 PYTHONFRAMEWORKINSTALLDIR=
1961 FRAMEWORKINSTALLFIRST=
1962 FRAMEWORKINSTALLLAST=
1963 FRAMEWORKALTINSTALLFIRST=
1964 FRAMEWORKALTINSTALLLAST=
1965 if test "x${prefix}" = "xNONE"; then
1966 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1968 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1973 PYTHONFRAMEWORKPREFIX=$enableval
1974 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1975 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1976 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1977 if test "$UNIVERSAL_ARCHS" = "all"
1979 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1980 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1982 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1983 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1986 if test "x${prefix}" = "xNONE" ; then
1987 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1989 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1991 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1993 # Add files for Mac specific code to the list of output
1995 ac_config_files="$ac_config_files Mac/Makefile"
1997 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1999 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2001 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2003 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2010 PYTHONFRAMEWORKDIR=no-framework
2011 PYTHONFRAMEWORKPREFIX=
2012 PYTHONFRAMEWORKINSTALLDIR=
2013 FRAMEWORKINSTALLFIRST=
2014 FRAMEWORKINSTALLLAST=
2015 FRAMEWORKALTINSTALLFIRST=
2016 FRAMEWORKALTINSTALLLAST=
2017 if test "x${prefix}" = "xNONE" ; then
2018 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2020 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2024 if test "$UNIVERSAL_ARCHS" = "all"
2026 FRAMEWORKINSTALLLAST=update4wayuniversal
2027 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2044 ## AC_HELP_STRING(--with-dyld,
2045 ## Use (OpenStep|Rhapsody) dynamic linker))
2047 # Set name for machine-dependent library files
2049 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2050 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2051 if test -z "$MACHDEP"
2053 ac_sys_system=`uname
-s`
2054 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2055 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2056 ac_sys_release=`uname
-v`
2058 ac_sys_release=`uname
-r`
2060 ac_md_system=`echo $ac_sys_system |
2061 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2062 ac_md_release=`echo $ac_sys_release |
2063 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2064 MACHDEP="$ac_md_system$ac_md_release"
2067 cygwin*) MACHDEP="cygwin";;
2068 darwin*) MACHDEP="darwin";;
2069 atheos*) MACHDEP="atheos";;
2070 irix646) MACHDEP="irix6";;
2071 '') MACHDEP="unknown";;
2075 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2076 # disable features if it is defined, without any means to access these
2077 # features as extensions. For these systems, we skip the definition of
2078 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2079 # some feature, make sure there is no alternative way to access this
2080 # feature. Also, when using wildcards, make sure you have verified the
2081 # need for not defining _XOPEN_SOURCE on all systems matching the
2082 # wildcard, and that the wildcard does not include future systems
2083 # (which may remove their limitations).
2084 case $ac_sys_system/$ac_sys_release in
2085 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2086 # even though select is a POSIX function. Reported by J. Ribbens.
2087 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2088 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2089 define_xopen_source=no
2090 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2091 # also defined. This can be overridden by defining _BSD_SOURCE
2092 # As this has a different meaning on Linux, only define it on OpenBSD
2094 cat >>confdefs.h <<\_ACEOF
2095 #define _BSD_SOURCE 1
2099 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2100 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2102 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2103 define_xopen_source=no;;
2104 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2105 # of union __?sigval. Reported by Stuart Bishop.
2107 define_xopen_source=no;;
2108 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2109 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2110 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2111 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2112 define_xopen_source=no;;
2113 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2114 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2116 define_xopen_source=no;;
2117 # On FreeBSD 4, the math functions C89 does not cover are never defined
2118 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2120 define_xopen_source=no;;
2121 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2122 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2123 # identifies itself as Darwin/7.*
2124 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2125 # disables platform specific features beyond repair.
2126 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2127 # has no effect, don't bother defining them
2129 define_xopen_source=no;;
2130 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2131 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2132 # or has another value. By not (re)defining it, the defaults come in place.
2134 define_xopen_source=no;;
2136 if test `uname
-r` -eq 1; then
2137 define_xopen_source=no
2140 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2141 # defining NI_NUMERICHOST.
2143 define_xopen_source=no
2148 if test $define_xopen_source = yes
2150 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2151 # defined precisely as g++ defines it
2152 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2154 case $ac_sys_system/$ac_sys_release in
2155 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2157 cat >>confdefs.h <<\_ACEOF
2158 #define _XOPEN_SOURCE 500
2164 cat >>confdefs.h <<\_ACEOF
2165 #define _XOPEN_SOURCE 600
2171 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2172 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2173 # several APIs are not declared. Since this is also needed in some
2174 # cases for HP-UX, we define it globally.
2175 # except for Solaris 10, where it must not be defined,
2176 # as it implies XPG4.2
2177 case $ac_sys_system/$ac_sys_release in
2182 cat >>confdefs.h <<\_ACEOF
2183 #define _XOPEN_SOURCE_EXTENDED 1
2190 cat >>confdefs.h <<\_ACEOF
2191 #define _POSIX_C_SOURCE 200112L
2198 # SGI compilers allow the specification of the both the ABI and the
2199 # ISA on the command line. Depending on the values of these switches,
2200 # different and often incompatable code will be generated.
2202 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2203 # thus supply support for various ABI/ISA combinations. The MACHDEP
2204 # variable is also adjusted.
2207 if test ! -z "$SGI_ABI"
2210 LDFLAGS="$SGI_ABI $LDFLAGS"
2211 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2213 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2214 echo "${ECHO_T}$MACHDEP" >&6; }
2216 # And add extra plat-mac for darwin
2219 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2220 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2221 if test -z "$EXTRAPLATDIR"
2225 EXTRAPLATDIR="\$(PLATMACDIRS)"
2226 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2234 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2235 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2237 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2238 # it may influence the way we can build extensions, so distutils
2242 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2243 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2245 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2246 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2247 ac_sys_machine=`uname
-m`
2248 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2249 echo "${ECHO_T}$ac_sys_machine" >&6; }
2251 # checks for alternative programs
2253 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2254 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2255 # just to get things to compile and link. Users are free to override OPT
2256 # when running configure or make. The build should not break if they do.
2257 # BASECFLAGS should generally not be messed with, however.
2259 # XXX shouldn't some/most/all of this code be merged with the stuff later
2260 # on that fiddles with OPT and BASECFLAGS?
2261 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2262 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2264 # Check whether --with-gcc was given.
2265 if test "${with_gcc+set}" = set; then
2273 without_gcc=$withval;;
2277 case $ac_sys_system in
2281 case $BE_HOST_CPU in
2285 BASECFLAGS="$BASECFLAGS -export pragma"
2287 LDFLAGS="$LDFLAGS -nodup"
2295 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2296 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2297 { (exit 1); exit 1; }; }
2300 AR="\$(srcdir)/Modules/ar_beos"
2310 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2311 echo "${ECHO_T}$without_gcc" >&6; }
2313 # If the user switches compilers, we can't believe the cache
2314 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2316 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2317 (it is also a good idea to do 'make clean' before compiling)" >&5
2318 echo "$as_me: error: cached CC is different -- throw away $cache_file
2319 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2320 { (exit 1); exit 1; }; }
2324 ac_cpp='$CPP $CPPFLAGS'
2325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328 if test -n "$ac_tool_prefix"; then
2329 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 if test -n "$CC"; then
2337 ac_cv_prog_CC="$CC" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 if test -n "$CC"; then
2358 { echo "$as_me:$LINENO: result: $CC" >&5
2359 echo "${ECHO_T}$CC" >&6; }
2361 { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2367 if test -z "$ac_cv_prog_CC"; then
2369 # Extract the first word of "gcc", so it can be a program name with args.
2370 set dummy gcc; ac_word=$2
2371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 if test -n "$ac_ct_CC"; then
2377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 ac_cv_prog_ac_ct_CC="gcc"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2397 if test -n "$ac_ct_CC"; then
2398 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2399 echo "${ECHO_T}$ac_ct_CC" >&6; }
2401 { echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6; }
2405 if test "x$ac_ct_CC" = x; then
2408 case $cross_compiling:$ac_tool_warned in
2410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2411 whose name does not start with the host triplet. If you think this
2412 configuration is useful to you, please write to autoconf@gnu.org." >&5
2413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2414 whose name does not start with the host triplet. If you think this
2415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2416 ac_tool_warned=yes ;;
2424 if test -z "$CC"; then
2425 if test -n "$ac_tool_prefix"; then
2426 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}cc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_CC="${ac_tool_prefix}cc"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 if test -n "$CC"; then
2455 { echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6; }
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2465 if test -z "$CC"; then
2466 # Extract the first word of "cc", so it can be a program name with args.
2467 set dummy cc; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2485 ac_prog_rejected=yes
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 if test $ac_prog_rejected = yes; then
2497 # We found a bogon in the path, so make sure we never use it.
2498 set dummy $ac_cv_prog_CC
2500 if test $# != 0; then
2501 # We chose a different compiler from the bogus one.
2502 # However, it has the same basename, so the bogon will be chosen
2503 # first if we set CC to just the basename; use the full file name.
2505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2511 if test -n "$CC"; then
2512 { echo "$as_me:$LINENO: result: $CC" >&5
2513 echo "${ECHO_T}$CC" >&6; }
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2521 if test -z "$CC"; then
2522 if test -n "$ac_tool_prefix"; then
2523 for ac_prog in cl.exe
2525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 if test -n "$CC"; then
2554 { echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6; }
2557 { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2562 test -n "$CC" && break
2565 if test -z "$CC"; then
2567 for ac_prog in cl.exe
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 if test -n "$ac_ct_CC"; then
2577 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_ac_ct_CC="$ac_prog"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599 echo "${ECHO_T}$ac_ct_CC" >&6; }
2601 { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2606 test -n "$ac_ct_CC" && break
2609 if test "x$ac_ct_CC" = x; then
2612 case $cross_compiling:$ac_tool_warned in
2614 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2615 whose name does not start with the host triplet. If you think this
2616 configuration is useful to you, please write to autoconf@gnu.org." >&5
2617 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2618 whose name does not start with the host triplet. If you think this
2619 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2620 ac_tool_warned=yes ;;
2629 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2630 See \`config.log
' for more details." >&5
2631 echo "$as_me: error: no acceptable C compiler found in \$PATH
2632 See \`config.log' for more details.
" >&2;}
2633 { (exit 1); exit 1; }; }
2635 # Provide some information about the compiler.
2636 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2637 ac_compiler=`set X $ac_compile; echo $2`
2638 { (ac_try="$ac_compiler --version >&5"
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2644 (eval "$ac_compiler --version >&5") 2>&5
2646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2647 (exit $ac_status); }
2648 { (ac_try="$ac_compiler -v >&5"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compiler -v >&5") 2>&5
2656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2657 (exit $ac_status); }
2658 { (ac_try="$ac_compiler -V >&5"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compiler -V >&5") 2>&5
2666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2667 (exit $ac_status); }
2669 cat >conftest.$ac_ext <<_ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2684 ac_clean_files_save=$ac_clean_files
2685 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2686 # Try to create an executable without -o first, disregard a.out.
2687 # It will help us diagnose broken compilers, and finding out an intuition
2689 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2690 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2691 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2693 # List of possible output files, starting from the most likely.
2694 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2695 # only as a last resort. b.out is created by i960 compilers.
2696 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2698 # The IRIX 6 linker writes into existing files which may not be
2699 # executable, retaining their permissions. Remove them first so a
2700 # subsequent execution test works.
2702 for ac_file in $ac_files
2705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2706 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2711 if { (ac_try="$ac_link_default"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_link_default") 2>&5
2719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2720 (exit $ac_status); }; then
2721 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2722 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2723 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2724 # so that the user can short-circuit this test for compilers unknown to
2726 for ac_file in $ac_files ''
2728 test -f "$ac_file" || continue
2730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2733 # We found the default executable, but exeext='' is most
2737 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2739 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2741 # We set ac_cv_exeext here because the later test for it is not
2742 # safe: cross compilers may not add the suffix if given an `-o'
2743 # argument, so we may need to know it at that point already.
2744 # Even if this section looks crufty: it has the advantage of
2751 test "$ac_cv_exeext" = no && ac_cv_exeext=
2757 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2758 echo "${ECHO_T}$ac_file" >&6; }
2759 if test -z "$ac_file"; then
2760 echo "$as_me: failed program was
:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2764 See \
`config.log' for more details." >&5
2765 echo "$as_me: error: C compiler cannot create executables
2766 See \`config.log
' for more details." >&2;}
2767 { (exit 77); exit 77; }; }
2770 ac_exeext=$ac_cv_exeext
2772 # Check that the compiler produces executables we can run. If not, either
2773 # the compiler is broken, or we cross compile.
2774 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2775 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2776 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2777 # If not cross compiling, check that we can run a simple program.
2778 if test "$cross_compiling" != yes; then
2779 if { ac_try='.
/$ac_file'
2780 { (case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_try") 2>&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2791 if test "$cross_compiling" = maybe; then
2794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2795 If you meant to cross compile, use \`--host'.
2796 See \
`config.log' for more details." >&5
2797 echo "$as_me: error: cannot run C compiled programs.
2798 If you meant to cross compile, use \`--host'.
2799 See \`config.log' for more details.
" >&2;}
2800 { (exit 1); exit 1; }; }
2804 { echo "$as_me:$LINENO: result
: yes" >&5
2805 echo "${ECHO_T}yes" >&6; }
2807 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2808 ac_clean_files=$ac_clean_files_save
2809 # Check that the compiler produces executables we can run. If not, either
2810 # the compiler is broken, or we cross compile.
2811 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2812 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2813 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2814 echo "${ECHO_T}$cross_compiling" >&6; }
2816 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2817 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2818 if { (ac_try="$ac_link"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link") 2>&5
2826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2829 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2830 # work properly (i.e., refer to `conftest.exe'), while it won't with
2832 for ac_file in conftest.exe conftest conftest.*; do
2833 test -f "$ac_file" || continue
2835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2836 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2842 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2843 See \
`config.log' for more details." >&5
2844 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2845 See \`config.log
' for more details." >&2;}
2846 { (exit 1); exit 1; }; }
2849 rm -f conftest$ac_cv_exeext
2850 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2851 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2853 rm -f conftest.$ac_ext
2854 EXEEXT=$ac_cv_exeext
2856 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2857 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2858 if test "${ac_cv_objext+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 cat >conftest.$ac_ext <<_ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2876 rm -f conftest.o conftest.obj
2877 if { (ac_try="$ac_compile"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 for ac_file in conftest.o conftest.obj conftest.*; do
2888 test -f "$ac_file" || continue;
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2891 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2896 echo "$as_me: failed program was:" >&5
2897 sed 's
/^
/|
/' conftest.$ac_ext >&5
2899 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2900 See \`config.log' for more details.
" >&5
2901 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2902 See \
`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }
2906 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2908 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2909 echo "${ECHO_T}$ac_cv_objext" >&6; }
2910 OBJEXT=$ac_cv_objext
2912 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2913 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2914 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2939 *) ac_try_echo
=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>conftest.er1
2944 grep -v '^ *+' conftest.er1
>conftest.err
2946 cat conftest.err
>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } && {
2949 test -z "$ac_c_werror_flag" ||
2950 test ! -s conftest.err
2951 } && test -s conftest.
$ac_objext; then
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.
$ac_ext >&5
2960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2961 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2964 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2965 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2966 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2967 ac_test_CFLAGS
=${CFLAGS+set}
2968 ac_save_CFLAGS
=$CFLAGS
2969 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2970 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2971 if test "${ac_cv_prog_cc_g+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 ac_save_c_werror_flag
=$ac_c_werror_flag
2975 ac_c_werror_flag
=yes
2978 cat >conftest.
$ac_ext <<_ACEOF
2981 cat confdefs.h
>>conftest.
$ac_ext
2982 cat >>conftest.
$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2993 rm -f conftest.
$ac_objext
2994 if { (ac_try
="$ac_compile"
2996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3002 grep -v '^ *+' conftest.er1 >conftest.err
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } && {
3007 test -z "$ac_c_werror_flag" ||
3008 test ! -s conftest.err
3009 } && test -s conftest.$ac_objext; then
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3031 rm -f conftest.$ac_objext
3032 if { (ac_try="$ac_compile"
3034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3035 *) ac_try_echo
=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compile") 2>conftest.er1
3040 grep -v '^ *+' conftest.er1
>conftest.err
3042 cat conftest.err
>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } && {
3045 test -z "$ac_c_werror_flag" ||
3046 test ! -s conftest.err
3047 } && test -s conftest.
$ac_objext; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.
$ac_ext >&5
3053 ac_c_werror_flag
=$ac_save_c_werror_flag
3055 cat >conftest.
$ac_ext <<_ACEOF
3058 cat confdefs.h
>>conftest.
$ac_ext
3059 cat >>conftest.
$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3070 rm -f conftest.
$ac_objext
3071 if { (ac_try
="$ac_compile"
3073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } && {
3084 test -z "$ac_c_werror_flag" ||
3085 test ! -s conftest.err
3086 } && test -s conftest.$ac_objext; then
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 ac_c_werror_flag=$ac_save_c_werror_flag
3104 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3105 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3106 if test "$ac_test_CFLAGS" = set; then
3107 CFLAGS=$ac_save_CFLAGS
3108 elif test $ac_cv_prog_cc_g = yes; then
3109 if test "$GCC" = yes; then
3115 if test "$GCC" = yes; then
3121 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3122 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3123 if test "${ac_cv_prog_cc_c89+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 ac_cv_prog_cc_c89=no
3128 cat >conftest.$ac_ext <<_ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3136 #include <sys/types.h>
3137 #include <sys/stat.h>
3138 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3139 struct buf { int x; };
3140 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3141 static char *e (p, i)
3147 static char *f (char * (*g) (char **, int), char **p, ...)
3152 s = g (p, va_arg (v,int));
3157 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3158 function prototypes and stuff, but not '\xHH' hex character constants.
3159 These don't provoke an error unfortunately, instead are silently treated
3160 as 'x'. The following induces an error, until -std is added to get
3161 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3162 array size at least. It's necessary to write '\x00'==0 to get something
3163 that's true only with -std. */
3164 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3166 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3167 inside strings and character constants. */
3169 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3171 int test (int i, double x);
3172 struct s1 {int (*f) (int a);};
3173 struct s2 {int (*f) (double a);};
3174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3185 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3186 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3188 CC="$ac_save_CC $ac_arg"
3189 rm -f conftest.$ac_objext
3190 if { (ac_try="$ac_compile"
3192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3193 *) ac_try_echo
=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_compile") 2>conftest.er1
3198 grep -v '^ *+' conftest.er1
>conftest.err
3200 cat conftest.err
>&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } && {
3203 test -z "$ac_c_werror_flag" ||
3204 test ! -s conftest.err
3205 } && test -s conftest.
$ac_objext; then
3206 ac_cv_prog_cc_c89
=$ac_arg
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.
$ac_ext >&5
3214 rm -f core conftest.err conftest.
$ac_objext
3215 test "x$ac_cv_prog_cc_c89" != "xno" && break
3217 rm -f conftest.
$ac_ext
3222 case "x$ac_cv_prog_cc_c89" in
3224 { echo "$as_me:$LINENO: result: none needed" >&5
3225 echo "${ECHO_T}none needed" >&6; } ;;
3227 { echo "$as_me:$LINENO: result: unsupported" >&5
3228 echo "${ECHO_T}unsupported" >&6; } ;;
3230 CC
="$CC $ac_cv_prog_cc_c89"
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3237 ac_cpp
='$CPP $CPPFLAGS'
3238 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3245 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3246 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3248 # Check whether --with-cxx_main was given.
3249 if test "${with_cxx_main+set}" = set; then
3250 withval
=$with_cxx_main;
3253 no
) with_cxx_main
=no
3255 yes) with_cxx_main
=yes
3257 *) with_cxx_main
=yes
3271 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3272 echo "${ECHO_T}$with_cxx_main" >&6; }
3278 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3279 set dummy g
++; ac_word
=$2
3280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3282 if test "${ac_cv_path_CXX+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3291 for as_dir
in notfound
3294 test -z "$as_dir" && as_dir
=.
3295 for ac_exec_ext
in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3310 if test -n "$CXX"; then
3311 { echo "$as_me:$LINENO: result: $CXX" >&5
3312 echo "${ECHO_T}$CXX" >&6; }
3314 { echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6; }
3319 cc
) # Extract the first word of "c++", so it can be a program name with args.
3320 set dummy c
++; ac_word
=$2
3321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3323 if test "${ac_cv_path_CXX+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3332 for as_dir
in notfound
3335 test -z "$as_dir" && as_dir
=.
3336 for ac_exec_ext
in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3351 if test -n "$CXX"; then
3352 { echo "$as_me:$LINENO: result: $CXX" >&5
3353 echo "${ECHO_T}$CXX" >&6; }
3355 { echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6; }
3361 if test "$CXX" = "notfound"
3368 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3370 # Extract the first word of "$ac_prog", so it can be a program name with args.
3371 set dummy
$ac_prog; ac_word
=$2
3372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_CXX+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 if test -n "$CXX"; then
3378 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_exec_ext
in '' $ac_executable_extensions; do
3386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 ac_cv_prog_CXX
="$ac_prog"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 if test -n "$CXX"; then
3399 { echo "$as_me:$LINENO: result: $CXX" >&5
3400 echo "${ECHO_T}$CXX" >&6; }
3402 { echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6; }
3407 test -n "$CXX" && break
3409 test -n "$CXX" || CXX
="notfound"
3411 if test "$CXX" = "notfound"
3416 if test "$preset_cxx" != "$CXX"
3418 { echo "$as_me:$LINENO: WARNING:
3420 By default, distutils will build C++ extension modules with \"$CXX\".
3421 If this is not intended, then set CXX on the configure command line.
3423 echo "$as_me: WARNING:
3425 By default, distutils will build C++ extension modules with \"$CXX\".
3426 If this is not intended, then set CXX on the configure command line.
3431 # checks for UNIX variants that set C preprocessor variables
3434 ac_cpp
='$CPP $CPPFLAGS'
3435 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3438 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3439 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3440 # On Suns, sometimes $CPP names a directory.
3441 if test -n "$CPP" && test -d "$CPP"; then
3444 if test -z "$CPP"; then
3445 if test "${ac_cv_prog_CPP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 # Double quotes because CPP needs to be expanded
3449 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3452 for ac_c_preproc_warn_flag
in '' yes
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
3460 cat >conftest.
$ac_ext <<_ACEOF
3463 cat confdefs.h
>>conftest.
$ac_ext
3464 cat >>conftest.
$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3467 # include <limits.h>
3469 # include <assert.h>
3473 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null && {
3486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 # Broken: fails on valid input.
3498 rm -f conftest.err conftest.$ac_ext
3500 # OK, works on sane cases. Now check whether nonexistent headers
3501 # can be detected and how.
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 #include <ac_nonexistent.h>
3510 if { (ac_try="$ac_cpp conftest.$ac_ext"
3512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3513 *) ac_try_echo
=$ac_try;;
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3518 grep -v '^ *+' conftest.er1
>conftest.err
3520 cat conftest.err
>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } >/dev
/null
&& {
3523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3524 test ! -s conftest.err
3526 # Broken: success on invalid input.
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.
$ac_ext >&5
3532 # Passes both tests.
3537 rm -f conftest.err conftest.
$ac_ext
3540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541 rm -f conftest.err conftest.
$ac_ext
3542 if $ac_preproc_ok; then
3554 { echo "$as_me:$LINENO: result: $CPP" >&5
3555 echo "${ECHO_T}$CPP" >&6; }
3557 for ac_c_preproc_warn_flag
in '' yes
3559 # Use a header file that comes with gcc, so configuring glibc
3560 # with a fresh cross-compiler works.
3561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3562 # <limits.h> exists even on freestanding compilers.
3563 # On the NeXT, cc -E runs the code through the compiler's parser,
3564 # not just through cpp. "Syntax error" is here to catch this case.
3565 cat >conftest.
$ac_ext <<_ACEOF
3568 cat confdefs.h
>>conftest.
$ac_ext
3569 cat >>conftest.
$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3572 # include <limits.h>
3574 # include <assert.h>
3578 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3586 grep -v '^ *+' conftest.er1 >conftest.err
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } >/dev/null && {
3591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3592 test ! -s conftest.err
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 # Broken: fails on valid input.
3603 rm -f conftest.err conftest.$ac_ext
3605 # OK, works on sane cases. Now check whether nonexistent headers
3606 # can be detected and how.
3607 cat >conftest.$ac_ext <<_ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613 #include <ac_nonexistent.h>
3615 if { (ac_try="$ac_cpp conftest.$ac_ext"
3617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3618 *) ac_try_echo
=$ac_try;;
3620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1
>conftest.err
3625 cat conftest.err
>&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev
/null
&& {
3628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3631 # Broken: success on invalid input.
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.
$ac_ext >&5
3637 # Passes both tests.
3642 rm -f conftest.err conftest.
$ac_ext
3645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646 rm -f conftest.err conftest.
$ac_ext
3647 if $ac_preproc_ok; then
3650 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3651 See \`config.log' for more details." >&5
3652 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3653 See \`config.log' for more details." >&2;}
3654 { (exit 1); exit 1; }; }
3658 ac_cpp
='$CPP $CPPFLAGS'
3659 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3664 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3665 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 # Extract the first word of "grep ggrep" to use in msg output
3670 if test -z "$GREP"; then
3671 set dummy
grep ggrep
; ac_prog_name
=$2
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 ac_path_GREP_found
=false
3676 # Loop through the user's path and test for each of PROGNAME-LIST
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3678 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3681 test -z "$as_dir" && as_dir
=.
3682 for ac_prog
in grep ggrep
; do
3683 for ac_exec_ext
in '' $ac_executable_extensions; do
3684 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3685 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3686 # Check for GNU ac_path_GREP and select it if it is found.
3687 # Check for GNU $ac_path_GREP
3688 case `"$ac_path_GREP" --version 2>&1` in
3690 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3693 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3696 cat "conftest.in" "conftest.in" >"conftest.tmp"
3697 mv "conftest.tmp" "conftest.in"
3698 cp "conftest.in" "conftest.nl"
3699 echo 'GREP' >> "conftest.nl"
3700 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3701 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3702 ac_count
=`expr $ac_count + 1`
3703 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3704 # Best one so far, save it but keep looking for a better one
3705 ac_cv_path_GREP
="$ac_path_GREP"
3706 ac_path_GREP_max
=$ac_count
3708 # 10*(2^10) chars as input seems more than enough
3709 test $ac_count -gt 10 && break
3711 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3715 $ac_path_GREP_found && break 3
3725 GREP
="$ac_cv_path_GREP"
3726 if test -z "$GREP"; then
3727 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3728 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3729 { (exit 1); exit 1; }; }
3733 ac_cv_path_GREP
=$GREP
3738 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3739 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3740 GREP
="$ac_cv_path_GREP"
3743 { echo "$as_me:$LINENO: checking for egrep" >&5
3744 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3745 if test "${ac_cv_path_EGREP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3749 then ac_cv_path_EGREP
="$GREP -E"
3751 # Extract the first word of "egrep" to use in msg output
3752 if test -z "$EGREP"; then
3753 set dummy
egrep; ac_prog_name
=$2
3754 if test "${ac_cv_path_EGREP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_path_EGREP_found
=false
3758 # Loop through the user's path and test for each of PROGNAME-LIST
3759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3760 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3763 test -z "$as_dir" && as_dir
=.
3764 for ac_prog
in egrep; do
3765 for ac_exec_ext
in '' $ac_executable_extensions; do
3766 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3767 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3768 # Check for GNU ac_path_EGREP and select it if it is found.
3769 # Check for GNU $ac_path_EGREP
3770 case `"$ac_path_EGREP" --version 2>&1` in
3772 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3775 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 echo 'EGREP' >> "conftest.nl"
3782 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3783 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3784 ac_count
=`expr $ac_count + 1`
3785 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_EGREP
="$ac_path_EGREP"
3788 ac_path_EGREP_max
=$ac_count
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3793 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3797 $ac_path_EGREP_found && break 3
3807 EGREP
="$ac_cv_path_EGREP"
3808 if test -z "$EGREP"; then
3809 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3810 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3811 { (exit 1); exit 1; }; }
3815 ac_cv_path_EGREP
=$EGREP
3821 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3822 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3823 EGREP
="$ac_cv_path_EGREP"
3827 { echo "$as_me:$LINENO: checking for AIX" >&5
3828 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3829 cat >conftest.
$ac_ext <<_ACEOF
3832 cat confdefs.h
>>conftest.
$ac_ext
3833 cat >>conftest.
$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 $EGREP "yes" >/dev
/null
2>&1; then
3842 { echo "$as_me:$LINENO: result: yes" >&5
3843 echo "${ECHO_T}yes" >&6; }
3844 cat >>confdefs.h
<<\_ACEOF
3845 #define _ALL_SOURCE 1
3849 { echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6; }
3856 # Check for unsupported systems
3857 case $ac_sys_system/$ac_sys_release in
3859 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3860 echo See README
for details.
3865 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3866 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3868 # Check whether --with-suffix was given.
3869 if test "${with_suffix+set}" = set; then
3870 withval
=$with_suffix;
3874 *) EXEEXT
=$withval;;
3878 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3879 echo "${ECHO_T}$EXEEXT" >&6; }
3881 # Test whether we're running on a non-case-sensitive system, in which
3882 # case we give a warning if no ext is given
3884 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3885 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3886 if test ! -d CaseSensitiveTestDir
; then
3887 mkdir CaseSensitiveTestDir
3890 if test -d casesensitivetestdir
3892 { echo "$as_me:$LINENO: result: yes" >&5
3893 echo "${ECHO_T}yes" >&6; }
3896 { echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6; }
3900 rmdir CaseSensitiveTestDir
3905 gcc
) CC
="$CC -D_HAVE_BSDI";;
3909 case $ac_sys_system in
3912 cc|
*/cc
) CC
="$CC -Ae";;
3916 cc
) CC
="$CC -Wl,-Bexport";;
3919 # Some functions have a prototype only with that define, e.g. confstr
3921 cat >>confdefs.h
<<\_ACEOF
3922 #define __EXTENSIONS__ 1
3930 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3931 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3932 if test -z "$LIBRARY"
3934 LIBRARY
='libpython$(VERSION).a'
3936 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3937 echo "${ECHO_T}$LIBRARY" >&6; }
3939 # LDLIBRARY is the name of the library to link against (as opposed to the
3940 # name of the library into which to insert object files). BLDLIBRARY is also
3941 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3942 # is blank as the main program is not linked directly against LDLIBRARY.
3943 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3944 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3945 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3946 # DLLLIBRARY is the shared (i.e., DLL) library.
3948 # RUNSHARED is used to run shared python without installed libraries
3950 # INSTSONAME is the name of the shared library that will be use to install
3951 # on the system - some systems like version suffix, others don't
3958 LDLIBRARY
="$LIBRARY"
3959 BLDLIBRARY
='$(LDLIBRARY)'
3960 INSTSONAME
='$(LDLIBRARY)'
3965 # LINKCC is the command that links the python executable -- default is $(CC).
3966 # If CXX is set, and if it is needed to link a main function that was
3967 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3968 # python might then depend on the C++ runtime
3969 # This is altered for AIX in order to build the export list before
3972 { echo "$as_me:$LINENO: checking LINKCC" >&5
3973 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3974 if test -z "$LINKCC"
3976 LINKCC
='$(PURIFY) $(MAINCC)'
3977 case $ac_sys_system in
3980 if test $ac_sys_release -ge 5 -o \
3981 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3984 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3986 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3988 # qcc must be used because the other compilers do not
3993 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3994 echo "${ECHO_T}$LINKCC" >&6; }
3996 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3997 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3998 # Check whether --enable-shared was given.
3999 if test "${enable_shared+set}" = set; then
4000 enableval
=$enable_shared;
4004 if test -z "$enable_shared"
4006 case $ac_sys_system in
4008 enable_shared
="yes";;
4010 enable_shared
="no";;
4013 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4014 echo "${ECHO_T}$enable_shared" >&6; }
4016 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4017 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4018 # Check whether --enable-profiling was given.
4019 if test "${enable_profiling+set}" = set; then
4020 enableval
=$enable_profiling; ac_save_cc
="$CC"
4022 if test "$cross_compiling" = yes; then
4023 ac_enable_profiling
="no"
4025 cat >conftest.
$ac_ext <<_ACEOF
4028 cat confdefs.h
>>conftest.
$ac_ext
4029 cat >>conftest.
$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 int main() { return 0; }
4033 rm -f conftest
$ac_exeext
4034 if { (ac_try
="$ac_link"
4036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_link") 2>&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4044 { (case "(($ac_try" in
4045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4046 *) ac_try_echo
=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4053 ac_enable_profiling
="yes"
4055 echo "$as_me: program exited with status $ac_status" >&5
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.
$ac_ext >&5
4060 ac_enable_profiling
="no"
4062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4069 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4070 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4072 case "$ac_enable_profiling" in
4074 BASECFLAGS
="-pg $BASECFLAGS"
4075 LDFLAGS
="-pg $LDFLAGS"
4079 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4080 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4082 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4083 # library that we build, but we do not want to link against it (we
4084 # will find it with a -framework option). For this reason there is an
4085 # extra variable BLDLIBRARY against which Python and the extension
4086 # modules are linked, BLDLIBRARY. This is normally the same as
4087 # LDLIBRARY, but empty for MacOSX framework builds.
4088 if test "$enable_framework"
4090 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4091 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4094 BLDLIBRARY
='$(LDLIBRARY)'
4097 # Other platforms follow
4098 if test $enable_shared = "yes"; then
4100 cat >>confdefs.h
<<\_ACEOF
4101 #define Py_ENABLE_SHARED 1
4104 case $ac_sys_system in
4106 LDLIBRARY
='libpython$(VERSION).so'
4109 LDLIBRARY
='libpython$(VERSION).dll.a'
4110 DLLLIBRARY
='libpython$(VERSION).dll'
4113 LDLIBRARY
='libpython$(VERSION).so'
4114 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4115 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4116 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4118 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4119 LDLIBRARY
='libpython$(VERSION).so'
4120 BLDLIBRARY
='-L. -lpython$(VERSION)'
4121 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4122 case $ac_sys_system in
4124 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4127 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4132 LDLIBRARY
='libpython$(VERSION).so'
4135 LDLIBRARY
='libpython$(VERSION).sl'
4138 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4139 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4142 LDLIBRARY
='libpython$(VERSION).so'
4143 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4144 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4147 LDLIBRARY
='libpython$(VERSION).so'
4148 BLDLIBRARY
='-L. -lpython$(VERSION)'
4149 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4152 LDLIBRARY
='libpython$(VERSION).dylib'
4153 BLDLIBRARY
='-L. -lpython$(VERSION)'
4154 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4158 else # shared is disabled
4159 case $ac_sys_system in
4161 BLDLIBRARY
='$(LIBRARY)'
4162 LDLIBRARY
='libpython$(VERSION).dll.a'
4167 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4168 echo "${ECHO_T}$LDLIBRARY" >&6; }
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4172 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4175 if test "${ac_cv_prog_RANLIB+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 if test -n "$RANLIB"; then
4179 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4185 test -z "$as_dir" && as_dir
=.
4186 for ac_exec_ext
in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 RANLIB
=$ac_cv_prog_RANLIB
4199 if test -n "$RANLIB"; then
4200 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4201 echo "${ECHO_T}$RANLIB" >&6; }
4203 { echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6; }
4209 if test -z "$ac_cv_prog_RANLIB"; then
4210 ac_ct_RANLIB
=$RANLIB
4211 # Extract the first word of "ranlib", so it can be a program name with args.
4212 set dummy ranlib
; ac_word
=$2
4213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4215 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 if test -n "$ac_ct_RANLIB"; then
4219 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4225 test -z "$as_dir" && as_dir
=.
4226 for ac_exec_ext
in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4239 if test -n "$ac_ct_RANLIB"; then
4240 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4241 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4243 { echo "$as_me:$LINENO: result: no" >&5
4244 echo "${ECHO_T}no" >&6; }
4247 if test "x$ac_ct_RANLIB" = x
; then
4250 case $cross_compiling:$ac_tool_warned in
4252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4253 whose name does not start with the host triplet. If you think this
4254 configuration is useful to you, please write to autoconf@gnu.org." >&5
4255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4256 whose name does not start with the host triplet. If you think this
4257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4258 ac_tool_warned
=yes ;;
4260 RANLIB
=$ac_ct_RANLIB
4263 RANLIB
="$ac_cv_prog_RANLIB"
4267 for ac_prog
in ar aal
4269 # Extract the first word of "$ac_prog", so it can be a program name with args.
4270 set dummy
$ac_prog; ac_word
=$2
4271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4273 if test "${ac_cv_prog_AR+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 if test -n "$AR"; then
4277 ac_cv_prog_AR
="$AR" # Let the user override the test.
4279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir
=.
4284 for ac_exec_ext
in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_AR
="$ac_prog"
4287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 if test -n "$AR"; then
4298 { echo "$as_me:$LINENO: result: $AR" >&5
4299 echo "${ECHO_T}$AR" >&6; }
4301 { echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6; }
4306 test -n "$AR" && break
4308 test -n "$AR" || AR
="ar"
4312 # Extract the first word of "svnversion", so it can be a program name with args.
4313 set dummy svnversion
; ac_word
=$2
4314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4316 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 if test -n "$SVNVERSION"; then
4320 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4326 test -z "$as_dir" && as_dir
=.
4327 for ac_exec_ext
in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329 ac_cv_prog_SVNVERSION
="found"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4340 SVNVERSION
=$ac_cv_prog_SVNVERSION
4341 if test -n "$SVNVERSION"; then
4342 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4343 echo "${ECHO_T}$SVNVERSION" >&6; }
4345 { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4350 if test $SVNVERSION = found
4352 SVNVERSION
="svnversion \$(srcdir)"
4354 SVNVERSION
="echo exported"
4359 # install -d does not work on BSDI or HP-UX
4360 if test -z "$INSTALL"
4362 INSTALL
="${srcdir}/install-sh -c"
4366 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4367 if test -f "$ac_dir/install-sh"; then
4369 ac_install_sh
="$ac_aux_dir/install-sh -c"
4371 elif test -f "$ac_dir/install.sh"; then
4373 ac_install_sh
="$ac_aux_dir/install.sh -c"
4375 elif test -f "$ac_dir/shtool"; then
4377 ac_install_sh
="$ac_aux_dir/shtool install -c"
4381 if test -z "$ac_aux_dir"; then
4382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4383 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4384 { (exit 1); exit 1; }; }
4387 # These three variables are undocumented and unsupported,
4388 # and are intended to be withdrawn in a future Autoconf release.
4389 # They can cause serious problems if a builder's source tree is in a directory
4390 # whose full name contains unusual characters.
4391 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4392 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4393 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4396 # Find a good install program. We prefer a C program (faster),
4397 # so one script is as good as another. But avoid the broken or
4398 # incompatible versions:
4399 # SysV /etc/install, /usr/sbin/install
4400 # SunOS /usr/etc/install
4401 # IRIX /sbin/install
4403 # AmigaOS /C/install, which installs bootblocks on floppy discs
4404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4407 # OS/2's system install, which has a completely different semantic
4408 # ./install, which can be erroneously created by make from ./install.sh.
4409 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4410 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4411 if test -z "$INSTALL"; then
4412 if test "${ac_cv_path_install+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir
=.
4420 # Account for people who put trailing slashes in PATH elements.
4422 .
/ | .
// |
/cC
/* | \
4423 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4424 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4427 # OSF1 and SCO ODT 3.0 have their own names for install.
4428 # Don't use installbsd from OSF since it installs stuff as root
4430 for ac_prog
in ginstall scoinst
install; do
4431 for ac_exec_ext
in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4433 if test $ac_prog = install &&
4434 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4435 # AIX install. It has an incompatible calling convention.
4437 elif test $ac_prog = install &&
4438 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4439 # program-specific install script used by HP pwplus--don't use.
4442 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4455 if test "${ac_cv_path_install+set}" = set; then
4456 INSTALL
=$ac_cv_path_install
4458 # As a last resort, use the slow shell script. Don't cache a
4459 # value for INSTALL within a source directory, because that will
4460 # break other packages using the cache if that directory is
4461 # removed, or if the value is a relative name.
4462 INSTALL
=$ac_install_sh
4465 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4466 echo "${ECHO_T}$INSTALL" >&6; }
4468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4469 # It thinks the first close brace ends the variable substitution.
4470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4474 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4477 # Not every filesystem supports hard links
4479 if test -z "$LN" ; then
4480 case $ac_sys_system in
4482 CYGWIN
*) LN
="ln -s";;
4483 atheos
*) LN
="ln -s";;
4488 # Check for --with-pydebug
4489 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4490 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4492 # Check whether --with-pydebug was given.
4493 if test "${with_pydebug+set}" = set; then
4494 withval
=$with_pydebug;
4495 if test "$withval" != no
4498 cat >>confdefs.h
<<\_ACEOF
4502 { echo "$as_me:$LINENO: result: yes" >&5
4503 echo "${ECHO_T}yes" >&6; };
4505 else { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4509 { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4514 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4515 # merged with this chunk of code?
4517 # Optimizer/debugger flags
4518 # ------------------------
4519 # (The following bit of code is complicated enough - please keep things
4520 # indented properly. Just pretend you're editing Python code. ;-)
4522 # There are two parallel sets of case statements below, one that checks to
4523 # see if OPT was set and one that does BASECFLAGS setting based upon
4524 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4527 # tweak OPT based on compiler and platform, only if the user didn't set
4528 # it on the command line
4534 if test "$CC" != 'g++' ; then
4535 STRICT_PROTO
="-Wstrict-prototypes"
4537 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4538 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4541 case $ac_cv_prog_cc_g in
4543 if test "$Py_DEBUG" = 'true' ; then
4544 # Optimization messes up debuggers, so turn it off for
4546 OPT
="-g -Wall $STRICT_PROTO"
4548 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4552 OPT
="-O3 -Wall $STRICT_PROTO"
4555 case $ac_sys_system in
4556 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4566 # The current (beta) Monterey compiler dies with optimizations
4567 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4568 case $ac_sys_system in
4578 # The -arch flags for universal builds on OSX
4579 UNIVERSAL_ARCH_FLAGS
=
4582 # tweak BASECFLAGS based on compiler and platform
4585 # Python violates C99 rules, by casting between incompatible
4586 # pointer types. GCC may generate bad code as a result of that,
4587 # so use -fno-strict-aliasing if supported.
4588 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4589 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4591 CC
="$CC -fno-strict-aliasing"
4592 if test "$cross_compiling" = yes; then
4593 ac_cv_no_strict_aliasing_ok
=no
4595 cat >conftest.
$ac_ext <<_ACEOF
4598 cat confdefs.h
>>conftest.
$ac_ext
4599 cat >>conftest.
$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 int main() { return 0; }
4603 rm -f conftest
$ac_exeext
4604 if { (ac_try
="$ac_link"
4606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_link") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4616 *) ac_try_echo
=$ac_try;;
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_no_strict_aliasing_ok
=yes
4625 echo "$as_me: program exited with status $ac_status" >&5
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.
$ac_ext >&5
4630 ac_cv_no_strict_aliasing_ok
=no
4632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4637 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4638 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4639 if test $ac_cv_no_strict_aliasing_ok = yes
4641 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4644 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4645 # support. Without this, treatment of subnormals doesn't follow
4647 case $ac_sys_machine in
4649 BASECFLAGS
="$BASECFLAGS -mieee"
4653 case $ac_sys_system in
4655 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4657 # is there any other compiler on Darwin besides gcc?
4659 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4660 # used to be here, but non-Apple gcc doesn't accept them.
4663 if test "${enable_universalsdk}"; then
4664 UNIVERSAL_ARCH_FLAGS
=""
4665 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4666 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4669 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4670 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4672 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4673 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4674 ARCH_RUN_32BIT
="arch -i386 -ppc"
4677 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4678 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4679 { (exit 1); exit 1; }; }
4684 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4685 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4686 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4687 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4691 # Calculate the right deployment target for this build.
4693 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4694 if test ${cur_target} '>' 10.2; then
4697 if test "${UNIVERSAL_ARCHS}" = "all"; then
4698 # Ensure that the default platform for a 4-way
4699 # universal build is OSX 10.5, that's the first
4700 # OS release where 4-way builds make sense.
4703 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4705 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4706 # environment with a value that is the same as what we'll use
4707 # in the Makefile to ensure that we'll get the same compiler
4708 # environment during configure and build time.
4709 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4710 export MACOSX_DEPLOYMENT_TARGET
4711 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4715 BASECFLAGS
="$BASECFLAGS -mieee"
4721 case $ac_sys_system in
4722 OpenUNIX
*|UnixWare
*)
4723 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4726 BASECFLAGS
="$BASECFLAGS -ieee -std"
4729 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4735 if test "$Py_DEBUG" = 'true'; then
4741 if test "$ac_arch_flags"
4743 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4746 # disable check for icc since it seems to pass, but generates a warning
4749 ac_cv_opt_olimit_ok
=no
4752 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4753 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4754 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4758 CC
="$CC -OPT:Olimit=0"
4759 if test "$cross_compiling" = yes; then
4760 ac_cv_opt_olimit_ok
=no
4762 cat >conftest.
$ac_ext <<_ACEOF
4765 cat confdefs.h
>>conftest.
$ac_ext
4766 cat >>conftest.
$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 int main() { return 0; }
4770 rm -f conftest
$ac_exeext
4771 if { (ac_try
="$ac_link"
4773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_link") 2>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4781 { (case "(($ac_try" in
4782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4783 *) ac_try_echo
=$ac_try;;
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_try") 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_opt_olimit_ok
=yes
4792 echo "$as_me: program exited with status $ac_status" >&5
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.
$ac_ext >&5
4797 ac_cv_opt_olimit_ok
=no
4799 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4806 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4807 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4808 if test $ac_cv_opt_olimit_ok = yes; then
4809 case $ac_sys_system in
4810 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4811 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4816 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4820 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4821 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4822 if test "${ac_cv_olimit_ok+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 CC
="$CC -Olimit 1500"
4827 if test "$cross_compiling" = yes; then
4830 cat >conftest.
$ac_ext <<_ACEOF
4833 cat confdefs.h
>>conftest.
$ac_ext
4834 cat >>conftest.
$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 int main() { return 0; }
4838 rm -f conftest
$ac_exeext
4839 if { (ac_try
="$ac_link"
4841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_link") 2>&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4849 { (case "(($ac_try" in
4850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4851 *) ac_try_echo
=$ac_try;;
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_try") 2>&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); }; }; then
4860 echo "$as_me: program exited with status $ac_status" >&5
4861 echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.
$ac_ext >&5
4867 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4874 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4875 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4876 if test $ac_cv_olimit_ok = yes; then
4877 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4881 # Check whether GCC supports PyArg_ParseTuple format
4882 if test "$GCC" = "yes"
4884 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4885 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4887 CFLAGS
="$CFLAGS -Werror"
4888 cat >conftest.
$ac_ext <<_ACEOF
4891 cat confdefs.h
>>conftest.
$ac_ext
4892 cat >>conftest.
$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4895 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4905 rm -f conftest.
$ac_objext
4906 if { (ac_try
="$ac_compile"
4908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_compile") 2>conftest.er1
4914 grep -v '^ *+' conftest.er1 >conftest.err
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } && {
4919 test -z "$ac_c_werror_flag" ||
4920 test ! -s conftest.err
4921 } && test -s conftest.$ac_objext; then
4923 cat >>confdefs.h <<\_ACEOF
4924 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4927 { echo "$as_me:$LINENO: result: yes" >&5
4928 echo "${ECHO_T}yes" >&6; }
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4933 { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 # On some compilers, pthreads are available without further options
4943 # (e.g. MacOS X). On some of these systems, the compiler will not
4944 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4945 # So we have to see first whether pthreads are available without
4946 # options before we can check whether -Kpthread improves anything.
4947 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4948 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4949 if test "${ac_cv_pthread_is_default+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 if test "$cross_compiling" = yes; then
4953 ac_cv_pthread_is_default=no
4955 cat >conftest.$ac_ext <<_ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4962 #include <pthread.h>
4964 void* routine(void* p){return NULL;}
4968 if(pthread_create(&p,NULL,routine,NULL)!=0)
4970 (void)pthread_detach(p);
4975 rm -f conftest$ac_exeext
4976 if { (ac_try="$ac_link"
4978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4979 *) ac_try_echo
=$ac_try;;
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_link") 2>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4986 { (case "(($ac_try" in
4987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_try") 2>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4996 ac_cv_pthread_is_default=yes
5001 echo "$as_me: program exited with status $ac_status" >&5
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5006 ac_cv_pthread_is_default=no
5008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5015 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5016 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5019 if test $ac_cv_pthread_is_default = yes
5023 # -Kpthread, if available, provides the right #defines
5024 # and linker options to make pthread_create available
5025 # Some compilers won't report that they do not support -Kpthread,
5026 # so we need to run a program to see whether it really made the
5027 # function available.
5028 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5029 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5030 if test "${ac_cv_kpthread+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 if test "$cross_compiling" = yes; then
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5045 #include <pthread.h>
5047 void* routine(void* p){return NULL;}
5051 if(pthread_create(&p,NULL,routine,NULL)!=0)
5053 (void)pthread_detach(p);
5058 rm -f conftest$ac_exeext
5059 if { (ac_try="$ac_link"
5061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5062 *) ac_try_echo
=$ac_try;;
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_link") 2>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5069 { (case "(($ac_try" in
5070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_try") 2>&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }; }; then
5080 echo "$as_me: program exited with status $ac_status" >&5
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5094 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5095 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5098 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5100 # -Kthread, if available, provides the right #defines
5101 # and linker options to make pthread_create available
5102 # Some compilers won't report that they do not support -Kthread,
5103 # so we need to run a program to see whether it really made the
5104 # function available.
5105 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5106 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5107 if test "${ac_cv_kthread+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 if test "$cross_compiling" = yes; then
5115 cat >conftest.$ac_ext <<_ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5122 #include <pthread.h>
5124 void* routine(void* p){return NULL;}
5128 if(pthread_create(&p,NULL,routine,NULL)!=0)
5130 (void)pthread_detach(p);
5135 rm -f conftest$ac_exeext
5136 if { (ac_try="$ac_link"
5138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5139 *) ac_try_echo
=$ac_try;;
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_link") 2>&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5146 { (case "(($ac_try" in
5147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_try") 2>&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; }; then
5157 echo "$as_me: program exited with status $ac_status" >&5
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5171 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5172 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5175 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5177 # -pthread, if available, provides the right #defines
5178 # and linker options to make pthread_create available
5179 # Some compilers won't report that they do not support -pthread,
5180 # so we need to run a program to see whether it really made the
5181 # function available.
5182 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5183 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5184 if test "${ac_cv_thread+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 if test "$cross_compiling" = yes; then
5192 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5199 #include <pthread.h>
5201 void* routine(void* p){return NULL;}
5205 if(pthread_create(&p,NULL,routine,NULL)!=0)
5207 (void)pthread_detach(p);
5212 rm -f conftest$ac_exeext
5213 if { (ac_try="$ac_link"
5215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5216 *) ac_try_echo
=$ac_try;;
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_link") 2>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5223 { (case "(($ac_try" in
5224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_try") 2>&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5234 echo "$as_me: program exited with status $ac_status" >&5
5235 echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5248 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5249 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5252 # If we have set a CC compiler flag for thread support then
5253 # check if it works for CXX, too.
5257 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5258 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5261 if test "$ac_cv_kpthread" = "yes"
5263 CXX="$CXX -Kpthread"
5264 ac_cv_cxx_thread=yes
5265 elif test "$ac_cv_kthread" = "yes"
5268 ac_cv_cxx_thread=yes
5269 elif test "$ac_cv_pthread" = "yes"
5272 ac_cv_cxx_thread=yes
5275 if test $ac_cv_cxx_thread = yes
5277 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5278 $CXX -c conftest.$ac_ext 2>&5
5279 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5280 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5282 ac_cv_cxx_thread=yes
5288 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5289 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5294 # checks for header files
5295 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5296 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5297 if test "${ac_cv_header_stdc+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5319 rm -f conftest.$ac_objext
5320 if { (ac_try="$ac_compile"
5322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5323 *) ac_try_echo
=$ac_try;;
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_compile") 2>conftest.er1
5328 grep -v '^ *+' conftest.er1
>conftest.err
5330 cat conftest.err
>&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_c_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest.
$ac_objext; then
5336 ac_cv_header_stdc
=yes
5338 echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.
$ac_ext >&5
5341 ac_cv_header_stdc
=no
5344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5346 if test $ac_cv_header_stdc = yes; then
5347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5348 cat >conftest.
$ac_ext <<_ACEOF
5351 cat confdefs.h
>>conftest.
$ac_ext
5352 cat >>conftest.
$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 $EGREP "memchr" >/dev
/null
2>&1; then
5361 ac_cv_header_stdc
=no
5367 if test $ac_cv_header_stdc = yes; then
5368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5369 cat >conftest.
$ac_ext <<_ACEOF
5372 cat confdefs.h
>>conftest.
$ac_ext
5373 cat >>conftest.
$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "free" >/dev
/null
2>&1; then
5382 ac_cv_header_stdc
=no
5388 if test $ac_cv_header_stdc = yes; then
5389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5390 if test "$cross_compiling" = yes; then
5393 cat >conftest.
$ac_ext <<_ACEOF
5396 cat confdefs.h
>>conftest.
$ac_ext
5397 cat >>conftest.
$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5401 #if ((' ' & 0x0FF) == 0x020)
5402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5405 # define ISLOWER(c) \
5406 (('a' <= (c) && (c) <= 'i') \
5407 || ('j' <= (c) && (c) <= 'r') \
5408 || ('s' <= (c) && (c) <= 'z'))
5409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5417 for (i = 0; i < 256; i++)
5418 if (XOR (islower (i), ISLOWER (i))
5419 || toupper (i) != TOUPPER (i))
5424 rm -f conftest
$ac_exeext
5425 if { (ac_try
="$ac_link"
5427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_link") 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5435 { (case "(($ac_try" in
5436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5437 *) ac_try_echo
=$ac_try;;
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_try") 2>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5446 echo "$as_me: program exited with status $ac_status" >&5
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.
$ac_ext >&5
5451 ac_cv_header_stdc
=no
5453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5459 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5460 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5461 if test $ac_cv_header_stdc = yes; then
5463 cat >>confdefs.h
<<\_ACEOF
5464 #define STDC_HEADERS 1
5469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5479 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5480 inttypes.h stdint.h unistd.h
5482 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5485 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 cat >conftest.
$ac_ext <<_ACEOF
5491 cat confdefs.h
>>conftest.
$ac_ext
5492 cat >>conftest.
$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 $ac_includes_default
5496 #include <$ac_header>
5498 rm -f conftest.
$ac_objext
5499 if { (ac_try
="$ac_compile"
5501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_c_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5515 eval "$as_ac_Header=yes"
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 eval "$as_ac_Header=no"
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 ac_res=`eval echo '${'$as_ac_Header'}'`
5526 { echo "$as_me:$LINENO: result: $ac_res" >&5
5527 echo "${ECHO_T}$ac_res" >&6; }
5528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5529 cat >>confdefs.h <<_ACEOF
5530 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5592 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5594 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5595 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5597 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5598 sys/lock.h sys/mkdev.h sys/modem.h \
5599 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5600 sys/termio.h sys/time.h \
5601 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5602 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5603 bluetooth/bluetooth.h linux/tipc.h
5605 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 ac_res=`eval echo '${'$as_ac_Header'}'`
5613 { echo "$as_me:$LINENO: result: $ac_res" >&5
5614 echo "${ECHO_T}$ac_res" >&6; }
5616 # Is the header compilable?
5617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5619 cat >conftest.$ac_ext <<_ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5625 $ac_includes_default
5626 #include <$ac_header>
5628 rm -f conftest.$ac_objext
5629 if { (ac_try="$ac_compile"
5631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5632 *) ac_try_echo
=$ac_try;;
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_compile") 2>conftest.er1
5637 grep -v '^ *+' conftest.er1
>conftest.err
5639 cat conftest.err
>&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.
$ac_objext; then
5645 ac_header_compiler
=yes
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.
$ac_ext >&5
5650 ac_header_compiler
=no
5653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5655 echo "${ECHO_T}$ac_header_compiler" >&6; }
5657 # Is the header present?
5658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5660 cat >conftest.
$ac_ext <<_ACEOF
5663 cat confdefs.h
>>conftest.
$ac_ext
5664 cat >>conftest.
$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #include <$ac_header>
5668 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5676 grep -v '^ *+' conftest.er1 >conftest.err
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } >/dev/null && {
5681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5684 ac_header_preproc=yes
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5689 ac_header_preproc=no
5692 rm -f conftest.err conftest.$ac_ext
5693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5694 echo "${ECHO_T}$ac_header_preproc" >&6; }
5696 # So? What about this header?
5697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5703 ac_header_preproc=yes
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5719 ## ------------------------------------------------ ##
5720 ## Report this to http://www.python.org/python-bugs ##
5721 ## ------------------------------------------------ ##
5723 ) | sed "s/^/$as_me: WARNING: /" >&2
5726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 eval "$as_ac_Header=\$ac_header_preproc"
5733 ac_res=`eval echo '${'$as_ac_Header'}'`
5734 { echo "$as_me:$LINENO: result: $ac_res" >&5
5735 echo "${ECHO_T}$ac_res" >&6; }
5738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5739 cat >>confdefs.h <<_ACEOF
5740 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5753 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5754 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5755 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5756 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #include <sys/types.h>
5778 rm -f conftest.$ac_objext
5779 if { (ac_try="$ac_compile"
5781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5782 *) ac_try_echo
=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compile") 2>conftest.er1
5787 grep -v '^ *+' conftest.er1
>conftest.err
5789 cat conftest.err
>&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } && {
5792 test -z "$ac_c_werror_flag" ||
5793 test ! -s conftest.err
5794 } && test -s conftest.
$ac_objext; then
5795 eval "$as_ac_Header=yes"
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.
$ac_ext >&5
5800 eval "$as_ac_Header=no"
5803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5805 ac_res
=`eval echo '${'$as_ac_Header'}'`
5806 { echo "$as_me:$LINENO: result: $ac_res" >&5
5807 echo "${ECHO_T}$ac_res" >&6; }
5808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5809 cat >>confdefs.h
<<_ACEOF
5810 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5813 ac_header_dirent
=$ac_hdr; break
5817 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5818 if test $ac_header_dirent = dirent.h
; then
5819 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5820 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5821 if test "${ac_cv_search_opendir+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 ac_func_search_save_LIBS
=$LIBS
5825 cat >conftest.
$ac_ext <<_ACEOF
5828 cat confdefs.h
>>conftest.
$ac_ext
5829 cat >>conftest.
$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5832 /* Override any GCC internal prototype to avoid an error.
5833 Use char because int might match the return type of a GCC
5834 builtin and then its argument prototype would still apply. */
5847 for ac_lib
in '' dir
; do
5848 if test -z "$ac_lib"; then
5849 ac_res
="none required"
5852 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5854 rm -f conftest.
$ac_objext conftest
$ac_exeext
5855 if { (ac_try
="$ac_link"
5857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_link") 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } && {
5868 test -z "$ac_c_werror_flag" ||
5869 test ! -s conftest.err
5870 } && test -s conftest$ac_exeext &&
5871 $as_test_x conftest$ac_exeext; then
5872 ac_cv_search_opendir=$ac_res
5874 echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5882 if test "${ac_cv_search_opendir+set}" = set; then
5886 if test "${ac_cv_search_opendir+set}" = set; then
5889 ac_cv_search_opendir=no
5892 LIBS=$ac_func_search_save_LIBS
5894 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5895 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5896 ac_res=$ac_cv_search_opendir
5897 if test "$ac_res" != no; then
5898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5903 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5905 if test "${ac_cv_search_opendir+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_func_search_save_LIBS=$LIBS
5909 cat >conftest.$ac_ext <<_ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5916 /* Override any GCC internal prototype to avoid an error.
5917 Use char because int might match the return type of a GCC
5918 builtin and then its argument prototype would still apply. */
5931 for ac_lib in '' x; do
5932 if test -z "$ac_lib"; then
5933 ac_res="none required"
5936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5938 rm -f conftest.$ac_objext conftest$ac_exeext
5939 if { (ac_try="$ac_link"
5941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5942 *) ac_try_echo
=$ac_try;;
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_link") 2>conftest.er1
5947 grep -v '^ *+' conftest.er1
>conftest.err
5949 cat conftest.err
>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } && {
5952 test -z "$ac_c_werror_flag" ||
5953 test ! -s conftest.err
5954 } && test -s conftest
$ac_exeext &&
5955 $as_test_x conftest
$ac_exeext; then
5956 ac_cv_search_opendir
=$ac_res
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.
$ac_ext >&5
5964 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5966 if test "${ac_cv_search_opendir+set}" = set; then
5970 if test "${ac_cv_search_opendir+set}" = set; then
5973 ac_cv_search_opendir
=no
5976 LIBS
=$ac_func_search_save_LIBS
5978 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5979 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5980 ac_res
=$ac_cv_search_opendir
5981 if test "$ac_res" != no
; then
5982 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5988 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5989 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5990 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 cat >conftest.
$ac_ext <<_ACEOF
5996 cat confdefs.h
>>conftest.
$ac_ext
5997 cat >>conftest.
$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #include <sys/types.h>
6003 return makedev(0, 0);
6008 rm -f conftest.
$ac_objext conftest
$ac_exeext
6009 if { (ac_try
="$ac_link"
6011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_link") 2>conftest.er1
6017 grep -v '^ *+' conftest.er1 >conftest.err
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest$ac_exeext &&
6025 $as_test_x conftest$ac_exeext; then
6026 ac_cv_header_sys_types_h_makedev=yes
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 ac_cv_header_sys_types_h_makedev=no
6034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6035 conftest$ac_exeext conftest.$ac_ext
6038 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6039 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6041 if test $ac_cv_header_sys_types_h_makedev = no; then
6042 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6043 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6044 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6045 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6049 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6051 # Is the header compilable?
6052 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6053 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6054 cat >conftest.$ac_ext <<_ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 $ac_includes_default
6061 #include <sys/mkdev.h>
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6067 *) ac_try_echo
=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compile") 2>conftest.er1
6072 grep -v '^ *+' conftest.er1
>conftest.err
6074 cat conftest.err
>&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } && {
6077 test -z "$ac_c_werror_flag" ||
6078 test ! -s conftest.err
6079 } && test -s conftest.
$ac_objext; then
6080 ac_header_compiler
=yes
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.
$ac_ext >&5
6085 ac_header_compiler
=no
6088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6090 echo "${ECHO_T}$ac_header_compiler" >&6; }
6092 # Is the header present?
6093 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6094 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6095 cat >conftest.
$ac_ext <<_ACEOF
6098 cat confdefs.h
>>conftest.
$ac_ext
6099 cat >>conftest.
$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 #include <sys/mkdev.h>
6103 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6111 grep -v '^ *+' conftest.er1 >conftest.err
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } >/dev/null && {
6116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6117 test ! -s conftest.err
6119 ac_header_preproc=yes
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_header_preproc=no
6127 rm -f conftest.err conftest.$ac_ext
6128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6129 echo "${ECHO_T}$ac_header_preproc" >&6; }
6131 # So? What about this header?
6132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6135 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6138 ac_header_preproc=yes
6141 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6142 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6144 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6145 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6146 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6148 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6150 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6151 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6152 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6154 ## ------------------------------------------------ ##
6155 ## Report this to http://www.python.org/python-bugs ##
6156 ## ------------------------------------------------ ##
6158 ) | sed "s/^/$as_me: WARNING: /" >&2
6161 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6162 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6163 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6168 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6169 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6172 if test $ac_cv_header_sys_mkdev_h = yes; then
6174 cat >>confdefs.h <<\_ACEOF
6175 #define MAJOR_IN_MKDEV 1
6182 if test $ac_cv_header_sys_mkdev_h = no; then
6183 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6184 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6185 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6186 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6190 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6192 # Is the header compilable?
6193 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6194 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6195 cat >conftest.$ac_ext <<_ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 $ac_includes_default
6202 #include <sys/sysmacros.h>
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6208 *) ac_try_echo
=$ac_try;;
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_compile") 2>conftest.er1
6213 grep -v '^ *+' conftest.er1
>conftest.err
6215 cat conftest.err
>&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest.
$ac_objext; then
6221 ac_header_compiler
=yes
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.
$ac_ext >&5
6226 ac_header_compiler
=no
6229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6231 echo "${ECHO_T}$ac_header_compiler" >&6; }
6233 # Is the header present?
6234 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6235 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6236 cat >conftest.
$ac_ext <<_ACEOF
6239 cat confdefs.h
>>conftest.
$ac_ext
6240 cat >>conftest.
$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 #include <sys/sysmacros.h>
6244 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } >/dev/null && {
6257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6260 ac_header_preproc=yes
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_header_preproc=no
6268 rm -f conftest.err conftest.$ac_ext
6269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6270 echo "${ECHO_T}$ac_header_preproc" >&6; }
6272 # So? What about this header?
6273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6276 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6279 ac_header_preproc=yes
6282 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6283 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6285 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6287 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6289 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6290 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6291 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6293 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6295 ## ------------------------------------------------ ##
6296 ## Report this to http://www.python.org/python-bugs ##
6297 ## ------------------------------------------------ ##
6299 ) | sed "s/^/$as_me: WARNING: /" >&2
6302 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6303 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6304 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6309 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6310 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6313 if test $ac_cv_header_sys_sysmacros_h = yes; then
6315 cat >>confdefs.h <<\_ACEOF
6316 #define MAJOR_IN_SYSMACROS 1
6326 # On Solaris, term.h requires curses.h
6328 for ac_header in term.h
6330 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 cat >conftest.$ac_ext <<_ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6343 #ifdef HAVE_CURSES_H
6348 #include <$ac_header>
6350 rm -f conftest.$ac_objext
6351 if { (ac_try="$ac_compile"
6353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6354 *) ac_try_echo
=$ac_try;;
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_compile") 2>conftest.er1
6359 grep -v '^ *+' conftest.er1
>conftest.err
6361 cat conftest.err
>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && {
6364 test -z "$ac_c_werror_flag" ||
6365 test ! -s conftest.err
6366 } && test -s conftest.
$ac_objext; then
6367 eval "$as_ac_Header=yes"
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.
$ac_ext >&5
6372 eval "$as_ac_Header=no"
6375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6377 ac_res
=`eval echo '${'$as_ac_Header'}'`
6378 { echo "$as_me:$LINENO: result: $ac_res" >&5
6379 echo "${ECHO_T}$ac_res" >&6; }
6380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6381 cat >>confdefs.h
<<_ACEOF
6382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6390 # On Linux, netlink.h requires asm/types.h
6392 for ac_header
in linux
/netlink.h
6394 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6397 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 cat >conftest.
$ac_ext <<_ACEOF
6403 cat confdefs.h
>>conftest.
$ac_ext
6404 cat >>conftest.
$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6407 #ifdef HAVE_ASM_TYPES_H
6408 #include <asm/types.h>
6410 #ifdef HAVE_SYS_SOCKET_H
6411 #include <sys/socket.h>
6415 #include <$ac_header>
6417 rm -f conftest.
$ac_objext
6418 if { (ac_try
="$ac_compile"
6420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6426 grep -v '^ *+' conftest.er1 >conftest.err
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && {
6431 test -z "$ac_c_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.$ac_objext; then
6434 eval "$as_ac_Header=yes"
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6439 eval "$as_ac_Header=no"
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 ac_res=`eval echo '${'$as_ac_Header'}'`
6445 { echo "$as_me:$LINENO: result: $ac_res" >&5
6446 echo "${ECHO_T}$ac_res" >&6; }
6447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6448 cat >>confdefs.h <<_ACEOF
6449 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6457 # checks for typedefs
6459 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6460 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6471 $EGREP "clock_t" >/dev/null 2>&1; then
6476 cat >>confdefs.h <<\_ACEOF
6477 #define clock_t long
6484 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6485 echo "${ECHO_T}$was_it_defined" >&6; }
6487 # Check whether using makedev requires defining _OSF_SOURCE
6488 { echo "$as_me:$LINENO: checking for makedev" >&5
6489 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6490 cat >conftest.$ac_ext <<_ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <sys/types.h>
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (ac_try="$ac_link"
6508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6509 *) ac_try_echo
=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_link") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1
>conftest.err
6516 cat conftest.err
>&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest
$ac_exeext &&
6522 $as_test_x conftest
$ac_exeext; then
6523 ac_cv_has_makedev
=yes
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.
$ac_ext >&5
6528 ac_cv_has_makedev
=no
6531 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6532 conftest
$ac_exeext conftest.
$ac_ext
6533 if test "$ac_cv_has_makedev" = "no"; then
6534 # we didn't link, try if _OSF_SOURCE will allow us to link
6535 cat >conftest.
$ac_ext <<_ACEOF
6538 cat confdefs.h
>>conftest.
$ac_ext
6539 cat >>conftest.
$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6542 #define _OSF_SOURCE 1
6543 #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" = "yes"; then
6583 cat >>confdefs.h <<\_ACEOF
6584 #define _OSF_SOURCE 1
6589 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6590 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6591 if test "$ac_cv_has_makedev" = "yes"; then
6593 cat >>confdefs.h <<\_ACEOF
6594 #define HAVE_MAKEDEV 1
6599 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6600 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6601 # defined, but the compiler does not support pragma redefine_extname,
6602 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6603 # structures (such as rlimit64) without declaring them. As a
6604 # work-around, disable LFS on such configurations
6607 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6608 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6609 cat >conftest.$ac_ext <<_ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6616 #define _LARGEFILE_SOURCE 1
6617 #define _FILE_OFFSET_BITS 64
6618 #include <sys/resource.h>
6628 rm -f conftest.$ac_objext
6629 if { (ac_try="$ac_compile"
6631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6632 *) ac_try_echo
=$ac_try;;
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6637 grep -v '^ *+' conftest.er1
>conftest.err
6639 cat conftest.err
>&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.
$ac_objext; then
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.
$ac_ext >&5
6653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6654 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6655 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6656 if test "$sol_lfs_bug" = "yes"; then
6660 if test "$use_lfs" = "yes"; then
6661 # Two defines needed to enable largefile support on various platforms
6662 # These may affect some typedefs
6664 cat >>confdefs.h
<<\_ACEOF
6665 #define _LARGEFILE_SOURCE 1
6669 cat >>confdefs.h
<<\_ACEOF
6670 #define _FILE_OFFSET_BITS 64
6675 # Add some code to confdefs.h so that the test for off_t works on SCO
6676 cat >> confdefs.h
<<\EOF
6682 # Type availability checks
6683 { echo "$as_me:$LINENO: checking for mode_t" >&5
6684 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6685 if test "${ac_cv_type_mode_t+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 cat >conftest.
$ac_ext <<_ACEOF
6691 cat confdefs.h
>>conftest.
$ac_ext
6692 cat >>conftest.
$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6694 $ac_includes_default
6695 typedef mode_t ac__type_new_;
6699 if ((ac__type_new_ *) 0)
6701 if (sizeof (ac__type_new_))
6707 rm -f conftest.
$ac_objext
6708 if { (ac_try
="$ac_compile"
6710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6716 grep -v '^ *+' conftest.er1 >conftest.err
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 ac_cv_type_mode_t=yes
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 ac_cv_type_mode_t=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6735 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6736 if test $ac_cv_type_mode_t = yes; then
6740 cat >>confdefs.h <<_ACEOF
6746 { echo "$as_me:$LINENO: checking for off_t" >&5
6747 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6748 if test "${ac_cv_type_off_t+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 cat >conftest.$ac_ext <<_ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 $ac_includes_default
6758 typedef off_t ac__type_new_;
6762 if ((ac__type_new_ *) 0)
6764 if (sizeof (ac__type_new_))
6770 rm -f conftest.$ac_objext
6771 if { (ac_try="$ac_compile"
6773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6774 *) ac_try_echo
=$ac_try;;
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_compile") 2>conftest.er1
6779 grep -v '^ *+' conftest.er1
>conftest.err
6781 cat conftest.err
>&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest.
$ac_objext; then
6787 ac_cv_type_off_t
=yes
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.
$ac_ext >&5
6795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6797 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6798 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6799 if test $ac_cv_type_off_t = yes; then
6803 cat >>confdefs.h
<<_ACEOF
6804 #define off_t long int
6809 { echo "$as_me:$LINENO: checking for pid_t" >&5
6810 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6811 if test "${ac_cv_type_pid_t+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 cat >conftest.
$ac_ext <<_ACEOF
6817 cat confdefs.h
>>conftest.
$ac_ext
6818 cat >>conftest.
$ac_ext <<_ACEOF
6819 /* end confdefs.h. */
6820 $ac_includes_default
6821 typedef pid_t ac__type_new_;
6825 if ((ac__type_new_ *) 0)
6827 if (sizeof (ac__type_new_))
6833 rm -f conftest.
$ac_objext
6834 if { (ac_try
="$ac_compile"
6836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_compile") 2>conftest.er1
6842 grep -v '^ *+' conftest.er1 >conftest.err
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && {
6847 test -z "$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 } && test -s conftest.$ac_objext; then
6850 ac_cv_type_pid_t=yes
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6860 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6861 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6862 if test $ac_cv_type_pid_t = yes; then
6866 cat >>confdefs.h <<_ACEOF
6872 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6873 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6874 if test "${ac_cv_type_signal+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 cat >conftest.$ac_ext <<_ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 #include <sys/types.h>
6889 return *(signal (0, 0)) (0) == 1;
6894 rm -f conftest.$ac_objext
6895 if { (ac_try="$ac_compile"
6897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6898 *) ac_try_echo
=$ac_try;;
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901 (eval "$ac_compile") 2>conftest.er1
6903 grep -v '^ *+' conftest.er1
>conftest.err
6905 cat conftest.err
>&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } && {
6908 test -z "$ac_c_werror_flag" ||
6909 test ! -s conftest.err
6910 } && test -s conftest.
$ac_objext; then
6911 ac_cv_type_signal
=int
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.
$ac_ext >&5
6916 ac_cv_type_signal
=void
6919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6921 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6922 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6924 cat >>confdefs.h
<<_ACEOF
6925 #define RETSIGTYPE $ac_cv_type_signal
6929 { echo "$as_me:$LINENO: checking for size_t" >&5
6930 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6931 if test "${ac_cv_type_size_t+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 cat >conftest.
$ac_ext <<_ACEOF
6937 cat confdefs.h
>>conftest.
$ac_ext
6938 cat >>conftest.
$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 $ac_includes_default
6941 typedef size_t ac__type_new_;
6945 if ((ac__type_new_ *) 0)
6947 if (sizeof (ac__type_new_))
6953 rm -f conftest.
$ac_objext
6954 if { (ac_try
="$ac_compile"
6956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960 (eval "$ac_compile") 2>conftest.er1
6962 grep -v '^ *+' conftest.er1 >conftest.err
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } && {
6967 test -z "$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6969 } && test -s conftest.$ac_objext; then
6970 ac_cv_type_size_t=yes
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 ac_cv_type_size_t=no
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6981 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6982 if test $ac_cv_type_size_t = yes; then
6986 cat >>confdefs.h <<_ACEOF
6987 #define size_t unsigned int
6992 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6993 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6994 if test "${ac_cv_type_uid_t+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 cat >conftest.$ac_ext <<_ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #include <sys/types.h>
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "uid_t" >/dev/null 2>&1; then
7008 ac_cv_type_uid_t=yes
7015 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7016 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7017 if test $ac_cv_type_uid_t = no; then
7019 cat >>confdefs.h <<\_ACEOF
7024 cat >>confdefs.h <<\_ACEOF
7031 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7032 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7033 if test "${ac_cv_c_uint32_t+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7038 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7039 cat >conftest.$ac_ext <<_ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 $ac_includes_default
7049 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7060 *) ac_try_echo
=$ac_try;;
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_compile") 2>conftest.er1
7065 grep -v '^ *+' conftest.er1
>conftest.err
7067 cat conftest.err
>&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && {
7070 test -z "$ac_c_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest.
$ac_objext; then
7074 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7075 *) ac_cv_c_uint32_t
=$ac_type ;;
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.
$ac_ext >&5
7085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7086 test "$ac_cv_c_uint32_t" != no
&& break
7089 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7090 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7091 case $ac_cv_c_uint32_t in #(
7095 cat >>confdefs.h
<<\_ACEOF
7100 cat >>confdefs.h
<<_ACEOF
7101 #define uint32_t $ac_cv_c_uint32_t
7107 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7108 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7109 if test "${ac_cv_c_uint64_t+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7114 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7115 cat >conftest.
$ac_ext <<_ACEOF
7118 cat confdefs.h
>>conftest.
$ac_ext
7119 cat >>conftest.
$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 $ac_includes_default
7125 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7132 rm -f conftest.
$ac_objext
7133 if { (ac_try
="$ac_compile"
7135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139 (eval "$ac_compile") 2>conftest.er1
7141 grep -v '^ *+' conftest.er1 >conftest.err
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && {
7146 test -z "$ac_c_werror_flag" ||
7147 test ! -s conftest.err
7148 } && test -s conftest.$ac_objext; then
7150 uint64_t) ac_cv_c_uint64_t=yes ;;
7151 *) ac_cv_c_uint64_t=$ac_type ;;
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7162 test "$ac_cv_c_uint64_t" != no && break
7165 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7166 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7167 case $ac_cv_c_uint64_t in #(
7171 cat >>confdefs.h <<\_ACEOF
7176 cat >>confdefs.h <<_ACEOF
7177 #define uint64_t $ac_cv_c_uint64_t
7183 { echo "$as_me:$LINENO: checking for int32_t" >&5
7184 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7185 if test "${ac_cv_c_int32_t+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 for ac_type in 'int32_t' 'int' 'long int' \
7190 'long long int' 'short int' 'signed char'; do
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 $ac_includes_default
7201 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7208 rm -f conftest.$ac_objext
7209 if { (ac_try="$ac_compile"
7211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7212 *) ac_try_echo
=$ac_try;;
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215 (eval "$ac_compile") 2>conftest.er1
7217 grep -v '^ *+' conftest.er1
>conftest.err
7219 cat conftest.err
>&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } && {
7222 test -z "$ac_c_werror_flag" ||
7223 test ! -s conftest.err
7224 } && test -s conftest.
$ac_objext; then
7225 cat >conftest.
$ac_ext <<_ACEOF
7228 cat confdefs.h
>>conftest.
$ac_ext
7229 cat >>conftest.
$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7231 $ac_includes_default
7235 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7236 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7243 rm -f conftest.
$ac_objext
7244 if { (ac_try
="$ac_compile"
7246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_compile") 2>conftest.er1
7252 grep -v '^ *+' conftest.er1 >conftest.err
7254 cat conftest.err >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); } && {
7257 test -z "$ac_c_werror_flag" ||
7258 test ! -s conftest.err
7259 } && test -s conftest.$ac_objext; then
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7266 int32_t) ac_cv_c_int32_t=yes ;;
7267 *) ac_cv_c_int32_t=$ac_type ;;
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281 test "$ac_cv_c_int32_t" != no && break
7284 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7285 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7286 case $ac_cv_c_int32_t in #(
7290 cat >>confdefs.h <<_ACEOF
7291 #define int32_t $ac_cv_c_int32_t
7297 { echo "$as_me:$LINENO: checking for int64_t" >&5
7298 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7299 if test "${ac_cv_c_int64_t+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 for ac_type in 'int64_t' 'int' 'long int' \
7304 'long long int' 'short int' 'signed char'; do
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 $ac_includes_default
7315 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7326 *) ac_try_echo
=$ac_try;;
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_compile") 2>conftest.er1
7331 grep -v '^ *+' conftest.er1
>conftest.err
7333 cat conftest.err
>&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.
$ac_objext; then
7339 cat >conftest.
$ac_ext <<_ACEOF
7342 cat confdefs.h
>>conftest.
$ac_ext
7343 cat >>conftest.
$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7349 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7350 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7357 rm -f conftest.
$ac_objext
7358 if { (ac_try
="$ac_compile"
7360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_compile") 2>conftest.er1
7366 grep -v '^ *+' conftest.er1 >conftest.err
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest.$ac_objext; then
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7380 int64_t) ac_cv_c_int64_t=yes ;;
7381 *) ac_cv_c_int64_t=$ac_type ;;
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 test "$ac_cv_c_int64_t" != no && break
7398 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7399 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7400 case $ac_cv_c_int64_t in #(
7404 cat >>confdefs.h <<_ACEOF
7405 #define int64_t $ac_cv_c_int64_t
7410 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7411 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7412 if test "${ac_cv_type_ssize_t+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 cat >conftest.$ac_ext <<_ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7421 $ac_includes_default
7422 typedef ssize_t ac__type_new_;
7426 if ((ac__type_new_ *) 0)
7428 if (sizeof (ac__type_new_))
7434 rm -f conftest.$ac_objext
7435 if { (ac_try="$ac_compile"
7437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7438 *) ac_try_echo
=$ac_try;;
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_compile") 2>conftest.er1
7443 grep -v '^ *+' conftest.er1
>conftest.err
7445 cat conftest.err
>&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } && {
7448 test -z "$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7450 } && test -s conftest.
$ac_objext; then
7451 ac_cv_type_ssize_t
=yes
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.
$ac_ext >&5
7456 ac_cv_type_ssize_t
=no
7459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7461 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7462 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7463 if test $ac_cv_type_ssize_t = yes; then
7465 cat >>confdefs.h
<<\_ACEOF
7466 #define HAVE_SSIZE_T 1
7472 # Sizes of various common basic types
7473 # ANSI C requires sizeof(char) == 1, so no need to check it
7474 { echo "$as_me:$LINENO: checking for int" >&5
7475 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7476 if test "${ac_cv_type_int+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 cat >conftest.
$ac_ext <<_ACEOF
7482 cat confdefs.h
>>conftest.
$ac_ext
7483 cat >>conftest.
$ac_ext <<_ACEOF
7484 /* end confdefs.h. */
7485 $ac_includes_default
7486 typedef int ac__type_new_;
7490 if ((ac__type_new_ *) 0)
7492 if (sizeof (ac__type_new_))
7498 rm -f conftest.
$ac_objext
7499 if { (ac_try
="$ac_compile"
7501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1 >conftest.err
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.$ac_objext; then
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7526 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7528 # The cast to long int works around a bug in the HP C Compiler
7529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7530 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7531 # This bug is HP SR number 8606223364.
7532 { echo "$as_me:$LINENO: checking size of int" >&5
7533 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7534 if test "${ac_cv_sizeof_int+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 if test "$cross_compiling" = yes; then
7538 # Depending upon the size, compute the lo and hi bounds.
7539 cat >conftest.$ac_ext <<_ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7546 typedef int ac__type_sizeof_;
7550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561 *) ac_try_echo=$ac_try;;
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564 (eval "$ac_compile") 2>conftest.er1
7566 grep -v '^
*+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && {
7571 test -z "$ac_c_werror_flag" ||
7572 test ! -s conftest.err
7573 } && test -s conftest.$ac_objext; then
7576 cat >conftest.$ac_ext <<_ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 $ac_includes_default
7583 typedef int ac__type_sizeof_;
7587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7594 rm -f conftest.$ac_objext
7595 if { (ac_try="$ac_compile"
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601 (eval "$ac_compile") 2>conftest.er1
7603 grep -v '^
*+' conftest.er1 >conftest.err
7605 cat conftest.err >&5
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest.$ac_objext; then
7611 ac_hi=$ac_mid; break
7613 echo "$as_me: failed program was:" >&5
7614 sed 's
/^
/|
/' conftest.$ac_ext >&5
7616 ac_lo=`expr $ac_mid + 1`
7617 if test $ac_lo -le $ac_mid; then
7621 ac_mid=`expr 2 '*' $ac_mid + 1`
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 echo "$as_me: failed program was:" >&5
7628 sed 's
/^
/|
/' conftest.$ac_ext >&5
7630 cat >conftest.$ac_ext <<_ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7637 typedef int ac__type_sizeof_;
7641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7657 grep -v '^
*+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 $ac_includes_default
7674 typedef int ac__type_sizeof_;
7678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7694 grep -v '^
*+' conftest.er1 >conftest.err
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then
7702 ac_lo=$ac_mid; break
7704 echo "$as_me: failed program was:" >&5
7705 sed 's
/^
/|
/' conftest.$ac_ext >&5
7707 ac_hi=`expr '(' $ac_mid ')' - 1`
7708 if test $ac_mid -le $ac_hi; then
7712 ac_mid=`expr 2 '*' $ac_mid`
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 echo "$as_me: failed program was:" >&5
7719 sed 's
/^
/|
/' conftest.$ac_ext >&5
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7728 # Binary search between lo and hi bounds.
7729 while test "x$ac_lo" != "x$ac_hi"; do
7730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 $ac_includes_default
7738 typedef int ac__type_sizeof_;
7742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7749 rm -f conftest.$ac_objext
7750 if { (ac_try="$ac_compile"
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756 (eval "$ac_compile") 2>conftest.er1
7758 grep -v '^
*+' conftest.er1 >conftest.err
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest.$ac_objext; then
7768 echo "$as_me: failed program was:" >&5
7769 sed 's
/^
/|
/' conftest.$ac_ext >&5
7771 ac_lo=`expr '(' $ac_mid ')' + 1`
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777 ?*) ac_cv_sizeof_int=$ac_lo;;
7778 '') if test "$ac_cv_type_int" = yes; then
7779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7780 See \`config.log' for more details.
" >&5
7781 echo "$as_me: error
: cannot compute sizeof
(int
)
7782 See \
`config.log' for more details." >&2;}
7783 { (exit 77); exit 77; }; }
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 $ac_includes_default
7796 typedef int ac__type_sizeof_;
7797 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7798 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7805 FILE *f = fopen ("conftest.val", "w");
7808 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7810 long int i = longval ();
7811 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7813 fprintf (f, "%ld\n", i);
7817 unsigned long int i = ulongval ();
7818 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7820 fprintf (f, "%lu\n", i);
7822 return ferror (f) || fclose (f) != 0;
7828 rm -f conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7832 *) ac_try_echo
=$ac_try;;
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_link") 2>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7839 { (case "(($ac_try" in
7840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7841 *) ac_try_echo=$ac_try;;
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_try") 2>&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_sizeof_int=`cat conftest.val
`
7850 echo "$as_me: program exited with status $ac_status" >&5
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7855 if test "$ac_cv_type_int" = yes; then
7856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7857 See \`config.log
' for more details." >&5
7858 echo "$as_me: error: cannot compute sizeof (int)
7859 See \`config.log' for more details.
" >&2;}
7860 { (exit 77); exit 77; }; }
7865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7869 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7870 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7874 cat >>confdefs.h <<_ACEOF
7875 #define SIZEOF_INT $ac_cv_sizeof_int
7879 { echo "$as_me:$LINENO: checking
for long
" >&5
7880 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7881 if test "${ac_cv_type_long+set}" = set; then
7882 echo $ECHO_N "(cached
) $ECHO_C" >&6
7884 cat >conftest.$ac_ext <<_ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h. */
7890 $ac_includes_default
7891 typedef long ac__type_new_;
7895 if ((ac__type_new_ *) 0)
7897 if (sizeof (ac__type_new_))
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_compile") 2>conftest.er1
7912 grep -v '^ *+' conftest.er1 >conftest.err
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_c_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest.$ac_objext; then
7922 echo "$as_me: failed program was
:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7931 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7933 # The cast to long int works around a bug in the HP C Compiler
7934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7936 # This bug is HP SR number 8606223364.
7937 { echo "$as_me:$LINENO: checking size of long
" >&5
7938 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7939 if test "${ac_cv_sizeof_long+set}" = set; then
7940 echo $ECHO_N "(cached
) $ECHO_C" >&6
7942 if test "$cross_compiling" = yes; then
7943 # Depending upon the size, compute the lo and hi bounds.
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7950 $ac_includes_default
7951 typedef long ac__type_sizeof_;
7955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1 >conftest.err
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.$ac_objext; then
7981 cat >conftest.$ac_ext <<_ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 $ac_includes_default
7988 typedef long ac__type_sizeof_;
7992 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 ac_hi=$ac_mid; break
8018 echo "$as_me: failed program was
:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 ac_lo=`expr $ac_mid + 1`
8022 if test $ac_lo -le $ac_mid; then
8026 ac_mid=`expr 2 '*' $ac_mid + 1`
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 echo "$as_me: failed program was
:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 typedef long ac__type_sizeof_;
8046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8062 grep -v '^ *+' conftest.er1 >conftest.err
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 $ac_includes_default
8079 typedef long ac__type_sizeof_;
8083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_lo=$ac_mid; break
8109 echo "$as_me: failed program was
:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_hi=`expr '(' $ac_mid ')' - 1`
8113 if test $ac_mid -le $ac_hi; then
8117 ac_mid=`expr 2 '*' $ac_mid`
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 echo "$as_me: failed program was
:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 # Binary search between lo and hi bounds.
8134 while test "x
$ac_lo" != "x
$ac_hi"; do
8135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8142 $ac_includes_default
8143 typedef long ac__type_sizeof_;
8147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8154 rm -f conftest.$ac_objext
8155 if { (ac_try="$ac_compile"
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_compile") 2>conftest.er1
8163 grep -v '^ *+' conftest.er1 >conftest.err
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest.$ac_objext; then
8173 echo "$as_me: failed program was
:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_lo=`expr '(' $ac_mid ')' + 1`
8179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 ?*) ac_cv_sizeof_long=$ac_lo;;
8183 '') if test "$ac_cv_type_long" = yes; then
8184 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8185 See \
`config.log' for more details." >&5
8186 echo "$as_me: error: cannot compute sizeof (long)
8187 See \`config.log
' for more details." >&2;}
8188 { (exit 77); exit 77; }; }
8194 cat >conftest.$ac_ext <<_ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 $ac_includes_default
8201 typedef long ac__type_sizeof_;
8202 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8203 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8210 FILE *f = fopen ("conftest.val", "w");
8213 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8215 long int i = longval ();
8216 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8218 fprintf (f, "%ld\n", i);
8222 unsigned long int i = ulongval ();
8223 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8225 fprintf (f, "%lu\n", i);
8227 return ferror (f) || fclose (f) != 0;
8233 rm -f conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_link") 2>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8244 { (case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_try") 2>&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); }; }; then
8253 ac_cv_sizeof_long=`cat conftest.val`
8255 echo "$as_me: program exited with status $ac_status" >&5
8256 echo "$as_me: failed program was:" >&5
8257 sed 's
/^
/|
/' conftest.$ac_ext >&5
8260 if test "$ac_cv_type_long" = yes; then
8261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8262 See \`config.log' for more details.
" >&5
8263 echo "$as_me: error
: cannot compute sizeof
(long
)
8264 See \
`config.log' for more details." >&2;}
8265 { (exit 77); exit 77; }; }
8270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8274 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8275 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8279 cat >>confdefs.h <<_ACEOF
8280 #define SIZEOF_LONG $ac_cv_sizeof_long
8284 { echo "$as_me:$LINENO: checking for void *" >&5
8285 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8286 if test "${ac_cv_type_void_p+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 cat >conftest.$ac_ext <<_ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h. */
8295 $ac_includes_default
8296 typedef void * ac__type_new_;
8300 if ((ac__type_new_ *) 0)
8302 if (sizeof (ac__type_new_))
8308 rm -f conftest.$ac_objext
8309 if { (ac_try="$ac_compile"
8311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8312 *) ac_try_echo
=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_compile") 2>conftest.er1
8317 grep -v '^ *+' conftest.er1
>conftest.err
8319 cat conftest.err
>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.
$ac_objext; then
8325 ac_cv_type_void_p
=yes
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.
$ac_ext >&5
8330 ac_cv_type_void_p
=no
8333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8335 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8336 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8338 # The cast to long int works around a bug in the HP C Compiler
8339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8341 # This bug is HP SR number 8606223364.
8342 { echo "$as_me:$LINENO: checking size of void *" >&5
8343 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8344 if test "${ac_cv_sizeof_void_p+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8347 if test "$cross_compiling" = yes; then
8348 # Depending upon the size, compute the lo and hi bounds.
8349 cat >conftest.
$ac_ext <<_ACEOF
8352 cat confdefs.h
>>conftest.
$ac_ext
8353 cat >>conftest.
$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8356 typedef void * ac__type_sizeof_;
8360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8367 rm -f conftest.
$ac_objext
8368 if { (ac_try
="$ac_compile"
8370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_compile") 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } && {
8381 test -z "$ac_c_werror_flag" ||
8382 test ! -s conftest.err
8383 } && test -s conftest.$ac_objext; then
8386 cat >conftest.$ac_ext <<_ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h. */
8392 $ac_includes_default
8393 typedef void * ac__type_sizeof_;
8397 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8404 rm -f conftest.$ac_objext
8405 if { (ac_try="$ac_compile"
8407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8408 *) ac_try_echo
=$ac_try;;
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8413 grep -v '^ *+' conftest.er1
>conftest.err
8415 cat conftest.err
>&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.
$ac_objext; then
8421 ac_hi
=$ac_mid; break
8423 echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.
$ac_ext >&5
8426 ac_lo
=`expr $ac_mid + 1`
8427 if test $ac_lo -le $ac_mid; then
8431 ac_mid
=`expr 2 '*' $ac_mid + 1`
8434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.
$ac_ext >&5
8440 cat >conftest.
$ac_ext <<_ACEOF
8443 cat confdefs.h
>>conftest.
$ac_ext
8444 cat >>conftest.
$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 typedef void * ac__type_sizeof_;
8451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8458 rm -f conftest.
$ac_objext
8459 if { (ac_try
="$ac_compile"
8461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8484 typedef void * ac__type_sizeof_;
8488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8495 rm -f conftest.$ac_objext
8496 if { (ac_try="$ac_compile"
8498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8499 *) ac_try_echo
=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8504 grep -v '^ *+' conftest.er1
>conftest.err
8506 cat conftest.err
>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_c_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.
$ac_objext; then
8512 ac_lo
=$ac_mid; break
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.
$ac_ext >&5
8517 ac_hi
=`expr '(' $ac_mid ')' - 1`
8518 if test $ac_mid -le $ac_hi; then
8522 ac_mid
=`expr 2 '*' $ac_mid`
8525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.
$ac_ext >&5
8534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8538 # Binary search between lo and hi bounds.
8539 while test "x$ac_lo" != "x$ac_hi"; do
8540 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8541 cat >conftest.
$ac_ext <<_ACEOF
8544 cat confdefs.h
>>conftest.
$ac_ext
8545 cat >>conftest.
$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 $ac_includes_default
8548 typedef void * ac__type_sizeof_;
8552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8559 rm -f conftest.
$ac_objext
8560 if { (ac_try
="$ac_compile"
8562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8568 grep -v '^ *+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8578 echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8581 ac_lo=`expr '(' $ac_mid ')' + 1`
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8588 '') if test "$ac_cv_type_void_p" = yes; then
8589 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8590 See \`config.log
' for more details." >&5
8591 echo "$as_me: error: cannot compute sizeof (void *)
8592 See \`config.log' for more details.
" >&2;}
8593 { (exit 77); exit 77; }; }
8595 ac_cv_sizeof_void_p=0
8599 cat >conftest.$ac_ext <<_ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8606 typedef void * ac__type_sizeof_;
8607 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8608 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8615 FILE *f = fopen ("conftest.val
", "w
");
8618 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8620 long int i = longval ();
8621 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8623 fprintf (f, "%ld
\n", i);
8627 unsigned long int i = ulongval ();
8628 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8630 fprintf (f, "%lu
\n", i);
8632 return ferror (f) || fclose (f) != 0;
8638 rm -f conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_link") 2>&5
8647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_sizeof_void_p=`cat conftest.val`
8660 echo "$as_me: program exited with status
$ac_status" >&5
8661 echo "$as_me: failed program was
:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8665 if test "$ac_cv_type_void_p" = yes; then
8666 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8667 See \
`config.log' for more details." >&5
8668 echo "$as_me: error: cannot compute sizeof (void *)
8669 See \`config.log
' for more details." >&2;}
8670 { (exit 77); exit 77; }; }
8672 ac_cv_sizeof_void_p=0
8675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8679 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8680 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8684 cat >>confdefs.h <<_ACEOF
8685 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8689 { echo "$as_me:$LINENO: checking for short" >&5
8690 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8691 if test "${ac_cv_type_short+set}" = set; then
8692 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 cat >conftest.$ac_ext <<_ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700 $ac_includes_default
8701 typedef short ac__type_new_;
8705 if ((ac__type_new_ *) 0)
8707 if (sizeof (ac__type_new_))
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_compile") 2>conftest.er1
8722 grep -v '^
*+' conftest.er1 >conftest.err
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest.$ac_objext; then
8730 ac_cv_type_short=yes
8732 echo "$as_me: failed program was:" >&5
8733 sed 's
/^
/|
/' conftest.$ac_ext >&5
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8741 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8743 # The cast to long int works around a bug in the HP C Compiler
8744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8746 # This bug is HP SR number 8606223364.
8747 { echo "$as_me:$LINENO: checking size of short" >&5
8748 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8749 if test "${ac_cv_sizeof_short+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 if test "$cross_compiling" = yes; then
8753 # Depending upon the size, compute the lo and hi bounds.
8754 cat >conftest.
$ac_ext <<_ACEOF
8757 cat confdefs.h
>>conftest.
$ac_ext
8758 cat >>conftest.
$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8760 $ac_includes_default
8761 typedef short ac__type_sizeof_;
8765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8772 rm -f conftest.
$ac_objext
8773 if { (ac_try
="$ac_compile"
8775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8791 cat >conftest.$ac_ext <<_ACEOF
8794 cat confdefs.h >>conftest.$ac_ext
8795 cat >>conftest.$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8798 typedef short ac__type_sizeof_;
8802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8813 *) ac_try_echo
=$ac_try;;
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8818 grep -v '^ *+' conftest.er1
>conftest.err
8820 cat conftest.err
>&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } && {
8823 test -z "$ac_c_werror_flag" ||
8824 test ! -s conftest.err
8825 } && test -s conftest.
$ac_objext; then
8826 ac_hi
=$ac_mid; break
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.
$ac_ext >&5
8831 ac_lo
=`expr $ac_mid + 1`
8832 if test $ac_lo -le $ac_mid; then
8836 ac_mid
=`expr 2 '*' $ac_mid + 1`
8839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.
$ac_ext >&5
8845 cat >conftest.
$ac_ext <<_ACEOF
8848 cat confdefs.h
>>conftest.
$ac_ext
8849 cat >>conftest.
$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 $ac_includes_default
8852 typedef short ac__type_sizeof_;
8856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8863 rm -f conftest.
$ac_objext
8864 if { (ac_try
="$ac_compile"
8866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8872 grep -v '^ *+' conftest.er1 >conftest.err
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 $ac_includes_default
8889 typedef short ac__type_sizeof_;
8893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8904 *) ac_try_echo
=$ac_try;;
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8909 grep -v '^ *+' conftest.er1
>conftest.err
8911 cat conftest.err
>&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest.
$ac_objext; then
8917 ac_lo
=$ac_mid; break
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.
$ac_ext >&5
8922 ac_hi
=`expr '(' $ac_mid ')' - 1`
8923 if test $ac_mid -le $ac_hi; then
8927 ac_mid
=`expr 2 '*' $ac_mid`
8930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.
$ac_ext >&5
8939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8943 # Binary search between lo and hi bounds.
8944 while test "x$ac_lo" != "x$ac_hi"; do
8945 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8946 cat >conftest.
$ac_ext <<_ACEOF
8949 cat confdefs.h
>>conftest.
$ac_ext
8950 cat >>conftest.
$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 $ac_includes_default
8953 typedef short ac__type_sizeof_;
8957 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8964 rm -f conftest.
$ac_objext
8965 if { (ac_try
="$ac_compile"
8967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_compile") 2>conftest.er1
8973 grep -v '^ *+' conftest.er1 >conftest.err
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest.$ac_objext; then
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 ac_lo=`expr '(' $ac_mid ')' + 1`
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 ?*) ac_cv_sizeof_short=$ac_lo;;
8993 '') if test "$ac_cv_type_short" = yes; then
8994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8995 See \`config.log
' for more details." >&5
8996 echo "$as_me: error: cannot compute sizeof (short)
8997 See \`config.log' for more details.
" >&2;}
8998 { (exit 77); exit 77; }; }
9000 ac_cv_sizeof_short=0
9004 cat >conftest.$ac_ext <<_ACEOF
9007 cat confdefs.h >>conftest.$ac_ext
9008 cat >>conftest.$ac_ext <<_ACEOF
9009 /* end confdefs.h. */
9010 $ac_includes_default
9011 typedef short ac__type_sizeof_;
9012 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9013 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9020 FILE *f = fopen ("conftest.val
", "w
");
9023 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9025 long int i = longval ();
9026 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9028 fprintf (f, "%ld
\n", i);
9032 unsigned long int i = ulongval ();
9033 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9035 fprintf (f, "%lu
\n", i);
9037 return ferror (f) || fclose (f) != 0;
9043 rm -f conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047 *) ac_try_echo=$ac_try;;
9049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9050 (eval "$ac_link") 2>&5
9052 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9054 { (case "(($ac_try" in
9055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_try") 2>&5
9061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9062 (exit $ac_status); }; }; then
9063 ac_cv_sizeof_short=`cat conftest.val`
9065 echo "$as_me: program exited with status
$ac_status" >&5
9066 echo "$as_me: failed program was
:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9070 if test "$ac_cv_type_short" = yes; then
9071 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9072 See \
`config.log' for more details." >&5
9073 echo "$as_me: error: cannot compute sizeof (short)
9074 See \`config.log
' for more details." >&2;}
9075 { (exit 77); exit 77; }; }
9077 ac_cv_sizeof_short=0
9080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9084 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9085 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9089 cat >>confdefs.h <<_ACEOF
9090 #define SIZEOF_SHORT $ac_cv_sizeof_short
9094 { echo "$as_me:$LINENO: checking for float" >&5
9095 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9096 if test "${ac_cv_type_float+set}" = set; then
9097 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 typedef float ac__type_new_;
9110 if ((ac__type_new_ *) 0)
9112 if (sizeof (ac__type_new_))
9118 rm -f conftest.$ac_objext
9119 if { (ac_try="$ac_compile"
9121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9122 *) ac_try_echo=$ac_try;;
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_compile") 2>conftest.er1
9127 grep -v '^
*+' conftest.er1 >conftest.err
9129 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest.$ac_objext; then
9135 ac_cv_type_float=yes
9137 echo "$as_me: failed program was:" >&5
9138 sed 's
/^
/|
/' conftest.$ac_ext >&5
9143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9145 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9146 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9148 # The cast to long int works around a bug in the HP C Compiler
9149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9151 # This bug is HP SR number 8606223364.
9152 { echo "$as_me:$LINENO: checking size of float" >&5
9153 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9154 if test "${ac_cv_sizeof_float+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 if test "$cross_compiling" = yes; then
9158 # Depending upon the size, compute the lo and hi bounds.
9159 cat >conftest.
$ac_ext <<_ACEOF
9162 cat confdefs.h
>>conftest.
$ac_ext
9163 cat >>conftest.
$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 $ac_includes_default
9166 typedef float ac__type_sizeof_;
9170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9177 rm -f conftest.
$ac_objext
9178 if { (ac_try
="$ac_compile"
9180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9186 grep -v '^ *+' conftest.er1 >conftest.err
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest.$ac_objext; then
9196 cat >conftest.$ac_ext <<_ACEOF
9199 cat confdefs.h >>conftest.$ac_ext
9200 cat >>conftest.$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 $ac_includes_default
9203 typedef float ac__type_sizeof_;
9207 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9214 rm -f conftest.$ac_objext
9215 if { (ac_try="$ac_compile"
9217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9218 *) ac_try_echo
=$ac_try;;
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_compile") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1
>conftest.err
9225 cat conftest.err
>&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest.
$ac_objext; then
9231 ac_hi
=$ac_mid; break
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.
$ac_ext >&5
9236 ac_lo
=`expr $ac_mid + 1`
9237 if test $ac_lo -le $ac_mid; then
9241 ac_mid
=`expr 2 '*' $ac_mid + 1`
9244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.
$ac_ext >&5
9250 cat >conftest.
$ac_ext <<_ACEOF
9253 cat confdefs.h
>>conftest.
$ac_ext
9254 cat >>conftest.
$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256 $ac_includes_default
9257 typedef float ac__type_sizeof_;
9261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9268 rm -f conftest.
$ac_objext
9269 if { (ac_try
="$ac_compile"
9271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_compile") 2>conftest.er1
9277 grep -v '^ *+' conftest.er1 >conftest.err
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } && {
9282 test -z "$ac_c_werror_flag" ||
9283 test ! -s conftest.err
9284 } && test -s conftest.$ac_objext; then
9287 cat >conftest.$ac_ext <<_ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9293 $ac_includes_default
9294 typedef float ac__type_sizeof_;
9298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9309 *) ac_try_echo
=$ac_try;;
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9314 grep -v '^ *+' conftest.er1
>conftest.err
9316 cat conftest.err
>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.
$ac_objext; then
9322 ac_lo
=$ac_mid; break
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.
$ac_ext >&5
9327 ac_hi
=`expr '(' $ac_mid ')' - 1`
9328 if test $ac_mid -le $ac_hi; then
9332 ac_mid
=`expr 2 '*' $ac_mid`
9335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.
$ac_ext >&5
9344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9348 # Binary search between lo and hi bounds.
9349 while test "x$ac_lo" != "x$ac_hi"; do
9350 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9351 cat >conftest.
$ac_ext <<_ACEOF
9354 cat confdefs.h
>>conftest.
$ac_ext
9355 cat >>conftest.
$ac_ext <<_ACEOF
9356 /* end confdefs.h. */
9357 $ac_includes_default
9358 typedef float ac__type_sizeof_;
9362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9369 rm -f conftest.
$ac_objext
9370 if { (ac_try
="$ac_compile"
9372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9373 *) ac_try_echo=$ac_try;;
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_compile") 2>conftest.er1
9378 grep -v '^ *+' conftest.er1 >conftest.err
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest.$ac_objext; then
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9391 ac_lo=`expr '(' $ac_mid ')' + 1`
9394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 ?*) ac_cv_sizeof_float=$ac_lo;;
9398 '') if test "$ac_cv_type_float" = yes; then
9399 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9400 See \`config.log
' for more details." >&5
9401 echo "$as_me: error: cannot compute sizeof (float)
9402 See \`config.log' for more details.
" >&2;}
9403 { (exit 77); exit 77; }; }
9405 ac_cv_sizeof_float=0
9409 cat >conftest.$ac_ext <<_ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 $ac_includes_default
9416 typedef float ac__type_sizeof_;
9417 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9418 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9425 FILE *f = fopen ("conftest.val
", "w
");
9428 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9430 long int i = longval ();
9431 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9433 fprintf (f, "%ld
\n", i);
9437 unsigned long int i = ulongval ();
9438 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9440 fprintf (f, "%lu
\n", i);
9442 return ferror (f) || fclose (f) != 0;
9448 rm -f conftest$ac_exeext
9449 if { (ac_try="$ac_link"
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_link") 2>&5
9457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9459 { (case "(($ac_try" in
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 ac_cv_sizeof_float=`cat conftest.val`
9470 echo "$as_me: program exited with status
$ac_status" >&5
9471 echo "$as_me: failed program was
:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9475 if test "$ac_cv_type_float" = yes; then
9476 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9477 See \
`config.log' for more details." >&5
9478 echo "$as_me: error: cannot compute sizeof (float)
9479 See \`config.log
' for more details." >&2;}
9480 { (exit 77); exit 77; }; }
9482 ac_cv_sizeof_float=0
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9489 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9490 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9494 cat >>confdefs.h <<_ACEOF
9495 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9499 { echo "$as_me:$LINENO: checking for double" >&5
9500 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9501 if test "${ac_cv_type_double+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9510 $ac_includes_default
9511 typedef double ac__type_new_;
9515 if ((ac__type_new_ *) 0)
9517 if (sizeof (ac__type_new_))
9523 rm -f conftest.$ac_objext
9524 if { (ac_try="$ac_compile"
9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527 *) ac_try_echo=$ac_try;;
9529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9530 (eval "$ac_compile") 2>conftest.er1
9532 grep -v '^
*+' conftest.er1 >conftest.err
9534 cat conftest.err >&5
9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536 (exit $ac_status); } && {
9537 test -z "$ac_c_werror_flag" ||
9538 test ! -s conftest.err
9539 } && test -s conftest.$ac_objext; then
9540 ac_cv_type_double=yes
9542 echo "$as_me: failed program was:" >&5
9543 sed 's
/^
/|
/' conftest.$ac_ext >&5
9545 ac_cv_type_double=no
9548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9551 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9553 # The cast to long int works around a bug in the HP C Compiler
9554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9556 # This bug is HP SR number 8606223364.
9557 { echo "$as_me:$LINENO: checking size of double" >&5
9558 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9559 if test "${ac_cv_sizeof_double+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 if test "$cross_compiling" = yes; then
9563 # Depending upon the size, compute the lo and hi bounds.
9564 cat >conftest.
$ac_ext <<_ACEOF
9567 cat confdefs.h
>>conftest.
$ac_ext
9568 cat >>conftest.
$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 $ac_includes_default
9571 typedef double ac__type_sizeof_;
9575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9582 rm -f conftest.
$ac_objext
9583 if { (ac_try
="$ac_compile"
9585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_compile") 2>conftest.er1
9591 grep -v '^ *+' conftest.er1 >conftest.err
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest.$ac_objext; then
9601 cat >conftest.$ac_ext <<_ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 $ac_includes_default
9608 typedef double ac__type_sizeof_;
9612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9619 rm -f conftest.$ac_objext
9620 if { (ac_try="$ac_compile"
9622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9623 *) ac_try_echo
=$ac_try;;
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9628 grep -v '^ *+' conftest.er1
>conftest.err
9630 cat conftest.err
>&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.
$ac_objext; then
9636 ac_hi
=$ac_mid; break
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.
$ac_ext >&5
9641 ac_lo
=`expr $ac_mid + 1`
9642 if test $ac_lo -le $ac_mid; then
9646 ac_mid
=`expr 2 '*' $ac_mid + 1`
9649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.
$ac_ext >&5
9655 cat >conftest.
$ac_ext <<_ACEOF
9658 cat confdefs.h
>>conftest.
$ac_ext
9659 cat >>conftest.
$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 $ac_includes_default
9662 typedef double ac__type_sizeof_;
9666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9673 rm -f conftest.
$ac_objext
9674 if { (ac_try
="$ac_compile"
9676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_compile") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest.$ac_objext; then
9692 cat >conftest.$ac_ext <<_ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9698 $ac_includes_default
9699 typedef double ac__type_sizeof_;
9703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9710 rm -f conftest.$ac_objext
9711 if { (ac_try="$ac_compile"
9713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9714 *) ac_try_echo
=$ac_try;;
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_compile") 2>conftest.er1
9719 grep -v '^ *+' conftest.er1
>conftest.err
9721 cat conftest.err
>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest.
$ac_objext; then
9727 ac_lo
=$ac_mid; break
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.
$ac_ext >&5
9732 ac_hi
=`expr '(' $ac_mid ')' - 1`
9733 if test $ac_mid -le $ac_hi; then
9737 ac_mid
=`expr 2 '*' $ac_mid`
9740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.
$ac_ext >&5
9749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9753 # Binary search between lo and hi bounds.
9754 while test "x$ac_lo" != "x$ac_hi"; do
9755 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9756 cat >conftest.
$ac_ext <<_ACEOF
9759 cat confdefs.h
>>conftest.
$ac_ext
9760 cat >>conftest.
$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 $ac_includes_default
9763 typedef double ac__type_sizeof_;
9767 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9774 rm -f conftest.
$ac_objext
9775 if { (ac_try
="$ac_compile"
9777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_compile") 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest.$ac_objext; then
9793 echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9796 ac_lo=`expr '(' $ac_mid ')' + 1`
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 ?*) ac_cv_sizeof_double=$ac_lo;;
9803 '') if test "$ac_cv_type_double" = yes; then
9804 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9805 See \`config.log
' for more details." >&5
9806 echo "$as_me: error: cannot compute sizeof (double)
9807 See \`config.log' for more details.
" >&2;}
9808 { (exit 77); exit 77; }; }
9810 ac_cv_sizeof_double=0
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 $ac_includes_default
9821 typedef double ac__type_sizeof_;
9822 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9823 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9830 FILE *f = fopen ("conftest.val
", "w
");
9833 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9835 long int i = longval ();
9836 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9838 fprintf (f, "%ld
\n", i);
9842 unsigned long int i = ulongval ();
9843 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9845 fprintf (f, "%lu
\n", i);
9847 return ferror (f) || fclose (f) != 0;
9853 rm -f conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_link") 2>&5
9862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9864 { (case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_try") 2>&5
9871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 ac_cv_sizeof_double=`cat conftest.val`
9875 echo "$as_me: program exited with status
$ac_status" >&5
9876 echo "$as_me: failed program was
:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9880 if test "$ac_cv_type_double" = yes; then
9881 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9882 See \
`config.log' for more details." >&5
9883 echo "$as_me: error: cannot compute sizeof (double)
9884 See \`config.log
' for more details." >&2;}
9885 { (exit 77); exit 77; }; }
9887 ac_cv_sizeof_double=0
9890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9894 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9895 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9899 cat >>confdefs.h <<_ACEOF
9900 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9904 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9905 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9906 if test "${ac_cv_type_fpos_t+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 cat >conftest.$ac_ext <<_ACEOF
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9915 $ac_includes_default
9916 typedef fpos_t ac__type_new_;
9920 if ((ac__type_new_ *) 0)
9922 if (sizeof (ac__type_new_))
9928 rm -f conftest.$ac_objext
9929 if { (ac_try="$ac_compile"
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_compile") 2>conftest.er1
9937 grep -v '^
*+' conftest.er1 >conftest.err
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest.$ac_objext; then
9945 ac_cv_type_fpos_t=yes
9947 echo "$as_me: failed program was:" >&5
9948 sed 's
/^
/|
/' conftest.$ac_ext >&5
9950 ac_cv_type_fpos_t=no
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9956 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9958 # The cast to long int works around a bug in the HP C Compiler
9959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9961 # This bug is HP SR number 8606223364.
9962 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9963 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9964 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 if test "$cross_compiling" = yes; then
9968 # Depending upon the size, compute the lo and hi bounds.
9969 cat >conftest.
$ac_ext <<_ACEOF
9972 cat confdefs.h
>>conftest.
$ac_ext
9973 cat >>conftest.
$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 $ac_includes_default
9976 typedef fpos_t ac__type_sizeof_;
9980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9987 rm -f conftest.
$ac_objext
9988 if { (ac_try
="$ac_compile"
9990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_compile") 2>conftest.er1
9996 grep -v '^ *+' conftest.er1 >conftest.err
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); } && {
10001 test -z "$ac_c_werror_flag" ||
10002 test ! -s conftest.err
10003 } && test -s conftest.$ac_objext; then
10006 cat >conftest.$ac_ext <<_ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 $ac_includes_default
10013 typedef fpos_t ac__type_sizeof_;
10017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10024 rm -f conftest.$ac_objext
10025 if { (ac_try="$ac_compile"
10026 case "(($ac_try" in
10027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10028 *) ac_try_echo
=$ac_try;;
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031 (eval "$ac_compile") 2>conftest.er1
10033 grep -v '^ *+' conftest.er1
>conftest.err
10035 cat conftest.err
>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } && {
10038 test -z "$ac_c_werror_flag" ||
10039 test ! -s conftest.err
10040 } && test -s conftest.
$ac_objext; then
10041 ac_hi
=$ac_mid; break
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.
$ac_ext >&5
10046 ac_lo
=`expr $ac_mid + 1`
10047 if test $ac_lo -le $ac_mid; then
10051 ac_mid
=`expr 2 '*' $ac_mid + 1`
10054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.
$ac_ext >&5
10060 cat >conftest.
$ac_ext <<_ACEOF
10063 cat confdefs.h
>>conftest.
$ac_ext
10064 cat >>conftest.
$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 $ac_includes_default
10067 typedef fpos_t ac__type_sizeof_;
10071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10078 rm -f conftest.
$ac_objext
10079 if { (ac_try
="$ac_compile"
10080 case "(($ac_try" in
10081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_compile") 2>conftest.er1
10087 grep -v '^ *+' conftest.er1 >conftest.err
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } && {
10092 test -z "$ac_c_werror_flag" ||
10093 test ! -s conftest.err
10094 } && test -s conftest.$ac_objext; then
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 $ac_includes_default
10104 typedef fpos_t ac__type_sizeof_;
10108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10115 rm -f conftest.$ac_objext
10116 if { (ac_try="$ac_compile"
10117 case "(($ac_try" in
10118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10119 *) ac_try_echo
=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_compile") 2>conftest.er1
10124 grep -v '^ *+' conftest.er1
>conftest.err
10126 cat conftest.err
>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } && {
10129 test -z "$ac_c_werror_flag" ||
10130 test ! -s conftest.err
10131 } && test -s conftest.
$ac_objext; then
10132 ac_lo
=$ac_mid; break
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.
$ac_ext >&5
10137 ac_hi
=`expr '(' $ac_mid ')' - 1`
10138 if test $ac_mid -le $ac_hi; then
10142 ac_mid
=`expr 2 '*' $ac_mid`
10145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.
$ac_ext >&5
10154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10158 # Binary search between lo and hi bounds.
10159 while test "x$ac_lo" != "x$ac_hi"; do
10160 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10161 cat >conftest.
$ac_ext <<_ACEOF
10164 cat confdefs.h
>>conftest.
$ac_ext
10165 cat >>conftest.
$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 $ac_includes_default
10168 typedef fpos_t ac__type_sizeof_;
10172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10179 rm -f conftest.
$ac_objext
10180 if { (ac_try
="$ac_compile"
10181 case "(($ac_try" in
10182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_compile") 2>conftest.er1
10188 grep -v '^ *+' conftest.er1 >conftest.err
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } && {
10193 test -z "$ac_c_werror_flag" ||
10194 test ! -s conftest.err
10195 } && test -s conftest.$ac_objext; then
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_lo=`expr '(' $ac_mid ')' + 1`
10204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10208 '') if test "$ac_cv_type_fpos_t" = yes; then
10209 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10210 See \`config.log
' for more details." >&5
10211 echo "$as_me: error: cannot compute sizeof (fpos_t)
10212 See \`config.log' for more details.
" >&2;}
10213 { (exit 77); exit 77; }; }
10215 ac_cv_sizeof_fpos_t=0
10219 cat >conftest.$ac_ext <<_ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225 $ac_includes_default
10226 typedef fpos_t ac__type_sizeof_;
10227 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10228 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10230 #include <stdlib.h>
10235 FILE *f = fopen ("conftest.val
", "w
");
10238 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10240 long int i = longval ();
10241 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10243 fprintf (f, "%ld
\n", i);
10247 unsigned long int i = ulongval ();
10248 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10250 fprintf (f, "%lu
\n", i);
10252 return ferror (f) || fclose (f) != 0;
10258 rm -f conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>&5
10267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10269 { (case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_try") 2>&5
10276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_cv_sizeof_fpos_t=`cat conftest.val`
10280 echo "$as_me: program exited with status
$ac_status" >&5
10281 echo "$as_me: failed program was
:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284 ( exit $ac_status )
10285 if test "$ac_cv_type_fpos_t" = yes; then
10286 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10287 See \
`config.log' for more details." >&5
10288 echo "$as_me: error: cannot compute sizeof (fpos_t)
10289 See \`config.log
' for more details." >&2;}
10290 { (exit 77); exit 77; }; }
10292 ac_cv_sizeof_fpos_t=0
10295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10299 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10300 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10304 cat >>confdefs.h <<_ACEOF
10305 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10309 { echo "$as_me:$LINENO: checking for size_t" >&5
10310 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10311 if test "${ac_cv_type_size_t+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 cat >conftest.$ac_ext <<_ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 $ac_includes_default
10321 typedef size_t ac__type_new_;
10325 if ((ac__type_new_ *) 0)
10327 if (sizeof (ac__type_new_))
10333 rm -f conftest.$ac_objext
10334 if { (ac_try="$ac_compile"
10335 case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10340 (eval "$ac_compile") 2>conftest.er1
10342 grep -v '^
*+' conftest.er1 >conftest.err
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } && {
10347 test -z "$ac_c_werror_flag" ||
10348 test ! -s conftest.err
10349 } && test -s conftest.$ac_objext; then
10350 ac_cv_type_size_t=yes
10352 echo "$as_me: failed program was:" >&5
10353 sed 's
/^
/|
/' conftest.$ac_ext >&5
10355 ac_cv_type_size_t=no
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10361 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10363 # The cast to long int works around a bug in the HP C Compiler
10364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10366 # This bug is HP SR number 8606223364.
10367 { echo "$as_me:$LINENO: checking size of size_t" >&5
10368 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10369 if test "${ac_cv_sizeof_size_t+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 if test "$cross_compiling" = yes; then
10373 # Depending upon the size, compute the lo and hi bounds.
10374 cat >conftest.
$ac_ext <<_ACEOF
10377 cat confdefs.h
>>conftest.
$ac_ext
10378 cat >>conftest.
$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 $ac_includes_default
10381 typedef size_t ac__type_sizeof_;
10385 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10392 rm -f conftest.
$ac_objext
10393 if { (ac_try
="$ac_compile"
10394 case "(($ac_try" in
10395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_compile") 2>conftest.er1
10401 grep -v '^ *+' conftest.er1 >conftest.err
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest.$ac_objext; then
10411 cat >conftest.$ac_ext <<_ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 $ac_includes_default
10418 typedef size_t ac__type_sizeof_;
10422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10433 *) ac_try_echo
=$ac_try;;
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10438 grep -v '^ *+' conftest.er1
>conftest.err
10440 cat conftest.err
>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest.
$ac_objext; then
10446 ac_hi
=$ac_mid; break
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.
$ac_ext >&5
10451 ac_lo
=`expr $ac_mid + 1`
10452 if test $ac_lo -le $ac_mid; then
10456 ac_mid
=`expr 2 '*' $ac_mid + 1`
10459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.
$ac_ext >&5
10465 cat >conftest.
$ac_ext <<_ACEOF
10468 cat confdefs.h
>>conftest.
$ac_ext
10469 cat >>conftest.
$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 $ac_includes_default
10472 typedef size_t ac__type_sizeof_;
10476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10483 rm -f conftest.
$ac_objext
10484 if { (ac_try
="$ac_compile"
10485 case "(($ac_try" in
10486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_compile") 2>conftest.er1
10492 grep -v '^ *+' conftest.er1 >conftest.err
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } && {
10497 test -z "$ac_c_werror_flag" ||
10498 test ! -s conftest.err
10499 } && test -s conftest.$ac_objext; then
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 $ac_includes_default
10509 typedef size_t ac__type_sizeof_;
10513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10520 rm -f conftest.$ac_objext
10521 if { (ac_try="$ac_compile"
10522 case "(($ac_try" in
10523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10524 *) ac_try_echo
=$ac_try;;
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_compile") 2>conftest.er1
10529 grep -v '^ *+' conftest.er1
>conftest.err
10531 cat conftest.err
>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest.
$ac_objext; then
10537 ac_lo
=$ac_mid; break
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.
$ac_ext >&5
10542 ac_hi
=`expr '(' $ac_mid ')' - 1`
10543 if test $ac_mid -le $ac_hi; then
10547 ac_mid
=`expr 2 '*' $ac_mid`
10550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.
$ac_ext >&5
10559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10563 # Binary search between lo and hi bounds.
10564 while test "x$ac_lo" != "x$ac_hi"; do
10565 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10566 cat >conftest.
$ac_ext <<_ACEOF
10569 cat confdefs.h
>>conftest.
$ac_ext
10570 cat >>conftest.
$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 $ac_includes_default
10573 typedef size_t ac__type_sizeof_;
10577 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10584 rm -f conftest.
$ac_objext
10585 if { (ac_try
="$ac_compile"
10586 case "(($ac_try" in
10587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_compile") 2>conftest.er1
10593 grep -v '^ *+' conftest.er1 >conftest.err
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest.$ac_objext; then
10603 echo "$as_me: failed program was:" >&5
10604 sed 's/^/| /' conftest.$ac_ext >&5
10606 ac_lo=`expr '(' $ac_mid ')' + 1`
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10612 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10613 '') if test "$ac_cv_type_size_t" = yes; then
10614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10615 See \`config.log
' for more details." >&5
10616 echo "$as_me: error: cannot compute sizeof (size_t)
10617 See \`config.log' for more details.
" >&2;}
10618 { (exit 77); exit 77; }; }
10620 ac_cv_sizeof_size_t=0
10624 cat >conftest.$ac_ext <<_ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10630 $ac_includes_default
10631 typedef size_t ac__type_sizeof_;
10632 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10633 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10635 #include <stdlib.h>
10640 FILE *f = fopen ("conftest.val
", "w
");
10643 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10645 long int i = longval ();
10646 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10648 fprintf (f, "%ld
\n", i);
10652 unsigned long int i = ulongval ();
10653 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10655 fprintf (f, "%lu
\n", i);
10657 return ferror (f) || fclose (f) != 0;
10663 rm -f conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10670 (eval "$ac_link") 2>&5
10672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
10681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 ac_cv_sizeof_size_t=`cat conftest.val`
10685 echo "$as_me: program exited with status
$ac_status" >&5
10686 echo "$as_me: failed program was
:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10689 ( exit $ac_status )
10690 if test "$ac_cv_type_size_t" = yes; then
10691 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10692 See \
`config.log' for more details." >&5
10693 echo "$as_me: error: cannot compute sizeof (size_t)
10694 See \`config.log
' for more details." >&2;}
10695 { (exit 77); exit 77; }; }
10697 ac_cv_sizeof_size_t=0
10700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10704 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10705 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10709 cat >>confdefs.h <<_ACEOF
10710 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10714 { echo "$as_me:$LINENO: checking for pid_t" >&5
10715 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10716 if test "${ac_cv_type_pid_t+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 $ac_includes_default
10726 typedef pid_t ac__type_new_;
10730 if ((ac__type_new_ *) 0)
10732 if (sizeof (ac__type_new_))
10738 rm -f conftest.$ac_objext
10739 if { (ac_try="$ac_compile"
10740 case "(($ac_try" in
10741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10742 *) ac_try_echo=$ac_try;;
10744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10745 (eval "$ac_compile") 2>conftest.er1
10747 grep -v '^
*+' conftest.er1 >conftest.err
10749 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } && {
10752 test -z "$ac_c_werror_flag" ||
10753 test ! -s conftest.err
10754 } && test -s conftest.$ac_objext; then
10755 ac_cv_type_pid_t=yes
10757 echo "$as_me: failed program was:" >&5
10758 sed 's
/^
/|
/' conftest.$ac_ext >&5
10760 ac_cv_type_pid_t=no
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10765 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10766 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10768 # The cast to long int works around a bug in the HP C Compiler
10769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10771 # This bug is HP SR number 8606223364.
10772 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10773 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10774 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 if test "$cross_compiling" = yes; then
10778 # Depending upon the size, compute the lo and hi bounds.
10779 cat >conftest.
$ac_ext <<_ACEOF
10782 cat confdefs.h
>>conftest.
$ac_ext
10783 cat >>conftest.
$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 $ac_includes_default
10786 typedef pid_t ac__type_sizeof_;
10790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10797 rm -f conftest.
$ac_objext
10798 if { (ac_try
="$ac_compile"
10799 case "(($ac_try" in
10800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_compile") 2>conftest.er1
10806 grep -v '^ *+' conftest.er1 >conftest.err
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } && {
10811 test -z "$ac_c_werror_flag" ||
10812 test ! -s conftest.err
10813 } && test -s conftest.$ac_objext; then
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10823 typedef pid_t ac__type_sizeof_;
10827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10834 rm -f conftest.$ac_objext
10835 if { (ac_try="$ac_compile"
10836 case "(($ac_try" in
10837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10838 *) ac_try_echo
=$ac_try;;
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_compile") 2>conftest.er1
10843 grep -v '^ *+' conftest.er1
>conftest.err
10845 cat conftest.err
>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest.
$ac_objext; then
10851 ac_hi
=$ac_mid; break
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.
$ac_ext >&5
10856 ac_lo
=`expr $ac_mid + 1`
10857 if test $ac_lo -le $ac_mid; then
10861 ac_mid
=`expr 2 '*' $ac_mid + 1`
10864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.
$ac_ext >&5
10870 cat >conftest.
$ac_ext <<_ACEOF
10873 cat confdefs.h
>>conftest.
$ac_ext
10874 cat >>conftest.
$ac_ext <<_ACEOF
10875 /* end confdefs.h. */
10876 $ac_includes_default
10877 typedef pid_t ac__type_sizeof_;
10881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10888 rm -f conftest.
$ac_objext
10889 if { (ac_try
="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest.$ac_objext; then
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 $ac_includes_default
10914 typedef pid_t ac__type_sizeof_;
10918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10925 rm -f conftest.$ac_objext
10926 if { (ac_try="$ac_compile"
10927 case "(($ac_try" in
10928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10929 *) ac_try_echo
=$ac_try;;
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_compile") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1
>conftest.err
10936 cat conftest.err
>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest.
$ac_objext; then
10942 ac_lo
=$ac_mid; break
10944 echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.
$ac_ext >&5
10947 ac_hi
=`expr '(' $ac_mid ')' - 1`
10948 if test $ac_mid -le $ac_hi; then
10952 ac_mid
=`expr 2 '*' $ac_mid`
10955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10958 echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.
$ac_ext >&5
10964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10968 # Binary search between lo and hi bounds.
10969 while test "x$ac_lo" != "x$ac_hi"; do
10970 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10971 cat >conftest.
$ac_ext <<_ACEOF
10974 cat confdefs.h
>>conftest.
$ac_ext
10975 cat >>conftest.
$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 $ac_includes_default
10978 typedef pid_t ac__type_sizeof_;
10982 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10989 rm -f conftest.
$ac_objext
10990 if { (ac_try
="$ac_compile"
10991 case "(($ac_try" in
10992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_compile") 2>conftest.er1
10998 grep -v '^ *+' conftest.er1 >conftest.err
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } && {
11003 test -z "$ac_c_werror_flag" ||
11004 test ! -s conftest.err
11005 } && test -s conftest.$ac_objext; then
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11011 ac_lo=`expr '(' $ac_mid ')' + 1`
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11018 '') if test "$ac_cv_type_pid_t" = yes; then
11019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11020 See \`config.log
' for more details." >&5
11021 echo "$as_me: error: cannot compute sizeof (pid_t)
11022 See \`config.log' for more details.
" >&2;}
11023 { (exit 77); exit 77; }; }
11025 ac_cv_sizeof_pid_t=0
11029 cat >conftest.$ac_ext <<_ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 $ac_includes_default
11036 typedef pid_t ac__type_sizeof_;
11037 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11038 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11040 #include <stdlib.h>
11045 FILE *f = fopen ("conftest.val
", "w
");
11048 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11050 long int i = longval ();
11051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11053 fprintf (f, "%ld
\n", i);
11057 unsigned long int i = ulongval ();
11058 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11060 fprintf (f, "%lu
\n", i);
11062 return ferror (f) || fclose (f) != 0;
11068 rm -f conftest$ac_exeext
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_link") 2>&5
11077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11079 { (case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_try") 2>&5
11086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11087 (exit $ac_status); }; }; then
11088 ac_cv_sizeof_pid_t=`cat conftest.val`
11090 echo "$as_me: program exited with status
$ac_status" >&5
11091 echo "$as_me: failed program was
:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 ( exit $ac_status )
11095 if test "$ac_cv_type_pid_t" = yes; then
11096 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11097 See \
`config.log' for more details." >&5
11098 echo "$as_me: error: cannot compute sizeof (pid_t)
11099 See \`config.log
' for more details." >&2;}
11100 { (exit 77); exit 77; }; }
11102 ac_cv_sizeof_pid_t=0
11105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11109 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11110 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11114 cat >>confdefs.h <<_ACEOF
11115 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11120 { echo "$as_me:$LINENO: checking for long long support" >&5
11121 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11133 long long x; x = (long long)0;
11138 rm -f conftest.$ac_objext
11139 if { (ac_try="$ac_compile"
11140 case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_compile") 2>conftest.er1
11147 grep -v '^
*+' conftest.er1 >conftest.err
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } && {
11152 test -z "$ac_c_werror_flag" ||
11153 test ! -s conftest.err
11154 } && test -s conftest.$ac_objext; then
11157 cat >>confdefs.h <<\_ACEOF
11158 #define HAVE_LONG_LONG 1
11164 echo "$as_me: failed program was:" >&5
11165 sed 's
/^
/|
/' conftest.$ac_ext >&5
11170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11171 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11172 echo "${ECHO_T}$have_long_long" >&6; }
11173 if test "$have_long_long" = yes ; then
11174 { echo "$as_me:$LINENO: checking for long long" >&5
11175 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11176 if test "${ac_cv_type_long_long+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 $ac_includes_default
11186 typedef long long ac__type_new_;
11190 if ((ac__type_new_ *) 0)
11192 if (sizeof (ac__type_new_))
11198 rm -f conftest.$ac_objext
11199 if { (ac_try="$ac_compile"
11200 case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205 (eval "$ac_compile") 2>conftest.er1
11207 grep -v '^
*+' conftest.er1 >conftest.err
11209 cat conftest.err >&5
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } && {
11212 test -z "$ac_c_werror_flag" ||
11213 test ! -s conftest.err
11214 } && test -s conftest.$ac_objext; then
11215 ac_cv_type_long_long=yes
11217 echo "$as_me: failed program was:" >&5
11218 sed 's
/^
/|
/' conftest.$ac_ext >&5
11220 ac_cv_type_long_long=no
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11226 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11228 # The cast to long int works around a bug in the HP C Compiler
11229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11231 # This bug is HP SR number 8606223364.
11232 { echo "$as_me:$LINENO: checking size of long long" >&5
11233 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11234 if test "${ac_cv_sizeof_long_long+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 if test "$cross_compiling" = yes; then
11238 # Depending upon the size, compute the lo and hi bounds.
11239 cat >conftest.
$ac_ext <<_ACEOF
11242 cat confdefs.h
>>conftest.
$ac_ext
11243 cat >>conftest.
$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11246 typedef long long ac__type_sizeof_;
11250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11257 rm -f conftest.
$ac_objext
11258 if { (ac_try
="$ac_compile"
11259 case "(($ac_try" in
11260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_compile") 2>conftest.er1
11266 grep -v '^ *+' conftest.er1 >conftest.err
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest.$ac_objext; then
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 $ac_includes_default
11283 typedef long long ac__type_sizeof_;
11287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11294 rm -f conftest.$ac_objext
11295 if { (ac_try="$ac_compile"
11296 case "(($ac_try" in
11297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11298 *) ac_try_echo
=$ac_try;;
11300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11303 grep -v '^ *+' conftest.er1
>conftest.err
11305 cat conftest.err
>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.
$ac_objext; then
11311 ac_hi
=$ac_mid; break
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.
$ac_ext >&5
11316 ac_lo
=`expr $ac_mid + 1`
11317 if test $ac_lo -le $ac_mid; then
11321 ac_mid
=`expr 2 '*' $ac_mid + 1`
11324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.
$ac_ext >&5
11330 cat >conftest.
$ac_ext <<_ACEOF
11333 cat confdefs.h
>>conftest.
$ac_ext
11334 cat >>conftest.
$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11337 typedef long long ac__type_sizeof_;
11341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11348 rm -f conftest.
$ac_objext
11349 if { (ac_try
="$ac_compile"
11350 case "(($ac_try" in
11351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_compile") 2>conftest.er1
11357 grep -v '^ *+' conftest.er1 >conftest.err
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } && {
11362 test -z "$ac_c_werror_flag" ||
11363 test ! -s conftest.err
11364 } && test -s conftest.$ac_objext; then
11367 cat >conftest.$ac_ext <<_ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 $ac_includes_default
11374 typedef long long ac__type_sizeof_;
11378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11385 rm -f conftest.$ac_objext
11386 if { (ac_try="$ac_compile"
11387 case "(($ac_try" in
11388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11389 *) ac_try_echo
=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_compile") 2>conftest.er1
11394 grep -v '^ *+' conftest.er1
>conftest.err
11396 cat conftest.err
>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } && {
11399 test -z "$ac_c_werror_flag" ||
11400 test ! -s conftest.err
11401 } && test -s conftest.
$ac_objext; then
11402 ac_lo
=$ac_mid; break
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.
$ac_ext >&5
11407 ac_hi
=`expr '(' $ac_mid ')' - 1`
11408 if test $ac_mid -le $ac_hi; then
11412 ac_mid
=`expr 2 '*' $ac_mid`
11415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.
$ac_ext >&5
11424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11428 # Binary search between lo and hi bounds.
11429 while test "x$ac_lo" != "x$ac_hi"; do
11430 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11431 cat >conftest.
$ac_ext <<_ACEOF
11434 cat confdefs.h
>>conftest.
$ac_ext
11435 cat >>conftest.
$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 $ac_includes_default
11438 typedef long long ac__type_sizeof_;
11442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11449 rm -f conftest.
$ac_objext
11450 if { (ac_try
="$ac_compile"
11451 case "(($ac_try" in
11452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11453 *) ac_try_echo=$ac_try;;
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456 (eval "$ac_compile") 2>conftest.er1
11458 grep -v '^ *+' conftest.er1 >conftest.err
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest.$ac_objext; then
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 ac_lo=`expr '(' $ac_mid ')' + 1`
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11477 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11478 '') if test "$ac_cv_type_long_long" = yes; then
11479 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11480 See \`config.log
' for more details." >&5
11481 echo "$as_me: error: cannot compute sizeof (long long)
11482 See \`config.log' for more details.
" >&2;}
11483 { (exit 77); exit 77; }; }
11485 ac_cv_sizeof_long_long=0
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 $ac_includes_default
11496 typedef long long ac__type_sizeof_;
11497 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11498 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11500 #include <stdlib.h>
11505 FILE *f = fopen ("conftest.val
", "w
");
11508 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11510 long int i = longval ();
11511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11513 fprintf (f, "%ld
\n", i);
11517 unsigned long int i = ulongval ();
11518 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11520 fprintf (f, "%lu
\n", i);
11522 return ferror (f) || fclose (f) != 0;
11528 rm -f conftest$ac_exeext
11529 if { (ac_try="$ac_link"
11530 case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_link") 2>&5
11537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11539 { (case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_try") 2>&5
11546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11547 (exit $ac_status); }; }; then
11548 ac_cv_sizeof_long_long=`cat conftest.val`
11550 echo "$as_me: program exited with status
$ac_status" >&5
11551 echo "$as_me: failed program was
:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ( exit $ac_status )
11555 if test "$ac_cv_type_long_long" = yes; then
11556 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11557 See \
`config.log' for more details." >&5
11558 echo "$as_me: error: cannot compute sizeof (long long)
11559 See \`config.log
' for more details." >&2;}
11560 { (exit 77); exit 77; }; }
11562 ac_cv_sizeof_long_long=0
11565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11570 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11574 cat >>confdefs.h <<_ACEOF
11575 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11581 { echo "$as_me:$LINENO: checking for long double support" >&5
11582 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11583 have_long_double=no
11584 cat >conftest.$ac_ext <<_ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11594 long double x; x = (long double)0.;
11599 rm -f conftest.$ac_objext
11600 if { (ac_try="$ac_compile"
11601 case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_compile") 2>conftest.er1
11608 grep -v '^
*+' conftest.er1 >conftest.err
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } && {
11613 test -z "$ac_c_werror_flag" ||
11614 test ! -s conftest.err
11615 } && test -s conftest.$ac_objext; then
11618 cat >>confdefs.h <<\_ACEOF
11619 #define HAVE_LONG_DOUBLE 1
11622 have_long_double=yes
11625 echo "$as_me: failed program was:" >&5
11626 sed 's
/^
/|
/' conftest.$ac_ext >&5
11631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11633 echo "${ECHO_T}$have_long_double" >&6; }
11634 if test "$have_long_double" = yes ; then
11635 { echo "$as_me:$LINENO: checking for long double" >&5
11636 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11637 if test "${ac_cv_type_long_double+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 cat >conftest.$ac_ext <<_ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646 $ac_includes_default
11647 typedef long double ac__type_new_;
11651 if ((ac__type_new_ *) 0)
11653 if (sizeof (ac__type_new_))
11659 rm -f conftest.$ac_objext
11660 if { (ac_try="$ac_compile"
11661 case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_compile") 2>conftest.er1
11668 grep -v '^
*+' conftest.er1 >conftest.err
11670 cat conftest.err >&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } && {
11673 test -z "$ac_c_werror_flag" ||
11674 test ! -s conftest.err
11675 } && test -s conftest.$ac_objext; then
11676 ac_cv_type_long_double=yes
11678 echo "$as_me: failed program was:" >&5
11679 sed 's
/^
/|
/' conftest.$ac_ext >&5
11681 ac_cv_type_long_double=no
11684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11687 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11689 # The cast to long int works around a bug in the HP C Compiler
11690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11692 # This bug is HP SR number 8606223364.
11693 { echo "$as_me:$LINENO: checking size of long double" >&5
11694 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11695 if test "${ac_cv_sizeof_long_double+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 if test "$cross_compiling" = yes; then
11699 # Depending upon the size, compute the lo and hi bounds.
11700 cat >conftest.
$ac_ext <<_ACEOF
11703 cat confdefs.h
>>conftest.
$ac_ext
11704 cat >>conftest.
$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11706 $ac_includes_default
11707 typedef long double ac__type_sizeof_;
11711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11718 rm -f conftest.
$ac_objext
11719 if { (ac_try
="$ac_compile"
11720 case "(($ac_try" in
11721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725 (eval "$ac_compile") 2>conftest.er1
11727 grep -v '^ *+' conftest.er1 >conftest.err
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } && {
11732 test -z "$ac_c_werror_flag" ||
11733 test ! -s conftest.err
11734 } && test -s conftest.$ac_objext; then
11737 cat >conftest.$ac_ext <<_ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 $ac_includes_default
11744 typedef long double ac__type_sizeof_;
11748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11755 rm -f conftest.$ac_objext
11756 if { (ac_try="$ac_compile"
11757 case "(($ac_try" in
11758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11759 *) ac_try_echo
=$ac_try;;
11761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_compile") 2>conftest.er1
11764 grep -v '^ *+' conftest.er1
>conftest.err
11766 cat conftest.err
>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } && {
11769 test -z "$ac_c_werror_flag" ||
11770 test ! -s conftest.err
11771 } && test -s conftest.
$ac_objext; then
11772 ac_hi
=$ac_mid; break
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.
$ac_ext >&5
11777 ac_lo
=`expr $ac_mid + 1`
11778 if test $ac_lo -le $ac_mid; then
11782 ac_mid
=`expr 2 '*' $ac_mid + 1`
11785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11788 echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.
$ac_ext >&5
11791 cat >conftest.
$ac_ext <<_ACEOF
11794 cat confdefs.h
>>conftest.
$ac_ext
11795 cat >>conftest.
$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 $ac_includes_default
11798 typedef long double ac__type_sizeof_;
11802 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11809 rm -f conftest.
$ac_objext
11810 if { (ac_try
="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11818 grep -v '^ *+' conftest.er1 >conftest.err
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest.$ac_objext; then
11828 cat >conftest.$ac_ext <<_ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11834 $ac_includes_default
11835 typedef long double ac__type_sizeof_;
11839 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11846 rm -f conftest.$ac_objext
11847 if { (ac_try="$ac_compile"
11848 case "(($ac_try" in
11849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11850 *) ac_try_echo
=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_compile") 2>conftest.er1
11855 grep -v '^ *+' conftest.er1
>conftest.err
11857 cat conftest.err
>&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } && {
11860 test -z "$ac_c_werror_flag" ||
11861 test ! -s conftest.err
11862 } && test -s conftest.
$ac_objext; then
11863 ac_lo
=$ac_mid; break
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.
$ac_ext >&5
11868 ac_hi
=`expr '(' $ac_mid ')' - 1`
11869 if test $ac_mid -le $ac_hi; then
11873 ac_mid
=`expr 2 '*' $ac_mid`
11876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.
$ac_ext >&5
11885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11889 # Binary search between lo and hi bounds.
11890 while test "x$ac_lo" != "x$ac_hi"; do
11891 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11892 cat >conftest.
$ac_ext <<_ACEOF
11895 cat confdefs.h
>>conftest.
$ac_ext
11896 cat >>conftest.
$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 $ac_includes_default
11899 typedef long double ac__type_sizeof_;
11903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11910 rm -f conftest.
$ac_objext
11911 if { (ac_try
="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_lo=`expr '(' $ac_mid ')' + 1`
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11939 '') if test "$ac_cv_type_long_double" = yes; then
11940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11941 See \`config.log
' for more details." >&5
11942 echo "$as_me: error: cannot compute sizeof (long double)
11943 See \`config.log' for more details.
" >&2;}
11944 { (exit 77); exit 77; }; }
11946 ac_cv_sizeof_long_double=0
11950 cat >conftest.$ac_ext <<_ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 $ac_includes_default
11957 typedef long double ac__type_sizeof_;
11958 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11959 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11961 #include <stdlib.h>
11966 FILE *f = fopen ("conftest.val
", "w
");
11969 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11971 long int i = longval ();
11972 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11974 fprintf (f, "%ld
\n", i);
11978 unsigned long int i = ulongval ();
11979 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11981 fprintf (f, "%lu
\n", i);
11983 return ferror (f) || fclose (f) != 0;
11989 rm -f conftest$ac_exeext
11990 if { (ac_try="$ac_link"
11991 case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_link") 2>&5
11998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12000 { (case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_try") 2>&5
12007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009 ac_cv_sizeof_long_double=`cat conftest.val`
12011 echo "$as_me: program exited with status
$ac_status" >&5
12012 echo "$as_me: failed program was
:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ( exit $ac_status )
12016 if test "$ac_cv_type_long_double" = yes; then
12017 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12018 See \
`config.log' for more details." >&5
12019 echo "$as_me: error: cannot compute sizeof (long double)
12020 See \`config.log
' for more details." >&2;}
12021 { (exit 77); exit 77; }; }
12023 ac_cv_sizeof_long_double=0
12026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12030 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12031 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12035 cat >>confdefs.h <<_ACEOF
12036 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12042 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12043 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12045 cat >conftest.$ac_ext <<_ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12055 _Bool x; x = (_Bool)0;
12060 rm -f conftest.$ac_objext
12061 if { (ac_try="$ac_compile"
12062 case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_compile") 2>conftest.er1
12069 grep -v '^
*+' conftest.er1 >conftest.err
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } && {
12074 test -z "$ac_c_werror_flag" ||
12075 test ! -s conftest.err
12076 } && test -s conftest.$ac_objext; then
12079 cat >>confdefs.h <<\_ACEOF
12080 #define HAVE_C99_BOOL 1
12086 echo "$as_me: failed program was:" >&5
12087 sed 's
/^
/|
/' conftest.$ac_ext >&5
12092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12094 echo "${ECHO_T}$have_c99_bool" >&6; }
12095 if test "$have_c99_bool" = yes ; then
12096 { echo "$as_me:$LINENO: checking for _Bool" >&5
12097 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12098 if test "${ac_cv_type__Bool+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 cat >conftest.$ac_ext <<_ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107 $ac_includes_default
12108 typedef _Bool ac__type_new_;
12112 if ((ac__type_new_ *) 0)
12114 if (sizeof (ac__type_new_))
12120 rm -f conftest.$ac_objext
12121 if { (ac_try="$ac_compile"
12122 case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_compile") 2>conftest.er1
12129 grep -v '^
*+' conftest.er1 >conftest.err
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && {
12134 test -z "$ac_c_werror_flag" ||
12135 test ! -s conftest.err
12136 } && test -s conftest.$ac_objext; then
12137 ac_cv_type__Bool=yes
12139 echo "$as_me: failed program was:" >&5
12140 sed 's
/^
/|
/' conftest.$ac_ext >&5
12142 ac_cv_type__Bool=no
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12148 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12150 # The cast to long int works around a bug in the HP C Compiler
12151 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12152 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12153 # This bug is HP SR number 8606223364.
12154 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12155 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12156 if test "${ac_cv_sizeof__Bool+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 if test "$cross_compiling" = yes; then
12160 # Depending upon the size, compute the lo and hi bounds.
12161 cat >conftest.
$ac_ext <<_ACEOF
12164 cat confdefs.h
>>conftest.
$ac_ext
12165 cat >>conftest.
$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 $ac_includes_default
12168 typedef _Bool ac__type_sizeof_;
12172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12179 rm -f conftest.
$ac_objext
12180 if { (ac_try
="$ac_compile"
12181 case "(($ac_try" in
12182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_compile") 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } && {
12193 test -z "$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12195 } && test -s conftest.$ac_objext; then
12198 cat >conftest.$ac_ext <<_ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12205 typedef _Bool ac__type_sizeof_;
12209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12216 rm -f conftest.$ac_objext
12217 if { (ac_try="$ac_compile"
12218 case "(($ac_try" in
12219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12220 *) ac_try_echo
=$ac_try;;
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_compile") 2>conftest.er1
12225 grep -v '^ *+' conftest.er1
>conftest.err
12227 cat conftest.err
>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest.
$ac_objext; then
12233 ac_hi
=$ac_mid; break
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.
$ac_ext >&5
12238 ac_lo
=`expr $ac_mid + 1`
12239 if test $ac_lo -le $ac_mid; then
12243 ac_mid
=`expr 2 '*' $ac_mid + 1`
12246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.
$ac_ext >&5
12252 cat >conftest.
$ac_ext <<_ACEOF
12255 cat confdefs.h
>>conftest.
$ac_ext
12256 cat >>conftest.
$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12258 $ac_includes_default
12259 typedef _Bool ac__type_sizeof_;
12263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12270 rm -f conftest.
$ac_objext
12271 if { (ac_try
="$ac_compile"
12272 case "(($ac_try" in
12273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_compile") 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest.$ac_objext; then
12289 cat >conftest.$ac_ext <<_ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12295 $ac_includes_default
12296 typedef _Bool ac__type_sizeof_;
12300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12307 rm -f conftest.$ac_objext
12308 if { (ac_try="$ac_compile"
12309 case "(($ac_try" in
12310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12311 *) ac_try_echo
=$ac_try;;
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_compile") 2>conftest.er1
12316 grep -v '^ *+' conftest.er1
>conftest.err
12318 cat conftest.err
>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } && {
12321 test -z "$ac_c_werror_flag" ||
12322 test ! -s conftest.err
12323 } && test -s conftest.
$ac_objext; then
12324 ac_lo
=$ac_mid; break
12326 echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.
$ac_ext >&5
12329 ac_hi
=`expr '(' $ac_mid ')' - 1`
12330 if test $ac_mid -le $ac_hi; then
12334 ac_mid
=`expr 2 '*' $ac_mid`
12337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.
$ac_ext >&5
12346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12350 # Binary search between lo and hi bounds.
12351 while test "x$ac_lo" != "x$ac_hi"; do
12352 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12353 cat >conftest.
$ac_ext <<_ACEOF
12356 cat confdefs.h
>>conftest.
$ac_ext
12357 cat >>conftest.
$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 $ac_includes_default
12360 typedef _Bool ac__type_sizeof_;
12364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12371 rm -f conftest.
$ac_objext
12372 if { (ac_try
="$ac_compile"
12373 case "(($ac_try" in
12374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378 (eval "$ac_compile") 2>conftest.er1
12380 grep -v '^ *+' conftest.er1 >conftest.err
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } && {
12385 test -z "$ac_c_werror_flag" ||
12386 test ! -s conftest.err
12387 } && test -s conftest.$ac_objext; then
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 ac_lo=`expr '(' $ac_mid ')' + 1`
12396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12400 '') if test "$ac_cv_type__Bool" = yes; then
12401 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12402 See \`config.log
' for more details." >&5
12403 echo "$as_me: error: cannot compute sizeof (_Bool)
12404 See \`config.log' for more details.
" >&2;}
12405 { (exit 77); exit 77; }; }
12407 ac_cv_sizeof__Bool=0
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 $ac_includes_default
12418 typedef _Bool ac__type_sizeof_;
12419 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12420 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12422 #include <stdlib.h>
12427 FILE *f = fopen ("conftest.val
", "w
");
12430 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12432 long int i = longval ();
12433 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12435 fprintf (f, "%ld
\n", i);
12439 unsigned long int i = ulongval ();
12440 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12442 fprintf (f, "%lu
\n", i);
12444 return ferror (f) || fclose (f) != 0;
12450 rm -f conftest$ac_exeext
12451 if { (ac_try="$ac_link"
12452 case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_link") 2>&5
12459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12461 { (case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_try") 2>&5
12468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12469 (exit $ac_status); }; }; then
12470 ac_cv_sizeof__Bool=`cat conftest.val`
12472 echo "$as_me: program exited with status
$ac_status" >&5
12473 echo "$as_me: failed program was
:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ( exit $ac_status )
12477 if test "$ac_cv_type__Bool" = yes; then
12478 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12479 See \
`config.log' for more details." >&5
12480 echo "$as_me: error: cannot compute sizeof (_Bool)
12481 See \`config.log
' for more details." >&2;}
12482 { (exit 77); exit 77; }; }
12484 ac_cv_sizeof__Bool=0
12487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12491 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12492 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12496 cat >>confdefs.h <<_ACEOF
12497 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12503 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12504 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12505 if test "${ac_cv_type_uintptr_t+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 cat >conftest.$ac_ext <<_ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 #ifdef HAVE_STDINT_H
12515 #include <stdint.h>
12518 typedef uintptr_t ac__type_new_;
12522 if ((ac__type_new_ *) 0)
12524 if (sizeof (ac__type_new_))
12530 rm -f conftest.$ac_objext
12531 if { (ac_try="$ac_compile"
12532 case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_compile") 2>conftest.er1
12539 grep -v '^
*+' conftest.er1 >conftest.err
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && {
12544 test -z "$ac_c_werror_flag" ||
12545 test ! -s conftest.err
12546 } && test -s conftest.$ac_objext; then
12547 ac_cv_type_uintptr_t=yes
12549 echo "$as_me: failed program was:" >&5
12550 sed 's
/^
/|
/' conftest.$ac_ext >&5
12552 ac_cv_type_uintptr_t=no
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12558 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12559 if test $ac_cv_type_uintptr_t = yes; then
12561 cat >>confdefs.h <<_ACEOF
12562 #define HAVE_UINTPTR_T 1
12565 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12566 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12567 if test "${ac_cv_type_uintptr_t+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 cat >conftest.$ac_ext <<_ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12576 $ac_includes_default
12577 typedef uintptr_t ac__type_new_;
12581 if ((ac__type_new_ *) 0)
12583 if (sizeof (ac__type_new_))
12589 rm -f conftest.$ac_objext
12590 if { (ac_try="$ac_compile"
12591 case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_compile") 2>conftest.er1
12598 grep -v '^
*+' conftest.er1 >conftest.err
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest.$ac_objext; then
12606 ac_cv_type_uintptr_t=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's
/^
/|
/' conftest.$ac_ext >&5
12611 ac_cv_type_uintptr_t=no
12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12617 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12619 # The cast to long int works around a bug in the HP C Compiler
12620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12622 # This bug is HP SR number 8606223364.
12623 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12624 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12625 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 if test "$cross_compiling" = yes; then
12629 # Depending upon the size, compute the lo and hi bounds.
12630 cat >conftest.
$ac_ext <<_ACEOF
12633 cat confdefs.h
>>conftest.
$ac_ext
12634 cat >>conftest.
$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 $ac_includes_default
12637 typedef uintptr_t ac__type_sizeof_;
12641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12648 rm -f conftest.
$ac_objext
12649 if { (ac_try
="$ac_compile"
12650 case "(($ac_try" in
12651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655 (eval "$ac_compile") 2>conftest.er1
12657 grep -v '^ *+' conftest.er1 >conftest.err
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } && {
12662 test -z "$ac_c_werror_flag" ||
12663 test ! -s conftest.err
12664 } && test -s conftest.$ac_objext; then
12667 cat >conftest.$ac_ext <<_ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12673 $ac_includes_default
12674 typedef uintptr_t ac__type_sizeof_;
12678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12685 rm -f conftest.$ac_objext
12686 if { (ac_try="$ac_compile"
12687 case "(($ac_try" in
12688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12689 *) ac_try_echo
=$ac_try;;
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_compile") 2>conftest.er1
12694 grep -v '^ *+' conftest.er1
>conftest.err
12696 cat conftest.err
>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } && {
12699 test -z "$ac_c_werror_flag" ||
12700 test ! -s conftest.err
12701 } && test -s conftest.
$ac_objext; then
12702 ac_hi
=$ac_mid; break
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.
$ac_ext >&5
12707 ac_lo
=`expr $ac_mid + 1`
12708 if test $ac_lo -le $ac_mid; then
12712 ac_mid
=`expr 2 '*' $ac_mid + 1`
12715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.
$ac_ext >&5
12721 cat >conftest.
$ac_ext <<_ACEOF
12724 cat confdefs.h
>>conftest.
$ac_ext
12725 cat >>conftest.
$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 $ac_includes_default
12728 typedef uintptr_t ac__type_sizeof_;
12732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12739 rm -f conftest.
$ac_objext
12740 if { (ac_try
="$ac_compile"
12741 case "(($ac_try" in
12742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_compile") 2>conftest.er1
12748 grep -v '^ *+' conftest.er1 >conftest.err
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } && {
12753 test -z "$ac_c_werror_flag" ||
12754 test ! -s conftest.err
12755 } && test -s conftest.$ac_objext; then
12758 cat >conftest.$ac_ext <<_ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 $ac_includes_default
12765 typedef uintptr_t ac__type_sizeof_;
12769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12776 rm -f conftest.$ac_objext
12777 if { (ac_try="$ac_compile"
12778 case "(($ac_try" in
12779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12780 *) ac_try_echo
=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_compile") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1
>conftest.err
12787 cat conftest.err
>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest.
$ac_objext; then
12793 ac_lo
=$ac_mid; break
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.
$ac_ext >&5
12798 ac_hi
=`expr '(' $ac_mid ')' - 1`
12799 if test $ac_mid -le $ac_hi; then
12803 ac_mid
=`expr 2 '*' $ac_mid`
12806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.
$ac_ext >&5
12815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12819 # Binary search between lo and hi bounds.
12820 while test "x$ac_lo" != "x$ac_hi"; do
12821 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12822 cat >conftest.
$ac_ext <<_ACEOF
12825 cat confdefs.h
>>conftest.
$ac_ext
12826 cat >>conftest.
$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 $ac_includes_default
12829 typedef uintptr_t ac__type_sizeof_;
12833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12840 rm -f conftest.
$ac_objext
12841 if { (ac_try
="$ac_compile"
12842 case "(($ac_try" in
12843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12844 *) ac_try_echo=$ac_try;;
12846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12847 (eval "$ac_compile") 2>conftest.er1
12849 grep -v '^ *+' conftest.er1 >conftest.err
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } && {
12854 test -z "$ac_c_werror_flag" ||
12855 test ! -s conftest.err
12856 } && test -s conftest.$ac_objext; then
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_lo=`expr '(' $ac_mid ')' + 1`
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12869 '') if test "$ac_cv_type_uintptr_t" = yes; then
12870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12871 See \`config.log
' for more details." >&5
12872 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12873 See \`config.log' for more details.
" >&2;}
12874 { (exit 77); exit 77; }; }
12876 ac_cv_sizeof_uintptr_t=0
12880 cat >conftest.$ac_ext <<_ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 $ac_includes_default
12887 typedef uintptr_t ac__type_sizeof_;
12888 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12889 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12891 #include <stdlib.h>
12896 FILE *f = fopen ("conftest.val
", "w
");
12899 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12901 long int i = longval ();
12902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12904 fprintf (f, "%ld
\n", i);
12908 unsigned long int i = ulongval ();
12909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12911 fprintf (f, "%lu
\n", i);
12913 return ferror (f) || fclose (f) != 0;
12919 rm -f conftest$ac_exeext
12920 if { (ac_try="$ac_link"
12921 case "(($ac_try" in
12922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12923 *) ac_try_echo=$ac_try;;
12925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12926 (eval "$ac_link") 2>&5
12928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12930 { (case "(($ac_try" in
12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932 *) ac_try_echo=$ac_try;;
12934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12935 (eval "$ac_try") 2>&5
12937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12941 echo "$as_me: program exited with status
$ac_status" >&5
12942 echo "$as_me: failed program was
:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12945 ( exit $ac_status )
12946 if test "$ac_cv_type_uintptr_t" = yes; then
12947 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12948 See \
`config.log' for more details." >&5
12949 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12950 See \`config.log
' for more details." >&2;}
12951 { (exit 77); exit 77; }; }
12953 ac_cv_sizeof_uintptr_t=0
12956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12960 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12961 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12965 cat >>confdefs.h <<_ACEOF
12966 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12974 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12975 { echo "$as_me:$LINENO: checking size of off_t" >&5
12976 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12977 if test "${ac_cv_sizeof_off_t+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 if test "$cross_compiling" = yes; then
12981 ac_cv_sizeof_off_t
=4
12983 cat >conftest.
$ac_ext <<_ACEOF
12986 cat confdefs.h
>>conftest.
$ac_ext
12987 cat >>conftest.
$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12990 #include <sys/types.h>
12993 FILE *f=fopen("conftestval", "w");
12995 fprintf(f, "%d\n", sizeof(off_t));
12999 rm -f conftest
$ac_exeext
13000 if { (ac_try
="$ac_link"
13001 case "(($ac_try" in
13002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_link") 2>&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13012 *) ac_try_echo
=$ac_try;;
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_sizeof_off_t
=`cat conftestval`
13021 echo "$as_me: program exited with status $ac_status" >&5
13022 echo "$as_me: failed program was:" >&5
13023 sed 's/^/| /' conftest.
$ac_ext >&5
13025 ( exit $ac_status )
13026 ac_cv_sizeof_off_t
=0
13028 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13035 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13036 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13038 cat >>confdefs.h
<<_ACEOF
13039 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13043 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13044 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13045 if test "$have_long_long" = yes -a \
13046 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13047 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13049 cat >>confdefs.h
<<\_ACEOF
13050 #define HAVE_LARGEFILE_SUPPORT 1
13053 { echo "$as_me:$LINENO: result: yes" >&5
13054 echo "${ECHO_T}yes" >&6; }
13056 { echo "$as_me:$LINENO: result: no" >&5
13057 echo "${ECHO_T}no" >&6; }
13060 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13061 { echo "$as_me:$LINENO: checking size of time_t" >&5
13062 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13063 if test "${ac_cv_sizeof_time_t+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 if test "$cross_compiling" = yes; then
13067 ac_cv_sizeof_time_t
=4
13069 cat >conftest.
$ac_ext <<_ACEOF
13072 cat confdefs.h
>>conftest.
$ac_ext
13073 cat >>conftest.
$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13079 FILE *f=fopen("conftestval", "w");
13081 fprintf(f, "%d\n", sizeof(time_t));
13085 rm -f conftest
$ac_exeext
13086 if { (ac_try
="$ac_link"
13087 case "(($ac_try" in
13088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_link") 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13096 { (case "(($ac_try" in
13097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13098 *) ac_try_echo
=$ac_try;;
13100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_try") 2>&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_cv_sizeof_time_t
=`cat conftestval`
13107 echo "$as_me: program exited with status $ac_status" >&5
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.
$ac_ext >&5
13111 ( exit $ac_status )
13112 ac_cv_sizeof_time_t
=0
13114 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13121 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13122 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13124 cat >>confdefs.h
<<_ACEOF
13125 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13130 # if have pthread_t then define SIZEOF_PTHREAD_T
13132 if test "$ac_cv_kpthread" = "yes"
13133 then CC
="$CC -Kpthread"
13134 elif test "$ac_cv_kthread" = "yes"
13135 then CC
="$CC -Kthread"
13136 elif test "$ac_cv_pthread" = "yes"
13137 then CC
="$CC -pthread"
13139 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13140 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13142 cat >conftest.
$ac_ext <<_ACEOF
13145 cat confdefs.h
>>conftest.
$ac_ext
13146 cat >>conftest.
$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 #include <pthread.h>
13152 pthread_t x; x = *(pthread_t*)0;
13157 rm -f conftest.
$ac_objext
13158 if { (ac_try
="$ac_compile"
13159 case "(($ac_try" in
13160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_compile") 2>conftest.er1
13166 grep -v '^ *+' conftest.er1 >conftest.err
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } && {
13171 test -z "$ac_c_werror_flag" ||
13172 test ! -s conftest.err
13173 } && test -s conftest.$ac_objext; then
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13183 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13184 echo "${ECHO_T}$have_pthread_t" >&6; }
13185 if test "$have_pthread_t" = yes ; then
13186 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13187 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13188 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13189 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 if test "$cross_compiling" = yes; then
13193 ac_cv_sizeof_pthread_t=4
13195 cat >conftest.$ac_ext <<_ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13202 #include <pthread.h>
13205 FILE *f=fopen("conftestval", "w");
13207 fprintf(f, "%d\n", sizeof(pthread_t));
13211 rm -f conftest$ac_exeext
13212 if { (ac_try="$ac_link"
13213 case "(($ac_try" in
13214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13215 *) ac_try_echo
=$ac_try;;
13217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_link") 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13222 { (case "(($ac_try" in
13223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_try") 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_cv_sizeof_pthread_t=`cat conftestval
`
13233 echo "$as_me: program exited with status $ac_status" >&5
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ( exit $ac_status )
13238 ac_cv_sizeof_pthread_t=0
13240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13247 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13248 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13250 cat >>confdefs.h <<_ACEOF
13251 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13257 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13258 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13259 # Check whether --enable-toolbox-glue was given.
13260 if test "${enable_toolbox_glue+set}" = set; then
13261 enableval=$enable_toolbox_glue;
13265 if test -z "$enable_toolbox_glue"
13267 case $ac_sys_system/$ac_sys_release in
13269 enable_toolbox_glue="yes";;
13271 enable_toolbox_glue="no";;
13274 case "$enable_toolbox_glue" in
13276 extra_machdep_objs="Python/mactoolboxglue.o"
13277 extra_undefs="-u _PyMac_Error"
13279 cat >>confdefs.h <<\_ACEOF
13280 #define USE_TOOLBOX_OBJECT_GLUE 1
13285 extra_machdep_objs=""
13289 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13290 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13294 case $ac_sys_system/$ac_sys_release in
13295 Darwin/[01567]\..*)
13296 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13299 OTHER_LIBTOOL_OPT=""
13304 case $ac_sys_system/$ac_sys_release in
13305 Darwin/[01567]\..*)
13306 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13307 if test "${enable_universalsdk}"; then
13310 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
13312 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13313 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13315 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
13316 if test ${gcc_version} '<' 4.0
13318 LIBTOOL_CRUFT="-lcc_dynamic"
13322 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
13323 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13324 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13327 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13328 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13329 if test "$enable_framework"
13331 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13332 # -F. is needed to allow linking to the framework while
13333 # in the build location.
13335 cat >>confdefs.h <<\_ACEOF
13336 #define WITH_NEXT_FRAMEWORK 1
13339 { echo "$as_me:$LINENO: result: yes" >&5
13340 echo "${ECHO_T}yes" >&6; }
13342 { echo "$as_me:$LINENO: result: no" >&5
13343 echo "${ECHO_T}no" >&6; }
13346 { echo "$as_me:$LINENO: checking for dyld" >&5
13347 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13348 case $ac_sys_system/$ac_sys_release in
13351 cat >>confdefs.h <<\_ACEOF
13352 #define WITH_DYLD 1
13355 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13356 echo "${ECHO_T}always on for Darwin" >&6; }
13359 { echo "$as_me:$LINENO: result: no" >&5
13360 echo "${ECHO_T}no" >&6; }
13364 # Set info about shared libraries.
13370 # SO is the extension of shared libraries `(including the dot
!)
13371 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13372 { echo "$as_me:$LINENO: checking SO" >&5
13373 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13376 case $ac_sys_system in
13387 # this might also be a termcap variable, see #610332
13389 echo '====================================================================='
13391 echo '+ WARNING: You have set SO in your environment. +'
13392 echo '+ Do you really mean to change the extension for shared libraries? +'
13393 echo '+ Continuing in 10 seconds to let you to ponder. +'
13395 echo '====================================================================='
13398 { echo "$as_me:$LINENO: result: $SO" >&5
13399 echo "${ECHO_T}$SO" >&6; }
13402 cat >>confdefs.h
<<_ACEOF
13403 #define SHLIB_EXT "$SO"
13406 # LDSHARED is the ld *command* used to create shared library
13407 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13408 # (Shared libraries in this instance are shared modules to be loaded into
13409 # Python, as opposed to building Python itself as a shared library.)
13410 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13411 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13412 if test -z "$LDSHARED"
13414 case $ac_sys_system/$ac_sys_release in
13416 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13417 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13420 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13421 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13423 IRIX
/5*) LDSHARED
="ld -shared";;
13424 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13426 if test "$GCC" = "yes"
13427 then LDSHARED
='$(CC) -shared'
13428 else LDSHARED
='$(CC) -G';
13431 if test "$GCC" = "yes"
13432 then LDSHARED
='$(CC) -shared'
13433 else LDSHARED
='ld -b';
13435 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13437 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13438 if test "$enable_framework" ; then
13439 # Link against the framework. All externals should be defined.
13440 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13441 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13443 # No framework. Ignore undefined symbols, assuming they come from Python
13444 LDSHARED
="$LDSHARED -undefined suppress"
13446 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13447 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13448 if test "$enable_framework" ; then
13449 # Link against the framework. All externals should be defined.
13450 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13451 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13453 # No framework, use the Python app as bundle-loader
13454 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13455 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13458 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13459 # This allows an extension to be used in any Python
13461 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13463 if test "${enable_universalsdk}"; then
13464 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13466 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13467 BLDSHARED
="$LDSHARED"
13469 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13470 if test "$enable_framework" ; then
13471 # Link against the framework. All externals should be defined.
13472 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13473 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13475 # No framework, use the Python app as bundle-loader
13476 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13477 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13481 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13482 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13484 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13486 LDSHARED
="$CC -shared ${LDFLAGS}"
13488 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13491 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13493 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13496 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13497 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13500 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13504 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13505 OpenUNIX
*|UnixWare
*)
13506 if test "$GCC" = "yes"
13507 then LDSHARED
='$(CC) -shared'
13508 else LDSHARED
='$(CC) -G'
13510 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13511 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13512 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13513 atheos
*) LDSHARED
="gcc -shared";;
13517 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13518 echo "${ECHO_T}$LDSHARED" >&6; }
13519 BLDSHARED
=${BLDSHARED-$LDSHARED}
13520 # CCSHARED are the C *flags* used to create objects to go into a shared
13521 # library (module) -- this is only needed for a few systems
13522 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13523 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13524 if test -z "$CCSHARED"
13526 case $ac_sys_system/$ac_sys_release in
13527 SunOS
*) if test "$GCC" = yes;
13528 then CCSHARED
="-fPIC";
13529 elif test `uname -p` = sparc
;
13530 then CCSHARED
="-xcode=pic32";
13531 else CCSHARED
="-Kpic";
13533 hp
*|HP
*) if test "$GCC" = yes;
13534 then CCSHARED
="-fPIC";
13535 else CCSHARED
="+z";
13537 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13538 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13539 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13540 OpenUNIX
*|UnixWare
*)
13541 if test "$GCC" = "yes"
13542 then CCSHARED
="-fPIC"
13543 else CCSHARED
="-KPIC"
13546 if test "$GCC" = "yes"
13547 then CCSHARED
="-fPIC"
13548 else CCSHARED
="-Kpic -belf"
13550 Monterey
*) CCSHARED
="-G";;
13551 IRIX
*/6*) case $CC in
13552 *gcc
*) CCSHARED
="-shared";;
13555 atheos
*) CCSHARED
="-fPIC";;
13558 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13559 echo "${ECHO_T}$CCSHARED" >&6; }
13560 # LINKFORSHARED are the flags passed to the $(CC) command that links
13561 # the python executable -- this is only needed for a few systems
13562 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13563 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13564 if test -z "$LINKFORSHARED"
13566 case $ac_sys_system/$ac_sys_release in
13567 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13569 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13570 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13571 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13572 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13573 # -u libsys_s pulls in all symbols in libsys
13575 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13577 # not used by the core itself but which needs to be in the core so
13578 # that dynamically loaded extension modules have access to it.
13579 # -prebind is no longer used, because it actually seems to give a
13580 # slowdown in stead of a speedup, maybe due to the large number of
13581 # dynamic loads Python does.
13583 LINKFORSHARED
="$extra_undefs"
13584 if test "$enable_framework"
13586 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13588 LINKFORSHARED
="$LINKFORSHARED";;
13589 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13590 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13591 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13592 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13593 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13595 LINKFORSHARED
="-Wl,--export-dynamic"
13597 SunOS
/5*) case $CC in
13599 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13601 LINKFORSHARED
="-Xlinker --export-dynamic"
13605 if test $enable_shared = "no"
13607 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13610 # -Wl,-E causes the symbols to be added to the dynamic
13611 # symbol table so that they can be found when a module
13612 # is loaded. -N 2048K causes the stack size to be set
13613 # to 2048 kilobytes so that the stack doesn't overflow
13614 # when running test_compile.py.
13615 LINKFORSHARED
='-Wl,-E -N 2048K';;
13618 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13619 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13623 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13624 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13625 if test ! "$LIBRARY" = "$LDLIBRARY"
13627 case $ac_sys_system in
13629 # Cygwin needs CCSHARED when building extension DLLs
13630 # but not when building the interpreter DLL.
13631 CFLAGSFORSHARED
='';;
13633 CFLAGSFORSHARED
='$(CCSHARED)'
13636 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13637 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13639 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13640 # library (with --enable-shared).
13641 # For platforms on which shared libraries are not allowed to have unresolved
13642 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13643 # if it is not required, since it creates a dependency of the shared library
13644 # to LIBS. This, in turn, means that applications linking the shared libpython
13645 # don't need to link LIBS explicitly. The default should be only changed
13646 # on systems where this approach causes problems.
13648 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13649 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13650 case "$ac_sys_system" in
13654 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13655 echo "${ECHO_T}$SHLIBS" >&6; }
13658 # checks for libraries
13660 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13661 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13662 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 ac_check_lib_save_LIBS
=$LIBS
13667 cat >conftest.
$ac_ext <<_ACEOF
13670 cat confdefs.h
>>conftest.
$ac_ext
13671 cat >>conftest.
$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13689 rm -f conftest.
$ac_objext conftest
$ac_exeext
13690 if { (ac_try
="$ac_link"
13691 case "(($ac_try" in
13692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_link") 2>conftest.er1
13698 grep -v '^ *+' conftest.er1 >conftest.err
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && {
13703 test -z "$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13705 } && test -s conftest$ac_exeext &&
13706 $as_test_x conftest$ac_exeext; then
13707 ac_cv_lib_dl_dlopen=yes
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 ac_cv_lib_dl_dlopen=no
13715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13716 conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13719 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13720 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13721 if test $ac_cv_lib_dl_dlopen = yes; then
13722 cat >>confdefs.h <<_ACEOF
13723 #define HAVE_LIBDL 1
13729 # Dynamic linking for SunOS/Solaris and SYSV
13731 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13732 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13733 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 ac_check_lib_save_LIBS=$LIBS
13738 cat >conftest.$ac_ext <<_ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13745 /* Override any GCC internal prototype to avoid an error.
13746 Use char because int might match the return type of a GCC
13747 builtin and then its argument prototype would still apply. */
13755 return shl_load ();
13760 rm -f conftest.$ac_objext conftest$ac_exeext
13761 if { (ac_try="$ac_link"
13762 case "(($ac_try" in
13763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13764 *) ac_try_echo
=$ac_try;;
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767 (eval "$ac_link") 2>conftest.er1
13769 grep -v '^ *+' conftest.er1
>conftest.err
13771 cat conftest.err
>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } && {
13774 test -z "$ac_c_werror_flag" ||
13775 test ! -s conftest.err
13776 } && test -s conftest
$ac_exeext &&
13777 $as_test_x conftest
$ac_exeext; then
13778 ac_cv_lib_dld_shl_load
=yes
13780 echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.
$ac_ext >&5
13783 ac_cv_lib_dld_shl_load
=no
13786 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13787 conftest
$ac_exeext conftest.
$ac_ext
13788 LIBS
=$ac_check_lib_save_LIBS
13790 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13791 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13792 if test $ac_cv_lib_dld_shl_load = yes; then
13793 cat >>confdefs.h
<<_ACEOF
13794 #define HAVE_LIBDLD 1
13800 # Dynamic linking for HP-UX
13802 # only check for sem_init if thread support is requested
13803 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13804 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13805 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13806 if test "${ac_cv_search_sem_init+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 ac_func_search_save_LIBS
=$LIBS
13810 cat >conftest.
$ac_ext <<_ACEOF
13813 cat confdefs.h
>>conftest.
$ac_ext
13814 cat >>conftest.
$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13817 /* Override any GCC internal prototype to avoid an error.
13818 Use char because int might match the return type of a GCC
13819 builtin and then its argument prototype would still apply. */
13827 return sem_init ();
13832 for ac_lib
in '' pthread rt posix4
; do
13833 if test -z "$ac_lib"; then
13834 ac_res
="none required"
13837 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13839 rm -f conftest.
$ac_objext conftest
$ac_exeext
13840 if { (ac_try
="$ac_link"
13841 case "(($ac_try" in
13842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_link") 2>conftest.er1
13848 grep -v '^ *+' conftest.er1 >conftest.err
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } && {
13853 test -z "$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 } && test -s conftest$ac_exeext &&
13856 $as_test_x conftest$ac_exeext; then
13857 ac_cv_search_sem_init=$ac_res
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13867 if test "${ac_cv_search_sem_init+set}" = set; then
13871 if test "${ac_cv_search_sem_init+set}" = set; then
13874 ac_cv_search_sem_init=no
13876 rm conftest.$ac_ext
13877 LIBS=$ac_func_search_save_LIBS
13879 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13880 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13881 ac_res=$ac_cv_search_sem_init
13882 if test "$ac_res" != no; then
13883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13886 # 'Real Time' functions on Solaris
13887 # posix4 on Solaris 2.6
13888 # pthread (first!) on Linux
13891 # check if we need libintl for locale functions
13892 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13893 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13894 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 ac_check_lib_save_LIBS=$LIBS
13898 LIBS="-lintl $LIBS"
13899 cat >conftest.$ac_ext <<_ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h. */
13906 /* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
13912 char textdomain ();
13916 return textdomain ();
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (ac_try="$ac_link"
13923 case "(($ac_try" in
13924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13925 *) ac_try_echo
=$ac_try;;
13927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13928 (eval "$ac_link") 2>conftest.er1
13930 grep -v '^ *+' conftest.er1
>conftest.err
13932 cat conftest.err
>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } && {
13935 test -z "$ac_c_werror_flag" ||
13936 test ! -s conftest.err
13937 } && test -s conftest
$ac_exeext &&
13938 $as_test_x conftest
$ac_exeext; then
13939 ac_cv_lib_intl_textdomain
=yes
13941 echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.
$ac_ext >&5
13944 ac_cv_lib_intl_textdomain
=no
13947 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13948 conftest
$ac_exeext conftest.
$ac_ext
13949 LIBS
=$ac_check_lib_save_LIBS
13951 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13952 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13953 if test $ac_cv_lib_intl_textdomain = yes; then
13955 cat >>confdefs.h
<<\_ACEOF
13956 #define WITH_LIBINTL 1
13962 # checks for system dependent C++ extensions support
13963 case "$ac_sys_system" in
13964 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13965 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13966 cat >conftest.
$ac_ext <<_ACEOF
13969 cat confdefs.h
>>conftest.
$ac_ext
13970 cat >>conftest.
$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13972 #include "/usr/lpp/xlC/include/load.h"
13976 loadAndInit("", 0, "")
13981 rm -f conftest.
$ac_objext conftest
$ac_exeext
13982 if { (ac_try
="$ac_link"
13983 case "(($ac_try" in
13984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_link") 2>conftest.er1
13990 grep -v '^ *+' conftest.er1 >conftest.err
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } && {
13995 test -z "$ac_c_werror_flag" ||
13996 test ! -s conftest.err
13997 } && test -s conftest$ac_exeext &&
13998 $as_test_x conftest$ac_exeext; then
14000 cat >>confdefs.h <<\_ACEOF
14001 #define AIX_GENUINE_CPLUSPLUS 1
14004 { echo "$as_me:$LINENO: result: yes" >&5
14005 echo "${ECHO_T}yes" >&6; }
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 { echo "$as_me:$LINENO: result: no" >&5
14011 echo "${ECHO_T}no" >&6; }
14014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14015 conftest$ac_exeext conftest.$ac_ext;;
14019 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14020 # BeOS' sockets are stashed in libnet.
14021 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14022 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14023 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 ac_check_lib_save_LIBS=$LIBS
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14054 *) ac_try_echo
=$ac_try;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_link") 2>conftest.er1
14059 grep -v '^ *+' conftest.er1
>conftest.err
14061 cat conftest.err
>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); } && {
14064 test -z "$ac_c_werror_flag" ||
14065 test ! -s conftest.err
14066 } && test -s conftest
$ac_exeext &&
14067 $as_test_x conftest
$ac_exeext; then
14068 ac_cv_lib_nsl_t_open
=yes
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.
$ac_ext >&5
14073 ac_cv_lib_nsl_t_open
=no
14076 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14077 conftest
$ac_exeext conftest.
$ac_ext
14078 LIBS
=$ac_check_lib_save_LIBS
14080 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14081 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14082 if test $ac_cv_lib_nsl_t_open = yes; then
14086 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14087 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14088 if test "${ac_cv_lib_socket_socket+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 ac_check_lib_save_LIBS
=$LIBS
14092 LIBS
="-lsocket $LIBS $LIBS"
14093 cat >conftest.
$ac_ext <<_ACEOF
14096 cat confdefs.h
>>conftest.
$ac_ext
14097 cat >>conftest.
$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14100 /* Override any GCC internal prototype to avoid an error.
14101 Use char because int might match the return type of a GCC
14102 builtin and then its argument prototype would still apply. */
14115 rm -f conftest.
$ac_objext conftest
$ac_exeext
14116 if { (ac_try
="$ac_link"
14117 case "(($ac_try" in
14118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_link") 2>conftest.er1
14124 grep -v '^ *+' conftest.er1 >conftest.err
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } && {
14129 test -z "$ac_c_werror_flag" ||
14130 test ! -s conftest.err
14131 } && test -s conftest$ac_exeext &&
14132 $as_test_x conftest$ac_exeext; then
14133 ac_cv_lib_socket_socket=yes
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14138 ac_cv_lib_socket_socket=no
14141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14145 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14146 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14147 if test $ac_cv_lib_socket_socket = yes; then
14148 LIBS="-lsocket $LIBS"
14152 case "$ac_sys_system" in
14154 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14155 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14156 if test "${ac_cv_lib_net_socket+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 ac_check_lib_save_LIBS=$LIBS
14160 LIBS="-lnet $LIBS $LIBS"
14161 cat >conftest.$ac_ext <<_ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14168 /* Override any GCC internal prototype to avoid an error.
14169 Use char because int might match the return type of a GCC
14170 builtin and then its argument prototype would still apply. */
14183 rm -f conftest.$ac_objext conftest$ac_exeext
14184 if { (ac_try="$ac_link"
14185 case "(($ac_try" in
14186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14187 *) ac_try_echo
=$ac_try;;
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_link") 2>conftest.er1
14192 grep -v '^ *+' conftest.er1
>conftest.err
14194 cat conftest.err
>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } && {
14197 test -z "$ac_c_werror_flag" ||
14198 test ! -s conftest.err
14199 } && test -s conftest
$ac_exeext &&
14200 $as_test_x conftest
$ac_exeext; then
14201 ac_cv_lib_net_socket
=yes
14203 echo "$as_me: failed program was:" >&5
14204 sed 's/^/| /' conftest.
$ac_ext >&5
14206 ac_cv_lib_net_socket
=no
14209 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14210 conftest
$ac_exeext conftest.
$ac_ext
14211 LIBS
=$ac_check_lib_save_LIBS
14213 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14214 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14215 if test $ac_cv_lib_net_socket = yes; then
14222 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14223 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14225 # Check whether --with-libs was given.
14226 if test "${with_libs+set}" = set; then
14227 withval
=$with_libs;
14228 { echo "$as_me:$LINENO: result: $withval" >&5
14229 echo "${ECHO_T}$withval" >&6; }
14230 LIBS
="$withval $LIBS"
14233 { echo "$as_me:$LINENO: result: no" >&5
14234 echo "${ECHO_T}no" >&6; }
14238 # Check for use of the system libffi library
14239 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14240 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14242 # Check whether --with-system_ffi was given.
14243 if test "${with_system_ffi+set}" = set; then
14244 withval
=$with_system_ffi;
14248 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14249 echo "${ECHO_T}$with_system_ffi" >&6; }
14251 # Determine if signalmodule should be used.
14254 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14255 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14257 # Check whether --with-signal-module was given.
14258 if test "${with_signal_module+set}" = set; then
14259 withval
=$with_signal_module;
14263 if test -z "$with_signal_module"
14264 then with_signal_module
="yes"
14266 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14267 echo "${ECHO_T}$with_signal_module" >&6; }
14269 if test "${with_signal_module}" = "yes"; then
14270 USE_SIGNAL_MODULE
=""
14273 USE_SIGNAL_MODULE
="#"
14274 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
14277 # This is used to generate Setup.config
14279 USE_THREAD_MODULE
=""
14281 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14282 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14285 # Check whether --with-dec-threads was given.
14286 if test "${with_dec_threads+set}" = set; then
14287 withval
=$with_dec_threads;
14288 { echo "$as_me:$LINENO: result: $withval" >&5
14289 echo "${ECHO_T}$withval" >&6; }
14291 if test "${with_thread+set}" != set; then
14292 with_thread
="$withval";
14295 { echo "$as_me:$LINENO: result: no" >&5
14296 echo "${ECHO_T}no" >&6; }
14300 # Templates for things AC_DEFINEd more than once.
14301 # For a single AC_DEFINE, no template is needed.
14309 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14310 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14312 # Check whether --with-threads was given.
14313 if test "${with_threads+set}" = set; then
14314 withval
=$with_threads;
14318 # --with-thread is deprecated, but check for it anyway
14320 # Check whether --with-thread was given.
14321 if test "${with_thread+set}" = set; then
14322 withval
=$with_thread; with_threads
=$with_thread
14326 if test -z "$with_threads"
14327 then with_threads
="yes"
14329 { echo "$as_me:$LINENO: result: $with_threads" >&5
14330 echo "${ECHO_T}$with_threads" >&6; }
14333 if test "$with_threads" = "no"
14335 USE_THREAD_MODULE
="#"
14336 elif test "$ac_cv_pthread_is_default" = yes
14338 cat >>confdefs.h
<<\_ACEOF
14339 #define WITH_THREAD 1
14342 # Defining _REENTRANT on system with POSIX threads should not hurt.
14343 cat >>confdefs.h
<<\_ACEOF
14344 #define _REENTRANT 1
14348 THREADOBJ
="Python/thread.o"
14349 elif test "$ac_cv_kpthread" = "yes"
14352 if test "$ac_cv_cxx_thread" = "yes"; then
14353 CXX
="$CXX -Kpthread"
14355 cat >>confdefs.h
<<\_ACEOF
14356 #define WITH_THREAD 1
14360 THREADOBJ
="Python/thread.o"
14361 elif test "$ac_cv_kthread" = "yes"
14364 if test "$ac_cv_cxx_thread" = "yes"; then
14365 CXX
="$CXX -Kthread"
14367 cat >>confdefs.h
<<\_ACEOF
14368 #define WITH_THREAD 1
14372 THREADOBJ
="Python/thread.o"
14373 elif test "$ac_cv_pthread" = "yes"
14376 if test "$ac_cv_cxx_thread" = "yes"; then
14377 CXX
="$CXX -pthread"
14379 cat >>confdefs.h
<<\_ACEOF
14380 #define WITH_THREAD 1
14384 THREADOBJ
="Python/thread.o"
14386 if test ! -z "$with_threads" -a -d "$with_threads"
14387 then LDFLAGS
="$LDFLAGS -L$with_threads"
14389 if test ! -z "$withval" -a -d "$withval"
14390 then LDFLAGS
="$LDFLAGS -L$withval"
14393 # According to the POSIX spec, a pthreads implementation must
14394 # define _POSIX_THREADS in unistd.h. Some apparently don't
14395 # (e.g. gnu pth with pthread emulation)
14396 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14397 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14398 cat >conftest.
$ac_ext <<_ACEOF
14401 cat confdefs.h
>>conftest.
$ac_ext
14402 cat >>conftest.
$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14405 #include <unistd.h>
14406 #ifdef _POSIX_THREADS
14411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14412 $EGREP "yes" >/dev
/null
2>&1; then
14413 unistd_defines_pthreads
=yes
14415 unistd_defines_pthreads
=no
14419 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14420 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14422 cat >>confdefs.h
<<\_ACEOF
14423 #define _REENTRANT 1
14426 if test "${ac_cv_header_cthreads_h+set}" = set; then
14427 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14428 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14429 if test "${ac_cv_header_cthreads_h+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14433 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14435 # Is the header compilable?
14436 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14437 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14438 cat >conftest.
$ac_ext <<_ACEOF
14441 cat confdefs.h
>>conftest.
$ac_ext
14442 cat >>conftest.
$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14444 $ac_includes_default
14445 #include <cthreads.h>
14447 rm -f conftest.
$ac_objext
14448 if { (ac_try
="$ac_compile"
14449 case "(($ac_try" in
14450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_compile") 2>conftest.er1
14456 grep -v '^ *+' conftest.er1 >conftest.err
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } && {
14461 test -z "$ac_c_werror_flag" ||
14462 test ! -s conftest.err
14463 } && test -s conftest.$ac_objext; then
14464 ac_header_compiler=yes
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14469 ac_header_compiler=no
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14474 echo "${ECHO_T}$ac_header_compiler" >&6; }
14476 # Is the header present?
14477 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14478 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14479 cat >conftest.$ac_ext <<_ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 #include <cthreads.h>
14487 if { (ac_try="$ac_cpp conftest.$ac_ext"
14488 case "(($ac_try" in
14489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14490 *) ac_try_echo
=$ac_try;;
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14495 grep -v '^ *+' conftest.er1
>conftest.err
14497 cat conftest.err
>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); } >/dev
/null
&& {
14500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14501 test ! -s conftest.err
14503 ac_header_preproc
=yes
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.
$ac_ext >&5
14508 ac_header_preproc
=no
14511 rm -f conftest.err conftest.
$ac_ext
14512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14513 echo "${ECHO_T}$ac_header_preproc" >&6; }
14515 # So? What about this header?
14516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14518 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14519 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14521 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14522 ac_header_preproc
=yes
14525 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14526 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14528 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14530 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14532 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14534 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14536 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14538 ## ------------------------------------------------ ##
14539 ## Report this to http://www.python.org/python-bugs ##
14540 ## ------------------------------------------------ ##
14542 ) |
sed "s/^/$as_me: WARNING: /" >&2
14545 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14546 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14547 if test "${ac_cv_header_cthreads_h+set}" = set; then
14548 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 ac_cv_header_cthreads_h
=$ac_header_preproc
14552 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14553 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14556 if test $ac_cv_header_cthreads_h = yes; then
14557 cat >>confdefs.h
<<\_ACEOF
14558 #define WITH_THREAD 1
14561 cat >>confdefs.h
<<\_ACEOF
14562 #define C_THREADS 1
14566 cat >>confdefs.h
<<\_ACEOF
14567 #define HURD_C_THREADS 1
14570 LIBS
="$LIBS -lthreads"
14571 THREADOBJ
="Python/thread.o"
14574 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14575 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14576 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14577 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14581 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14583 # Is the header compilable?
14584 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14585 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14586 cat >conftest.
$ac_ext <<_ACEOF
14589 cat confdefs.h
>>conftest.
$ac_ext
14590 cat >>conftest.
$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 $ac_includes_default
14593 #include <mach/cthreads.h>
14595 rm -f conftest.
$ac_objext
14596 if { (ac_try
="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_compile") 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } && {
14609 test -z "$ac_c_werror_flag" ||
14610 test ! -s conftest.err
14611 } && test -s conftest.$ac_objext; then
14612 ac_header_compiler=yes
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 ac_header_compiler=no
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14622 echo "${ECHO_T}$ac_header_compiler" >&6; }
14624 # Is the header present?
14625 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14626 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14627 cat >conftest.$ac_ext <<_ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 #include <mach/cthreads.h>
14635 if { (ac_try="$ac_cpp conftest.$ac_ext"
14636 case "(($ac_try" in
14637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14638 *) ac_try_echo
=$ac_try;;
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14643 grep -v '^ *+' conftest.er1
>conftest.err
14645 cat conftest.err
>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } >/dev
/null
&& {
14648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14651 ac_header_preproc
=yes
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.
$ac_ext >&5
14656 ac_header_preproc
=no
14659 rm -f conftest.err conftest.
$ac_ext
14660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14661 echo "${ECHO_T}$ac_header_preproc" >&6; }
14663 # So? What about this header?
14664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14666 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14667 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14669 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14670 ac_header_preproc
=yes
14673 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14674 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14675 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14676 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14678 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14680 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14682 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14684 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14686 ## ------------------------------------------------ ##
14687 ## Report this to http://www.python.org/python-bugs ##
14688 ## ------------------------------------------------ ##
14690 ) |
sed "s/^/$as_me: WARNING: /" >&2
14693 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14694 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14695 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
14700 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14701 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14704 if test $ac_cv_header_mach_cthreads_h = yes; then
14705 cat >>confdefs.h
<<\_ACEOF
14706 #define WITH_THREAD 1
14709 cat >>confdefs.h
<<\_ACEOF
14710 #define C_THREADS 1
14714 cat >>confdefs.h
<<\_ACEOF
14715 #define MACH_C_THREADS 1
14718 THREADOBJ
="Python/thread.o"
14721 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14722 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14724 # Check whether --with-pth was given.
14725 if test "${with_pth+set}" = set; then
14726 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14727 echo "${ECHO_T}$withval" >&6; }
14728 cat >>confdefs.h
<<\_ACEOF
14729 #define WITH_THREAD 1
14733 cat >>confdefs.h
<<\_ACEOF
14738 THREADOBJ
="Python/thread.o"
14740 { echo "$as_me:$LINENO: result: no" >&5
14741 echo "${ECHO_T}no" >&6; }
14743 # Just looking for pthread_create in libpthread is not enough:
14744 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14745 # So we really have to include pthread.h, and then link.
14747 LIBS
="$LIBS -lpthread"
14748 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14749 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14750 cat >conftest.
$ac_ext <<_ACEOF
14753 cat confdefs.h
>>conftest.
$ac_ext
14754 cat >>conftest.
$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 #include <pthread.h>
14758 void * start_routine (void *arg) { exit (0); }
14763 pthread_create (NULL, NULL, start_routine, NULL)
14768 rm -f conftest.
$ac_objext conftest
$ac_exeext
14769 if { (ac_try
="$ac_link"
14770 case "(($ac_try" in
14771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_link") 2>conftest.er1
14777 grep -v '^ *+' conftest.er1 >conftest.err
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest$ac_exeext &&
14785 $as_test_x conftest$ac_exeext; then
14787 { echo "$as_me:$LINENO: result: yes" >&5
14788 echo "${ECHO_T}yes" >&6; }
14789 cat >>confdefs.h <<\_ACEOF
14790 #define WITH_THREAD 1
14794 THREADOBJ="Python/thread.o"
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14801 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14802 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14803 if test "${ac_cv_func_pthread_detach+set}" = set; then
14804 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 cat >conftest.$ac_ext <<_ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14814 #define pthread_detach innocuous_pthread_detach
14816 /* System header to define __stub macros and hopefully few prototypes,
14817 which can conflict with char pthread_detach (); below.
14818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14819 <limits.h> exists even on freestanding compilers. */
14822 # include <limits.h>
14824 # include <assert.h>
14827 #undef pthread_detach
14829 /* Override any GCC internal prototype to avoid an error.
14830 Use char because int might match the return type of a GCC
14831 builtin and then its argument prototype would still apply. */
14835 char pthread_detach ();
14836 /* The GNU C library defines this for functions which it implements
14837 to always fail with ENOSYS. Some functions are actually named
14838 something starting with __ and the normal name is an alias. */
14839 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14846 return pthread_detach ();
14851 rm -f conftest.$ac_objext conftest$ac_exeext
14852 if { (ac_try="$ac_link"
14853 case "(($ac_try" in
14854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14855 *) ac_try_echo
=$ac_try;;
14857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14858 (eval "$ac_link") 2>conftest.er1
14860 grep -v '^ *+' conftest.er1
>conftest.err
14862 cat conftest.err
>&5
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); } && {
14865 test -z "$ac_c_werror_flag" ||
14866 test ! -s conftest.err
14867 } && test -s conftest
$ac_exeext &&
14868 $as_test_x conftest
$ac_exeext; then
14869 ac_cv_func_pthread_detach
=yes
14871 echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.
$ac_ext >&5
14874 ac_cv_func_pthread_detach
=no
14877 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14878 conftest
$ac_exeext conftest.
$ac_ext
14880 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14881 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14882 if test $ac_cv_func_pthread_detach = yes; then
14883 cat >>confdefs.h
<<\_ACEOF
14884 #define WITH_THREAD 1
14888 THREADOBJ
="Python/thread.o"
14891 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14892 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14893 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14894 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14898 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14900 # Is the header compilable?
14901 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14902 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14903 cat >conftest.
$ac_ext <<_ACEOF
14906 cat confdefs.h
>>conftest.
$ac_ext
14907 cat >>conftest.
$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 $ac_includes_default
14910 #include <atheos/threads.h>
14912 rm -f conftest.
$ac_objext
14913 if { (ac_try
="$ac_compile"
14914 case "(($ac_try" in
14915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_compile") 2>conftest.er1
14921 grep -v '^ *+' conftest.er1 >conftest.err
14923 cat conftest.err >&5
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); } && {
14926 test -z "$ac_c_werror_flag" ||
14927 test ! -s conftest.err
14928 } && test -s conftest.$ac_objext; then
14929 ac_header_compiler=yes
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_header_compiler=no
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14939 echo "${ECHO_T}$ac_header_compiler" >&6; }
14941 # Is the header present?
14942 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14943 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14944 cat >conftest.$ac_ext <<_ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950 #include <atheos/threads.h>
14952 if { (ac_try="$ac_cpp conftest.$ac_ext"
14953 case "(($ac_try" in
14954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14955 *) ac_try_echo
=$ac_try;;
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14960 grep -v '^ *+' conftest.er1
>conftest.err
14962 cat conftest.err
>&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } >/dev
/null
&& {
14965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14966 test ! -s conftest.err
14968 ac_header_preproc
=yes
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.
$ac_ext >&5
14973 ac_header_preproc
=no
14976 rm -f conftest.err conftest.
$ac_ext
14977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978 echo "${ECHO_T}$ac_header_preproc" >&6; }
14980 # So? What about this header?
14981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14983 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14984 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14986 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc
=yes
14990 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14991 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14992 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14993 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14995 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14997 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14999 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15001 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15003 ## ------------------------------------------------ ##
15004 ## Report this to http://www.python.org/python-bugs ##
15005 ## ------------------------------------------------ ##
15007 ) |
sed "s/^/$as_me: WARNING: /" >&2
15010 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15011 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15012 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 ac_cv_header_atheos_threads_h
=$ac_header_preproc
15017 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15018 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15021 if test $ac_cv_header_atheos_threads_h = yes; then
15022 cat >>confdefs.h
<<\_ACEOF
15023 #define WITH_THREAD 1
15027 cat >>confdefs.h
<<\_ACEOF
15028 #define ATHEOS_THREADS 1
15031 THREADOBJ
="Python/thread.o"
15034 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15035 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15036 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15037 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15041 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15043 # Is the header compilable?
15044 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15045 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15046 cat >conftest.
$ac_ext <<_ACEOF
15049 cat confdefs.h
>>conftest.
$ac_ext
15050 cat >>conftest.
$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 $ac_includes_default
15053 #include <kernel/OS.h>
15055 rm -f conftest.
$ac_objext
15056 if { (ac_try
="$ac_compile"
15057 case "(($ac_try" in
15058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15062 (eval "$ac_compile") 2>conftest.er1
15064 grep -v '^ *+' conftest.er1 >conftest.err
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); } && {
15069 test -z "$ac_c_werror_flag" ||
15070 test ! -s conftest.err
15071 } && test -s conftest.$ac_objext; then
15072 ac_header_compiler=yes
15074 echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.$ac_ext >&5
15077 ac_header_compiler=no
15080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15082 echo "${ECHO_T}$ac_header_compiler" >&6; }
15084 # Is the header present?
15085 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15086 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15087 cat >conftest.$ac_ext <<_ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h. */
15093 #include <kernel/OS.h>
15095 if { (ac_try="$ac_cpp conftest.$ac_ext"
15096 case "(($ac_try" in
15097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15098 *) ac_try_echo
=$ac_try;;
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15103 grep -v '^ *+' conftest.er1
>conftest.err
15105 cat conftest.err
>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } >/dev
/null
&& {
15108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15109 test ! -s conftest.err
15111 ac_header_preproc
=yes
15113 echo "$as_me: failed program was:" >&5
15114 sed 's/^/| /' conftest.
$ac_ext >&5
15116 ac_header_preproc
=no
15119 rm -f conftest.err conftest.
$ac_ext
15120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15121 echo "${ECHO_T}$ac_header_preproc" >&6; }
15123 # So? What about this header?
15124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15126 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15127 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15128 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15129 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15130 ac_header_preproc
=yes
15133 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15134 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15135 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15136 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15138 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15139 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15140 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15141 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15142 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15143 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15144 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15146 ## ------------------------------------------------ ##
15147 ## Report this to http://www.python.org/python-bugs ##
15148 ## ------------------------------------------------ ##
15150 ) |
sed "s/^/$as_me: WARNING: /" >&2
15153 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15154 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15155 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 ac_cv_header_kernel_OS_h
=$ac_header_preproc
15160 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15161 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15164 if test $ac_cv_header_kernel_OS_h = yes; then
15165 cat >>confdefs.h
<<\_ACEOF
15166 #define WITH_THREAD 1
15170 cat >>confdefs.h
<<\_ACEOF
15171 #define BEOS_THREADS 1
15174 THREADOBJ
="Python/thread.o"
15177 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15178 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15179 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15182 ac_check_lib_save_LIBS
=$LIBS
15183 LIBS
="-lpthreads $LIBS"
15184 cat >conftest.
$ac_ext <<_ACEOF
15187 cat confdefs.h
>>conftest.
$ac_ext
15188 cat >>conftest.
$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15191 /* Override any GCC internal prototype to avoid an error.
15192 Use char because int might match the return type of a GCC
15193 builtin and then its argument prototype would still apply. */
15197 char pthread_create ();
15201 return pthread_create ();
15206 rm -f conftest.
$ac_objext conftest
$ac_exeext
15207 if { (ac_try
="$ac_link"
15208 case "(($ac_try" in
15209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_link") 2>conftest.er1
15215 grep -v '^ *+' conftest.er1 >conftest.err
15217 cat conftest.err >&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } && {
15220 test -z "$ac_c_werror_flag" ||
15221 test ! -s conftest.err
15222 } && test -s conftest$ac_exeext &&
15223 $as_test_x conftest$ac_exeext; then
15224 ac_cv_lib_pthreads_pthread_create=yes
15226 echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15229 ac_cv_lib_pthreads_pthread_create=no
15232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15233 conftest$ac_exeext conftest.$ac_ext
15234 LIBS=$ac_check_lib_save_LIBS
15236 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15237 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15238 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15239 cat >>confdefs.h <<\_ACEOF
15240 #define WITH_THREAD 1
15244 LIBS="$LIBS -lpthreads"
15245 THREADOBJ="Python/thread.o"
15248 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15249 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15250 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 ac_check_lib_save_LIBS=$LIBS
15255 cat >conftest.$ac_ext <<_ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h. */
15262 /* Override any GCC internal prototype to avoid an error.
15263 Use char because int might match the return type of a GCC
15264 builtin and then its argument prototype would still apply. */
15268 char pthread_create ();
15272 return pthread_create ();
15277 rm -f conftest.$ac_objext conftest$ac_exeext
15278 if { (ac_try="$ac_link"
15279 case "(($ac_try" in
15280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15281 *) ac_try_echo
=$ac_try;;
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284 (eval "$ac_link") 2>conftest.er1
15286 grep -v '^ *+' conftest.er1
>conftest.err
15288 cat conftest.err
>&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } && {
15291 test -z "$ac_c_werror_flag" ||
15292 test ! -s conftest.err
15293 } && test -s conftest
$ac_exeext &&
15294 $as_test_x conftest
$ac_exeext; then
15295 ac_cv_lib_c_r_pthread_create
=yes
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.
$ac_ext >&5
15300 ac_cv_lib_c_r_pthread_create
=no
15303 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15304 conftest
$ac_exeext conftest.
$ac_ext
15305 LIBS
=$ac_check_lib_save_LIBS
15307 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15308 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15309 if test $ac_cv_lib_c_r_pthread_create = yes; then
15310 cat >>confdefs.h
<<\_ACEOF
15311 #define WITH_THREAD 1
15316 THREADOBJ
="Python/thread.o"
15319 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15320 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15321 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 ac_check_lib_save_LIBS
=$LIBS
15325 LIBS
="-lpthread $LIBS"
15326 cat >conftest.
$ac_ext <<_ACEOF
15329 cat confdefs.h
>>conftest.
$ac_ext
15330 cat >>conftest.
$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15333 /* Override any GCC internal prototype to avoid an error.
15334 Use char because int might match the return type of a GCC
15335 builtin and then its argument prototype would still apply. */
15339 char __pthread_create_system ();
15343 return __pthread_create_system ();
15348 rm -f conftest.
$ac_objext conftest
$ac_exeext
15349 if { (ac_try
="$ac_link"
15350 case "(($ac_try" in
15351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_link") 2>conftest.er1
15357 grep -v '^ *+' conftest.er1 >conftest.err
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_c_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest$ac_exeext &&
15365 $as_test_x conftest$ac_exeext; then
15366 ac_cv_lib_pthread___pthread_create_system=yes
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15371 ac_cv_lib_pthread___pthread_create_system=no
15374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15375 conftest$ac_exeext conftest.$ac_ext
15376 LIBS=$ac_check_lib_save_LIBS
15378 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15379 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15380 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15381 cat >>confdefs.h <<\_ACEOF
15382 #define WITH_THREAD 1
15386 LIBS="$LIBS -lpthread"
15387 THREADOBJ="Python/thread.o"
15390 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15391 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15392 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 ac_check_lib_save_LIBS=$LIBS
15397 cat >conftest.$ac_ext <<_ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15404 /* Override any GCC internal prototype to avoid an error.
15405 Use char because int might match the return type of a GCC
15406 builtin and then its argument prototype would still apply. */
15410 char pthread_create ();
15414 return pthread_create ();
15419 rm -f conftest.$ac_objext conftest$ac_exeext
15420 if { (ac_try="$ac_link"
15421 case "(($ac_try" in
15422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15423 *) ac_try_echo
=$ac_try;;
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426 (eval "$ac_link") 2>conftest.er1
15428 grep -v '^ *+' conftest.er1
>conftest.err
15430 cat conftest.err
>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } && {
15433 test -z "$ac_c_werror_flag" ||
15434 test ! -s conftest.err
15435 } && test -s conftest
$ac_exeext &&
15436 $as_test_x conftest
$ac_exeext; then
15437 ac_cv_lib_cma_pthread_create
=yes
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.
$ac_ext >&5
15442 ac_cv_lib_cma_pthread_create
=no
15445 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15446 conftest
$ac_exeext conftest.
$ac_ext
15447 LIBS
=$ac_check_lib_save_LIBS
15449 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15450 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15451 if test $ac_cv_lib_cma_pthread_create = yes; then
15452 cat >>confdefs.h
<<\_ACEOF
15453 #define WITH_THREAD 1
15458 THREADOBJ
="Python/thread.o"
15461 USE_THREAD_MODULE
="#"
15481 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15482 conftest
$ac_exeext conftest.
$ac_ext
15492 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15493 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15494 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 ac_check_lib_save_LIBS
=$LIBS
15499 cat >conftest.
$ac_ext <<_ACEOF
15502 cat confdefs.h
>>conftest.
$ac_ext
15503 cat >>conftest.
$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15506 /* Override any GCC internal prototype to avoid an error.
15507 Use char because int might match the return type of a GCC
15508 builtin and then its argument prototype would still apply. */
15516 return usconfig ();
15521 rm -f conftest.
$ac_objext conftest
$ac_exeext
15522 if { (ac_try
="$ac_link"
15523 case "(($ac_try" in
15524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_link") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } && {
15535 test -z "$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 } && test -s conftest$ac_exeext &&
15538 $as_test_x conftest$ac_exeext; then
15539 ac_cv_lib_mpc_usconfig=yes
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_cv_lib_mpc_usconfig=no
15547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15548 conftest$ac_exeext conftest.$ac_ext
15549 LIBS=$ac_check_lib_save_LIBS
15551 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15552 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15553 if test $ac_cv_lib_mpc_usconfig = yes; then
15554 cat >>confdefs.h <<\_ACEOF
15555 #define WITH_THREAD 1
15559 THREADOBJ="Python/thread.o"
15560 USE_THREAD_MODULE=""
15564 if test "$posix_threads" != "yes"; then
15565 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15566 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15567 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 ac_check_lib_save_LIBS=$LIBS
15571 LIBS="-lthread $LIBS"
15572 cat >conftest.$ac_ext <<_ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15579 /* Override any GCC internal prototype to avoid an error.
15580 Use char because int might match the return type of a GCC
15581 builtin and then its argument prototype would still apply. */
15585 char thr_create ();
15589 return thr_create ();
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (ac_try="$ac_link"
15596 case "(($ac_try" in
15597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15598 *) ac_try_echo
=$ac_try;;
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_link") 2>conftest.er1
15603 grep -v '^ *+' conftest.er1
>conftest.err
15605 cat conftest.err
>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } && {
15608 test -z "$ac_c_werror_flag" ||
15609 test ! -s conftest.err
15610 } && test -s conftest
$ac_exeext &&
15611 $as_test_x conftest
$ac_exeext; then
15612 ac_cv_lib_thread_thr_create
=yes
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.
$ac_ext >&5
15617 ac_cv_lib_thread_thr_create
=no
15620 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15621 conftest
$ac_exeext conftest.
$ac_ext
15622 LIBS
=$ac_check_lib_save_LIBS
15624 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15625 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15626 if test $ac_cv_lib_thread_thr_create = yes; then
15627 cat >>confdefs.h
<<\_ACEOF
15628 #define WITH_THREAD 1
15631 LIBS
="$LIBS -lthread"
15632 THREADOBJ
="Python/thread.o"
15633 USE_THREAD_MODULE
=""
15638 if test "$USE_THREAD_MODULE" != "#"
15640 # If the above checks didn't disable threads, (at least) OSF1
15641 # needs this '-threads' argument during linking.
15642 case $ac_sys_system in
15643 OSF1
) LDLAST
=-threads;;
15648 if test "$posix_threads" = "yes"; then
15649 if test "$unistd_defines_pthreads" = "no"; then
15651 cat >>confdefs.h
<<\_ACEOF
15652 #define _POSIX_THREADS 1
15657 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15658 case $ac_sys_system/$ac_sys_release in
15660 cat >>confdefs.h
<<\_ACEOF
15661 #define HAVE_PTHREAD_DESTRUCTOR 1
15666 cat >>confdefs.h
<<\_ACEOF
15667 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15672 cat >>confdefs.h
<<\_ACEOF
15673 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15679 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15680 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15681 if test "${ac_cv_pthread_system_supported+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 if test "$cross_compiling" = yes; then
15685 ac_cv_pthread_system_supported
=no
15687 cat >conftest.
$ac_ext <<_ACEOF
15690 cat confdefs.h
>>conftest.
$ac_ext
15691 cat >>conftest.
$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15693 #include <pthread.h>
15694 void *foo(void *parm) {
15698 pthread_attr_t attr;
15700 if (pthread_attr_init(&attr)) exit(-1);
15701 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15702 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15706 rm -f conftest
$ac_exeext
15707 if { (ac_try
="$ac_link"
15708 case "(($ac_try" in
15709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15710 *) ac_try_echo=$ac_try;;
15712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15713 (eval "$ac_link") 2>&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15717 { (case "(($ac_try" in
15718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15719 *) ac_try_echo
=$ac_try;;
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_try") 2>&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
15726 ac_cv_pthread_system_supported
=yes
15728 echo "$as_me: program exited with status $ac_status" >&5
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.
$ac_ext >&5
15732 ( exit $ac_status )
15733 ac_cv_pthread_system_supported
=no
15735 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15742 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15743 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15744 if test "$ac_cv_pthread_system_supported" = "yes"; then
15746 cat >>confdefs.h
<<\_ACEOF
15747 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15752 for ac_func
in pthread_sigmask
15754 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15757 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 cat >conftest.
$ac_ext <<_ACEOF
15763 cat confdefs.h
>>conftest.
$ac_ext
15764 cat >>conftest.
$ac_ext <<_ACEOF
15765 /* end confdefs.h. */
15766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15768 #define $ac_func innocuous_$ac_func
15770 /* System header to define __stub macros and hopefully few prototypes,
15771 which can conflict with char $ac_func (); below.
15772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15773 <limits.h> exists even on freestanding compilers. */
15776 # include <limits.h>
15778 # include <assert.h>
15783 /* Override any GCC internal prototype to avoid an error.
15784 Use char because int might match the return type of a GCC
15785 builtin and then its argument prototype would still apply. */
15790 /* The GNU C library defines this for functions which it implements
15791 to always fail with ENOSYS. Some functions are actually named
15792 something starting with __ and the normal name is an alias. */
15793 #if defined __stub_$ac_func || defined __stub___$ac_func
15800 return $ac_func ();
15805 rm -f conftest.
$ac_objext conftest
$ac_exeext
15806 if { (ac_try
="$ac_link"
15807 case "(($ac_try" in
15808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15809 *) ac_try_echo=$ac_try;;
15811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15812 (eval "$ac_link") 2>conftest.er1
15814 grep -v '^ *+' conftest.er1 >conftest.err
15816 cat conftest.err >&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } && {
15819 test -z "$ac_c_werror_flag" ||
15820 test ! -s conftest.err
15821 } && test -s conftest$ac_exeext &&
15822 $as_test_x conftest$ac_exeext; then
15823 eval "$as_ac_var=yes"
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15828 eval "$as_ac_var=no"
15831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15832 conftest$ac_exeext conftest.$ac_ext
15834 ac_res=`eval echo '${'$as_ac_var'}'`
15835 { echo "$as_me:$LINENO: result: $ac_res" >&5
15836 echo "${ECHO_T}$ac_res" >&6; }
15837 if test `eval echo '${'$as_ac_var'}'` = yes; then
15838 cat >>confdefs.h <<_ACEOF
15839 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15841 case $ac_sys_system in
15844 cat >>confdefs.h <<\_ACEOF
15845 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15856 # Check for enable-ipv6
15859 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15860 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15861 # Check whether --enable-ipv6 was given.
15862 if test "${enable_ipv6+set}" = set; then
15863 enableval=$enable_ipv6; case "$enableval" in
15865 { echo "$as_me:$LINENO: result: no" >&5
15866 echo "${ECHO_T}no" >&6; }
15869 *) { echo "$as_me:$LINENO: result: yes" >&5
15870 echo "${ECHO_T}yes" >&6; }
15871 cat >>confdefs.h <<\_ACEOF
15872 #define ENABLE_IPV6 1
15880 if test "$cross_compiling" = yes; then
15881 { echo "$as_me:$LINENO: result: no" >&5
15882 echo "${ECHO_T}no" >&6; }
15886 cat >conftest.$ac_ext <<_ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h. */
15892 /* AF_INET6 available check */
15893 #include <sys/types.h>
15894 #include <sys/socket.h>
15897 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15904 rm -f conftest$ac_exeext
15905 if { (ac_try="$ac_link"
15906 case "(($ac_try" in
15907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15908 *) ac_try_echo
=$ac_try;;
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_link") 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15915 { (case "(($ac_try" in
15916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_try") 2>&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 { echo "$as_me:$LINENO: result: yes" >&5
15925 echo "${ECHO_T}yes" >&6; }
15928 echo "$as_me: program exited with status $ac_status" >&5
15929 echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15932 ( exit $ac_status )
15933 { echo "$as_me:$LINENO: result: no" >&5
15934 echo "${ECHO_T}no" >&6; }
15937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15942 if test "$ipv6" = "yes"; then
15943 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15944 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15945 cat >conftest.$ac_ext <<_ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 #include <sys/types.h>
15952 #include <netinet/in.h>
15956 struct sockaddr_in6 x;
15962 rm -f conftest.$ac_objext
15963 if { (ac_try="$ac_compile"
15964 case "(($ac_try" in
15965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15966 *) ac_try_echo
=$ac_try;;
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_compile") 2>conftest.er1
15971 grep -v '^ *+' conftest.er1
>conftest.err
15973 cat conftest.err
>&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest.
$ac_objext; then
15979 { echo "$as_me:$LINENO: result: yes" >&5
15980 echo "${ECHO_T}yes" >&6; }
15983 echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.
$ac_ext >&5
15986 { echo "$as_me:$LINENO: result: no" >&5
15987 echo "${ECHO_T}no" >&6; }
15991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15994 if test "$ipv6" = "yes"; then
15995 cat >>confdefs.h
<<\_ACEOF
15996 #define ENABLE_IPV6 1
16008 if test "$ipv6" = "yes"; then
16009 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16010 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16011 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
16015 cat >conftest.
$ac_ext <<_ACEOF
16018 cat confdefs.h
>>conftest.
$ac_ext
16019 cat >>conftest.
$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16022 #include <netinet/in.h>
16023 #ifdef IPV6_INRIA_VERSION
16027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16028 $EGREP "yes" >/dev
/null
2>&1; then
16035 cat >conftest.
$ac_ext <<_ACEOF
16038 cat confdefs.h
>>conftest.
$ac_ext
16039 cat >>conftest.
$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16042 #include <netinet/in.h>
16047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16048 $EGREP "yes" >/dev
/null
2>&1; then
16051 ipv6libdir
=/usr
/local
/v
6/lib
16058 cat >conftest.
$ac_ext <<_ACEOF
16061 cat confdefs.h
>>conftest.
$ac_ext
16062 cat >>conftest.
$ac_ext <<_ACEOF
16063 /* end confdefs.h. */
16065 #include <features.h>
16066 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16071 $EGREP "yes" >/dev
/null
2>&1; then
16079 if test -d /usr
/inet6
; then
16082 ipv6libdir
=/usr
/inet
6/lib
16083 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
16087 if test -f /etc
/netconfig
; then
16088 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
16095 cat >conftest.
$ac_ext <<_ACEOF
16098 cat confdefs.h
>>conftest.
$ac_ext
16099 cat >>conftest.
$ac_ext <<_ACEOF
16100 /* end confdefs.h. */
16102 #include <sys/param.h>
16103 #ifdef _TOSHIBA_INET6
16107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16108 $EGREP "yes" >/dev
/null
2>&1; then
16111 ipv6libdir
=/usr
/local
/v
6/lib
16117 cat >conftest.
$ac_ext <<_ACEOF
16120 cat confdefs.h
>>conftest.
$ac_ext
16121 cat >>conftest.
$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16124 #include </usr/local/v6/include/sys/v6config.h>
16129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16130 $EGREP "yes" >/dev
/null
2>&1; then
16133 ipv6libdir
=/usr
/local
/v
6/lib
;
16134 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
16140 cat >conftest.
$ac_ext <<_ACEOF
16143 cat confdefs.h
>>conftest.
$ac_ext
16144 cat >>conftest.
$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16147 #include <sys/param.h>
16148 #ifdef _ZETA_MINAMI_INET6
16152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16153 $EGREP "yes" >/dev
/null
2>&1; then
16156 ipv6libdir
=/usr
/local
/v
6/lib
16162 if test "$ipv6type" != "unknown"; then
16166 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16167 echo "${ECHO_T}$ipv6type" >&6; }
16170 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16171 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
16172 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
16173 echo "using lib$ipv6lib"
16175 if test $ipv6trylibc = "yes"; then
16178 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16179 echo "You need to fetch lib$ipv6lib.a from appropriate"
16180 echo 'ipv6 kit and compile beforehand.'
16186 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16187 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16188 cat >conftest.
$ac_ext <<_ACEOF
16191 cat confdefs.h
>>conftest.
$ac_ext
16192 cat >>conftest.
$ac_ext <<_ACEOF
16193 /* end confdefs.h. */
16194 #include <Carbon/Carbon.h>
16198 FSIORefNum fRef = 0
16203 rm -f conftest.
$ac_objext
16204 if { (ac_try
="$ac_compile"
16205 case "(($ac_try" in
16206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16207 *) ac_try_echo=$ac_try;;
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210 (eval "$ac_compile") 2>conftest.er1
16212 grep -v '^ *+' conftest.er1 >conftest.err
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } && {
16217 test -z "$ac_c_werror_flag" ||
16218 test ! -s conftest.err
16219 } && test -s conftest.$ac_objext; then
16221 cat >>confdefs.h <<\_ACEOF
16222 #define HAVE_OSX105_SDK 1
16225 { echo "$as_me:$LINENO: result: yes" >&5
16226 echo "${ECHO_T}yes" >&6; }
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16231 { echo "$as_me:$LINENO: result: no" >&5
16232 echo "${ECHO_T}no" >&6; }
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 # Check for --with-doc-strings
16239 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16240 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16242 # Check whether --with-doc-strings was given.
16243 if test "${with_doc_strings+set}" = set; then
16244 withval=$with_doc_strings;
16248 if test -z "$with_doc_strings"
16249 then with_doc_strings="yes"
16251 if test "$with_doc_strings" != "no"
16254 cat >>confdefs.h <<\_ACEOF
16255 #define WITH_DOC_STRINGS 1
16259 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16260 echo "${ECHO_T}$with_doc_strings" >&6; }
16262 # Check for Python-specific malloc support
16263 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16264 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16266 # Check whether --with-tsc was given.
16267 if test "${with_tsc+set}" = set; then
16269 if test "$withval" != no
16272 cat >>confdefs.h <<\_ACEOF
16276 { echo "$as_me:$LINENO: result: yes" >&5
16277 echo "${ECHO_T}yes" >&6; }
16278 else { echo "$as_me:$LINENO: result: no" >&5
16279 echo "${ECHO_T}no" >&6; }
16282 { echo "$as_me:$LINENO: result: no" >&5
16283 echo "${ECHO_T}no" >&6; }
16287 # Check for Python-specific malloc support
16288 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16289 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16291 # Check whether --with-pymalloc was given.
16292 if test "${with_pymalloc+set}" = set; then
16293 withval=$with_pymalloc;
16297 if test -z "$with_pymalloc"
16298 then with_pymalloc="yes"
16300 if test "$with_pymalloc" != "no"
16303 cat >>confdefs.h <<\_ACEOF
16304 #define WITH_PYMALLOC 1
16308 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16309 echo "${ECHO_T}$with_pymalloc" >&6; }
16311 # Check for --with-wctype-functions
16312 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16313 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16315 # Check whether --with-wctype-functions was given.
16316 if test "${with_wctype_functions+set}" = set; then
16317 withval=$with_wctype_functions;
16318 if test "$withval" != no
16321 cat >>confdefs.h <<\_ACEOF
16322 #define WANT_WCTYPE_FUNCTIONS 1
16325 { echo "$as_me:$LINENO: result: yes" >&5
16326 echo "${ECHO_T}yes" >&6; }
16327 else { echo "$as_me:$LINENO: result: no" >&5
16328 echo "${ECHO_T}no" >&6; }
16331 { echo "$as_me:$LINENO: result: no" >&5
16332 echo "${ECHO_T}no" >&6; }
16336 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16340 # the dlopen() function means we might want to use dynload_shlib.o. some
16341 # platforms, such as AIX, have dlopen(), but don't want to use it.
16343 for ac_func in dlopen
16345 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16351 cat >conftest.$ac_ext <<_ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16359 #define $ac_func innocuous_$ac_func
16361 /* System header to define __stub macros and hopefully few prototypes,
16362 which can conflict with char $ac_func (); below.
16363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16364 <limits.h> exists even on freestanding compilers. */
16367 # include <limits.h>
16369 # include <assert.h>
16374 /* Override any GCC internal prototype to avoid an error.
16375 Use char because int might match the return type of a GCC
16376 builtin and then its argument prototype would still apply. */
16381 /* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384 #if defined __stub_$ac_func || defined __stub___$ac_func
16391 return $ac_func ();
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (ac_try="$ac_link"
16398 case "(($ac_try" in
16399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16400 *) ac_try_echo
=$ac_try;;
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_link") 2>conftest.er1
16405 grep -v '^ *+' conftest.er1
>conftest.err
16407 cat conftest.err
>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } && {
16410 test -z "$ac_c_werror_flag" ||
16411 test ! -s conftest.err
16412 } && test -s conftest
$ac_exeext &&
16413 $as_test_x conftest
$ac_exeext; then
16414 eval "$as_ac_var=yes"
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.
$ac_ext >&5
16419 eval "$as_ac_var=no"
16422 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16423 conftest
$ac_exeext conftest.
$ac_ext
16425 ac_res
=`eval echo '${'$as_ac_var'}'`
16426 { echo "$as_me:$LINENO: result: $ac_res" >&5
16427 echo "${ECHO_T}$ac_res" >&6; }
16428 if test `eval echo '${'$as_ac_var'}'` = yes; then
16429 cat >>confdefs.h
<<_ACEOF
16430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16437 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16438 # loading of modules.
16440 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16441 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16442 if test -z "$DYNLOADFILE"
16444 case $ac_sys_system/$ac_sys_release in
16445 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16446 if test "$ac_cv_func_dlopen" = yes
16447 then DYNLOADFILE
="dynload_shlib.o"
16448 else DYNLOADFILE
="dynload_aix.o"
16451 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
16452 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
16453 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16454 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
16455 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
16457 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16458 # out any dynamic loading
16459 if test "$ac_cv_func_dlopen" = yes
16460 then DYNLOADFILE
="dynload_shlib.o"
16461 else DYNLOADFILE
="dynload_stub.o"
16466 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16467 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16468 if test "$DYNLOADFILE" != "dynload_stub.o"
16471 cat >>confdefs.h
<<\_ACEOF
16472 #define HAVE_DYNAMIC_LOADING 1
16477 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16480 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16481 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16482 if test -z "$MACHDEP_OBJS"
16484 MACHDEP_OBJS
=$extra_machdep_objs
16486 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
16488 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16489 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16491 # checks for library functions
16577 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
16578 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16579 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16580 getpriority getpwent getspnam getspent getsid getwd \
16581 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
16582 mremap nice pathconf pause plock poll pthread_init \
16583 putenv readlink realpath \
16584 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16586 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16587 sigaction siginterrupt sigrelse strftime \
16588 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
16589 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16591 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16594 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 cat >conftest.
$ac_ext <<_ACEOF
16600 cat confdefs.h
>>conftest.
$ac_ext
16601 cat >>conftest.
$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16605 #define $ac_func innocuous_$ac_func
16607 /* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char $ac_func (); below.
16609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16610 <limits.h> exists even on freestanding compilers. */
16613 # include <limits.h>
16615 # include <assert.h>
16620 /* Override any GCC internal prototype to avoid an error.
16621 Use char because int might match the return type of a GCC
16622 builtin and then its argument prototype would still apply. */
16627 /* The GNU C library defines this for functions which it implements
16628 to always fail with ENOSYS. Some functions are actually named
16629 something starting with __ and the normal name is an alias. */
16630 #if defined __stub_$ac_func || defined __stub___$ac_func
16637 return $ac_func ();
16642 rm -f conftest.
$ac_objext conftest
$ac_exeext
16643 if { (ac_try
="$ac_link"
16644 case "(($ac_try" in
16645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_link") 2>conftest.er1
16651 grep -v '^ *+' conftest.er1 >conftest.err
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest$ac_exeext &&
16659 $as_test_x conftest$ac_exeext; then
16660 eval "$as_ac_var=yes"
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 eval "$as_ac_var=no"
16668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16669 conftest$ac_exeext conftest.$ac_ext
16671 ac_res=`eval echo '${'$as_ac_var'}'`
16672 { echo "$as_me:$LINENO: result: $ac_res" >&5
16673 echo "${ECHO_T}$ac_res" >&6; }
16674 if test `eval echo '${'$as_ac_var'}'` = yes; then
16675 cat >>confdefs.h <<_ACEOF
16676 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16683 # For some functions, having a definition is not sufficient, since
16684 # we want to take their address.
16685 { echo "$as_me:$LINENO: checking for chroot" >&5
16686 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16687 cat >conftest.$ac_ext <<_ACEOF
16690 cat confdefs.h >>conftest.$ac_ext
16691 cat >>conftest.$ac_ext <<_ACEOF
16692 /* end confdefs.h. */
16693 #include <unistd.h>
16702 rm -f conftest.$ac_objext
16703 if { (ac_try="$ac_compile"
16704 case "(($ac_try" in
16705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16706 *) ac_try_echo
=$ac_try;;
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_compile") 2>conftest.er1
16711 grep -v '^ *+' conftest.er1
>conftest.err
16713 cat conftest.err
>&5
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); } && {
16716 test -z "$ac_c_werror_flag" ||
16717 test ! -s conftest.err
16718 } && test -s conftest.
$ac_objext; then
16720 cat >>confdefs.h
<<\_ACEOF
16721 #define HAVE_CHROOT 1
16724 { echo "$as_me:$LINENO: result: yes" >&5
16725 echo "${ECHO_T}yes" >&6; }
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.
$ac_ext >&5
16730 { echo "$as_me:$LINENO: result: no" >&5
16731 echo "${ECHO_T}no" >&6; }
16735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16736 { echo "$as_me:$LINENO: checking for link" >&5
16737 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16738 cat >conftest.
$ac_ext <<_ACEOF
16741 cat confdefs.h
>>conftest.
$ac_ext
16742 cat >>conftest.
$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 #include <unistd.h>
16753 rm -f conftest.
$ac_objext
16754 if { (ac_try
="$ac_compile"
16755 case "(($ac_try" in
16756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_compile") 2>conftest.er1
16762 grep -v '^ *+' conftest.er1 >conftest.err
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } && {
16767 test -z "$ac_c_werror_flag" ||
16768 test ! -s conftest.err
16769 } && test -s conftest.$ac_objext; then
16771 cat >>confdefs.h <<\_ACEOF
16772 #define HAVE_LINK 1
16775 { echo "$as_me:$LINENO: result: yes" >&5
16776 echo "${ECHO_T}yes" >&6; }
16778 echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16781 { echo "$as_me:$LINENO: result: no" >&5
16782 echo "${ECHO_T}no" >&6; }
16786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787 { echo "$as_me:$LINENO: checking for symlink" >&5
16788 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 #include <unistd.h>
16804 rm -f conftest.$ac_objext
16805 if { (ac_try="$ac_compile"
16806 case "(($ac_try" in
16807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16808 *) ac_try_echo
=$ac_try;;
16810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811 (eval "$ac_compile") 2>conftest.er1
16813 grep -v '^ *+' conftest.er1
>conftest.err
16815 cat conftest.err
>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } && {
16818 test -z "$ac_c_werror_flag" ||
16819 test ! -s conftest.err
16820 } && test -s conftest.
$ac_objext; then
16822 cat >>confdefs.h
<<\_ACEOF
16823 #define HAVE_SYMLINK 1
16826 { echo "$as_me:$LINENO: result: yes" >&5
16827 echo "${ECHO_T}yes" >&6; }
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.
$ac_ext >&5
16832 { echo "$as_me:$LINENO: result: no" >&5
16833 echo "${ECHO_T}no" >&6; }
16837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16838 { echo "$as_me:$LINENO: checking for fchdir" >&5
16839 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16840 cat >conftest.
$ac_ext <<_ACEOF
16843 cat confdefs.h
>>conftest.
$ac_ext
16844 cat >>conftest.
$ac_ext <<_ACEOF
16845 /* end confdefs.h. */
16846 #include <unistd.h>
16855 rm -f conftest.
$ac_objext
16856 if { (ac_try
="$ac_compile"
16857 case "(($ac_try" in
16858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16859 *) ac_try_echo=$ac_try;;
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862 (eval "$ac_compile") 2>conftest.er1
16864 grep -v '^ *+' conftest.er1 >conftest.err
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } && {
16869 test -z "$ac_c_werror_flag" ||
16870 test ! -s conftest.err
16871 } && test -s conftest.$ac_objext; then
16873 cat >>confdefs.h <<\_ACEOF
16874 #define HAVE_FCHDIR 1
16877 { echo "$as_me:$LINENO: result: yes" >&5
16878 echo "${ECHO_T}yes" >&6; }
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 { echo "$as_me:$LINENO: result: no" >&5
16884 echo "${ECHO_T}no" >&6; }
16888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889 { echo "$as_me:$LINENO: checking for fsync" >&5
16890 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16891 cat >conftest.$ac_ext <<_ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16897 #include <unistd.h>
16906 rm -f conftest.$ac_objext
16907 if { (ac_try="$ac_compile"
16908 case "(($ac_try" in
16909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16910 *) ac_try_echo
=$ac_try;;
16912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_compile") 2>conftest.er1
16915 grep -v '^ *+' conftest.er1
>conftest.err
16917 cat conftest.err
>&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } && {
16920 test -z "$ac_c_werror_flag" ||
16921 test ! -s conftest.err
16922 } && test -s conftest.
$ac_objext; then
16924 cat >>confdefs.h
<<\_ACEOF
16925 #define HAVE_FSYNC 1
16928 { echo "$as_me:$LINENO: result: yes" >&5
16929 echo "${ECHO_T}yes" >&6; }
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.
$ac_ext >&5
16934 { echo "$as_me:$LINENO: result: no" >&5
16935 echo "${ECHO_T}no" >&6; }
16939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16940 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16941 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16942 cat >conftest.
$ac_ext <<_ACEOF
16945 cat confdefs.h
>>conftest.
$ac_ext
16946 cat >>conftest.
$ac_ext <<_ACEOF
16947 /* end confdefs.h. */
16948 #include <unistd.h>
16957 rm -f conftest.
$ac_objext
16958 if { (ac_try
="$ac_compile"
16959 case "(($ac_try" in
16960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_compile") 2>conftest.er1
16966 grep -v '^ *+' conftest.er1 >conftest.err
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } && {
16971 test -z "$ac_c_werror_flag" ||
16972 test ! -s conftest.err
16973 } && test -s conftest.$ac_objext; then
16975 cat >>confdefs.h <<\_ACEOF
16976 #define HAVE_FDATASYNC 1
16979 { echo "$as_me:$LINENO: result: yes" >&5
16980 echo "${ECHO_T}yes" >&6; }
16982 echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 { echo "$as_me:$LINENO: result: no" >&5
16986 echo "${ECHO_T}no" >&6; }
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 { echo "$as_me:$LINENO: checking for epoll" >&5
16992 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 #include <sys/epoll.h>
17003 void *x=epoll_create
17008 rm -f conftest.$ac_objext
17009 if { (ac_try="$ac_compile"
17010 case "(($ac_try" in
17011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17012 *) ac_try_echo
=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_compile") 2>conftest.er1
17017 grep -v '^ *+' conftest.er1
>conftest.err
17019 cat conftest.err
>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } && {
17022 test -z "$ac_c_werror_flag" ||
17023 test ! -s conftest.err
17024 } && test -s conftest.
$ac_objext; then
17026 cat >>confdefs.h
<<\_ACEOF
17027 #define HAVE_EPOLL 1
17030 { echo "$as_me:$LINENO: result: yes" >&5
17031 echo "${ECHO_T}yes" >&6; }
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.
$ac_ext >&5
17036 { echo "$as_me:$LINENO: result: no" >&5
17037 echo "${ECHO_T}no" >&6; }
17041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17042 { echo "$as_me:$LINENO: checking for kqueue" >&5
17043 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17044 cat >conftest.
$ac_ext <<_ACEOF
17047 cat confdefs.h
>>conftest.
$ac_ext
17048 cat >>conftest.
$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17051 #include <sys/types.h>
17052 #include <sys/event.h>
17062 rm -f conftest.
$ac_objext
17063 if { (ac_try
="$ac_compile"
17064 case "(($ac_try" in
17065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069 (eval "$ac_compile") 2>conftest.er1
17071 grep -v '^ *+' conftest.er1 >conftest.err
17073 cat conftest.err >&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } && {
17076 test -z "$ac_c_werror_flag" ||
17077 test ! -s conftest.err
17078 } && test -s conftest.$ac_objext; then
17080 cat >>confdefs.h <<\_ACEOF
17081 #define HAVE_KQUEUE 1
17084 { echo "$as_me:$LINENO: result: yes" >&5
17085 echo "${ECHO_T}yes" >&6; }
17087 echo "$as_me: failed program was:" >&5
17088 sed 's/^/| /' conftest.$ac_ext >&5
17090 { echo "$as_me:$LINENO: result: no" >&5
17091 echo "${ECHO_T}no" >&6; }
17095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17096 # On some systems (eg. FreeBSD 5), we would find a definition of the
17097 # functions ctermid_r, setgroups in the library, but no prototype
17098 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17099 # address to avoid compiler warnings and potential miscompilations
17100 # because of the missing prototypes.
17102 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17103 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17104 cat >conftest.$ac_ext <<_ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h. */
17111 #include "confdefs.h"
17117 void* p = ctermid_r
17122 rm -f conftest.$ac_objext
17123 if { (ac_try="$ac_compile"
17124 case "(($ac_try" in
17125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17126 *) ac_try_echo
=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_compile") 2>conftest.er1
17131 grep -v '^ *+' conftest.er1
>conftest.err
17133 cat conftest.err
>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest.
$ac_objext; then
17140 cat >>confdefs.h
<<\_ACEOF
17141 #define HAVE_CTERMID_R 1
17144 { echo "$as_me:$LINENO: result: yes" >&5
17145 echo "${ECHO_T}yes" >&6; }
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.
$ac_ext >&5
17150 { echo "$as_me:$LINENO: result: no" >&5
17151 echo "${ECHO_T}no" >&6; }
17155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17157 { echo "$as_me:$LINENO: checking for flock" >&5
17158 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17159 cat >conftest.
$ac_ext <<_ACEOF
17162 cat confdefs.h
>>conftest.
$ac_ext
17163 cat >>conftest.
$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17166 #include "confdefs.h"
17167 #include <sys/file.h>
17177 rm -f conftest.
$ac_objext
17178 if { (ac_try
="$ac_compile"
17179 case "(($ac_try" in
17180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_compile") 2>conftest.er1
17186 grep -v '^ *+' conftest.er1 >conftest.err
17188 cat conftest.err >&5
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } && {
17191 test -z "$ac_c_werror_flag" ||
17192 test ! -s conftest.err
17193 } && test -s conftest.$ac_objext; then
17195 cat >>confdefs.h <<\_ACEOF
17196 #define HAVE_FLOCK 1
17199 { echo "$as_me:$LINENO: result: yes" >&5
17200 echo "${ECHO_T}yes" >&6; }
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 { echo "$as_me:$LINENO: result: no" >&5
17206 echo "${ECHO_T}no" >&6; }
17210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17212 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17213 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17214 cat >conftest.$ac_ext <<_ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h. */
17221 #include "confdefs.h"
17222 #include <unistd.h>
17227 void* p = getpagesize
17232 rm -f conftest.$ac_objext
17233 if { (ac_try="$ac_compile"
17234 case "(($ac_try" in
17235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17236 *) ac_try_echo
=$ac_try;;
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_compile") 2>conftest.er1
17241 grep -v '^ *+' conftest.er1
>conftest.err
17243 cat conftest.err
>&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } && {
17246 test -z "$ac_c_werror_flag" ||
17247 test ! -s conftest.err
17248 } && test -s conftest.
$ac_objext; then
17250 cat >>confdefs.h
<<\_ACEOF
17251 #define HAVE_GETPAGESIZE 1
17254 { echo "$as_me:$LINENO: result: yes" >&5
17255 echo "${ECHO_T}yes" >&6; }
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.
$ac_ext >&5
17260 { echo "$as_me:$LINENO: result: no" >&5
17261 echo "${ECHO_T}no" >&6; }
17265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17267 for ac_prog
in true
17269 # Extract the first word of "$ac_prog", so it can be a program name with args.
17270 set dummy
$ac_prog; ac_word
=$2
17271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17273 if test "${ac_cv_prog_TRUE+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 if test -n "$TRUE"; then
17277 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
17279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17280 for as_dir
in $PATH
17283 test -z "$as_dir" && as_dir
=.
17284 for ac_exec_ext
in '' $ac_executable_extensions; do
17285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17286 ac_cv_prog_TRUE
="$ac_prog"
17287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17296 TRUE
=$ac_cv_prog_TRUE
17297 if test -n "$TRUE"; then
17298 { echo "$as_me:$LINENO: result: $TRUE" >&5
17299 echo "${ECHO_T}$TRUE" >&6; }
17301 { echo "$as_me:$LINENO: result: no" >&5
17302 echo "${ECHO_T}no" >&6; }
17306 test -n "$TRUE" && break
17308 test -n "$TRUE" || TRUE
="/bin/true"
17311 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17312 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17313 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 ac_check_lib_save_LIBS
=$LIBS
17318 cat >conftest.
$ac_ext <<_ACEOF
17321 cat confdefs.h
>>conftest.
$ac_ext
17322 cat >>conftest.
$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17335 return inet_aton ();
17340 rm -f conftest.
$ac_objext conftest
$ac_exeext
17341 if { (ac_try
="$ac_link"
17342 case "(($ac_try" in
17343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>conftest.er1
17349 grep -v '^ *+' conftest.er1 >conftest.err
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } && {
17354 test -z "$ac_c_werror_flag" ||
17355 test ! -s conftest.err
17356 } && test -s conftest$ac_exeext &&
17357 $as_test_x conftest$ac_exeext; then
17358 ac_cv_lib_c_inet_aton=yes
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ac_cv_lib_c_inet_aton=no
17366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17367 conftest$ac_exeext conftest.$ac_ext
17368 LIBS=$ac_check_lib_save_LIBS
17370 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17371 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17372 if test $ac_cv_lib_c_inet_aton = yes; then
17376 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17377 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17378 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 ac_check_lib_save_LIBS=$LIBS
17382 LIBS="-lresolv $LIBS"
17383 cat >conftest.$ac_ext <<_ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17390 /* Override any GCC internal prototype to avoid an error.
17391 Use char because int might match the return type of a GCC
17392 builtin and then its argument prototype would still apply. */
17400 return inet_aton ();
17405 rm -f conftest.$ac_objext conftest$ac_exeext
17406 if { (ac_try="$ac_link"
17407 case "(($ac_try" in
17408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17409 *) ac_try_echo
=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_link") 2>conftest.er1
17414 grep -v '^ *+' conftest.er1
>conftest.err
17416 cat conftest.err
>&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } && {
17419 test -z "$ac_c_werror_flag" ||
17420 test ! -s conftest.err
17421 } && test -s conftest
$ac_exeext &&
17422 $as_test_x conftest
$ac_exeext; then
17423 ac_cv_lib_resolv_inet_aton
=yes
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.
$ac_ext >&5
17428 ac_cv_lib_resolv_inet_aton
=no
17431 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17432 conftest
$ac_exeext conftest.
$ac_ext
17433 LIBS
=$ac_check_lib_save_LIBS
17435 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17436 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17437 if test $ac_cv_lib_resolv_inet_aton = yes; then
17438 cat >>confdefs.h
<<_ACEOF
17439 #define HAVE_LIBRESOLV 1
17442 LIBS
="-lresolv $LIBS"
17450 # On Tru64, chflags seems to be present, but calling it will
17452 { echo "$as_me:$LINENO: checking for chflags" >&5
17453 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17454 if test "$cross_compiling" = yes; then
17455 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17456 See \`config.log' for more details." >&5
17457 echo "$as_me: error: cannot run test program while cross compiling
17458 See \`config.log' for more details." >&2;}
17459 { (exit 1); exit 1; }; }
17461 cat >conftest.
$ac_ext <<_ACEOF
17464 cat confdefs.h
>>conftest.
$ac_ext
17465 cat >>conftest.
$ac_ext <<_ACEOF
17466 /* end confdefs.h. */
17468 #include <sys/stat.h>
17469 #include <unistd.h>
17470 int main(int argc, char*argv[])
17472 if(chflags(argv[0], 0) != 0)
17478 rm -f conftest
$ac_exeext
17479 if { (ac_try
="$ac_link"
17480 case "(($ac_try" in
17481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17482 *) ac_try_echo=$ac_try;;
17484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17485 (eval "$ac_link") 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17491 *) ac_try_echo
=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; }; then
17499 cat >>confdefs.h
<<\_ACEOF
17500 #define HAVE_CHFLAGS 1
17503 { echo "$as_me:$LINENO: result: yes" >&5
17504 echo "${ECHO_T}yes" >&6; }
17506 echo "$as_me: program exited with status $ac_status" >&5
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.
$ac_ext >&5
17510 ( exit $ac_status )
17511 { echo "$as_me:$LINENO: result: no" >&5
17512 echo "${ECHO_T}no" >&6; }
17515 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17520 { echo "$as_me:$LINENO: checking for lchflags" >&5
17521 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17522 if test "$cross_compiling" = yes; then
17523 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17524 See \`config.log' for more details." >&5
17525 echo "$as_me: error: cannot run test program while cross compiling
17526 See \`config.log' for more details." >&2;}
17527 { (exit 1); exit 1; }; }
17529 cat >conftest.
$ac_ext <<_ACEOF
17532 cat confdefs.h
>>conftest.
$ac_ext
17533 cat >>conftest.
$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17536 #include <sys/stat.h>
17537 #include <unistd.h>
17538 int main(int argc, char*argv[])
17540 if(lchflags(argv[0], 0) != 0)
17546 rm -f conftest
$ac_exeext
17547 if { (ac_try
="$ac_link"
17548 case "(($ac_try" in
17549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_link") 2>&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17557 { (case "(($ac_try" in
17558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17559 *) ac_try_echo
=$ac_try;;
17561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
17567 cat >>confdefs.h
<<\_ACEOF
17568 #define HAVE_LCHFLAGS 1
17571 { echo "$as_me:$LINENO: result: yes" >&5
17572 echo "${ECHO_T}yes" >&6; }
17574 echo "$as_me: program exited with status $ac_status" >&5
17575 echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.
$ac_ext >&5
17578 ( exit $ac_status )
17579 { echo "$as_me:$LINENO: result: no" >&5
17580 echo "${ECHO_T}no" >&6; }
17583 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17588 case $ac_sys_system/$ac_sys_release in
17590 _CUR_CFLAGS
="${CFLAGS}"
17591 _CUR_LDFLAGS
="${LDFLAGS}"
17592 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
17593 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17597 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17598 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17599 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 ac_check_lib_save_LIBS
=$LIBS
17604 cat >conftest.
$ac_ext <<_ACEOF
17607 cat confdefs.h
>>conftest.
$ac_ext
17608 cat >>conftest.
$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17611 /* Override any GCC internal prototype to avoid an error.
17612 Use char because int might match the return type of a GCC
17613 builtin and then its argument prototype would still apply. */
17617 char inflateCopy ();
17621 return inflateCopy ();
17626 rm -f conftest.
$ac_objext conftest
$ac_exeext
17627 if { (ac_try
="$ac_link"
17628 case "(($ac_try" in
17629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17630 *) ac_try_echo=$ac_try;;
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633 (eval "$ac_link") 2>conftest.er1
17635 grep -v '^ *+' conftest.er1 >conftest.err
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); } && {
17640 test -z "$ac_c_werror_flag" ||
17641 test ! -s conftest.err
17642 } && test -s conftest$ac_exeext &&
17643 $as_test_x conftest$ac_exeext; then
17644 ac_cv_lib_z_inflateCopy=yes
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 ac_cv_lib_z_inflateCopy=no
17652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17653 conftest$ac_exeext conftest.$ac_ext
17654 LIBS=$ac_check_lib_save_LIBS
17656 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17657 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17658 if test $ac_cv_lib_z_inflateCopy = yes; then
17660 cat >>confdefs.h <<\_ACEOF
17661 #define HAVE_ZLIB_COPY 1
17667 case $ac_sys_system/$ac_sys_release in
17669 CFLAGS="${_CUR_CFLAGS}"
17670 LDFLAGS="${_CUR_LDFLAGS}"
17674 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17675 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17676 cat >conftest.$ac_ext <<_ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17683 #include "confdefs.h"
17689 void* p = hstrerror; hstrerror(0)
17694 rm -f conftest.$ac_objext conftest$ac_exeext
17695 if { (ac_try="$ac_link"
17696 case "(($ac_try" in
17697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17698 *) ac_try_echo
=$ac_try;;
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_link") 2>conftest.er1
17703 grep -v '^ *+' conftest.er1
>conftest.err
17705 cat conftest.err
>&5
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); } && {
17708 test -z "$ac_c_werror_flag" ||
17709 test ! -s conftest.err
17710 } && test -s conftest
$ac_exeext &&
17711 $as_test_x conftest
$ac_exeext; then
17713 cat >>confdefs.h
<<\_ACEOF
17714 #define HAVE_HSTRERROR 1
17717 { echo "$as_me:$LINENO: result: yes" >&5
17718 echo "${ECHO_T}yes" >&6; }
17720 echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.
$ac_ext >&5
17723 { echo "$as_me:$LINENO: result: no" >&5
17724 echo "${ECHO_T}no" >&6; }
17728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17729 conftest
$ac_exeext conftest.
$ac_ext
17731 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17732 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17733 cat >conftest.
$ac_ext <<_ACEOF
17736 cat confdefs.h
>>conftest.
$ac_ext
17737 cat >>conftest.
$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17740 #include "confdefs.h"
17741 #include <sys/types.h>
17742 #include <sys/socket.h>
17743 #include <netinet/in.h>
17744 #include <arpa/inet.h>
17749 void* p = inet_aton;inet_aton(0,0)
17754 rm -f conftest.
$ac_objext conftest
$ac_exeext
17755 if { (ac_try
="$ac_link"
17756 case "(($ac_try" in
17757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_link") 2>conftest.er1
17763 grep -v '^ *+' conftest.er1 >conftest.err
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } && {
17768 test -z "$ac_c_werror_flag" ||
17769 test ! -s conftest.err
17770 } && test -s conftest$ac_exeext &&
17771 $as_test_x conftest$ac_exeext; then
17773 cat >>confdefs.h <<\_ACEOF
17774 #define HAVE_INET_ATON 1
17777 { echo "$as_me:$LINENO: result: yes" >&5
17778 echo "${ECHO_T}yes" >&6; }
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17783 { echo "$as_me:$LINENO: result: no" >&5
17784 echo "${ECHO_T}no" >&6; }
17788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17789 conftest$ac_exeext conftest.$ac_ext
17791 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17792 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17793 cat >conftest.$ac_ext <<_ACEOF
17796 cat confdefs.h >>conftest.$ac_ext
17797 cat >>conftest.$ac_ext <<_ACEOF
17798 /* end confdefs.h. */
17800 #include "confdefs.h"
17801 #include <sys/types.h>
17802 #include <sys/socket.h>
17803 #include <netinet/in.h>
17804 #include <arpa/inet.h>
17809 void* p = inet_pton
17814 rm -f conftest.$ac_objext
17815 if { (ac_try="$ac_compile"
17816 case "(($ac_try" in
17817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17818 *) ac_try_echo
=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_compile") 2>conftest.er1
17823 grep -v '^ *+' conftest.er1
>conftest.err
17825 cat conftest.err
>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } && {
17828 test -z "$ac_c_werror_flag" ||
17829 test ! -s conftest.err
17830 } && test -s conftest.
$ac_objext; then
17832 cat >>confdefs.h
<<\_ACEOF
17833 #define HAVE_INET_PTON 1
17836 { echo "$as_me:$LINENO: result: yes" >&5
17837 echo "${ECHO_T}yes" >&6; }
17839 echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.
$ac_ext >&5
17842 { echo "$as_me:$LINENO: result: no" >&5
17843 echo "${ECHO_T}no" >&6; }
17847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17849 # On some systems, setgroups is in unistd.h, on others, in grp.h
17850 { echo "$as_me:$LINENO: checking for setgroups" >&5
17851 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17852 cat >conftest.
$ac_ext <<_ACEOF
17855 cat confdefs.h
>>conftest.
$ac_ext
17856 cat >>conftest.
$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17859 #include "confdefs.h"
17860 #include <unistd.h>
17868 void* p = setgroups
17873 rm -f conftest.
$ac_objext
17874 if { (ac_try
="$ac_compile"
17875 case "(($ac_try" in
17876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_compile") 2>conftest.er1
17882 grep -v '^ *+' conftest.er1 >conftest.err
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && {
17887 test -z "$ac_c_werror_flag" ||
17888 test ! -s conftest.err
17889 } && test -s conftest.$ac_objext; then
17891 cat >>confdefs.h <<\_ACEOF
17892 #define HAVE_SETGROUPS 1
17895 { echo "$as_me:$LINENO: result: yes" >&5
17896 echo "${ECHO_T}yes" >&6; }
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 { echo "$as_me:$LINENO: result: no" >&5
17902 echo "${ECHO_T}no" >&6; }
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17908 # check for openpty and forkpty
17911 for ac_func in openpty
17913 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17917 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 cat >conftest.$ac_ext <<_ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h. */
17925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17927 #define $ac_func innocuous_$ac_func
17929 /* System header to define __stub macros and hopefully few prototypes,
17930 which can conflict with char $ac_func (); below.
17931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17932 <limits.h> exists even on freestanding compilers. */
17935 # include <limits.h>
17937 # include <assert.h>
17942 /* Override any GCC internal prototype to avoid an error.
17943 Use char because int might match the return type of a GCC
17944 builtin and then its argument prototype would still apply. */
17949 /* The GNU C library defines this for functions which it implements
17950 to always fail with ENOSYS. Some functions are actually named
17951 something starting with __ and the normal name is an alias. */
17952 #if defined __stub_$ac_func || defined __stub___$ac_func
17959 return $ac_func ();
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17968 *) ac_try_echo
=$ac_try;;
17970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17971 (eval "$ac_link") 2>conftest.er1
17973 grep -v '^ *+' conftest.er1
>conftest.err
17975 cat conftest.err
>&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } && {
17978 test -z "$ac_c_werror_flag" ||
17979 test ! -s conftest.err
17980 } && test -s conftest
$ac_exeext &&
17981 $as_test_x conftest
$ac_exeext; then
17982 eval "$as_ac_var=yes"
17984 echo "$as_me: failed program was:" >&5
17985 sed 's/^/| /' conftest.
$ac_ext >&5
17987 eval "$as_ac_var=no"
17990 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17991 conftest
$ac_exeext conftest.
$ac_ext
17993 ac_res
=`eval echo '${'$as_ac_var'}'`
17994 { echo "$as_me:$LINENO: result: $ac_res" >&5
17995 echo "${ECHO_T}$ac_res" >&6; }
17996 if test `eval echo '${'$as_ac_var'}'` = yes; then
17997 cat >>confdefs.h
<<_ACEOF
17998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18002 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18003 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18004 if test "${ac_cv_lib_util_openpty+set}" = set; then
18005 echo $ECHO_N "(cached) $ECHO_C" >&6
18007 ac_check_lib_save_LIBS
=$LIBS
18008 LIBS
="-lutil $LIBS"
18009 cat >conftest.
$ac_ext <<_ACEOF
18012 cat confdefs.h
>>conftest.
$ac_ext
18013 cat >>conftest.
$ac_ext <<_ACEOF
18014 /* end confdefs.h. */
18016 /* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18031 rm -f conftest.
$ac_objext conftest
$ac_exeext
18032 if { (ac_try
="$ac_link"
18033 case "(($ac_try" in
18034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_link") 2>conftest.er1
18040 grep -v '^ *+' conftest.er1 >conftest.err
18042 cat conftest.err >&5
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } && {
18045 test -z "$ac_c_werror_flag" ||
18046 test ! -s conftest.err
18047 } && test -s conftest$ac_exeext &&
18048 $as_test_x conftest$ac_exeext; then
18049 ac_cv_lib_util_openpty=yes
18051 echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18054 ac_cv_lib_util_openpty=no
18057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18058 conftest$ac_exeext conftest.$ac_ext
18059 LIBS=$ac_check_lib_save_LIBS
18061 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18062 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18063 if test $ac_cv_lib_util_openpty = yes; then
18064 cat >>confdefs.h <<\_ACEOF
18065 #define HAVE_OPENPTY 1
18067 LIBS="$LIBS -lutil"
18069 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18070 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18071 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 ac_check_lib_save_LIBS=$LIBS
18076 cat >conftest.$ac_ext <<_ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18083 /* Override any GCC internal prototype to avoid an error.
18084 Use char because int might match the return type of a GCC
18085 builtin and then its argument prototype would still apply. */
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18102 *) ac_try_echo
=$ac_try;;
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_link") 2>conftest.er1
18107 grep -v '^ *+' conftest.er1
>conftest.err
18109 cat conftest.err
>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } && {
18112 test -z "$ac_c_werror_flag" ||
18113 test ! -s conftest.err
18114 } && test -s conftest
$ac_exeext &&
18115 $as_test_x conftest
$ac_exeext; then
18116 ac_cv_lib_bsd_openpty
=yes
18118 echo "$as_me: failed program was:" >&5
18119 sed 's/^/| /' conftest.
$ac_ext >&5
18121 ac_cv_lib_bsd_openpty
=no
18124 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18125 conftest
$ac_exeext conftest.
$ac_ext
18126 LIBS
=$ac_check_lib_save_LIBS
18128 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18129 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18130 if test $ac_cv_lib_bsd_openpty = yes; then
18131 cat >>confdefs.h
<<\_ACEOF
18132 #define HAVE_OPENPTY 1
18145 for ac_func
in forkpty
18147 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18150 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 cat >conftest.
$ac_ext <<_ACEOF
18156 cat confdefs.h
>>conftest.
$ac_ext
18157 cat >>conftest.
$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161 #define $ac_func innocuous_$ac_func
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18169 # include <limits.h>
18171 # include <assert.h>
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18183 /* The GNU C library defines this for functions which it implements
18184 to always fail with ENOSYS. Some functions are actually named
18185 something starting with __ and the normal name is an alias. */
18186 #if defined __stub_$ac_func || defined __stub___$ac_func
18193 return $ac_func ();
18198 rm -f conftest.
$ac_objext conftest
$ac_exeext
18199 if { (ac_try
="$ac_link"
18200 case "(($ac_try" in
18201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_link") 2>conftest.er1
18207 grep -v '^ *+' conftest.er1 >conftest.err
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } && {
18212 test -z "$ac_c_werror_flag" ||
18213 test ! -s conftest.err
18214 } && test -s conftest$ac_exeext &&
18215 $as_test_x conftest$ac_exeext; then
18216 eval "$as_ac_var=yes"
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18221 eval "$as_ac_var=no"
18224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18225 conftest$ac_exeext conftest.$ac_ext
18227 ac_res=`eval echo '${'$as_ac_var'}'`
18228 { echo "$as_me:$LINENO: result: $ac_res" >&5
18229 echo "${ECHO_T}$ac_res" >&6; }
18230 if test `eval echo '${'$as_ac_var'}'` = yes; then
18231 cat >>confdefs.h <<_ACEOF
18232 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18236 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18237 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18238 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 ac_check_lib_save_LIBS=$LIBS
18242 LIBS="-lutil $LIBS"
18243 cat >conftest.$ac_ext <<_ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18250 /* Override any GCC internal prototype to avoid an error.
18251 Use char because int might match the return type of a GCC
18252 builtin and then its argument prototype would still apply. */
18265 rm -f conftest.$ac_objext conftest$ac_exeext
18266 if { (ac_try="$ac_link"
18267 case "(($ac_try" in
18268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18269 *) ac_try_echo
=$ac_try;;
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_link") 2>conftest.er1
18274 grep -v '^ *+' conftest.er1
>conftest.err
18276 cat conftest.err
>&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } && {
18279 test -z "$ac_c_werror_flag" ||
18280 test ! -s conftest.err
18281 } && test -s conftest
$ac_exeext &&
18282 $as_test_x conftest
$ac_exeext; then
18283 ac_cv_lib_util_forkpty
=yes
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.
$ac_ext >&5
18288 ac_cv_lib_util_forkpty
=no
18291 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18292 conftest
$ac_exeext conftest.
$ac_ext
18293 LIBS
=$ac_check_lib_save_LIBS
18295 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18296 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18297 if test $ac_cv_lib_util_forkpty = yes; then
18298 cat >>confdefs.h
<<\_ACEOF
18299 #define HAVE_FORKPTY 1
18301 LIBS
="$LIBS -lutil"
18303 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18304 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18305 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 ac_check_lib_save_LIBS
=$LIBS
18310 cat >conftest.
$ac_ext <<_ACEOF
18313 cat confdefs.h
>>conftest.
$ac_ext
18314 cat >>conftest.
$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18332 rm -f conftest.
$ac_objext conftest
$ac_exeext
18333 if { (ac_try
="$ac_link"
18334 case "(($ac_try" in
18335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_link") 2>conftest.er1
18341 grep -v '^ *+' conftest.er1 >conftest.err
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } && {
18346 test -z "$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18348 } && test -s conftest$ac_exeext &&
18349 $as_test_x conftest$ac_exeext; then
18350 ac_cv_lib_bsd_forkpty=yes
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_cv_lib_bsd_forkpty=no
18358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18359 conftest$ac_exeext conftest.$ac_ext
18360 LIBS=$ac_check_lib_save_LIBS
18362 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18363 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18364 if test $ac_cv_lib_bsd_forkpty = yes; then
18365 cat >>confdefs.h <<\_ACEOF
18366 #define HAVE_FORKPTY 1
18381 for ac_func in memmove
18383 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 cat >conftest.$ac_ext <<_ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18397 #define $ac_func innocuous_$ac_func
18399 /* System header to define __stub macros and hopefully few prototypes,
18400 which can conflict with char $ac_func (); below.
18401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18402 <limits.h> exists even on freestanding compilers. */
18405 # include <limits.h>
18407 # include <assert.h>
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18419 /* The GNU C library defines this for functions which it implements
18420 to always fail with ENOSYS. Some functions are actually named
18421 something starting with __ and the normal name is an alias. */
18422 #if defined __stub_$ac_func || defined __stub___$ac_func
18429 return $ac_func ();
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18438 *) ac_try_echo
=$ac_try;;
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_link") 2>conftest.er1
18443 grep -v '^ *+' conftest.er1
>conftest.err
18445 cat conftest.err
>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest
$ac_exeext &&
18451 $as_test_x conftest
$ac_exeext; then
18452 eval "$as_ac_var=yes"
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.
$ac_ext >&5
18457 eval "$as_ac_var=no"
18460 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18461 conftest
$ac_exeext conftest.
$ac_ext
18463 ac_res
=`eval echo '${'$as_ac_var'}'`
18464 { echo "$as_me:$LINENO: result: $ac_res" >&5
18465 echo "${ECHO_T}$ac_res" >&6; }
18466 if test `eval echo '${'$as_ac_var'}'` = yes; then
18467 cat >>confdefs.h
<<_ACEOF
18468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18475 # check for long file support functions
18482 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18484 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18487 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18488 echo $ECHO_N "(cached) $ECHO_C" >&6
18490 cat >conftest.
$ac_ext <<_ACEOF
18493 cat confdefs.h
>>conftest.
$ac_ext
18494 cat >>conftest.
$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18498 #define $ac_func innocuous_$ac_func
18500 /* System header to define __stub macros and hopefully few prototypes,
18501 which can conflict with char $ac_func (); below.
18502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18503 <limits.h> exists even on freestanding compilers. */
18506 # include <limits.h>
18508 # include <assert.h>
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18520 /* The GNU C library defines this for functions which it implements
18521 to always fail with ENOSYS. Some functions are actually named
18522 something starting with __ and the normal name is an alias. */
18523 #if defined __stub_$ac_func || defined __stub___$ac_func
18530 return $ac_func ();
18535 rm -f conftest.
$ac_objext conftest
$ac_exeext
18536 if { (ac_try
="$ac_link"
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_link") 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_exeext &&
18552 $as_test_x conftest$ac_exeext; then
18553 eval "$as_ac_var=yes"
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 eval "$as_ac_var=no"
18561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18562 conftest$ac_exeext conftest.$ac_ext
18564 ac_res=`eval echo '${'$as_ac_var'}'`
18565 { echo "$as_me:$LINENO: result: $ac_res" >&5
18566 echo "${ECHO_T}$ac_res" >&6; }
18567 if test `eval echo '${'$as_ac_var'}'` = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18579 for ac_func in dup2 getcwd strdup
18581 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18585 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 cat >conftest.$ac_ext <<_ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18595 #define $ac_func innocuous_$ac_func
18597 /* System header to define __stub macros and hopefully few prototypes,
18598 which can conflict with char $ac_func (); below.
18599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18600 <limits.h> exists even on freestanding compilers. */
18603 # include <limits.h>
18605 # include <assert.h>
18610 /* Override any GCC internal prototype to avoid an error.
18611 Use char because int might match the return type of a GCC
18612 builtin and then its argument prototype would still apply. */
18617 /* The GNU C library defines this for functions which it implements
18618 to always fail with ENOSYS. Some functions are actually named
18619 something starting with __ and the normal name is an alias. */
18620 #if defined __stub_$ac_func || defined __stub___$ac_func
18627 return $ac_func ();
18632 rm -f conftest.$ac_objext conftest$ac_exeext
18633 if { (ac_try="$ac_link"
18634 case "(($ac_try" in
18635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18636 *) ac_try_echo
=$ac_try;;
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_link") 2>conftest.er1
18641 grep -v '^ *+' conftest.er1
>conftest.err
18643 cat conftest.err
>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); } && {
18646 test -z "$ac_c_werror_flag" ||
18647 test ! -s conftest.err
18648 } && test -s conftest
$ac_exeext &&
18649 $as_test_x conftest
$ac_exeext; then
18650 eval "$as_ac_var=yes"
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.
$ac_ext >&5
18655 eval "$as_ac_var=no"
18658 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18659 conftest
$ac_exeext conftest.
$ac_ext
18661 ac_res
=`eval echo '${'$as_ac_var'}'`
18662 { echo "$as_me:$LINENO: result: $ac_res" >&5
18663 echo "${ECHO_T}$ac_res" >&6; }
18664 if test `eval echo '${'$as_ac_var'}'` = yes; then
18665 cat >>confdefs.h
<<_ACEOF
18666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18670 case " $LIBOBJS " in
18671 *" $ac_func.$ac_objext "* ) ;;
18672 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18681 for ac_func
in getpgrp
18683 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18684 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18686 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18687 echo $ECHO_N "(cached) $ECHO_C" >&6
18689 cat >conftest.
$ac_ext <<_ACEOF
18692 cat confdefs.h
>>conftest.
$ac_ext
18693 cat >>conftest.
$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18697 #define $ac_func innocuous_$ac_func
18699 /* System header to define __stub macros and hopefully few prototypes,
18700 which can conflict with char $ac_func (); below.
18701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18702 <limits.h> exists even on freestanding compilers. */
18705 # include <limits.h>
18707 # include <assert.h>
18712 /* Override any GCC internal prototype to avoid an error.
18713 Use char because int might match the return type of a GCC
18714 builtin and then its argument prototype would still apply. */
18719 /* The GNU C library defines this for functions which it implements
18720 to always fail with ENOSYS. Some functions are actually named
18721 something starting with __ and the normal name is an alias. */
18722 #if defined __stub_$ac_func || defined __stub___$ac_func
18729 return $ac_func ();
18734 rm -f conftest.
$ac_objext conftest
$ac_exeext
18735 if { (ac_try
="$ac_link"
18736 case "(($ac_try" in
18737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_link") 2>conftest.er1
18743 grep -v '^ *+' conftest.er1 >conftest.err
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } && {
18748 test -z "$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest$ac_exeext &&
18751 $as_test_x conftest$ac_exeext; then
18752 eval "$as_ac_var=yes"
18754 echo "$as_me: failed program was:" >&5
18755 sed 's/^/| /' conftest.$ac_ext >&5
18757 eval "$as_ac_var=no"
18760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18761 conftest$ac_exeext conftest.$ac_ext
18763 ac_res=`eval echo '${'$as_ac_var'}'`
18764 { echo "$as_me:$LINENO: result: $ac_res" >&5
18765 echo "${ECHO_T}$ac_res" >&6; }
18766 if test `eval echo '${'$as_ac_var'}'` = yes; then
18767 cat >>confdefs.h <<_ACEOF
18768 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18770 cat >conftest.$ac_ext <<_ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 #include <unistd.h>
18785 rm -f conftest.$ac_objext
18786 if { (ac_try="$ac_compile"
18787 case "(($ac_try" in
18788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18789 *) ac_try_echo
=$ac_try;;
18791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18792 (eval "$ac_compile") 2>conftest.er1
18794 grep -v '^ *+' conftest.er1
>conftest.err
18796 cat conftest.err
>&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest.
$ac_objext; then
18803 cat >>confdefs.h
<<\_ACEOF
18804 #define GETPGRP_HAVE_ARG 1
18809 echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.
$ac_ext >&5
18815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18821 for ac_func
in setpgrp
18823 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18826 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 cat >conftest.
$ac_ext <<_ACEOF
18832 cat confdefs.h
>>conftest.
$ac_ext
18833 cat >>conftest.
$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18837 #define $ac_func innocuous_$ac_func
18839 /* System header to define __stub macros and hopefully few prototypes,
18840 which can conflict with char $ac_func (); below.
18841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18842 <limits.h> exists even on freestanding compilers. */
18845 # include <limits.h>
18847 # include <assert.h>
18852 /* Override any GCC internal prototype to avoid an error.
18853 Use char because int might match the return type of a GCC
18854 builtin and then its argument prototype would still apply. */
18859 /* The GNU C library defines this for functions which it implements
18860 to always fail with ENOSYS. Some functions are actually named
18861 something starting with __ and the normal name is an alias. */
18862 #if defined __stub_$ac_func || defined __stub___$ac_func
18869 return $ac_func ();
18874 rm -f conftest.
$ac_objext conftest
$ac_exeext
18875 if { (ac_try
="$ac_link"
18876 case "(($ac_try" in
18877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18878 *) ac_try_echo=$ac_try;;
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881 (eval "$ac_link") 2>conftest.er1
18883 grep -v '^ *+' conftest.er1 >conftest.err
18885 cat conftest.err >&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } && {
18888 test -z "$ac_c_werror_flag" ||
18889 test ! -s conftest.err
18890 } && test -s conftest$ac_exeext &&
18891 $as_test_x conftest$ac_exeext; then
18892 eval "$as_ac_var=yes"
18894 echo "$as_me: failed program was:" >&5
18895 sed 's/^/| /' conftest.$ac_ext >&5
18897 eval "$as_ac_var=no"
18900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18901 conftest$ac_exeext conftest.$ac_ext
18903 ac_res=`eval echo '${'$as_ac_var'}'`
18904 { echo "$as_me:$LINENO: result: $ac_res" >&5
18905 echo "${ECHO_T}$ac_res" >&6; }
18906 if test `eval echo '${'$as_ac_var'}'` = yes; then
18907 cat >>confdefs.h <<_ACEOF
18908 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18910 cat >conftest.$ac_ext <<_ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18916 #include <unistd.h>
18925 rm -f conftest.$ac_objext
18926 if { (ac_try="$ac_compile"
18927 case "(($ac_try" in
18928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18929 *) ac_try_echo
=$ac_try;;
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_compile") 2>conftest.er1
18934 grep -v '^ *+' conftest.er1
>conftest.err
18936 cat conftest.err
>&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } && {
18939 test -z "$ac_c_werror_flag" ||
18940 test ! -s conftest.err
18941 } && test -s conftest.
$ac_objext; then
18943 cat >>confdefs.h
<<\_ACEOF
18944 #define SETPGRP_HAVE_ARG 1
18949 echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.
$ac_ext >&5
18955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18961 for ac_func
in gettimeofday
18963 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18966 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 cat >conftest.
$ac_ext <<_ACEOF
18972 cat confdefs.h
>>conftest.
$ac_ext
18973 cat >>conftest.
$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18977 #define $ac_func innocuous_$ac_func
18979 /* System header to define __stub macros and hopefully few prototypes,
18980 which can conflict with char $ac_func (); below.
18981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18982 <limits.h> exists even on freestanding compilers. */
18985 # include <limits.h>
18987 # include <assert.h>
18992 /* Override any GCC internal prototype to avoid an error.
18993 Use char because int might match the return type of a GCC
18994 builtin and then its argument prototype would still apply. */
18999 /* The GNU C library defines this for functions which it implements
19000 to always fail with ENOSYS. Some functions are actually named
19001 something starting with __ and the normal name is an alias. */
19002 #if defined __stub_$ac_func || defined __stub___$ac_func
19009 return $ac_func ();
19014 rm -f conftest.
$ac_objext conftest
$ac_exeext
19015 if { (ac_try
="$ac_link"
19016 case "(($ac_try" in
19017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021 (eval "$ac_link") 2>conftest.er1
19023 grep -v '^ *+' conftest.er1 >conftest.err
19025 cat conftest.err >&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); } && {
19028 test -z "$ac_c_werror_flag" ||
19029 test ! -s conftest.err
19030 } && test -s conftest$ac_exeext &&
19031 $as_test_x conftest$ac_exeext; then
19032 eval "$as_ac_var=yes"
19034 echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.$ac_ext >&5
19037 eval "$as_ac_var=no"
19040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19041 conftest$ac_exeext conftest.$ac_ext
19043 ac_res=`eval echo '${'$as_ac_var'}'`
19044 { echo "$as_me:$LINENO: result: $ac_res" >&5
19045 echo "${ECHO_T}$ac_res" >&6; }
19046 if test `eval echo '${'$as_ac_var'}'` = yes; then
19047 cat >>confdefs.h <<_ACEOF
19048 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19050 cat >conftest.$ac_ext <<_ACEOF
19053 cat confdefs.h >>conftest.$ac_ext
19054 cat >>conftest.$ac_ext <<_ACEOF
19055 /* end confdefs.h. */
19056 #include <sys/time.h>
19060 gettimeofday((struct timeval*)0,(struct timezone*)0);
19065 rm -f conftest.$ac_objext
19066 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.
$ac_ext >&5
19088 cat >>confdefs.h
<<\_ACEOF
19089 #define GETTIMEOFDAY_NO_TZ 1
19095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19101 { echo "$as_me:$LINENO: checking for major" >&5
19102 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19103 cat >conftest.
$ac_ext <<_ACEOF
19106 cat confdefs.h
>>conftest.
$ac_ext
19107 cat >>conftest.
$ac_ext <<_ACEOF
19108 /* end confdefs.h. */
19110 #if defined(MAJOR_IN_MKDEV)
19111 #include <sys/mkdev.h>
19112 #elif defined(MAJOR_IN_SYSMACROS)
19113 #include <sys/sysmacros.h>
19115 #include <sys/types.h>
19122 makedev(major(0),minor(0));
19128 rm -f conftest.
$ac_objext conftest
$ac_exeext
19129 if { (ac_try
="$ac_link"
19130 case "(($ac_try" in
19131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19132 *) ac_try_echo=$ac_try;;
19134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19135 (eval "$ac_link") 2>conftest.er1
19137 grep -v '^ *+' conftest.er1 >conftest.err
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } && {
19142 test -z "$ac_c_werror_flag" ||
19143 test ! -s conftest.err
19144 } && test -s conftest$ac_exeext &&
19145 $as_test_x conftest$ac_exeext; then
19148 cat >>confdefs.h <<\_ACEOF
19149 #define HAVE_DEVICE_MACROS 1
19152 { echo "$as_me:$LINENO: result: yes" >&5
19153 echo "${ECHO_T}yes" >&6; }
19156 echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19160 { echo "$as_me:$LINENO: result: no" >&5
19161 echo "${ECHO_T}no" >&6; }
19165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19166 conftest$ac_exeext conftest.$ac_ext
19168 # On OSF/1 V5.1, getaddrinfo is available, but a define
19169 # for [no]getaddrinfo in netdb.h.
19170 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19171 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19179 #include <sys/types.h>
19180 #include <sys/socket.h>
19188 getaddrinfo(NULL, NULL, NULL, NULL);
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (ac_try="$ac_link"
19196 case "(($ac_try" in
19197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19198 *) ac_try_echo
=$ac_try;;
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_link") 2>conftest.er1
19203 grep -v '^ *+' conftest.er1
>conftest.err
19205 cat conftest.err
>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest
$ac_exeext &&
19211 $as_test_x conftest
$ac_exeext; then
19213 { echo "$as_me:$LINENO: result: yes" >&5
19214 echo "${ECHO_T}yes" >&6; }
19215 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19216 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19217 if test "$cross_compiling" = yes; then
19218 { echo "$as_me:$LINENO: result: buggy" >&5
19219 echo "${ECHO_T}buggy" >&6; }
19220 buggygetaddrinfo
=yes
19222 cat >conftest.
$ac_ext <<_ACEOF
19225 cat confdefs.h
>>conftest.
$ac_ext
19226 cat >>conftest.
$ac_ext <<_ACEOF
19227 /* end confdefs.h. */
19229 #include <sys/types.h>
19231 #include <string.h>
19232 #include <sys/socket.h>
19233 #include <netinet/in.h>
19237 int passive, gaierr, inet4 = 0, inet6 = 0;
19238 struct addrinfo hints, *ai, *aitop;
19239 char straddr[INET6_ADDRSTRLEN], strport[16];
19241 for (passive = 0; passive <= 1; passive++) {
19242 memset(&hints, 0, sizeof(hints));
19243 hints.ai_family = AF_UNSPEC;
19244 hints.ai_flags = passive ? AI_PASSIVE : 0;
19245 hints.ai_socktype = SOCK_STREAM;
19246 hints.ai_protocol = IPPROTO_TCP;
19247 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19248 (void)gai_strerror(gaierr);
19251 for (ai = aitop; ai; ai = ai->ai_next) {
19252 if (ai->ai_addr == NULL ||
19253 ai->ai_addrlen == 0 ||
19254 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19255 straddr, sizeof(straddr), strport, sizeof(strport),
19256 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19259 switch (ai->ai_family) {
19261 if (strcmp(strport, "54321") != 0) {
19265 if (strcmp(straddr, "0.0.0.0") != 0) {
19269 if (strcmp(straddr, "127.0.0.1") != 0) {
19276 if (strcmp(strport, "54321") != 0) {
19280 if (strcmp(straddr, "::") != 0) {
19284 if (strcmp(straddr, "::1") != 0) {
19294 /* another family support? */
19300 if (!(inet4 == 0 || inet4 == 2))
19302 if (!(inet6 == 0 || inet6 == 2))
19306 freeaddrinfo(aitop);
19311 freeaddrinfo(aitop);
19316 rm -f conftest
$ac_exeext
19317 if { (ac_try
="$ac_link"
19318 case "(($ac_try" in
19319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323 (eval "$ac_link") 2>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19327 { (case "(($ac_try" in
19328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19329 *) ac_try_echo
=$ac_try;;
19331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_try") 2>&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; }; then
19336 { echo "$as_me:$LINENO: result: good" >&5
19337 echo "${ECHO_T}good" >&6; }
19338 buggygetaddrinfo
=no
19340 echo "$as_me: program exited with status $ac_status" >&5
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.
$ac_ext >&5
19344 ( exit $ac_status )
19345 { echo "$as_me:$LINENO: result: buggy" >&5
19346 echo "${ECHO_T}buggy" >&6; }
19347 buggygetaddrinfo
=yes
19349 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19354 echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.
$ac_ext >&5
19358 { echo "$as_me:$LINENO: result: no" >&5
19359 echo "${ECHO_T}no" >&6; }
19360 buggygetaddrinfo
=yes
19364 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19365 conftest
$ac_exeext conftest.
$ac_ext
19367 if test "$buggygetaddrinfo" = "yes"; then
19368 if test "$ipv6" = "yes"; then
19369 echo 'Fatal: You must get working getaddrinfo() function.'
19370 echo ' or you can specify "--disable-ipv6"'.
19375 cat >>confdefs.h
<<\_ACEOF
19376 #define HAVE_GETADDRINFO 1
19381 for ac_func
in getnameinfo
19383 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19386 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 cat >conftest.
$ac_ext <<_ACEOF
19392 cat confdefs.h
>>conftest.
$ac_ext
19393 cat >>conftest.
$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19397 #define $ac_func innocuous_$ac_func
19399 /* System header to define __stub macros and hopefully few prototypes,
19400 which can conflict with char $ac_func (); below.
19401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19402 <limits.h> exists even on freestanding compilers. */
19405 # include <limits.h>
19407 # include <assert.h>
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19419 /* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422 #if defined __stub_$ac_func || defined __stub___$ac_func
19429 return $ac_func ();
19434 rm -f conftest.
$ac_objext conftest
$ac_exeext
19435 if { (ac_try
="$ac_link"
19436 case "(($ac_try" in
19437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_link") 2>conftest.er1
19443 grep -v '^ *+' conftest.er1 >conftest.err
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } && {
19448 test -z "$ac_c_werror_flag" ||
19449 test ! -s conftest.err
19450 } && test -s conftest$ac_exeext &&
19451 $as_test_x conftest$ac_exeext; then
19452 eval "$as_ac_var=yes"
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 eval "$as_ac_var=no"
19460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19461 conftest$ac_exeext conftest.$ac_ext
19463 ac_res=`eval echo '${'$as_ac_var'}'`
19464 { echo "$as_me:$LINENO: result: $ac_res" >&5
19465 echo "${ECHO_T}$ac_res" >&6; }
19466 if test `eval echo '${'$as_ac_var'}'` = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19475 # checks for structures
19476 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19477 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19478 if test "${ac_cv_header_time+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19481 cat >conftest.$ac_ext <<_ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19487 #include <sys/types.h>
19488 #include <sys/time.h>
19494 if ((struct tm *) 0)
19500 rm -f conftest.$ac_objext
19501 if { (ac_try="$ac_compile"
19502 case "(($ac_try" in
19503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19504 *) ac_try_echo
=$ac_try;;
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_compile") 2>conftest.er1
19509 grep -v '^ *+' conftest.er1
>conftest.err
19511 cat conftest.err
>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } && {
19514 test -z "$ac_c_werror_flag" ||
19515 test ! -s conftest.err
19516 } && test -s conftest.
$ac_objext; then
19517 ac_cv_header_time
=yes
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.
$ac_ext >&5
19522 ac_cv_header_time
=no
19525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19527 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19528 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19529 if test $ac_cv_header_time = yes; then
19531 cat >>confdefs.h
<<\_ACEOF
19532 #define TIME_WITH_SYS_TIME 1
19537 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19538 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19539 if test "${ac_cv_struct_tm+set}" = set; then
19540 echo $ECHO_N "(cached) $ECHO_C" >&6
19542 cat >conftest.
$ac_ext <<_ACEOF
19545 cat confdefs.h
>>conftest.
$ac_ext
19546 cat >>conftest.
$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 #include <sys/types.h>
19555 int *p = &tm.tm_sec;
19561 rm -f conftest.
$ac_objext
19562 if { (ac_try
="$ac_compile"
19563 case "(($ac_try" in
19564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_compile") 2>conftest.er1
19570 grep -v '^ *+' conftest.er1 >conftest.err
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } && {
19575 test -z "$ac_c_werror_flag" ||
19576 test ! -s conftest.err
19577 } && test -s conftest.$ac_objext; then
19578 ac_cv_struct_tm=time.h
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19583 ac_cv_struct_tm=sys/time.h
19586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19588 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19589 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19590 if test $ac_cv_struct_tm = sys/time.h; then
19592 cat >>confdefs.h <<\_ACEOF
19593 #define TM_IN_SYS_TIME 1
19598 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19599 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19600 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19603 cat >conftest.$ac_ext <<_ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609 #include <sys/types.h>
19610 #include <$ac_cv_struct_tm>
19616 static struct tm ac_aggr;
19617 if (ac_aggr.tm_zone)
19623 rm -f conftest.$ac_objext
19624 if { (ac_try="$ac_compile"
19625 case "(($ac_try" in
19626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19627 *) ac_try_echo
=$ac_try;;
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_compile") 2>conftest.er1
19632 grep -v '^ *+' conftest.er1
>conftest.err
19634 cat conftest.err
>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); } && {
19637 test -z "$ac_c_werror_flag" ||
19638 test ! -s conftest.err
19639 } && test -s conftest.
$ac_objext; then
19640 ac_cv_member_struct_tm_tm_zone
=yes
19642 echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.
$ac_ext >&5
19645 cat >conftest.
$ac_ext <<_ACEOF
19648 cat confdefs.h
>>conftest.
$ac_ext
19649 cat >>conftest.
$ac_ext <<_ACEOF
19650 /* end confdefs.h. */
19651 #include <sys/types.h>
19652 #include <$ac_cv_struct_tm>
19658 static struct tm ac_aggr;
19659 if (sizeof ac_aggr.tm_zone)
19665 rm -f conftest.
$ac_objext
19666 if { (ac_try
="$ac_compile"
19667 case "(($ac_try" in
19668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_compile") 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } && {
19679 test -z "$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19681 } && test -s conftest.$ac_objext; then
19682 ac_cv_member_struct_tm_tm_zone=yes
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 ac_cv_member_struct_tm_tm_zone=no
19690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19695 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19696 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19697 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19699 cat >>confdefs.h <<_ACEOF
19700 #define HAVE_STRUCT_TM_TM_ZONE 1
19706 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19708 cat >>confdefs.h <<\_ACEOF
19709 #define HAVE_TM_ZONE 1
19713 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19714 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19715 if test "${ac_cv_have_decl_tzname+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 cat >conftest.$ac_ext <<_ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19737 rm -f conftest.$ac_objext
19738 if { (ac_try="$ac_compile"
19739 case "(($ac_try" in
19740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19741 *) ac_try_echo
=$ac_try;;
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_compile") 2>conftest.er1
19746 grep -v '^ *+' conftest.er1
>conftest.err
19748 cat conftest.err
>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } && {
19751 test -z "$ac_c_werror_flag" ||
19752 test ! -s conftest.err
19753 } && test -s conftest.
$ac_objext; then
19754 ac_cv_have_decl_tzname
=yes
19756 echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.
$ac_ext >&5
19759 ac_cv_have_decl_tzname
=no
19762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19764 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19765 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19766 if test $ac_cv_have_decl_tzname = yes; then
19768 cat >>confdefs.h
<<_ACEOF
19769 #define HAVE_DECL_TZNAME 1
19774 cat >>confdefs.h
<<_ACEOF
19775 #define HAVE_DECL_TZNAME 0
19782 { echo "$as_me:$LINENO: checking for tzname" >&5
19783 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19784 if test "${ac_cv_var_tzname+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 cat >conftest.
$ac_ext <<_ACEOF
19790 cat confdefs.h
>>conftest.
$ac_ext
19791 cat >>conftest.
$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19794 #if !HAVE_DECL_TZNAME
19795 extern char *tzname[];
19801 return tzname[0][0];
19806 rm -f conftest.
$ac_objext conftest
$ac_exeext
19807 if { (ac_try
="$ac_link"
19808 case "(($ac_try" in
19809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_link") 2>conftest.er1
19815 grep -v '^ *+' conftest.er1 >conftest.err
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } && {
19820 test -z "$ac_c_werror_flag" ||
19821 test ! -s conftest.err
19822 } && test -s conftest$ac_exeext &&
19823 $as_test_x conftest$ac_exeext; then
19824 ac_cv_var_tzname=yes
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ac_cv_var_tzname=no
19832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19833 conftest$ac_exeext conftest.$ac_ext
19835 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19836 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19837 if test $ac_cv_var_tzname = yes; then
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_TZNAME 1
19846 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19847 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19848 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 cat >conftest.$ac_ext <<_ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 $ac_includes_default
19861 static struct stat ac_aggr;
19862 if (ac_aggr.st_rdev)
19868 rm -f conftest.$ac_objext
19869 if { (ac_try="$ac_compile"
19870 case "(($ac_try" in
19871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19872 *) ac_try_echo
=$ac_try;;
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_compile") 2>conftest.er1
19877 grep -v '^ *+' conftest.er1
>conftest.err
19879 cat conftest.err
>&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } && {
19882 test -z "$ac_c_werror_flag" ||
19883 test ! -s conftest.err
19884 } && test -s conftest.
$ac_objext; then
19885 ac_cv_member_struct_stat_st_rdev
=yes
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.
$ac_ext >&5
19890 cat >conftest.
$ac_ext <<_ACEOF
19893 cat confdefs.h
>>conftest.
$ac_ext
19894 cat >>conftest.
$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896 $ac_includes_default
19900 static struct stat ac_aggr;
19901 if (sizeof ac_aggr.st_rdev)
19907 rm -f conftest.
$ac_objext
19908 if { (ac_try
="$ac_compile"
19909 case "(($ac_try" in
19910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_compile") 2>conftest.er1
19916 grep -v '^ *+' conftest.er1 >conftest.err
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } && {
19921 test -z "$ac_c_werror_flag" ||
19922 test ! -s conftest.err
19923 } && test -s conftest.$ac_objext; then
19924 ac_cv_member_struct_stat_st_rdev=yes
19926 echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ac_cv_member_struct_stat_st_rdev=no
19932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19937 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19938 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19939 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_STRUCT_STAT_ST_RDEV 1
19948 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19949 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19950 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 cat >conftest.$ac_ext <<_ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19959 $ac_includes_default
19963 static struct stat ac_aggr;
19964 if (ac_aggr.st_blksize)
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19974 *) ac_try_echo
=$ac_try;;
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_compile") 2>conftest.er1
19979 grep -v '^ *+' conftest.er1
>conftest.err
19981 cat conftest.err
>&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest.
$ac_objext; then
19987 ac_cv_member_struct_stat_st_blksize
=yes
19989 echo "$as_me: failed program was:" >&5
19990 sed 's/^/| /' conftest.
$ac_ext >&5
19992 cat >conftest.
$ac_ext <<_ACEOF
19995 cat confdefs.h
>>conftest.
$ac_ext
19996 cat >>conftest.
$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 $ac_includes_default
20002 static struct stat ac_aggr;
20003 if (sizeof ac_aggr.st_blksize)
20009 rm -f conftest.
$ac_objext
20010 if { (ac_try
="$ac_compile"
20011 case "(($ac_try" in
20012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_compile") 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest.$ac_objext; then
20026 ac_cv_member_struct_stat_st_blksize=yes
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_cv_member_struct_stat_st_blksize=no
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20040 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20041 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20043 cat >>confdefs.h <<_ACEOF
20044 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20050 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20051 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20052 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20053 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 $ac_includes_default
20065 static struct stat ac_aggr;
20066 if (ac_aggr.st_flags)
20072 rm -f conftest.$ac_objext
20073 if { (ac_try="$ac_compile"
20074 case "(($ac_try" in
20075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20076 *) ac_try_echo
=$ac_try;;
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079 (eval "$ac_compile") 2>conftest.er1
20081 grep -v '^ *+' conftest.er1
>conftest.err
20083 cat conftest.err
>&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } && {
20086 test -z "$ac_c_werror_flag" ||
20087 test ! -s conftest.err
20088 } && test -s conftest.
$ac_objext; then
20089 ac_cv_member_struct_stat_st_flags
=yes
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.
$ac_ext >&5
20094 cat >conftest.
$ac_ext <<_ACEOF
20097 cat confdefs.h
>>conftest.
$ac_ext
20098 cat >>conftest.
$ac_ext <<_ACEOF
20099 /* end confdefs.h. */
20100 $ac_includes_default
20104 static struct stat ac_aggr;
20105 if (sizeof ac_aggr.st_flags)
20111 rm -f conftest.
$ac_objext
20112 if { (ac_try
="$ac_compile"
20113 case "(($ac_try" in
20114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compile") 2>conftest.er1
20120 grep -v '^ *+' conftest.er1 >conftest.err
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } && {
20125 test -z "$ac_c_werror_flag" ||
20126 test ! -s conftest.err
20127 } && test -s conftest.$ac_objext; then
20128 ac_cv_member_struct_stat_st_flags=yes
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_cv_member_struct_stat_st_flags=no
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20141 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20142 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20143 if test $ac_cv_member_struct_stat_st_flags = yes; then
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20152 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20153 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20154 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 $ac_includes_default
20167 static struct stat ac_aggr;
20168 if (ac_aggr.st_gen)
20174 rm -f conftest.$ac_objext
20175 if { (ac_try="$ac_compile"
20176 case "(($ac_try" in
20177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20178 *) ac_try_echo
=$ac_try;;
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_compile") 2>conftest.er1
20183 grep -v '^ *+' conftest.er1
>conftest.err
20185 cat conftest.err
>&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } && {
20188 test -z "$ac_c_werror_flag" ||
20189 test ! -s conftest.err
20190 } && test -s conftest.
$ac_objext; then
20191 ac_cv_member_struct_stat_st_gen
=yes
20193 echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.
$ac_ext >&5
20196 cat >conftest.
$ac_ext <<_ACEOF
20199 cat confdefs.h
>>conftest.
$ac_ext
20200 cat >>conftest.
$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 $ac_includes_default
20206 static struct stat ac_aggr;
20207 if (sizeof ac_aggr.st_gen)
20213 rm -f conftest.
$ac_objext
20214 if { (ac_try
="$ac_compile"
20215 case "(($ac_try" in
20216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_compile") 2>conftest.er1
20222 grep -v '^ *+' conftest.er1 >conftest.err
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } && {
20227 test -z "$ac_c_werror_flag" ||
20228 test ! -s conftest.err
20229 } && test -s conftest.$ac_objext; then
20230 ac_cv_member_struct_stat_st_gen=yes
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20235 ac_cv_member_struct_stat_st_gen=no
20238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20244 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20245 if test $ac_cv_member_struct_stat_st_gen = yes; then
20247 cat >>confdefs.h <<_ACEOF
20248 #define HAVE_STRUCT_STAT_ST_GEN 1
20254 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20255 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20256 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20257 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 cat >conftest.$ac_ext <<_ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 $ac_includes_default
20269 static struct stat ac_aggr;
20270 if (ac_aggr.st_birthtime)
20276 rm -f conftest.$ac_objext
20277 if { (ac_try="$ac_compile"
20278 case "(($ac_try" in
20279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20280 *) ac_try_echo
=$ac_try;;
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20285 grep -v '^ *+' conftest.er1
>conftest.err
20287 cat conftest.err
>&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_c_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.
$ac_objext; then
20293 ac_cv_member_struct_stat_st_birthtime
=yes
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.
$ac_ext >&5
20298 cat >conftest.
$ac_ext <<_ACEOF
20301 cat confdefs.h
>>conftest.
$ac_ext
20302 cat >>conftest.
$ac_ext <<_ACEOF
20303 /* end confdefs.h. */
20304 $ac_includes_default
20308 static struct stat ac_aggr;
20309 if (sizeof ac_aggr.st_birthtime)
20315 rm -f conftest.
$ac_objext
20316 if { (ac_try
="$ac_compile"
20317 case "(($ac_try" in
20318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_compile") 2>conftest.er1
20324 grep -v '^ *+' conftest.er1 >conftest.err
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } && {
20329 test -z "$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20331 } && test -s conftest.$ac_objext; then
20332 ac_cv_member_struct_stat_st_birthtime=yes
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20337 ac_cv_member_struct_stat_st_birthtime=no
20340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20345 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20346 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20347 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20349 cat >>confdefs.h <<_ACEOF
20350 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20356 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20357 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20358 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 cat >conftest.$ac_ext <<_ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20367 $ac_includes_default
20371 static struct stat ac_aggr;
20372 if (ac_aggr.st_blocks)
20378 rm -f conftest.$ac_objext
20379 if { (ac_try="$ac_compile"
20380 case "(($ac_try" in
20381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20382 *) ac_try_echo
=$ac_try;;
20384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20385 (eval "$ac_compile") 2>conftest.er1
20387 grep -v '^ *+' conftest.er1
>conftest.err
20389 cat conftest.err
>&5
20390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391 (exit $ac_status); } && {
20392 test -z "$ac_c_werror_flag" ||
20393 test ! -s conftest.err
20394 } && test -s conftest.
$ac_objext; then
20395 ac_cv_member_struct_stat_st_blocks
=yes
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.
$ac_ext >&5
20400 cat >conftest.
$ac_ext <<_ACEOF
20403 cat confdefs.h
>>conftest.
$ac_ext
20404 cat >>conftest.
$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 $ac_includes_default
20410 static struct stat ac_aggr;
20411 if (sizeof ac_aggr.st_blocks)
20417 rm -f conftest.
$ac_objext
20418 if { (ac_try
="$ac_compile"
20419 case "(($ac_try" in
20420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_compile") 2>conftest.er1
20426 grep -v '^ *+' conftest.er1 >conftest.err
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } && {
20431 test -z "$ac_c_werror_flag" ||
20432 test ! -s conftest.err
20433 } && test -s conftest.$ac_objext; then
20434 ac_cv_member_struct_stat_st_blocks=yes
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_cv_member_struct_stat_st_blocks=no
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20447 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20448 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20449 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20451 cat >>confdefs.h <<_ACEOF
20452 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20456 cat >>confdefs.h <<\_ACEOF
20457 #define HAVE_ST_BLOCKS 1
20461 case " $LIBOBJS " in
20462 *" fileblocks.$ac_objext "* ) ;;
20463 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20471 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20472 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20473 if test "${ac_cv_header_time_altzone+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20491 rm -f conftest.$ac_objext
20492 if { (ac_try="$ac_compile"
20493 case "(($ac_try" in
20494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20495 *) ac_try_echo
=$ac_try;;
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498 (eval "$ac_compile") 2>conftest.er1
20500 grep -v '^ *+' conftest.er1
>conftest.err
20502 cat conftest.err
>&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && {
20505 test -z "$ac_c_werror_flag" ||
20506 test ! -s conftest.err
20507 } && test -s conftest.
$ac_objext; then
20508 ac_cv_header_time_altzone
=yes
20510 echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.
$ac_ext >&5
20513 ac_cv_header_time_altzone
=no
20516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20519 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20520 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20521 if test $ac_cv_header_time_altzone = yes; then
20523 cat >>confdefs.h
<<\_ACEOF
20524 #define HAVE_ALTZONE 1
20530 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20531 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20532 cat >conftest.
$ac_ext <<_ACEOF
20535 cat confdefs.h
>>conftest.
$ac_ext
20536 cat >>conftest.
$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20539 #include <sys/types.h>
20540 #include <sys/select.h>
20541 #include <sys/time.h>
20551 rm -f conftest.
$ac_objext
20552 if { (ac_try
="$ac_compile"
20553 case "(($ac_try" in
20554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558 (eval "$ac_compile") 2>conftest.er1
20560 grep -v '^ *+' conftest.er1 >conftest.err
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } && {
20565 test -z "$ac_c_werror_flag" ||
20566 test ! -s conftest.err
20567 } && test -s conftest.$ac_objext; then
20570 cat >>confdefs.h <<\_ACEOF
20571 #define SYS_SELECT_WITH_SYS_TIME 1
20577 echo "$as_me: failed program was:" >&5
20578 sed 's/^/| /' conftest.$ac_ext >&5
20583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20585 echo "${ECHO_T}$was_it_defined" >&6; }
20587 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20588 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20589 if test "${ac_cv_struct_addrinfo+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20599 # include <netdb.h>
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
20610 case "(($ac_try" in
20611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20612 *) ac_try_echo
=$ac_try;;
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20617 grep -v '^ *+' conftest.er1
>conftest.err
20619 cat conftest.err
>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest.
$ac_objext; then
20625 ac_cv_struct_addrinfo
=yes
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.
$ac_ext >&5
20630 ac_cv_struct_addrinfo
=no
20633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20636 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20637 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20638 if test $ac_cv_struct_addrinfo = yes; then
20640 cat >>confdefs.h
<<\_ACEOF
20641 #define HAVE_ADDRINFO 1
20646 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20647 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20648 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 cat >conftest.
$ac_ext <<_ACEOF
20654 cat confdefs.h
>>conftest.
$ac_ext
20655 cat >>conftest.
$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 # include <sys/types.h>
20659 # include <sys/socket.h>
20663 struct sockaddr_storage s
20668 rm -f conftest.
$ac_objext
20669 if { (ac_try
="$ac_compile"
20670 case "(($ac_try" in
20671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_compile") 2>conftest.er1
20677 grep -v '^ *+' conftest.er1 >conftest.err
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } && {
20682 test -z "$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 } && test -s conftest.$ac_objext; then
20685 ac_cv_struct_sockaddr_storage=yes
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690 ac_cv_struct_sockaddr_storage=no
20693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20697 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20698 if test $ac_cv_struct_sockaddr_storage = yes; then
20700 cat >>confdefs.h <<\_ACEOF
20701 #define HAVE_SOCKADDR_STORAGE 1
20706 # checks for compiler characteristics
20709 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20710 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20711 if test "${ac_cv_c_char_unsigned+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 $ac_includes_default
20724 static int test_array [1 - 2 * !(((char) -1) < 0)];
20731 rm -f conftest.$ac_objext
20732 if { (ac_try="$ac_compile"
20733 case "(($ac_try" in
20734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20735 *) ac_try_echo
=$ac_try;;
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_compile") 2>conftest.er1
20740 grep -v '^ *+' conftest.er1
>conftest.err
20742 cat conftest.err
>&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } && {
20745 test -z "$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20747 } && test -s conftest.
$ac_objext; then
20748 ac_cv_c_char_unsigned
=no
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.
$ac_ext >&5
20753 ac_cv_c_char_unsigned
=yes
20756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20758 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20759 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20760 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20761 cat >>confdefs.h
<<\_ACEOF
20762 #define __CHAR_UNSIGNED__ 1
20767 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20768 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20769 if test "${ac_cv_c_const+set}" = set; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20772 cat >conftest.
$ac_ext <<_ACEOF
20775 cat confdefs.h
>>conftest.
$ac_ext
20776 cat >>conftest.
$ac_ext <<_ACEOF
20777 /* end confdefs.h. */
20782 /* FIXME: Include the comments suggested by Paul. */
20783 #ifndef __cplusplus
20784 /* Ultrix mips cc rejects this. */
20785 typedef int charset[2];
20787 /* SunOS 4.1.1 cc rejects this. */
20788 char const *const *pcpcc;
20790 /* NEC SVR4.0.2 mips cc rejects this. */
20791 struct point {int x, y;};
20792 static struct point const zero = {0,0};
20793 /* AIX XL C 1.02.0.0 rejects this.
20794 It does not let you subtract one const X* pointer from another in
20795 an arm of an if-expression whose if-part is not a constant
20797 const char *g = "string";
20798 pcpcc = &g + (g ? g-g : 0);
20799 /* HPUX 7.0 cc rejects these. */
20801 ppc = (char**) pcpcc;
20802 pcpcc = (char const *const *) ppc;
20803 { /* SCO 3.2v4 cc rejects this. */
20805 char const *s = 0 ? (char *) 0 : (char const *) 0;
20810 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20811 int x[] = {25, 17};
20812 const int *foo = &x[0];
20815 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20816 typedef const int *iptr;
20820 { /* AIX XL C 1.02.0.0 rejects this saying
20821 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20822 struct s { int j; const int *ap[3]; };
20823 struct s *b; b->j = 5;
20825 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20826 const int foo = 10;
20827 if (!foo) return 0;
20829 return !cs[0] && !zero.x;
20836 rm -f conftest.
$ac_objext
20837 if { (ac_try
="$ac_compile"
20838 case "(($ac_try" in
20839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20845 grep -v '^ *+' conftest.er1 >conftest.err
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.$ac_objext; then
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20864 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20865 if test $ac_cv_c_const = no; then
20867 cat >>confdefs.h <<\_ACEOF
20875 { echo "$as_me:$LINENO: checking for working volatile" >&5
20876 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20877 cat >conftest.$ac_ext <<_ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20887 volatile int x; x = 0;
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20896 *) ac_try_echo
=$ac_try;;
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899 (eval "$ac_compile") 2>conftest.er1
20901 grep -v '^ *+' conftest.er1
>conftest.err
20903 cat conftest.err
>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && {
20906 test -z "$ac_c_werror_flag" ||
20907 test ! -s conftest.err
20908 } && test -s conftest.
$ac_objext; then
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.
$ac_ext >&5
20915 cat >>confdefs.h
<<\_ACEOF
20922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20923 { echo "$as_me:$LINENO: result: $works" >&5
20924 echo "${ECHO_T}$works" >&6; }
20927 { echo "$as_me:$LINENO: checking for working signed char" >&5
20928 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20929 cat >conftest.
$ac_ext <<_ACEOF
20932 cat confdefs.h
>>conftest.
$ac_ext
20933 cat >>conftest.
$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20944 rm -f conftest.
$ac_objext
20945 if { (ac_try
="$ac_compile"
20946 case "(($ac_try" in
20947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20948 *) ac_try_echo=$ac_try;;
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951 (eval "$ac_compile") 2>conftest.er1
20953 grep -v '^ *+' conftest.er1 >conftest.err
20955 cat conftest.err >&5
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } && {
20958 test -z "$ac_c_werror_flag" ||
20959 test ! -s conftest.err
20960 } && test -s conftest.$ac_objext; then
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20967 cat >>confdefs.h <<\_ACEOF
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 { echo "$as_me:$LINENO: result: $works" >&5
20976 echo "${ECHO_T}$works" >&6; }
20979 { echo "$as_me:$LINENO: checking for prototypes" >&5
20980 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 int foo(int x) { return 0; }
20996 rm -f conftest.$ac_objext
20997 if { (ac_try="$ac_compile"
20998 case "(($ac_try" in
20999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21000 *) ac_try_echo
=$ac_try;;
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_compile") 2>conftest.er1
21005 grep -v '^ *+' conftest.er1
>conftest.err
21007 cat conftest.err
>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } && {
21010 test -z "$ac_c_werror_flag" ||
21011 test ! -s conftest.err
21012 } && test -s conftest.
$ac_objext; then
21015 cat >>confdefs.h
<<\_ACEOF
21016 #define HAVE_PROTOTYPES 1
21019 have_prototypes
=yes
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.
$ac_ext >&5
21028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21029 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21030 echo "${ECHO_T}$have_prototypes" >&6; }
21033 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21034 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21035 cat >conftest.
$ac_ext <<_ACEOF
21038 cat confdefs.h
>>conftest.
$ac_ext
21039 cat >>conftest.
$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21042 #include <stdarg.h>
21043 int foo(int x, ...) {
21047 va_arg(va, char *);
21048 va_arg(va, double);
21055 return foo(10, "", 3.14);
21060 rm -f conftest.
$ac_objext
21061 if { (ac_try
="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21069 grep -v '^ *+' conftest.er1 >conftest.err
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21079 cat >>confdefs.h <<\_ACEOF
21080 #define HAVE_STDARG_PROTOTYPES 1
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 { echo "$as_me:$LINENO: result: $works" >&5
21094 echo "${ECHO_T}$works" >&6; }
21096 # check for socketpair
21097 { echo "$as_me:$LINENO: checking for socketpair" >&5
21098 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21099 cat >conftest.$ac_ext <<_ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h. */
21106 #include <sys/types.h>
21107 #include <sys/socket.h>
21117 rm -f conftest.$ac_objext
21118 if { (ac_try="$ac_compile"
21119 case "(($ac_try" in
21120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21121 *) ac_try_echo
=$ac_try;;
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124 (eval "$ac_compile") 2>conftest.er1
21126 grep -v '^ *+' conftest.er1
>conftest.err
21128 cat conftest.err
>&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); } && {
21131 test -z "$ac_c_werror_flag" ||
21132 test ! -s conftest.err
21133 } && test -s conftest.
$ac_objext; then
21135 cat >>confdefs.h
<<\_ACEOF
21136 #define HAVE_SOCKETPAIR 1
21139 { echo "$as_me:$LINENO: result: yes" >&5
21140 echo "${ECHO_T}yes" >&6; }
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.
$ac_ext >&5
21145 { echo "$as_me:$LINENO: result: no" >&5
21146 echo "${ECHO_T}no" >&6; }
21150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21152 # check if sockaddr has sa_len member
21153 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21154 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21155 cat >conftest.
$ac_ext <<_ACEOF
21158 cat confdefs.h
>>conftest.
$ac_ext
21159 cat >>conftest.
$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <sys/types.h>
21162 #include <sys/socket.h>
21172 rm -f conftest.
$ac_objext
21173 if { (ac_try
="$ac_compile"
21174 case "(($ac_try" in
21175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_compile") 2>conftest.er1
21181 grep -v '^ *+' conftest.er1 >conftest.err
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } && {
21186 test -z "$ac_c_werror_flag" ||
21187 test ! -s conftest.err
21188 } && test -s conftest.$ac_objext; then
21189 { echo "$as_me:$LINENO: result: yes" >&5
21190 echo "${ECHO_T}yes" >&6; }
21192 cat >>confdefs.h <<\_ACEOF
21193 #define HAVE_SOCKADDR_SA_LEN 1
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 { echo "$as_me:$LINENO: result: no" >&5
21201 echo "${ECHO_T}no" >&6; }
21204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 va_list_is_array=no
21207 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21208 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21209 cat >conftest.$ac_ext <<_ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h. */
21216 #ifdef HAVE_STDARG_PROTOTYPES
21217 #include <stdarg.h>
21219 #include <varargs.h>
21225 va_list list1, list2; list1 = list2;
21230 rm -f conftest.$ac_objext
21231 if { (ac_try="$ac_compile"
21232 case "(($ac_try" in
21233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21234 *) ac_try_echo
=$ac_try;;
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_compile") 2>conftest.er1
21239 grep -v '^ *+' conftest.er1
>conftest.err
21241 cat conftest.err
>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest.
$ac_objext; then
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.
$ac_ext >&5
21254 cat >>confdefs.h
<<\_ACEOF
21255 #define VA_LIST_IS_ARRAY 1
21258 va_list_is_array
=yes
21262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21263 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21264 echo "${ECHO_T}$va_list_is_array" >&6; }
21266 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21270 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21271 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21272 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21275 cat >conftest.
$ac_ext <<_ACEOF
21278 cat confdefs.h
>>conftest.
$ac_ext
21279 cat >>conftest.
$ac_ext <<_ACEOF
21280 /* end confdefs.h. */
21281 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21283 #define gethostbyname_r innocuous_gethostbyname_r
21285 /* System header to define __stub macros and hopefully few prototypes,
21286 which can conflict with char gethostbyname_r (); below.
21287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21288 <limits.h> exists even on freestanding compilers. */
21291 # include <limits.h>
21293 # include <assert.h>
21296 #undef gethostbyname_r
21298 /* Override any GCC internal prototype to avoid an error.
21299 Use char because int might match the return type of a GCC
21300 builtin and then its argument prototype would still apply. */
21304 char gethostbyname_r ();
21305 /* The GNU C library defines this for functions which it implements
21306 to always fail with ENOSYS. Some functions are actually named
21307 something starting with __ and the normal name is an alias. */
21308 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21315 return gethostbyname_r ();
21320 rm -f conftest.
$ac_objext conftest
$ac_exeext
21321 if { (ac_try
="$ac_link"
21322 case "(($ac_try" in
21323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21324 *) ac_try_echo=$ac_try;;
21326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21327 (eval "$ac_link") 2>conftest.er1
21329 grep -v '^ *+' conftest.er1 >conftest.err
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } && {
21334 test -z "$ac_c_werror_flag" ||
21335 test ! -s conftest.err
21336 } && test -s conftest$ac_exeext &&
21337 $as_test_x conftest$ac_exeext; then
21338 ac_cv_func_gethostbyname_r=yes
21340 echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21343 ac_cv_func_gethostbyname_r=no
21346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21347 conftest$ac_exeext conftest.$ac_ext
21349 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21350 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21351 if test $ac_cv_func_gethostbyname_r = yes; then
21353 cat >>confdefs.h <<\_ACEOF
21354 #define HAVE_GETHOSTBYNAME_R 1
21357 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21358 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21360 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21361 cat >conftest.$ac_ext <<_ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21368 # include <netdb.h>
21375 struct hostent *he, *res;
21380 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21386 rm -f conftest.$ac_objext
21387 if { (ac_try="$ac_compile"
21388 case "(($ac_try" in
21389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21390 *) ac_try_echo
=$ac_try;;
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393 (eval "$ac_compile") 2>conftest.er1
21395 grep -v '^ *+' conftest.er1
>conftest.err
21397 cat conftest.err
>&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } && {
21400 test -z "$ac_c_werror_flag" ||
21401 test ! -s conftest.err
21402 } && test -s conftest.
$ac_objext; then
21404 cat >>confdefs.h
<<\_ACEOF
21405 #define HAVE_GETHOSTBYNAME_R 1
21409 cat >>confdefs.h
<<\_ACEOF
21410 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21413 { echo "$as_me:$LINENO: result: yes" >&5
21414 echo "${ECHO_T}yes" >&6; }
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.
$ac_ext >&5
21421 { echo "$as_me:$LINENO: result: no" >&5
21422 echo "${ECHO_T}no" >&6; }
21423 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21424 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21425 cat >conftest.
$ac_ext <<_ACEOF
21428 cat confdefs.h
>>conftest.
$ac_ext
21429 cat >>conftest.
$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21432 # include <netdb.h>
21439 struct hostent *he;
21444 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21450 rm -f conftest.
$ac_objext
21451 if { (ac_try
="$ac_compile"
21452 case "(($ac_try" in
21453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21454 *) ac_try_echo=$ac_try;;
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457 (eval "$ac_compile") 2>conftest.er1
21459 grep -v '^ *+' conftest.er1 >conftest.err
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest.$ac_objext; then
21468 cat >>confdefs.h <<\_ACEOF
21469 #define HAVE_GETHOSTBYNAME_R 1
21473 cat >>confdefs.h <<\_ACEOF
21474 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21477 { echo "$as_me:$LINENO: result: yes" >&5
21478 echo "${ECHO_T}yes" >&6; }
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21485 { echo "$as_me:$LINENO: result: no" >&5
21486 echo "${ECHO_T}no" >&6; }
21487 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21488 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21496 # include <netdb.h>
21503 struct hostent *he;
21504 struct hostent_data data;
21506 (void) gethostbyname_r(name, he, &data);
21512 rm -f conftest.$ac_objext
21513 if { (ac_try="$ac_compile"
21514 case "(($ac_try" in
21515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21516 *) ac_try_echo
=$ac_try;;
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_compile") 2>conftest.er1
21521 grep -v '^ *+' conftest.er1
>conftest.err
21523 cat conftest.err
>&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } && {
21526 test -z "$ac_c_werror_flag" ||
21527 test ! -s conftest.err
21528 } && test -s conftest.
$ac_objext; then
21530 cat >>confdefs.h
<<\_ACEOF
21531 #define HAVE_GETHOSTBYNAME_R 1
21535 cat >>confdefs.h
<<\_ACEOF
21536 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21539 { echo "$as_me:$LINENO: result: yes" >&5
21540 echo "${ECHO_T}yes" >&6; }
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.
$ac_ext >&5
21547 { echo "$as_me:$LINENO: result: no" >&5
21548 echo "${ECHO_T}no" >&6; }
21552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21566 for ac_func
in gethostbyname
21568 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21571 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21574 cat >conftest.
$ac_ext <<_ACEOF
21577 cat confdefs.h
>>conftest.
$ac_ext
21578 cat >>conftest.
$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21582 #define $ac_func innocuous_$ac_func
21584 /* System header to define __stub macros and hopefully few prototypes,
21585 which can conflict with char $ac_func (); below.
21586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21587 <limits.h> exists even on freestanding compilers. */
21590 # include <limits.h>
21592 # include <assert.h>
21597 /* Override any GCC internal prototype to avoid an error.
21598 Use char because int might match the return type of a GCC
21599 builtin and then its argument prototype would still apply. */
21604 /* The GNU C library defines this for functions which it implements
21605 to always fail with ENOSYS. Some functions are actually named
21606 something starting with __ and the normal name is an alias. */
21607 #if defined __stub_$ac_func || defined __stub___$ac_func
21614 return $ac_func ();
21619 rm -f conftest.
$ac_objext conftest
$ac_exeext
21620 if { (ac_try
="$ac_link"
21621 case "(($ac_try" in
21622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21623 *) ac_try_echo=$ac_try;;
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626 (eval "$ac_link") 2>conftest.er1
21628 grep -v '^ *+' conftest.er1 >conftest.err
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } && {
21633 test -z "$ac_c_werror_flag" ||
21634 test ! -s conftest.err
21635 } && test -s conftest$ac_exeext &&
21636 $as_test_x conftest$ac_exeext; then
21637 eval "$as_ac_var=yes"
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21642 eval "$as_ac_var=no"
21645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21646 conftest$ac_exeext conftest.$ac_ext
21648 ac_res=`eval echo '${'$as_ac_var'}'`
21649 { echo "$as_me:$LINENO: result: $ac_res" >&5
21650 echo "${ECHO_T}$ac_res" >&6; }
21651 if test `eval echo '${'$as_ac_var'}'` = yes; then
21652 cat >>confdefs.h <<_ACEOF
21653 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21668 # checks for system services
21671 # Linux requires this for correct f.p. operations
21672 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21673 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21674 if test "${ac_cv_func___fpu_control+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 cat >conftest.$ac_ext <<_ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h. */
21683 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21685 #define __fpu_control innocuous___fpu_control
21687 /* System header to define __stub macros and hopefully few prototypes,
21688 which can conflict with char __fpu_control (); below.
21689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21690 <limits.h> exists even on freestanding compilers. */
21693 # include <limits.h>
21695 # include <assert.h>
21698 #undef __fpu_control
21700 /* Override any GCC internal prototype to avoid an error.
21701 Use char because int might match the return type of a GCC
21702 builtin and then its argument prototype would still apply. */
21706 char __fpu_control ();
21707 /* The GNU C library defines this for functions which it implements
21708 to always fail with ENOSYS. Some functions are actually named
21709 something starting with __ and the normal name is an alias. */
21710 #if defined __stub___fpu_control || defined __stub_____fpu_control
21717 return __fpu_control ();
21722 rm -f conftest.$ac_objext conftest$ac_exeext
21723 if { (ac_try="$ac_link"
21724 case "(($ac_try" in
21725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21726 *) ac_try_echo
=$ac_try;;
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_link") 2>conftest.er1
21731 grep -v '^ *+' conftest.er1
>conftest.err
21733 cat conftest.err
>&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } && {
21736 test -z "$ac_c_werror_flag" ||
21737 test ! -s conftest.err
21738 } && test -s conftest
$ac_exeext &&
21739 $as_test_x conftest
$ac_exeext; then
21740 ac_cv_func___fpu_control
=yes
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.
$ac_ext >&5
21745 ac_cv_func___fpu_control
=no
21748 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21749 conftest
$ac_exeext conftest.
$ac_ext
21751 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21752 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21753 if test $ac_cv_func___fpu_control = yes; then
21757 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21758 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21759 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21762 ac_check_lib_save_LIBS
=$LIBS
21763 LIBS
="-lieee $LIBS"
21764 cat >conftest.
$ac_ext <<_ACEOF
21767 cat confdefs.h
>>conftest.
$ac_ext
21768 cat >>conftest.
$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21771 /* Override any GCC internal prototype to avoid an error.
21772 Use char because int might match the return type of a GCC
21773 builtin and then its argument prototype would still apply. */
21777 char __fpu_control ();
21781 return __fpu_control ();
21786 rm -f conftest.
$ac_objext conftest
$ac_exeext
21787 if { (ac_try
="$ac_link"
21788 case "(($ac_try" in
21789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_link") 2>conftest.er1
21795 grep -v '^ *+' conftest.er1 >conftest.err
21797 cat conftest.err >&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && {
21800 test -z "$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 } && test -s conftest$ac_exeext &&
21803 $as_test_x conftest$ac_exeext; then
21804 ac_cv_lib_ieee___fpu_control=yes
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_cv_lib_ieee___fpu_control=no
21812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21813 conftest$ac_exeext conftest.$ac_ext
21814 LIBS=$ac_check_lib_save_LIBS
21816 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21817 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21818 if test $ac_cv_lib_ieee___fpu_control = yes; then
21819 cat >>confdefs.h <<_ACEOF
21820 #define HAVE_LIBIEEE 1
21823 LIBS="-lieee $LIBS"
21831 # Check for --with-fpectl
21832 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21833 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21835 # Check whether --with-fpectl was given.
21836 if test "${with_fpectl+set}" = set; then
21837 withval=$with_fpectl;
21838 if test "$withval" != no
21841 cat >>confdefs.h <<\_ACEOF
21842 #define WANT_SIGFPE_HANDLER 1
21845 { echo "$as_me:$LINENO: result: yes" >&5
21846 echo "${ECHO_T}yes" >&6; }
21847 else { echo "$as_me:$LINENO: result: no" >&5
21848 echo "${ECHO_T}no" >&6; }
21851 { echo "$as_me:$LINENO: result: no" >&5
21852 echo "${ECHO_T}no" >&6; }
21856 # check for --with-libm=...
21858 case $ac_sys_system in
21863 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21864 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21866 # Check whether --with-libm was given.
21867 if test "${with_libm+set}" = set; then
21868 withval=$with_libm;
21869 if test "$withval" = no
21871 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21872 echo "${ECHO_T}force LIBM empty" >&6; }
21873 elif test "$withval" != yes
21875 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21876 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21877 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21878 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21879 { (exit 1); exit 1; }; }
21882 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21883 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21887 # check for --with-libc=...
21889 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21890 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21892 # Check whether --with-libc was given.
21893 if test "${with_libc+set}" = set; then
21894 withval=$with_libc;
21895 if test "$withval" = no
21897 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21898 echo "${ECHO_T}force LIBC empty" >&6; }
21899 elif test "$withval" != yes
21901 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21902 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21903 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21904 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21905 { (exit 1); exit 1; }; }
21908 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21909 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21913 # ************************************
21914 # * Check for mathematical functions *
21915 # ************************************
21920 # Detect whether system arithmetic is subject to x87-style double
21921 # rounding issues. The result of this test has little meaning on non
21922 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21923 # mode is round-to-nearest and double rounding issues are present, and
21924 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21925 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21926 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21927 if test "${ac_cv_x87_double_rounding+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21931 if test "$cross_compiling" = yes; then
21932 ac_cv_x87_double_rounding=no
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21941 #include <stdlib.h>
21944 volatile double x, y, z;
21945 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21946 x = 0.99999999999999989; /* 1-2**-53 */
21950 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21956 /* both tests show evidence of double rounding */
21961 rm -f conftest$ac_exeext
21962 if { (ac_try="$ac_link"
21963 case "(($ac_try" in
21964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21965 *) ac_try_echo
=$ac_try;;
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_link") 2>&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21972 { (case "(($ac_try" in
21973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_try") 2>&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); }; }; then
21981 ac_cv_x87_double_rounding=no
21983 echo "$as_me: program exited with status $ac_status" >&5
21984 echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21987 ( exit $ac_status )
21988 ac_cv_x87_double_rounding=yes
21990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21996 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21997 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21998 if test "$ac_cv_x87_double_rounding" = yes
22001 cat >>confdefs.h <<\_ACEOF
22002 #define X87_DOUBLE_ROUNDING 1
22007 # Multiprocessing check for broken sem_getvalue
22008 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22009 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22010 if test "$cross_compiling" = yes; then
22011 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22012 See \`config.log
' for more details." >&5
22013 echo "$as_me: error: cannot run test program while cross compiling
22014 See \`config.log' for more details.
" >&2;}
22015 { (exit 1); exit 1; }; }
22017 cat >conftest.$ac_ext <<_ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h. */
22024 #include <unistd.h>
22027 #include <semaphore.h>
22028 #include <sys/stat.h>
22031 sem_t *a = sem_open("/autoconf
", O_CREAT, S_IRUSR|S_IWUSR, 0);
22035 perror("sem_open
");
22039 res = sem_getvalue(a, &count);
22041 return res==-1 ? 1 : 0;
22046 rm -f conftest$ac_exeext
22047 if { (ac_try="$ac_link"
22048 case "(($ac_try" in
22049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22050 *) ac_try_echo=$ac_try;;
22052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22053 (eval "$ac_link") 2>&5
22055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22057 { (case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_try") 2>&5
22064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22065 (exit $ac_status); }; }; then
22066 { echo "$as_me:$LINENO: result
: no
" >&5
22067 echo "${ECHO_T}no
" >&6; }
22069 echo "$as_me: program exited with status
$ac_status" >&5
22070 echo "$as_me: failed program was
:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 ( exit $ac_status )
22074 { echo "$as_me:$LINENO: result
: yes" >&5
22075 echo "${ECHO_T}yes" >&6; }
22077 cat >>confdefs.h <<\_ACEOF
22078 #define HAVE_BROKEN_SEM_GETVALUE 1
22083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22088 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22089 # -0. on some architectures.
22090 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero
" >&5
22091 echo $ECHO_N "checking whether tanh preserves the sign of zero...
$ECHO_C" >&6; }
22092 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22093 echo $ECHO_N "(cached
) $ECHO_C" >&6
22096 if test "$cross_compiling" = yes; then
22097 ac_cv_tanh_preserves_zero_sign=no
22099 cat >conftest.$ac_ext <<_ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22107 #include <stdlib.h>
22109 /* return 0 if either negative zeros don't exist
22110 on this platform or if negative zeros exist
22111 and tanh(-0.) == -0. */
22112 if (atan2(0., -1.) == atan2(-0., -1.) ||
22113 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22118 rm -f conftest$ac_exeext
22119 if { (ac_try="$ac_link"
22120 case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_link") 2>&5
22127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22129 { (case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_try") 2>&5
22136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22137 (exit $ac_status); }; }; then
22138 ac_cv_tanh_preserves_zero_sign=yes
22140 echo "$as_me: program exited with status
$ac_status" >&5
22141 echo "$as_me: failed program was
:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22144 ( exit $ac_status )
22145 ac_cv_tanh_preserves_zero_sign=no
22147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22153 { echo "$as_me:$LINENO: result
: $ac_cv_tanh_preserves_zero_sign" >&5
22154 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22155 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22158 cat >>confdefs.h <<\_ACEOF
22159 #define TANH_PRESERVES_ZERO_SIGN 1
22172 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
22174 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22175 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22176 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22177 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22178 echo $ECHO_N "(cached
) $ECHO_C" >&6
22180 cat >conftest.$ac_ext <<_ACEOF
22183 cat confdefs.h >>conftest.$ac_ext
22184 cat >>conftest.$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22188 #define $ac_func innocuous_$ac_func
22190 /* System header to define __stub macros and hopefully few prototypes,
22191 which can conflict with char $ac_func (); below.
22192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22193 <limits.h> exists even on freestanding compilers. */
22196 # include <limits.h>
22198 # include <assert.h>
22203 /* Override any GCC internal prototype to avoid an error.
22204 Use char because int might match the return type of a GCC
22205 builtin and then its argument prototype would still apply. */
22210 /* The GNU C library defines this for functions which it implements
22211 to always fail with ENOSYS. Some functions are actually named
22212 something starting with __ and the normal name is an alias. */
22213 #if defined __stub_$ac_func || defined __stub___$ac_func
22220 return $ac_func ();
22225 rm -f conftest.$ac_objext conftest$ac_exeext
22226 if { (ac_try="$ac_link"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_link") 2>conftest.er1
22234 grep -v '^ *+' conftest.er1 >conftest.err
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext &&
22242 $as_test_x conftest$ac_exeext; then
22243 eval "$as_ac_var=yes"
22245 echo "$as_me: failed program was
:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22248 eval "$as_ac_var=no
"
22251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22252 conftest$ac_exeext conftest.$ac_ext
22254 ac_res=`eval echo '${'$as_ac_var'}'`
22255 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22256 echo "${ECHO_T}$ac_res" >&6; }
22257 if test `eval echo '${'$as_ac_var'}'` = yes; then
22258 cat >>confdefs.h <<_ACEOF
22259 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22265 { echo "$as_me:$LINENO: checking whether isinf is declared
" >&5
22266 echo $ECHO_N "checking whether isinf is declared...
$ECHO_C" >&6; }
22267 if test "${ac_cv_have_decl_isinf+set}" = set; then
22268 echo $ECHO_N "(cached
) $ECHO_C" >&6
22270 cat >conftest.$ac_ext <<_ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22289 rm -f conftest.$ac_objext
22290 if { (ac_try="$ac_compile"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_compile") 2>conftest.er1
22298 grep -v '^ *+' conftest.er1 >conftest.err
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest.$ac_objext; then
22306 ac_cv_have_decl_isinf=yes
22308 echo "$as_me: failed program was
:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 ac_cv_have_decl_isinf=no
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_isinf" >&5
22317 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22318 if test $ac_cv_have_decl_isinf = yes; then
22320 cat >>confdefs.h <<_ACEOF
22321 #define HAVE_DECL_ISINF 1
22326 cat >>confdefs.h <<_ACEOF
22327 #define HAVE_DECL_ISINF 0
22332 { echo "$as_me:$LINENO: checking whether isnan is declared
" >&5
22333 echo $ECHO_N "checking whether isnan is declared...
$ECHO_C" >&6; }
22334 if test "${ac_cv_have_decl_isnan+set}" = set; then
22335 echo $ECHO_N "(cached
) $ECHO_C" >&6
22337 cat >conftest.$ac_ext <<_ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22356 rm -f conftest.$ac_objext
22357 if { (ac_try="$ac_compile"
22358 case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_compile") 2>conftest.er1
22365 grep -v '^ *+' conftest.er1 >conftest.err
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22369 (exit $ac_status); } && {
22370 test -z "$ac_c_werror_flag" ||
22371 test ! -s conftest.err
22372 } && test -s conftest.$ac_objext; then
22373 ac_cv_have_decl_isnan=yes
22375 echo "$as_me: failed program was
:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22378 ac_cv_have_decl_isnan=no
22381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22383 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_isnan" >&5
22384 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22385 if test $ac_cv_have_decl_isnan = yes; then
22387 cat >>confdefs.h <<_ACEOF
22388 #define HAVE_DECL_ISNAN 1
22393 cat >>confdefs.h <<_ACEOF
22394 #define HAVE_DECL_ISNAN 0
22399 { echo "$as_me:$LINENO: checking whether isfinite is declared
" >&5
22400 echo $ECHO_N "checking whether isfinite is declared...
$ECHO_C" >&6; }
22401 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22402 echo $ECHO_N "(cached
) $ECHO_C" >&6
22404 cat >conftest.$ac_ext <<_ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22423 rm -f conftest.$ac_objext
22424 if { (ac_try="$ac_compile"
22425 case "(($ac_try" in
22426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22427 *) ac_try_echo=$ac_try;;
22429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22430 (eval "$ac_compile") 2>conftest.er1
22432 grep -v '^ *+' conftest.er1 >conftest.err
22434 cat conftest.err >&5
22435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22436 (exit $ac_status); } && {
22437 test -z "$ac_c_werror_flag" ||
22438 test ! -s conftest.err
22439 } && test -s conftest.$ac_objext; then
22440 ac_cv_have_decl_isfinite=yes
22442 echo "$as_me: failed program was
:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22445 ac_cv_have_decl_isfinite=no
22448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22450 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_isfinite" >&5
22451 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22452 if test $ac_cv_have_decl_isfinite = yes; then
22454 cat >>confdefs.h <<_ACEOF
22455 #define HAVE_DECL_ISFINITE 1
22460 cat >>confdefs.h <<_ACEOF
22461 #define HAVE_DECL_ISFINITE 0
22471 # determine what size digit to use for Python's longs
22472 { echo "$as_me:$LINENO: checking digit size
for Python
's longs" >&5
22473 echo $ECHO_N "checking digit size for Python's longs...
$ECHO_C" >&6; }
22474 # Check whether --enable-big-digits was given.
22475 if test "${enable_big_digits+set}" = set; then
22476 enableval=$enable_big_digits; case $enable_big_digits in
22478 enable_big_digits=30 ;;
22480 enable_big_digits=15 ;;
22484 { { echo "$as_me:$LINENO: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&5
22485 echo "$as_me: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&2;}
22486 { (exit 1); exit 1; }; } ;;
22488 { echo "$as_me:$LINENO: result
: $enable_big_digits" >&5
22489 echo "${ECHO_T}$enable_big_digits" >&6; }
22491 cat >>confdefs.h <<_ACEOF
22492 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22497 { echo "$as_me:$LINENO: result
: no value specified
" >&5
22498 echo "${ECHO_T}no value specified
" >&6; }
22502 # check for wchar.h
22503 if test "${ac_cv_header_wchar_h+set}" = set; then
22504 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22505 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22506 if test "${ac_cv_header_wchar_h+set}" = set; then
22507 echo $ECHO_N "(cached
) $ECHO_C" >&6
22509 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22510 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22512 # Is the header compilable?
22513 { echo "$as_me:$LINENO: checking wchar.h usability
" >&5
22514 echo $ECHO_N "checking wchar.h usability...
$ECHO_C" >&6; }
22515 cat >conftest.$ac_ext <<_ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 $ac_includes_default
22524 rm -f conftest.$ac_objext
22525 if { (ac_try="$ac_compile"
22526 case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_compile") 2>conftest.er1
22533 grep -v '^ *+' conftest.er1 >conftest.err
22535 cat conftest.err >&5
22536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22537 (exit $ac_status); } && {
22538 test -z "$ac_c_werror_flag" ||
22539 test ! -s conftest.err
22540 } && test -s conftest.$ac_objext; then
22541 ac_header_compiler=yes
22543 echo "$as_me: failed program was
:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22546 ac_header_compiler=no
22549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22551 echo "${ECHO_T}$ac_header_compiler" >&6; }
22553 # Is the header present?
22554 { echo "$as_me:$LINENO: checking wchar.h presence
" >&5
22555 echo $ECHO_N "checking wchar.h presence...
$ECHO_C" >&6; }
22556 cat >conftest.$ac_ext <<_ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h. */
22564 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22565 case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22569 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22570 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22572 grep -v '^ *+' conftest.er1 >conftest.err
22574 cat conftest.err >&5
22575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22576 (exit $ac_status); } >/dev/null && {
22577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22578 test ! -s conftest.err
22580 ac_header_preproc=yes
22582 echo "$as_me: failed program was
:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22585 ac_header_preproc=no
22588 rm -f conftest.err conftest.$ac_ext
22589 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22590 echo "${ECHO_T}$ac_header_preproc" >&6; }
22592 # So? What about this header?
22593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22595 { echo "$as_me:$LINENO: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22596 echo "$as_me: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22597 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the compiler
's result" >&5
22598 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result
" >&2;}
22599 ac_header_preproc=yes
22602 { echo "$as_me:$LINENO: WARNING
: wchar.h
: present but cannot be compiled
" >&5
22603 echo "$as_me: WARNING
: wchar.h
: present but cannot be compiled
" >&2;}
22604 { echo "$as_me:$LINENO: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&5
22605 echo "$as_me: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&2;}
22606 { echo "$as_me:$LINENO: WARNING
: wchar.h
: see the Autoconf documentation
" >&5
22607 echo "$as_me: WARNING
: wchar.h
: see the Autoconf documentation
" >&2;}
22608 { echo "$as_me:$LINENO: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22609 echo "$as_me: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22610 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&5
22611 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result
" >&2;}
22612 { echo "$as_me:$LINENO: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&5
22613 echo "$as_me: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&2;}
22615 ## ------------------------------------------------ ##
22616 ## Report this to http://www.python.org/python-bugs ##
22617 ## ------------------------------------------------ ##
22619 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22622 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22623 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22624 if test "${ac_cv_header_wchar_h+set}" = set; then
22625 echo $ECHO_N "(cached
) $ECHO_C" >&6
22627 ac_cv_header_wchar_h=$ac_header_preproc
22629 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22630 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22633 if test $ac_cv_header_wchar_h = yes; then
22636 cat >>confdefs.h <<\_ACEOF
22637 #define HAVE_WCHAR_H 1
22649 # determine wchar_t size
22650 if test "$wchar_h" = yes
22652 { echo "$as_me:$LINENO: checking
for wchar_t
" >&5
22653 echo $ECHO_N "checking
for wchar_t...
$ECHO_C" >&6; }
22654 if test "${ac_cv_type_wchar_t+set}" = set; then
22655 echo $ECHO_N "(cached
) $ECHO_C" >&6
22657 cat >conftest.$ac_ext <<_ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22665 typedef wchar_t ac__type_new_;
22669 if ((ac__type_new_ *) 0)
22671 if (sizeof (ac__type_new_))
22677 rm -f conftest.$ac_objext
22678 if { (ac_try="$ac_compile"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22684 (eval "$ac_compile") 2>conftest.er1
22686 grep -v '^ *+' conftest.er1 >conftest.err
22688 cat conftest.err >&5
22689 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22690 (exit $ac_status); } && {
22691 test -z "$ac_c_werror_flag" ||
22692 test ! -s conftest.err
22693 } && test -s conftest.$ac_objext; then
22694 ac_cv_type_wchar_t=yes
22696 echo "$as_me: failed program was
:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22699 ac_cv_type_wchar_t=no
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 { echo "$as_me:$LINENO: result
: $ac_cv_type_wchar_t" >&5
22705 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22707 # The cast to long int works around a bug in the HP C Compiler
22708 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22709 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22710 # This bug is HP SR number 8606223364.
22711 { echo "$as_me:$LINENO: checking size of wchar_t
" >&5
22712 echo $ECHO_N "checking size of wchar_t...
$ECHO_C" >&6; }
22713 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22714 echo $ECHO_N "(cached
) $ECHO_C" >&6
22716 if test "$cross_compiling" = yes; then
22717 # Depending upon the size, compute the lo and hi bounds.
22718 cat >conftest.$ac_ext <<_ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22726 typedef wchar_t ac__type_sizeof_;
22730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22746 grep -v '^ *+' conftest.er1 >conftest.err
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22756 cat >conftest.$ac_ext <<_ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h. */
22764 typedef wchar_t ac__type_sizeof_;
22768 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22775 rm -f conftest.$ac_objext
22776 if { (ac_try="$ac_compile"
22777 case "(($ac_try" in
22778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22779 *) ac_try_echo=$ac_try;;
22781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22782 (eval "$ac_compile") 2>conftest.er1
22784 grep -v '^ *+' conftest.er1 >conftest.err
22786 cat conftest.err >&5
22787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22788 (exit $ac_status); } && {
22789 test -z "$ac_c_werror_flag" ||
22790 test ! -s conftest.err
22791 } && test -s conftest.$ac_objext; then
22792 ac_hi=$ac_mid; break
22794 echo "$as_me: failed program was
:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22797 ac_lo=`expr $ac_mid + 1`
22798 if test $ac_lo -le $ac_mid; then
22802 ac_mid=`expr 2 '*' $ac_mid + 1`
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22808 echo "$as_me: failed program was
:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22811 cat >conftest.$ac_ext <<_ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22819 typedef wchar_t ac__type_sizeof_;
22823 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22830 rm -f conftest.$ac_objext
22831 if { (ac_try="$ac_compile"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22839 grep -v '^ *+' conftest.er1 >conftest.err
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest.$ac_objext; then
22849 cat >conftest.$ac_ext <<_ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22857 typedef wchar_t ac__type_sizeof_;
22861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22868 rm -f conftest.$ac_objext
22869 if { (ac_try="$ac_compile"
22870 case "(($ac_try" in
22871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872 *) ac_try_echo=$ac_try;;
22874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22875 (eval "$ac_compile") 2>conftest.er1
22877 grep -v '^ *+' conftest.er1 >conftest.err
22879 cat conftest.err >&5
22880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22881 (exit $ac_status); } && {
22882 test -z "$ac_c_werror_flag" ||
22883 test ! -s conftest.err
22884 } && test -s conftest.$ac_objext; then
22885 ac_lo=$ac_mid; break
22887 echo "$as_me: failed program was
:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22890 ac_hi=`expr '(' $ac_mid ')' - 1`
22891 if test $ac_mid -le $ac_hi; then
22895 ac_mid=`expr 2 '*' $ac_mid`
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 echo "$as_me: failed program was
:" >&5
22902 sed 's/^/| /' conftest.$ac_ext >&5
22907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22911 # Binary search between lo and hi bounds.
22912 while test "x
$ac_lo" != "x
$ac_hi"; do
22913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22914 cat >conftest.$ac_ext <<_ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22922 typedef wchar_t ac__type_sizeof_;
22926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22933 rm -f conftest.$ac_objext
22934 if { (ac_try="$ac_compile"
22935 case "(($ac_try" in
22936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_compile") 2>conftest.er1
22942 grep -v '^ *+' conftest.er1 >conftest.err
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22946 (exit $ac_status); } && {
22947 test -z "$ac_c_werror_flag" ||
22948 test ! -s conftest.err
22949 } && test -s conftest.$ac_objext; then
22952 echo "$as_me: failed program was
:" >&5
22953 sed 's/^/| /' conftest.$ac_ext >&5
22955 ac_lo=`expr '(' $ac_mid ')' + 1`
22958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22961 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22962 '') if test "$ac_cv_type_wchar_t" = yes; then
22963 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
22964 See \
`config.log' for more details." >&5
22965 echo "$as_me: error: cannot compute sizeof (wchar_t)
22966 See \`config.log
' for more details." >&2;}
22967 { (exit 77); exit 77; }; }
22969 ac_cv_sizeof_wchar_t=0
22973 cat >conftest.$ac_ext <<_ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22981 typedef wchar_t ac__type_sizeof_;
22982 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22983 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22985 #include <stdlib.h>
22990 FILE *f = fopen ("conftest.val", "w");
22993 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22995 long int i = longval ();
22996 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22998 fprintf (f, "%ld\n", i);
23002 unsigned long int i = ulongval ();
23003 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23005 fprintf (f, "%lu\n", i);
23007 return ferror (f) || fclose (f) != 0;
23013 rm -f conftest$ac_exeext
23014 if { (ac_try="$ac_link"
23015 case "(($ac_try" in
23016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017 *) ac_try_echo=$ac_try;;
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020 (eval "$ac_link") 2>&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23024 { (case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029 (eval "$ac_try") 2>&5
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 ac_cv_sizeof_wchar_t=`cat conftest.val`
23035 echo "$as_me: program exited with status $ac_status" >&5
23036 echo "$as_me: failed program was:" >&5
23037 sed 's
/^
/|
/' conftest.$ac_ext >&5
23039 ( exit $ac_status )
23040 if test "$ac_cv_type_wchar_t" = yes; then
23041 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23042 See \`config.log' for more details.
" >&5
23043 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
23044 See \
`config.log' for more details." >&2;}
23045 { (exit 77); exit 77; }; }
23047 ac_cv_sizeof_wchar_t=0
23050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23054 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23055 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23059 cat >>confdefs.h <<_ACEOF
23060 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23066 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23067 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23069 cat >conftest.$ac_ext <<_ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h. */
23077 #if TCL_UTF_MAX != 6
23078 # error "NOT UCS4_TCL"
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23092 *) ac_try_echo
=$ac_try;;
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_compile") 2>conftest.er1
23097 grep -v '^ *+' conftest.er1
>conftest.err
23099 cat conftest.err
>&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } && {
23102 test -z "$ac_c_werror_flag" ||
23103 test ! -s conftest.err
23104 } && test -s conftest.
$ac_objext; then
23107 cat >>confdefs.h
<<\_ACEOF
23108 #define HAVE_UCS4_TCL 1
23114 echo "$as_me: failed program was:" >&5
23115 sed 's/^/| /' conftest.
$ac_ext >&5
23120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23121 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23122 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23124 # check whether wchar_t is signed or not
23125 if test "$wchar_h" = yes
23127 # check whether wchar_t is signed or not
23128 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23129 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23130 if test "${ac_cv_wchar_t_signed+set}" = set; then
23131 echo $ECHO_N "(cached) $ECHO_C" >&6
23134 if test "$cross_compiling" = yes; then
23135 ac_cv_wchar_t_signed
=yes
23137 cat >conftest.
$ac_ext <<_ACEOF
23140 cat confdefs.h
>>conftest.
$ac_ext
23141 cat >>conftest.
$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23147 /* Success: exit code 0 */
23148 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23152 rm -f conftest
$ac_exeext
23153 if { (ac_try
="$ac_link"
23154 case "(($ac_try" in
23155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23156 *) ac_try_echo=$ac_try;;
23158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23159 (eval "$ac_link") 2>&5
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23163 { (case "(($ac_try" in
23164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23165 *) ac_try_echo
=$ac_try;;
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168 (eval "$ac_try") 2>&5
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); }; }; then
23172 ac_cv_wchar_t_signed
=yes
23174 echo "$as_me: program exited with status $ac_status" >&5
23175 echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.
$ac_ext >&5
23178 ( exit $ac_status )
23179 ac_cv_wchar_t_signed
=no
23181 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23187 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23188 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23191 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23192 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23193 # Check whether --enable-unicode was given.
23194 if test "${enable_unicode+set}" = set; then
23195 enableval
=$enable_unicode;
23201 if test $enable_unicode = yes
23203 # Without any arguments, Py_UNICODE defaults to two-byte mode
23204 case "$have_ucs4_tcl" in
23205 yes) enable_unicode
="ucs4"
23207 *) enable_unicode
="ucs2"
23214 case "$enable_unicode" in
23215 ucs2
) unicode_size
="2"
23216 cat >>confdefs.h
<<\_ACEOF
23217 #define Py_UNICODE_SIZE 2
23221 ucs4
) unicode_size
="4"
23222 cat >>confdefs.h
<<\_ACEOF
23223 #define Py_UNICODE_SIZE 4
23233 if test "$enable_unicode" = "no"
23236 { echo "$as_me:$LINENO: result: not used" >&5
23237 echo "${ECHO_T}not used" >&6; }
23239 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
23241 cat >>confdefs.h
<<\_ACEOF
23242 #define Py_USING_UNICODE 1
23246 # wchar_t is only usable if it maps to an unsigned type
23247 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23248 -a "$ac_cv_wchar_t_signed" = "no"
23250 PY_UNICODE_TYPE
="wchar_t"
23252 cat >>confdefs.h
<<\_ACEOF
23253 #define HAVE_USABLE_WCHAR_T 1
23256 cat >>confdefs.h
<<\_ACEOF
23257 #define PY_UNICODE_TYPE wchar_t
23260 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23262 PY_UNICODE_TYPE
="unsigned short"
23263 cat >>confdefs.h
<<\_ACEOF
23264 #define PY_UNICODE_TYPE unsigned short
23267 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23269 PY_UNICODE_TYPE
="unsigned long"
23270 cat >>confdefs.h
<<\_ACEOF
23271 #define PY_UNICODE_TYPE unsigned long
23275 PY_UNICODE_TYPE
="no type found"
23277 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23278 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23281 # check for endianness
23282 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23283 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23284 if test "${ac_cv_c_bigendian+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23287 # See if sys/param.h defines the BYTE_ORDER macro.
23288 cat >conftest.
$ac_ext <<_ACEOF
23291 cat confdefs.h
>>conftest.
$ac_ext
23292 cat >>conftest.
$ac_ext <<_ACEOF
23293 /* end confdefs.h. */
23294 #include <sys/types.h>
23295 #include <sys/param.h>
23300 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23301 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23302 bogus endian macros
23309 rm -f conftest.
$ac_objext
23310 if { (ac_try
="$ac_compile"
23311 case "(($ac_try" in
23312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23313 *) ac_try_echo=$ac_try;;
23315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316 (eval "$ac_compile") 2>conftest.er1
23318 grep -v '^ *+' conftest.er1 >conftest.err
23320 cat conftest.err >&5
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); } && {
23323 test -z "$ac_c_werror_flag" ||
23324 test ! -s conftest.err
23325 } && test -s conftest.$ac_objext; then
23326 # It does; now see whether it defined to BIG_ENDIAN or not.
23327 cat >conftest.$ac_ext <<_ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 #include <sys/types.h>
23334 #include <sys/param.h>
23339 #if BYTE_ORDER != BIG_ENDIAN
23347 rm -f conftest.$ac_objext
23348 if { (ac_try="$ac_compile"
23349 case "(($ac_try" in
23350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23351 *) ac_try_echo
=$ac_try;;
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_compile") 2>conftest.er1
23356 grep -v '^ *+' conftest.er1
>conftest.err
23358 cat conftest.err
>&5
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); } && {
23361 test -z "$ac_c_werror_flag" ||
23362 test ! -s conftest.err
23363 } && test -s conftest.
$ac_objext; then
23364 ac_cv_c_bigendian
=yes
23366 echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.
$ac_ext >&5
23369 ac_cv_c_bigendian
=no
23372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23374 echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.
$ac_ext >&5
23377 # It does not; compile a test program.
23378 if test "$cross_compiling" = yes; then
23379 # try to guess the endianness by grepping values into an object file
23380 ac_cv_c_bigendian
=unknown
23381 cat >conftest.
$ac_ext <<_ACEOF
23384 cat confdefs.h
>>conftest.
$ac_ext
23385 cat >>conftest.
$ac_ext <<_ACEOF
23386 /* end confdefs.h. */
23387 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23388 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23389 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23390 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23391 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23392 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23396 _ascii (); _ebcdic ();
23401 rm -f conftest.
$ac_objext
23402 if { (ac_try
="$ac_compile"
23403 case "(($ac_try" in
23404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23405 *) ac_try_echo=$ac_try;;
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23419 ac_cv_c_bigendian=yes
23421 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23422 if test "$ac_cv_c_bigendian" = unknown; then
23423 ac_cv_c_bigendian=no
23425 # finding both strings is unlikely to happen, but who knows?
23426 ac_cv_c_bigendian=unknown
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 $ac_includes_default
23449 /* Are we little or big endian? From Harbison&Steele. */
23453 char c[sizeof (long int)];
23456 return u.c[sizeof (long int) - 1] == 1;
23462 rm -f conftest$ac_exeext
23463 if { (ac_try="$ac_link"
23464 case "(($ac_try" in
23465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23466 *) ac_try_echo
=$ac_try;;
23468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469 (eval "$ac_link") 2>&5
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23473 { (case "(($ac_try" in
23474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23475 *) ac_try_echo=$ac_try;;
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478 (eval "$ac_try") 2>&5
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 ac_cv_c_bigendian=no
23484 echo "$as_me: program exited with status $ac_status" >&5
23485 echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23488 ( exit $ac_status )
23489 ac_cv_c_bigendian=yes
23491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23500 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23501 case $ac_cv_c_bigendian in
23504 cat >>confdefs.h <<\_ACEOF
23505 #define WORDS_BIGENDIAN 1
23511 { { echo "$as_me:$LINENO: error: unknown endianness
23512 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23513 echo "$as_me: error: unknown endianness
23514 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23515 { (exit 1); exit 1; }; } ;;
23519 # Check whether right shifting a negative integer extends the sign bit
23520 # or fills with zeros (like the Cray J90, according to Tim Peters).
23521 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23522 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23523 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23524 echo $ECHO_N "(cached) $ECHO_C" >&6
23527 if test "$cross_compiling" = yes; then
23528 ac_cv_rshift_extends_sign=yes
23530 cat >conftest.$ac_ext <<_ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h. */
23539 exit(((-1)>>3 == -1) ? 0 : 1);
23543 rm -f conftest$ac_exeext
23544 if { (ac_try="$ac_link"
23545 case "(($ac_try" in
23546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23547 *) ac_try_echo
=$ac_try;;
23549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23550 (eval "$ac_link") 2>&5
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23554 { (case "(($ac_try" in
23555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23559 (eval "$ac_try") 2>&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; }; then
23563 ac_cv_rshift_extends_sign=yes
23565 echo "$as_me: program exited with status $ac_status" >&5
23566 echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 ( exit $ac_status )
23570 ac_cv_rshift_extends_sign=no
23572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23578 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23579 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23580 if test "$ac_cv_rshift_extends_sign" = no
23583 cat >>confdefs.h <<\_ACEOF
23584 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23589 # check for getc_unlocked and related locking functions
23590 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23591 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23592 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23593 echo $ECHO_N "(cached) $ECHO_C" >&6
23596 cat >conftest.$ac_ext <<_ACEOF
23599 cat confdefs.h >>conftest.$ac_ext
23600 cat >>conftest.$ac_ext <<_ACEOF
23601 /* end confdefs.h. */
23607 FILE *f = fopen("/dev/null", "r");
23616 rm -f conftest.$ac_objext conftest$ac_exeext
23617 if { (ac_try="$ac_link"
23618 case "(($ac_try" in
23619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23620 *) ac_try_echo
=$ac_try;;
23622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_link") 2>conftest.er1
23625 grep -v '^ *+' conftest.er1
>conftest.err
23627 cat conftest.err
>&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } && {
23630 test -z "$ac_c_werror_flag" ||
23631 test ! -s conftest.err
23632 } && test -s conftest
$ac_exeext &&
23633 $as_test_x conftest
$ac_exeext; then
23634 ac_cv_have_getc_unlocked
=yes
23636 echo "$as_me: failed program was:" >&5
23637 sed 's/^/| /' conftest.
$ac_ext >&5
23639 ac_cv_have_getc_unlocked
=no
23642 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23643 conftest
$ac_exeext conftest.
$ac_ext
23646 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23647 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23648 if test "$ac_cv_have_getc_unlocked" = yes
23651 cat >>confdefs.h
<<\_ACEOF
23652 #define HAVE_GETC_UNLOCKED 1
23657 # check where readline lives
23658 # save the value of LIBS so we don't actually link Python with readline
23659 LIBS_no_readline
=$LIBS
23661 # On some systems we need to link readline to a termcap compatible
23662 # library. NOTE: Keep the precedence of listed libraries synchronised
23664 py_cv_lib_readline
=no
23665 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23666 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23667 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
23668 if test -z "$py_libtermcap"; then
23669 READLINE_LIBS
="-lreadline"
23671 READLINE_LIBS
="-lreadline -l$py_libtermcap"
23673 LIBS
="$READLINE_LIBS $LIBS_no_readline"
23674 cat >conftest.
$ac_ext <<_ACEOF
23677 cat confdefs.h
>>conftest.
$ac_ext
23678 cat >>conftest.
$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23681 /* Override any GCC internal prototype to avoid an error.
23682 Use char because int might match the return type of a GCC
23683 builtin and then its argument prototype would still apply. */
23691 return readline ();
23696 rm -f conftest.
$ac_objext conftest
$ac_exeext
23697 if { (ac_try
="$ac_link"
23698 case "(($ac_try" in
23699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23700 *) ac_try_echo=$ac_try;;
23702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23703 (eval "$ac_link") 2>conftest.er1
23705 grep -v '^ *+' conftest.er1 >conftest.err
23707 cat conftest.err >&5
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); } && {
23710 test -z "$ac_c_werror_flag" ||
23711 test ! -s conftest.err
23712 } && test -s conftest$ac_exeext &&
23713 $as_test_x conftest$ac_exeext; then
23714 py_cv_lib_readline=yes
23716 echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23723 conftest$ac_exeext conftest.$ac_ext
23724 if test $py_cv_lib_readline = yes; then
23728 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23729 #AC_SUBST([READLINE_LIBS])
23730 if test $py_cv_lib_readline = no; then
23731 { echo "$as_me:$LINENO: result: none" >&5
23732 echo "${ECHO_T}none" >&6; }
23734 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23735 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23737 cat >>confdefs.h <<\_ACEOF
23738 #define HAVE_LIBREADLINE 1
23743 # check for readline 2.1
23744 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23745 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23746 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23747 echo $ECHO_N "(cached) $ECHO_C" >&6
23749 ac_check_lib_save_LIBS=$LIBS
23750 LIBS="-lreadline $READLINE_LIBS $LIBS"
23751 cat >conftest.$ac_ext <<_ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23758 /* Override any GCC internal prototype to avoid an error.
23759 Use char because int might match the return type of a GCC
23760 builtin and then its argument prototype would still apply. */
23764 char rl_callback_handler_install ();
23768 return rl_callback_handler_install ();
23773 rm -f conftest.$ac_objext conftest$ac_exeext
23774 if { (ac_try="$ac_link"
23775 case "(($ac_try" in
23776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23777 *) ac_try_echo
=$ac_try;;
23779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23780 (eval "$ac_link") 2>conftest.er1
23782 grep -v '^ *+' conftest.er1
>conftest.err
23784 cat conftest.err
>&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } && {
23787 test -z "$ac_c_werror_flag" ||
23788 test ! -s conftest.err
23789 } && test -s conftest
$ac_exeext &&
23790 $as_test_x conftest
$ac_exeext; then
23791 ac_cv_lib_readline_rl_callback_handler_install
=yes
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.
$ac_ext >&5
23796 ac_cv_lib_readline_rl_callback_handler_install
=no
23799 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23800 conftest
$ac_exeext conftest.
$ac_ext
23801 LIBS
=$ac_check_lib_save_LIBS
23803 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23804 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23805 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23807 cat >>confdefs.h
<<\_ACEOF
23808 #define HAVE_RL_CALLBACK 1
23814 # check for readline 2.2
23815 cat >conftest.
$ac_ext <<_ACEOF
23818 cat confdefs.h
>>conftest.
$ac_ext
23819 cat >>conftest.
$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23821 #include <readline/readline.h>
23823 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23824 case "(($ac_try" in
23825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23826 *) ac_try_echo=$ac_try;;
23828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23831 grep -v '^ *+' conftest.er1 >conftest.err
23833 cat conftest.err >&5
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); } >/dev/null && {
23836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23837 test ! -s conftest.err
23841 echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23847 rm -f conftest.err conftest.$ac_ext
23848 if test $have_readline = yes
23850 cat >conftest.$ac_ext <<_ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h. */
23856 #include <readline/readline.h>
23859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23860 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23862 cat >>confdefs.h <<\_ACEOF
23863 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23871 # check for readline 4.0
23872 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23873 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23874 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23875 echo $ECHO_N "(cached) $ECHO_C" >&6
23877 ac_check_lib_save_LIBS=$LIBS
23878 LIBS="-lreadline $READLINE_LIBS $LIBS"
23879 cat >conftest.$ac_ext <<_ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23886 /* Override any GCC internal prototype to avoid an error.
23887 Use char because int might match the return type of a GCC
23888 builtin and then its argument prototype would still apply. */
23892 char rl_pre_input_hook ();
23896 return rl_pre_input_hook ();
23901 rm -f conftest.$ac_objext conftest$ac_exeext
23902 if { (ac_try="$ac_link"
23903 case "(($ac_try" in
23904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23905 *) ac_try_echo
=$ac_try;;
23907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23908 (eval "$ac_link") 2>conftest.er1
23910 grep -v '^ *+' conftest.er1
>conftest.err
23912 cat conftest.err
>&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && {
23915 test -z "$ac_c_werror_flag" ||
23916 test ! -s conftest.err
23917 } && test -s conftest
$ac_exeext &&
23918 $as_test_x conftest
$ac_exeext; then
23919 ac_cv_lib_readline_rl_pre_input_hook
=yes
23921 echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.
$ac_ext >&5
23924 ac_cv_lib_readline_rl_pre_input_hook
=no
23927 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23928 conftest
$ac_exeext conftest.
$ac_ext
23929 LIBS
=$ac_check_lib_save_LIBS
23931 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23932 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23933 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23935 cat >>confdefs.h
<<\_ACEOF
23936 #define HAVE_RL_PRE_INPUT_HOOK 1
23943 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23944 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23945 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23948 ac_check_lib_save_LIBS
=$LIBS
23949 LIBS
="-lreadline $READLINE_LIBS $LIBS"
23950 cat >conftest.
$ac_ext <<_ACEOF
23953 cat confdefs.h
>>conftest.
$ac_ext
23954 cat >>conftest.
$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23957 /* Override any GCC internal prototype to avoid an error.
23958 Use char because int might match the return type of a GCC
23959 builtin and then its argument prototype would still apply. */
23963 char rl_completion_display_matches_hook ();
23967 return rl_completion_display_matches_hook ();
23972 rm -f conftest.
$ac_objext conftest
$ac_exeext
23973 if { (ac_try
="$ac_link"
23974 case "(($ac_try" in
23975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23976 *) ac_try_echo=$ac_try;;
23978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23979 (eval "$ac_link") 2>conftest.er1
23981 grep -v '^ *+' conftest.er1 >conftest.err
23983 cat conftest.err >&5
23984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } && {
23986 test -z "$ac_c_werror_flag" ||
23987 test ! -s conftest.err
23988 } && test -s conftest$ac_exeext &&
23989 $as_test_x conftest$ac_exeext; then
23990 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23992 echo "$as_me: failed program was:" >&5
23993 sed 's/^/| /' conftest.$ac_ext >&5
23995 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23999 conftest$ac_exeext conftest.$ac_ext
24000 LIBS=$ac_check_lib_save_LIBS
24002 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24003 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24004 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24006 cat >>confdefs.h <<\_ACEOF
24007 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24013 # check for readline 4.2
24014 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24015 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24016 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24017 echo $ECHO_N "(cached) $ECHO_C" >&6
24019 ac_check_lib_save_LIBS=$LIBS
24020 LIBS="-lreadline $READLINE_LIBS $LIBS"
24021 cat >conftest.$ac_ext <<_ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24028 /* Override any GCC internal prototype to avoid an error.
24029 Use char because int might match the return type of a GCC
24030 builtin and then its argument prototype would still apply. */
24034 char rl_completion_matches ();
24038 return rl_completion_matches ();
24043 rm -f conftest.$ac_objext conftest$ac_exeext
24044 if { (ac_try="$ac_link"
24045 case "(($ac_try" in
24046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24047 *) ac_try_echo
=$ac_try;;
24049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24050 (eval "$ac_link") 2>conftest.er1
24052 grep -v '^ *+' conftest.er1
>conftest.err
24054 cat conftest.err
>&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); } && {
24057 test -z "$ac_c_werror_flag" ||
24058 test ! -s conftest.err
24059 } && test -s conftest
$ac_exeext &&
24060 $as_test_x conftest
$ac_exeext; then
24061 ac_cv_lib_readline_rl_completion_matches
=yes
24063 echo "$as_me: failed program was:" >&5
24064 sed 's/^/| /' conftest.
$ac_ext >&5
24066 ac_cv_lib_readline_rl_completion_matches
=no
24069 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24070 conftest
$ac_exeext conftest.
$ac_ext
24071 LIBS
=$ac_check_lib_save_LIBS
24073 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24074 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24075 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24077 cat >>confdefs.h
<<\_ACEOF
24078 #define HAVE_RL_COMPLETION_MATCHES 1
24084 # also in readline 4.2
24085 cat >conftest.
$ac_ext <<_ACEOF
24088 cat confdefs.h
>>conftest.
$ac_ext
24089 cat >>conftest.
$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24091 #include <readline/readline.h>
24093 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24094 case "(($ac_try" in
24095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24101 grep -v '^ *+' conftest.er1 >conftest.err
24103 cat conftest.err >&5
24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); } >/dev/null && {
24106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24107 test ! -s conftest.err
24111 echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24117 rm -f conftest.err conftest.$ac_ext
24118 if test $have_readline = yes
24120 cat >conftest.$ac_ext <<_ACEOF
24123 cat confdefs.h >>conftest.$ac_ext
24124 cat >>conftest.$ac_ext <<_ACEOF
24125 /* end confdefs.h. */
24126 #include <readline/readline.h>
24129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24130 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24132 cat >>confdefs.h <<\_ACEOF
24133 #define HAVE_RL_CATCH_SIGNAL 1
24141 # End of readline checks: restore LIBS
24142 LIBS=$LIBS_no_readline
24144 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24145 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24146 if test "${ac_cv_broken_nice+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24150 if test "$cross_compiling" = yes; then
24151 ac_cv_broken_nice=no
24153 cat >conftest.$ac_ext <<_ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h. */
24162 int val1 = nice(1);
24163 if (val1 != -1 && val1 == nice(2))
24169 rm -f conftest$ac_exeext
24170 if { (ac_try="$ac_link"
24171 case "(($ac_try" in
24172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24173 *) ac_try_echo
=$ac_try;;
24175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24176 (eval "$ac_link") 2>&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24180 { (case "(($ac_try" in
24181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24182 *) ac_try_echo=$ac_try;;
24184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24185 (eval "$ac_try") 2>&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); }; }; then
24189 ac_cv_broken_nice=yes
24191 echo "$as_me: program exited with status $ac_status" >&5
24192 echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24195 ( exit $ac_status )
24196 ac_cv_broken_nice=no
24198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24204 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24205 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24206 if test "$ac_cv_broken_nice" = yes
24209 cat >>confdefs.h <<\_ACEOF
24210 #define HAVE_BROKEN_NICE 1
24215 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24216 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24217 if test "$cross_compiling" = yes; then
24218 ac_cv_broken_poll=no
24220 cat >conftest.$ac_ext <<_ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h. */
24231 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24235 int poll_test = poll (&poll_struct, 1, 0);
24241 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24252 rm -f conftest$ac_exeext
24253 if { (ac_try="$ac_link"
24254 case "(($ac_try" in
24255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24256 *) ac_try_echo
=$ac_try;;
24258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24259 (eval "$ac_link") 2>&5
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24263 { (case "(($ac_try" in
24264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24265 *) ac_try_echo=$ac_try;;
24267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24268 (eval "$ac_try") 2>&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); }; }; then
24272 ac_cv_broken_poll=yes
24274 echo "$as_me: program exited with status $ac_status" >&5
24275 echo "$as_me: failed program was:" >&5
24276 sed 's/^/| /' conftest.$ac_ext >&5
24278 ( exit $ac_status )
24279 ac_cv_broken_poll=no
24281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24285 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24286 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24287 if test "$ac_cv_broken_poll" = yes
24290 cat >>confdefs.h <<\_ACEOF
24291 #define HAVE_BROKEN_POLL 1
24296 # Before we can test tzset, we need to check if struct tm has a tm_zone
24297 # (which is not required by ISO C or UNIX spec) and/or if we support
24299 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24300 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24301 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24302 echo $ECHO_N "(cached) $ECHO_C" >&6
24304 cat >conftest.$ac_ext <<_ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h. */
24310 #include <sys/types.h>
24311 #include <$ac_cv_struct_tm>
24317 static struct tm ac_aggr;
24318 if (ac_aggr.tm_zone)
24324 rm -f conftest.$ac_objext
24325 if { (ac_try="$ac_compile"
24326 case "(($ac_try" in
24327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24328 *) ac_try_echo
=$ac_try;;
24330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24331 (eval "$ac_compile") 2>conftest.er1
24333 grep -v '^ *+' conftest.er1
>conftest.err
24335 cat conftest.err
>&5
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); } && {
24338 test -z "$ac_c_werror_flag" ||
24339 test ! -s conftest.err
24340 } && test -s conftest.
$ac_objext; then
24341 ac_cv_member_struct_tm_tm_zone
=yes
24343 echo "$as_me: failed program was:" >&5
24344 sed 's/^/| /' conftest.
$ac_ext >&5
24346 cat >conftest.
$ac_ext <<_ACEOF
24349 cat confdefs.h
>>conftest.
$ac_ext
24350 cat >>conftest.
$ac_ext <<_ACEOF
24351 /* end confdefs.h. */
24352 #include <sys/types.h>
24353 #include <$ac_cv_struct_tm>
24359 static struct tm ac_aggr;
24360 if (sizeof ac_aggr.tm_zone)
24366 rm -f conftest.
$ac_objext
24367 if { (ac_try
="$ac_compile"
24368 case "(($ac_try" in
24369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24370 *) ac_try_echo=$ac_try;;
24372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24373 (eval "$ac_compile") 2>conftest.er1
24375 grep -v '^ *+' conftest.er1 >conftest.err
24377 cat conftest.err >&5
24378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } && {
24380 test -z "$ac_c_werror_flag" ||
24381 test ! -s conftest.err
24382 } && test -s conftest.$ac_objext; then
24383 ac_cv_member_struct_tm_tm_zone=yes
24385 echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.$ac_ext >&5
24388 ac_cv_member_struct_tm_tm_zone=no
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24396 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24397 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24398 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24400 cat >>confdefs.h <<_ACEOF
24401 #define HAVE_STRUCT_TM_TM_ZONE 1
24407 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24409 cat >>confdefs.h <<\_ACEOF
24410 #define HAVE_TM_ZONE 1
24414 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24415 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24416 if test "${ac_cv_have_decl_tzname+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
24419 cat >conftest.$ac_ext <<_ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h. */
24438 rm -f conftest.$ac_objext
24439 if { (ac_try="$ac_compile"
24440 case "(($ac_try" in
24441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24442 *) ac_try_echo
=$ac_try;;
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445 (eval "$ac_compile") 2>conftest.er1
24447 grep -v '^ *+' conftest.er1
>conftest.err
24449 cat conftest.err
>&5
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); } && {
24452 test -z "$ac_c_werror_flag" ||
24453 test ! -s conftest.err
24454 } && test -s conftest.
$ac_objext; then
24455 ac_cv_have_decl_tzname
=yes
24457 echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.
$ac_ext >&5
24460 ac_cv_have_decl_tzname
=no
24463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24465 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24466 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24467 if test $ac_cv_have_decl_tzname = yes; then
24469 cat >>confdefs.h
<<_ACEOF
24470 #define HAVE_DECL_TZNAME 1
24475 cat >>confdefs.h
<<_ACEOF
24476 #define HAVE_DECL_TZNAME 0
24483 { echo "$as_me:$LINENO: checking for tzname" >&5
24484 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24485 if test "${ac_cv_var_tzname+set}" = set; then
24486 echo $ECHO_N "(cached) $ECHO_C" >&6
24488 cat >conftest.
$ac_ext <<_ACEOF
24491 cat confdefs.h
>>conftest.
$ac_ext
24492 cat >>conftest.
$ac_ext <<_ACEOF
24493 /* end confdefs.h. */
24495 #if !HAVE_DECL_TZNAME
24496 extern char *tzname[];
24502 return tzname[0][0];
24507 rm -f conftest.
$ac_objext conftest
$ac_exeext
24508 if { (ac_try
="$ac_link"
24509 case "(($ac_try" in
24510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24511 *) ac_try_echo=$ac_try;;
24513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24514 (eval "$ac_link") 2>conftest.er1
24516 grep -v '^ *+' conftest.er1 >conftest.err
24518 cat conftest.err >&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } && {
24521 test -z "$ac_c_werror_flag" ||
24522 test ! -s conftest.err
24523 } && test -s conftest$ac_exeext &&
24524 $as_test_x conftest$ac_exeext; then
24525 ac_cv_var_tzname=yes
24527 echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24530 ac_cv_var_tzname=no
24533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24534 conftest$ac_exeext conftest.$ac_ext
24536 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24537 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24538 if test $ac_cv_var_tzname = yes; then
24540 cat >>confdefs.h <<\_ACEOF
24541 #define HAVE_TZNAME 1
24548 # check tzset(3) exists and works like we expect it to
24549 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24550 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24551 if test "${ac_cv_working_tzset+set}" = set; then
24552 echo $ECHO_N "(cached) $ECHO_C" >&6
24555 if test "$cross_compiling" = yes; then
24556 ac_cv_working_tzset=no
24558 cat >conftest.$ac_ext <<_ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h. */
24565 #include <stdlib.h>
24567 #include <string.h>
24570 extern char *tzname[];
24575 /* Note that we need to ensure that not only does tzset(3)
24576 do 'something' with localtime, but it works as documented
24577 in the library reference and as expected by the test suite.
24578 This includes making sure that tzname is set properly if
24579 tm->tm_zone does not exist since it is the alternative way
24580 of getting timezone info.
24582 Red Hat 6.2 doesn't understand the southern hemisphere
24583 after New Year's Day.
24586 time_t groundhogday = 1044144000; /* GMT-based */
24587 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24589 putenv("TZ=UTC+0");
24591 if (localtime(&groundhogday)->tm_hour != 0)
24594 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24595 if (strcmp(tzname[0], "UTC") ||
24596 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24600 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24602 if (localtime(&groundhogday)->tm_hour != 19)
24605 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24609 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24611 if (localtime(&groundhogday)->tm_hour != 11)
24614 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24618 #if HAVE_STRUCT_TM_TM_ZONE
24619 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24621 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24629 rm -f conftest$ac_exeext
24630 if { (ac_try="$ac_link"
24631 case "(($ac_try" in
24632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24633 *) ac_try_echo
=$ac_try;;
24635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636 (eval "$ac_link") 2>&5
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24640 { (case "(($ac_try" in
24641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24645 (eval "$ac_try") 2>&5
24647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 (exit $ac_status); }; }; then
24649 ac_cv_working_tzset=yes
24651 echo "$as_me: program exited with status $ac_status" >&5
24652 echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24655 ( exit $ac_status )
24656 ac_cv_working_tzset=no
24658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24664 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24665 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24666 if test "$ac_cv_working_tzset" = yes
24669 cat >>confdefs.h <<\_ACEOF
24670 #define HAVE_WORKING_TZSET 1
24675 # Look for subsecond timestamps in struct stat
24676 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24677 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24678 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24679 echo $ECHO_N "(cached) $ECHO_C" >&6
24681 cat >conftest.$ac_ext <<_ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h. */
24687 #include <sys/stat.h>
24693 st.st_mtim.tv_nsec = 1;
24699 rm -f conftest.$ac_objext
24700 if { (ac_try="$ac_compile"
24701 case "(($ac_try" in
24702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24703 *) ac_try_echo
=$ac_try;;
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706 (eval "$ac_compile") 2>conftest.er1
24708 grep -v '^ *+' conftest.er1
>conftest.err
24710 cat conftest.err
>&5
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } && {
24713 test -z "$ac_c_werror_flag" ||
24714 test ! -s conftest.err
24715 } && test -s conftest.
$ac_objext; then
24716 ac_cv_stat_tv_nsec
=yes
24718 echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.
$ac_ext >&5
24721 ac_cv_stat_tv_nsec
=no
24724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24727 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24728 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24729 if test "$ac_cv_stat_tv_nsec" = yes
24732 cat >>confdefs.h
<<\_ACEOF
24733 #define HAVE_STAT_TV_NSEC 1
24738 # Look for BSD style subsecond timestamps in struct stat
24739 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24740 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24741 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24742 echo $ECHO_N "(cached) $ECHO_C" >&6
24744 cat >conftest.
$ac_ext <<_ACEOF
24747 cat confdefs.h
>>conftest.
$ac_ext
24748 cat >>conftest.
$ac_ext <<_ACEOF
24749 /* end confdefs.h. */
24750 #include <sys/stat.h>
24756 st.st_mtimespec.tv_nsec = 1;
24762 rm -f conftest.
$ac_objext
24763 if { (ac_try
="$ac_compile"
24764 case "(($ac_try" in
24765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24766 *) ac_try_echo=$ac_try;;
24768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24769 (eval "$ac_compile") 2>conftest.er1
24771 grep -v '^ *+' conftest.er1 >conftest.err
24773 cat conftest.err >&5
24774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24775 (exit $ac_status); } && {
24776 test -z "$ac_c_werror_flag" ||
24777 test ! -s conftest.err
24778 } && test -s conftest.$ac_objext; then
24779 ac_cv_stat_tv_nsec2=yes
24781 echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24784 ac_cv_stat_tv_nsec2=no
24787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24790 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24791 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24792 if test "$ac_cv_stat_tv_nsec2" = yes
24795 cat >>confdefs.h <<\_ACEOF
24796 #define HAVE_STAT_TV_NSEC2 1
24801 # On HP/UX 11.0, mvwdelch is a block with a return statement
24802 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24803 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24804 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24805 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 cat >conftest.$ac_ext <<_ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h. */
24813 #include <curses.h>
24819 rtn = mvwdelch(0,0,0);
24825 rm -f conftest.$ac_objext
24826 if { (ac_try="$ac_compile"
24827 case "(($ac_try" in
24828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24829 *) ac_try_echo
=$ac_try;;
24831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24832 (eval "$ac_compile") 2>conftest.er1
24834 grep -v '^ *+' conftest.er1
>conftest.err
24836 cat conftest.err
>&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); } && {
24839 test -z "$ac_c_werror_flag" ||
24840 test ! -s conftest.err
24841 } && test -s conftest.
$ac_objext; then
24842 ac_cv_mvwdelch_is_expression
=yes
24844 echo "$as_me: failed program was:" >&5
24845 sed 's/^/| /' conftest.
$ac_ext >&5
24847 ac_cv_mvwdelch_is_expression
=no
24850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24853 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24854 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24856 if test "$ac_cv_mvwdelch_is_expression" = yes
24859 cat >>confdefs.h
<<\_ACEOF
24860 #define MVWDELCH_IS_EXPRESSION 1
24865 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24866 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24867 if test "${ac_cv_window_has_flags+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 cat >conftest.
$ac_ext <<_ACEOF
24873 cat confdefs.h
>>conftest.
$ac_ext
24874 cat >>conftest.
$ac_ext <<_ACEOF
24875 /* end confdefs.h. */
24876 #include <curses.h>
24888 rm -f conftest.
$ac_objext
24889 if { (ac_try
="$ac_compile"
24890 case "(($ac_try" in
24891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24892 *) ac_try_echo=$ac_try;;
24894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24895 (eval "$ac_compile") 2>conftest.er1
24897 grep -v '^ *+' conftest.er1 >conftest.err
24899 cat conftest.err >&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } && {
24902 test -z "$ac_c_werror_flag" ||
24903 test ! -s conftest.err
24904 } && test -s conftest.$ac_objext; then
24905 ac_cv_window_has_flags=yes
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24910 ac_cv_window_has_flags=no
24913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24916 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24917 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24920 if test "$ac_cv_window_has_flags" = yes
24923 cat >>confdefs.h <<\_ACEOF
24924 #define WINDOW_HAS_FLAGS 1
24929 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24930 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24931 cat >conftest.$ac_ext <<_ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h. */
24937 #include <curses.h>
24941 void *x=is_term_resized
24946 rm -f conftest.$ac_objext
24947 if { (ac_try="$ac_compile"
24948 case "(($ac_try" in
24949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24950 *) ac_try_echo
=$ac_try;;
24952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24953 (eval "$ac_compile") 2>conftest.er1
24955 grep -v '^ *+' conftest.er1
>conftest.err
24957 cat conftest.err
>&5
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); } && {
24960 test -z "$ac_c_werror_flag" ||
24961 test ! -s conftest.err
24962 } && test -s conftest.
$ac_objext; then
24964 cat >>confdefs.h
<<\_ACEOF
24965 #define HAVE_CURSES_IS_TERM_RESIZED 1
24968 { echo "$as_me:$LINENO: result: yes" >&5
24969 echo "${ECHO_T}yes" >&6; }
24971 echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.
$ac_ext >&5
24974 { echo "$as_me:$LINENO: result: no" >&5
24975 echo "${ECHO_T}no" >&6; }
24979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24981 { echo "$as_me:$LINENO: checking for resize_term" >&5
24982 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24983 cat >conftest.
$ac_ext <<_ACEOF
24986 cat confdefs.h
>>conftest.
$ac_ext
24987 cat >>conftest.
$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24989 #include <curses.h>
24993 void *x=resize_term
24998 rm -f conftest.
$ac_objext
24999 if { (ac_try
="$ac_compile"
25000 case "(($ac_try" in
25001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25002 *) ac_try_echo=$ac_try;;
25004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005 (eval "$ac_compile") 2>conftest.er1
25007 grep -v '^ *+' conftest.er1 >conftest.err
25009 cat conftest.err >&5
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); } && {
25012 test -z "$ac_c_werror_flag" ||
25013 test ! -s conftest.err
25014 } && test -s conftest.$ac_objext; then
25016 cat >>confdefs.h <<\_ACEOF
25017 #define HAVE_CURSES_RESIZE_TERM 1
25020 { echo "$as_me:$LINENO: result: yes" >&5
25021 echo "${ECHO_T}yes" >&6; }
25023 echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25026 { echo "$as_me:$LINENO: result: no" >&5
25027 echo "${ECHO_T}no" >&6; }
25031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25033 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25034 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25035 cat >conftest.$ac_ext <<_ACEOF
25038 cat confdefs.h >>conftest.$ac_ext
25039 cat >>conftest.$ac_ext <<_ACEOF
25040 /* end confdefs.h. */
25041 #include <curses.h>
25050 rm -f conftest.$ac_objext
25051 if { (ac_try="$ac_compile"
25052 case "(($ac_try" in
25053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25054 *) ac_try_echo
=$ac_try;;
25056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25057 (eval "$ac_compile") 2>conftest.er1
25059 grep -v '^ *+' conftest.er1
>conftest.err
25061 cat conftest.err
>&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } && {
25064 test -z "$ac_c_werror_flag" ||
25065 test ! -s conftest.err
25066 } && test -s conftest.
$ac_objext; then
25068 cat >>confdefs.h
<<\_ACEOF
25069 #define HAVE_CURSES_RESIZETERM 1
25072 { echo "$as_me:$LINENO: result: yes" >&5
25073 echo "${ECHO_T}yes" >&6; }
25075 echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.
$ac_ext >&5
25078 { echo "$as_me:$LINENO: result: no" >&5
25079 echo "${ECHO_T}no" >&6; }
25083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25085 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25086 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25088 if test -r /dev
/ptmx
25090 { echo "$as_me:$LINENO: result: yes" >&5
25091 echo "${ECHO_T}yes" >&6; }
25093 cat >>confdefs.h
<<\_ACEOF
25094 #define HAVE_DEV_PTMX 1
25098 { echo "$as_me:$LINENO: result: no" >&5
25099 echo "${ECHO_T}no" >&6; }
25102 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25103 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25105 if test -r /dev
/ptc
25107 { echo "$as_me:$LINENO: result: yes" >&5
25108 echo "${ECHO_T}yes" >&6; }
25110 cat >>confdefs.h
<<\_ACEOF
25111 #define HAVE_DEV_PTC 1
25115 { echo "$as_me:$LINENO: result: no" >&5
25116 echo "${ECHO_T}no" >&6; }
25119 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25120 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25121 if test "$cross_compiling" = yes; then
25122 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25123 See \`config.log' for more details." >&5
25124 echo "$as_me: error: cannot run test program while cross compiling
25125 See \`config.log' for more details." >&2;}
25126 { (exit 1); exit 1; }; }
25128 cat >conftest.
$ac_ext <<_ACEOF
25131 cat confdefs.h
>>conftest.
$ac_ext
25132 cat >>conftest.
$ac_ext <<_ACEOF
25133 /* end confdefs.h. */
25135 #include <stddef.h>
25136 #include <string.h>
25138 #ifdef HAVE_SYS_TYPES_H
25139 #include <sys/types.h>
25142 #ifdef HAVE_SSIZE_T
25143 typedef ssize_t Py_ssize_t;
25144 #elif SIZEOF_VOID_P == SIZEOF_LONG
25145 typedef long Py_ssize_t;
25147 typedef int Py_ssize_t;
25154 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25157 if (strcmp(buffer, "123"))
25160 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25163 if (strcmp(buffer, "-123"))
25169 rm -f conftest
$ac_exeext
25170 if { (ac_try
="$ac_link"
25171 case "(($ac_try" in
25172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25173 *) ac_try_echo=$ac_try;;
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176 (eval "$ac_link") 2>&5
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25180 { (case "(($ac_try" in
25181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25182 *) ac_try_echo
=$ac_try;;
25184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25185 (eval "$ac_try") 2>&5
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; }; then
25189 { echo "$as_me:$LINENO: result: yes" >&5
25190 echo "${ECHO_T}yes" >&6; }
25192 cat >>confdefs.h
<<\_ACEOF
25193 #define PY_FORMAT_SIZE_T "z"
25197 echo "$as_me: program exited with status $ac_status" >&5
25198 echo "$as_me: failed program was:" >&5
25199 sed 's/^/| /' conftest.
$ac_ext >&5
25201 ( exit $ac_status )
25202 { echo "$as_me:$LINENO: result: no" >&5
25203 echo "${ECHO_T}no" >&6; }
25205 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25210 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25211 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25212 if test "${ac_cv_type_socklen_t+set}" = set; then
25213 echo $ECHO_N "(cached) $ECHO_C" >&6
25215 cat >conftest.
$ac_ext <<_ACEOF
25218 cat confdefs.h
>>conftest.
$ac_ext
25219 cat >>conftest.
$ac_ext <<_ACEOF
25220 /* end confdefs.h. */
25222 #ifdef HAVE_SYS_TYPES_H
25223 #include <sys/types.h>
25225 #ifdef HAVE_SYS_SOCKET_H
25226 #include <sys/socket.h>
25230 typedef socklen_t ac__type_new_;
25234 if ((ac__type_new_ *) 0)
25236 if (sizeof (ac__type_new_))
25242 rm -f conftest.
$ac_objext
25243 if { (ac_try
="$ac_compile"
25244 case "(($ac_try" in
25245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25246 *) ac_try_echo=$ac_try;;
25248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25249 (eval "$ac_compile") 2>conftest.er1
25251 grep -v '^ *+' conftest.er1 >conftest.err
25253 cat conftest.err >&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); } && {
25256 test -z "$ac_c_werror_flag" ||
25257 test ! -s conftest.err
25258 } && test -s conftest.$ac_objext; then
25259 ac_cv_type_socklen_t=yes
25261 echo "$as_me: failed program was:" >&5
25262 sed 's/^/| /' conftest.$ac_ext >&5
25264 ac_cv_type_socklen_t=no
25267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25269 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25270 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25271 if test $ac_cv_type_socklen_t = yes; then
25275 cat >>confdefs.h <<\_ACEOF
25276 #define socklen_t int
25284 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25286 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25290 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25291 { echo "$as_me:$LINENO: checking for build directories" >&5
25292 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25293 for dir in $SRCDIRS; do
25294 if test ! -d $dir; then
25298 { echo "$as_me:$LINENO: result: done" >&5
25299 echo "${ECHO_T}done" >&6; }
25301 # generate output files
25302 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25304 cat >confcache <<\_ACEOF
25305 # This file is a shell script that caches the results of configure
25306 # tests run on this system so they can be shared between configure
25307 # scripts and configure runs, see configure's option --config-cache.
25308 # It is not useful on other systems. If it contains results you don't
25309 # want to keep, you may remove or edit it.
25311 # config.status only pays attention to the cache file if you give it
25312 # the --recheck option to rerun configure.
25314 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25316 # following values.
25320 # The following way of writing the cache mishandles newlines in values,
25321 # but we know of no workaround that is simple, portable, and efficient.
25322 # So, we kill variables containing newlines.
25323 # Ultrix sh set writes to stderr and can't be redirected directly,
25324 # and sets the high bit in the cache file unless we assign to the vars.
25326 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25327 eval ac_val
=\$
$ac_var
25331 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25332 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25335 _ | IFS | as_nl
) ;; #(
25336 *) $as_unset $ac_var ;;
25342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25343 *${as_nl}ac_space
=\
*)
25344 # `set' does not quote correctly, so add quotes (double-quote
25345 # substitution turns \\\\ into \\, and sed turns \\ into \).
25348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25351 # `set' quotes correctly as required by POSIX, so do not add quotes.
25352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25365 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25366 if test -w "$cache_file"; then
25367 test "x$cache_file" != "x/dev/null" &&
25368 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25369 echo "$as_me: updating cache $cache_file" >&6;}
25370 cat confcache
>$cache_file
25372 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25373 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25378 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25379 # Let make expand exec_prefix.
25380 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25382 DEFS
=-DHAVE_CONFIG_H
25386 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25387 # 1. Remove the extension, and $U if already installed.
25388 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25389 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25391 # will be set to the directory where LIBOBJS objects are built.
25392 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25393 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25395 LIBOBJS
=$ac_libobjs
25397 LTLIBOBJS
=$ac_ltlibobjs
25401 : ${CONFIG_STATUS=./config.status}
25402 ac_clean_files_save
=$ac_clean_files
25403 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25404 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25405 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25406 cat >$CONFIG_STATUS <<_ACEOF
25408 # Generated by $as_me.
25409 # Run this file to recreate the current configuration.
25410 # Compiler output produced by configure, useful for debugging
25411 # configure, is in config.log if it exists.
25414 ac_cs_recheck=false
25416 SHELL=\${CONFIG_SHELL-$SHELL}
25419 cat >>$CONFIG_STATUS <<\_ACEOF
25420 ## --------------------- ##
25421 ## M4sh Initialization. ##
25422 ## --------------------- ##
25424 # Be more Bourne compatible
25425 DUALCASE
=1; export DUALCASE
# for MKS sh
25426 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25429 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25430 # is contrary to our usage. Disable this feature.
25431 alias -g '${1+"$@"}'='"$@"'
25432 setopt NO_GLOB_SUBST
25434 case `(set -o) 2>/dev/null` in
25435 *posix
*) set -o posix
;;
25444 # Avoid depending upon Character Ranges.
25445 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25446 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25447 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25448 as_cr_digits
='0123456789'
25449 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25451 # The user is always right.
25452 if test "${PATH_SEPARATOR+set}" != set; then
25453 echo "#! /bin/sh" >conf$$.sh
25454 echo "exit 0" >>conf$$.sh
25456 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25464 # Support unset when possible.
25465 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25473 # We need space, tab and new line, in precisely that order. Quoting is
25474 # there to prevent editors from complaining about space-tab.
25475 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25476 # splitting by setting IFS to empty value.)
25481 # Find who we are. Look in the path if we contain no directory separator.
25483 *[\\/]* ) as_myself
=$0 ;;
25484 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25485 for as_dir
in $PATH
25488 test -z "$as_dir" && as_dir
=.
25489 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25495 # We did not find ourselves, most probably we were run as `sh COMMAND'
25496 # in which case we are not to be found in the path.
25497 if test "x$as_myself" = x
; then
25500 if test ! -f "$as_myself"; then
25501 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25502 { (exit 1); exit 1; }
25505 # Work around bugs in pre-3.0 UWIN ksh.
25506 for as_var
in ENV MAIL MAILPATH
25507 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25515 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25516 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25517 LC_TELEPHONE LC_TIME
25519 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25520 eval $as_var=C
; export $as_var
25522 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25526 # Required to use basename.
25527 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25528 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25534 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25535 as_basename
=basename
25541 # Name of the executable.
25542 as_me
=`$as_basename -- "$0" ||
25543 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25544 X"$0" : 'X\(//\)$' \| \
25545 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25547 sed '/^.*\/\([^/][^/]*\)\/*$/{
25566 as_lineno_1
=$LINENO
25567 as_lineno_2
=$LINENO
25568 test "x$as_lineno_1" != "x$as_lineno_2" &&
25569 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25571 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25572 # uniformly replaced by the line number. The first 'sed' inserts a
25573 # line-number line after each line using $LINENO; the second 'sed'
25574 # does the real work. The second script uses 'N' to pair each
25575 # line-number line with the line containing $LINENO, and appends
25576 # trailing '-' during substitution so that $LINENO is not a special
25577 # case at line end.
25578 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25579 # scripts with optimization help from Paolo Bonzini. Blame Lee
25580 # E. McMahon (1931-1989) for sed's syntax. :-)
25592 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25595 ' >$as_me.lineno
&&
25596 chmod +x
"$as_me.lineno" ||
25597 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25598 { (exit 1); exit 1; }; }
25600 # Don't try to exec as it changes $[0], causing all sort of problems
25601 # (the dirname of $[0] is not the place where we might find the
25602 # original and so on. Autoconf is especially sensitive to this).
25603 .
"./$as_me.lineno"
25604 # Exit status is that of the last command.
25609 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25615 ECHO_C
= ECHO_N
= ECHO_T
=
25616 case `echo -n x` in
25618 case `echo 'x\c'` in
25619 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25626 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25627 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25633 rm -f conf$$ conf$$.exe conf$$.
file
25634 if test -d conf$$.dir
; then
25635 rm -f conf$$.dir
/conf$$.
file
25641 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25643 # ... but there are two gotchas:
25644 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25645 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25646 # In both cases, we have to default to `cp -p'.
25647 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25649 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25654 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25655 rmdir conf$$.dir
2>/dev
/null
25657 if mkdir
-p .
2>/dev
/null
; then
25660 test -d .
/-p && rmdir .
/-p
25664 if test -x / >/dev
/null
2>&1; then
25665 as_test_x
='test -x'
25667 if ls -dL / >/dev
/null
2>&1; then
25674 if test -d "$1"; then
25680 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25681 ???[sx]*):;;*)false;;esac;fi
25685 as_executable_p
=$as_test_x
25687 # Sed expression to map a string onto a valid CPP name.
25688 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25690 # Sed expression to map a string onto a valid variable name.
25691 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25696 # Save the log message, to keep $[0] and so on meaningful, and to
25697 # report actual input values of CONFIG_FILES etc. instead of their
25698 # values after options handling.
25700 This file was extended by python $as_me 2.7, which was
25701 generated by GNU Autoconf 2.61. Invocation command line was
25703 CONFIG_FILES = $CONFIG_FILES
25704 CONFIG_HEADERS = $CONFIG_HEADERS
25705 CONFIG_LINKS = $CONFIG_LINKS
25706 CONFIG_COMMANDS = $CONFIG_COMMANDS
25709 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25714 cat >>$CONFIG_STATUS <<_ACEOF
25715 # Files that config.status was made for.
25716 config_files="$ac_config_files"
25717 config_headers="$ac_config_headers"
25721 cat >>$CONFIG_STATUS <<\_ACEOF
25723 \`$as_me' instantiates files from templates according to the
25724 current configuration.
25726 Usage: $0 [OPTIONS] [FILE]...
25728 -h, --help print this help, then exit
25729 -V, --version print version number and configuration settings, then exit
25730 -q, --quiet do not print progress messages
25731 -d, --debug don't remove temporary files
25732 --recheck update $as_me by reconfiguring in the same conditions
25733 --file=FILE[:TEMPLATE]
25734 instantiate the configuration file FILE
25735 --header=FILE[:TEMPLATE]
25736 instantiate the configuration header FILE
25738 Configuration files:
25741 Configuration headers:
25744 Report bugs to <bug-autoconf@gnu.org>."
25747 cat >>$CONFIG_STATUS <<_ACEOF
25749 python config.status 2.7
25750 configured by $0, generated by GNU Autoconf 2.61,
25751 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25753 Copyright (C) 2006 Free Software Foundation, Inc.
25754 This config.status script is free software; the Free Software Foundation
25755 gives unlimited permission to copy, distribute and modify it."
25762 cat >>$CONFIG_STATUS <<\_ACEOF
25763 # If no file are specified by the user, then we need to provide default
25764 # value. By we need to know if files were specified by the user.
25770 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25771 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25782 # Handling of the options.
25783 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25785 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25786 echo "$ac_cs_version"; exit ;;
25787 --debug |
--debu |
--deb |
--de |
--d |
-d )
25789 --file |
--fil |
--fi |
--f )
25791 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25792 ac_need_defaults
=false
;;
25793 --header |
--heade |
--head |
--hea )
25795 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25796 ac_need_defaults
=false
;;
25798 # Conflict between --help and --header
25799 { echo "$as_me: error: ambiguous option: $1
25800 Try \`$0 --help' for more information." >&2
25801 { (exit 1); exit 1; }; };;
25802 --help |
--hel |
-h )
25803 echo "$ac_cs_usage"; exit ;;
25804 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25805 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25808 # This is an error.
25809 -*) { echo "$as_me: error: unrecognized option: $1
25810 Try \`$0 --help' for more information." >&2
25811 { (exit 1); exit 1; }; } ;;
25813 *) ac_config_targets
="$ac_config_targets $1"
25814 ac_need_defaults
=false
;;
25820 ac_configure_extra_args
=
25822 if $ac_cs_silent; then
25824 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25828 cat >>$CONFIG_STATUS <<_ACEOF
25829 if \$ac_cs_recheck; then
25830 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25831 CONFIG_SHELL=$SHELL
25832 export CONFIG_SHELL
25833 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25837 cat >>$CONFIG_STATUS <<\_ACEOF
25841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25842 ## Running $as_me. ##
25848 cat >>$CONFIG_STATUS <<_ACEOF
25851 cat >>$CONFIG_STATUS <<\_ACEOF
25853 # Handling of arguments.
25854 for ac_config_target
in $ac_config_targets
25856 case $ac_config_target in
25857 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25858 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25859 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25860 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25861 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25862 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25863 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25864 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25866 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25867 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25868 { (exit 1); exit 1; }; };;
25873 # If the user did not use the arguments to specify the items to instantiate,
25874 # then the envvar interface is used. Set only those that are not.
25875 # We use the long form for the default assignment because of an extremely
25876 # bizarre bug on SunOS 4.1.3.
25877 if $ac_need_defaults; then
25878 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25879 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25882 # Have a temporary directory for convenience. Make it in the build tree
25883 # simply because there is no reason against having it here, and in addition,
25884 # creating and moving files from /tmp can sometimes cause problems.
25885 # Hook for its removal unless debugging.
25886 # Note that there is a small window in which the directory will not be cleaned:
25887 # after its creation but before its name has been assigned to `$tmp'.
25891 trap 'exit_status=$?
25892 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25894 trap '{ (exit 1); exit 1; }' 1 2 13 15
25896 # Create a (secure) tmp directory for tmp files.
25899 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25900 test -n "$tmp" && test -d "$tmp"
25903 tmp
=.
/conf$$
-$RANDOM
25904 (umask 077 && mkdir
"$tmp")
25907 echo "$me: cannot create a temporary directory in ." >&2
25908 { (exit 1); exit 1; }
25912 # Set up the sed scripts for CONFIG_FILES section.
25915 # No need to generate the scripts if there are no CONFIG_FILES.
25916 # This happens for instance when ./config.status config.h
25917 if test -n "$CONFIG_FILES"; then
25924 for ac_last_try
in false false false false false
:; do
25925 cat >conf$
$subs.
sed <<_ACEOF
25926 SHELL!$SHELL$ac_delim
25927 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25928 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25929 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25930 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25931 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25932 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25933 exec_prefix!$exec_prefix$ac_delim
25934 prefix!$prefix$ac_delim
25935 program_transform_name!$program_transform_name$ac_delim
25936 bindir!$bindir$ac_delim
25937 sbindir!$sbindir$ac_delim
25938 libexecdir!$libexecdir$ac_delim
25939 datarootdir!$datarootdir$ac_delim
25940 datadir!$datadir$ac_delim
25941 sysconfdir!$sysconfdir$ac_delim
25942 sharedstatedir!$sharedstatedir$ac_delim
25943 localstatedir!$localstatedir$ac_delim
25944 includedir!$includedir$ac_delim
25945 oldincludedir!$oldincludedir$ac_delim
25946 docdir!$docdir$ac_delim
25947 infodir!$infodir$ac_delim
25948 htmldir!$htmldir$ac_delim
25949 dvidir!$dvidir$ac_delim
25950 pdfdir!$pdfdir$ac_delim
25951 psdir!$psdir$ac_delim
25952 libdir!$libdir$ac_delim
25953 localedir!$localedir$ac_delim
25954 mandir!$mandir$ac_delim
25955 DEFS!$DEFS$ac_delim
25956 ECHO_C!$ECHO_C$ac_delim
25957 ECHO_N!$ECHO_N$ac_delim
25958 ECHO_T!$ECHO_T$ac_delim
25959 LIBS!$LIBS$ac_delim
25960 build_alias!$build_alias$ac_delim
25961 host_alias!$host_alias$ac_delim
25962 target_alias!$target_alias$ac_delim
25963 VERSION!$VERSION$ac_delim
25964 SOVERSION!$SOVERSION$ac_delim
25965 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25966 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25967 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25968 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25969 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25970 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25971 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25972 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25973 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25974 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25975 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25976 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25977 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25978 MACHDEP!$MACHDEP$ac_delim
25979 SGI_ABI!$SGI_ABI$ac_delim
25980 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25981 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25982 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25983 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25985 CFLAGS!$CFLAGS$ac_delim
25986 LDFLAGS!$LDFLAGS$ac_delim
25987 CPPFLAGS!$CPPFLAGS$ac_delim
25988 ac_ct_CC!$ac_ct_CC$ac_delim
25989 EXEEXT!$EXEEXT$ac_delim
25990 OBJEXT!$OBJEXT$ac_delim
25992 MAINCC!$MAINCC$ac_delim
25994 GREP!$GREP$ac_delim
25995 EGREP!$EGREP$ac_delim
25996 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25997 LIBRARY!$LIBRARY$ac_delim
25998 LDLIBRARY!$LDLIBRARY$ac_delim
25999 DLLLIBRARY!$DLLLIBRARY$ac_delim
26000 BLDLIBRARY!$BLDLIBRARY$ac_delim
26001 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26002 INSTSONAME!$INSTSONAME$ac_delim
26003 RUNSHARED!$RUNSHARED$ac_delim
26004 LINKCC!$LINKCC$ac_delim
26005 RANLIB!$RANLIB$ac_delim
26007 SVNVERSION!$SVNVERSION$ac_delim
26008 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26009 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26010 INSTALL_DATA!$INSTALL_DATA$ac_delim
26013 BASECFLAGS!$BASECFLAGS$ac_delim
26014 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26015 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26016 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26018 LDSHARED!$LDSHARED$ac_delim
26019 BLDSHARED!$BLDSHARED$ac_delim
26020 CCSHARED!$CCSHARED$ac_delim
26021 LINKFORSHARED!$LINKFORSHARED$ac_delim
26022 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26025 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26027 elif $ac_last_try; then
26028 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26029 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26030 { (exit 1); exit 1; }; }
26032 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26036 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26037 if test -n "$ac_eof"; then
26038 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26039 ac_eof
=`expr $ac_eof + 1`
26042 cat >>$CONFIG_STATUS <<_ACEOF
26043 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26047 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26048 s/^/s,@/; s/!/@,|#_!!_#|/
26051 s/'"$ac_delim"'$/,g/; t
26053 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26054 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26055 rm -f conf$
$subs.
sed
26056 cat >>$CONFIG_STATUS <<_ACEOF
26062 for ac_last_try
in false false false false false
:; do
26063 cat >conf$
$subs.
sed <<_ACEOF
26064 SHLIBS!$SHLIBS$ac_delim
26065 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26066 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26067 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26068 LDLAST!$LDLAST$ac_delim
26069 THREADOBJ!$THREADOBJ$ac_delim
26070 DLINCLDIR!$DLINCLDIR$ac_delim
26071 DYNLOADFILE!$DYNLOADFILE$ac_delim
26072 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26073 TRUE!$TRUE$ac_delim
26074 LIBOBJS!$LIBOBJS$ac_delim
26075 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26076 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26077 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26078 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26079 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26080 LIBM!$LIBM$ac_delim
26081 LIBC!$LIBC$ac_delim
26082 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
26083 THREADHEADERS!$THREADHEADERS$ac_delim
26084 SRCDIRS!$SRCDIRS$ac_delim
26085 LTLIBOBJS!$LTLIBOBJS$ac_delim
26088 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
26090 elif $ac_last_try; then
26091 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26092 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26093 { (exit 1); exit 1; }; }
26095 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26099 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26100 if test -n "$ac_eof"; then
26101 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26102 ac_eof
=`expr $ac_eof + 1`
26105 cat >>$CONFIG_STATUS <<_ACEOF
26106 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26110 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26111 s/^/s,@/; s/!/@,|#_!!_#|/
26114 s/'"$ac_delim"'$/,g/; t
26116 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26117 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26118 rm -f conf$
$subs.
sed
26119 cat >>$CONFIG_STATUS <<_ACEOF
26126 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26127 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26128 # trailing colons and then remove the whole line if VPATH becomes empty
26129 # (actually we leave an empty line to preserve line numbers).
26130 if test "x$srcdir" = x.
; then
26131 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26132 s/:*\$(srcdir):*/:/
26133 s/:*\${srcdir}:*/:/
26135 s/^\([^=]*=[ ]*\):*/\1/
26141 cat >>$CONFIG_STATUS <<\_ACEOF
26142 fi # test -n "$CONFIG_FILES"
26145 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26148 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26150 case $ac_mode$ac_tag in
26152 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26153 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26154 { (exit 1); exit 1; }; };;
26155 :[FH
]-) ac_tag
=-:-;;
26156 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26173 -) ac_f
="$tmp/stdin";;
26174 *) # Look for the file first in the build tree, then in the source tree
26175 # (if the path is not absolute). The absolute path cannot be DOS-style,
26176 # because $ac_f cannot contain `:'.
26180 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26182 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26183 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26184 { (exit 1); exit 1; }; };;
26186 ac_file_inputs
="$ac_file_inputs $ac_f"
26189 # Let's still pretend it is `configure' which instantiates (i.e., don't
26190 # use $as_me), people would be surprised to read:
26191 # /* config.h. Generated by config.status. */
26192 configure_input
="Generated from "`IFS=:
26193 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26194 if test x
"$ac_file" != x-
; then
26195 configure_input
="$ac_file. $configure_input"
26196 { echo "$as_me:$LINENO: creating $ac_file" >&5
26197 echo "$as_me: creating $ac_file" >&6;}
26201 *:-:* |
*:-) cat >"$tmp/stdin";;
26206 ac_dir
=`$as_dirname -- "$ac_file" ||
26207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26208 X"$ac_file" : 'X\(//\)[^/]' \| \
26209 X"$ac_file" : 'X\(//\)$' \| \
26210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26216 /^X\(\/\/\)[^/].*/{
26231 -*) as_dir
=.
/$as_dir;;
26233 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26237 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26238 *) as_qdir
=$as_dir;;
26240 as_dirs
="'$as_qdir' $as_dirs"
26241 as_dir
=`$as_dirname -- "$as_dir" ||
26242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26243 X"$as_dir" : 'X\(//\)[^/]' \| \
26244 X"$as_dir" : 'X\(//\)$' \| \
26245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26251 /^X\(\/\/\)[^/].*/{
26264 test -d "$as_dir" && break
26266 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26267 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26268 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26269 { (exit 1); exit 1; }; }; }
26273 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26275 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26276 # A ".." for each directory in $ac_dir_suffix.
26277 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26278 case $ac_top_builddir_sub in
26279 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26280 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26283 ac_abs_top_builddir
=$ac_pwd
26284 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26285 # for backward compatibility:
26286 ac_top_builddir
=$ac_top_build_prefix
26289 .
) # We are building in place.
26291 ac_top_srcdir
=$ac_top_builddir_sub
26292 ac_abs_top_srcdir
=$ac_pwd ;;
26293 [\\/]* | ?
:[\\/]* ) # Absolute name.
26294 ac_srcdir
=$srcdir$ac_dir_suffix;
26295 ac_top_srcdir
=$srcdir
26296 ac_abs_top_srcdir
=$srcdir ;;
26297 *) # Relative name.
26298 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26299 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26300 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26302 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26312 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26313 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26317 cat >>$CONFIG_STATUS <<\_ACEOF
26318 # If the template does not know about datarootdir, expand it.
26319 # FIXME: This hack should be removed a few years after 2.60.
26320 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26322 case `sed -n '/datarootdir/ {
26331 ' $ac_file_inputs` in
26332 *datarootdir
*) ac_datarootdir_seen
=yes;;
26333 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26334 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26335 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26337 cat >>$CONFIG_STATUS <<_ACEOF
26338 ac_datarootdir_hack='
26339 s&@datadir@&$datadir&g
26340 s&@docdir@&$docdir&g
26341 s&@infodir@&$infodir&g
26342 s&@localedir@&$localedir&g
26343 s&@mandir@&$mandir&g
26344 s&\\\${datarootdir}&$datarootdir&g' ;;
26348 # Neutralize VPATH when `$srcdir' = `.'.
26349 # Shell code in configure.ac might set extrasub.
26350 # FIXME: do we really want to maintain this feature?
26351 cat >>$CONFIG_STATUS <<_ACEOF
26355 cat >>$CONFIG_STATUS <<\_ACEOF
26357 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26358 s
&@configure_input@
&$configure_input&;t t
26359 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26360 s
&@srcdir@
&$ac_srcdir&;t t
26361 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26362 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26363 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26364 s
&@builddir@
&$ac_builddir&;t t
26365 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26366 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26367 s
&@INSTALL@
&$ac_INSTALL&;t t
26368 $ac_datarootdir_hack
26369 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26371 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26372 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26373 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26374 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26375 which seems to be undefined. Please make sure it is defined." >&5
26376 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26377 which seems to be undefined. Please make sure it is defined." >&2;}
26381 -) cat "$tmp/out"; rm -f "$tmp/out";;
26382 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26391 # Transform confdefs.h into a sed script `conftest.defines', that
26392 # substitutes the proper values into config.h.in to produce config.h.
26393 rm -f conftest.defines conftest.
tail
26394 # First, append a space to every undef/define line, to ease matching.
26395 echo 's/$/ /' >conftest.defines
26396 # Then, protect against being on the right side of a sed subst, or in
26397 # an unquoted here document, in config.status. If some macros were
26398 # called several times there might be several #defines for the same
26399 # symbol, which is useless. But do not sort them, since the last
26400 # AC_DEFINE must be honored.
26401 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26402 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26403 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26404 # PARAMS is the parameter list in the macro definition--in most cases, it's
26405 # just an empty string.
26406 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26407 ac_dB
='\\)[ (].*,\\1define\\2'
26415 s/^[ ]*#[ ]*define[ ][ ]*//
26420 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26421 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26422 ' >>conftest.defines
26424 # Remove the space that was appended to ease matching.
26425 # Then replace #undef with comments. This is necessary, for
26426 # example, in the case of _POSIX_SOURCE, which is predefined and required
26427 # on some systems where configure will not decide to define it.
26428 # (The regexp can be short, since the line contains either #define or #undef.)
26430 s,^[ #]*u.*,/* & */,' >>conftest.defines
26432 # Break up conftest.defines:
26433 ac_max_sed_lines
=50
26435 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26436 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26437 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26439 ac_in
='$ac_file_inputs'
26440 ac_out
='"$tmp/out1"'
26441 ac_nxt
='"$tmp/out2"'
26445 # Write a here document:
26446 cat >>$CONFIG_STATUS <<_ACEOF
26447 # First, check the format of the line:
26448 cat >"\$tmp/defines.sed" <<\\CEOF
26449 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26450 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26454 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26456 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26457 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26458 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26459 grep . conftest.
tail >/dev
/null ||
break
26460 rm -f conftest.defines
26461 mv conftest.
tail conftest.defines
26463 rm -f conftest.defines conftest.
tail
26465 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26466 cat >>$CONFIG_STATUS <<\_ACEOF
26467 if test x
"$ac_file" != x-
; then
26468 echo "/* $configure_input */" >"$tmp/config.h"
26469 cat "$ac_result" >>"$tmp/config.h"
26470 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26471 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26472 echo "$as_me: $ac_file is unchanged" >&6;}
26475 mv "$tmp/config.h" $ac_file
26478 echo "/* $configure_input */"
26490 { (exit 0); exit 0; }
26492 chmod +x
$CONFIG_STATUS
26493 ac_clean_files
=$ac_clean_files_save
26496 # configure is writing to config.log, and then calls config.status.
26497 # config.status does its own redirection, appending to config.log.
26498 # Unfortunately, on DOS this fails, as config.log is still kept open
26499 # by configure, so config.status won't be able to write to it; its
26500 # output is simply discarded. So we exec the FD to /dev/null,
26501 # effectively closing config.log, so it can be properly (re)opened and
26502 # appended to by config.status. When coming back to configure, we
26503 # need to make the FD available again.
26504 if test "$no_create" != yes; then
26506 ac_config_status_args
=
26507 test "$silent" = yes &&
26508 ac_config_status_args
="$ac_config_status_args --quiet"
26510 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26512 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26513 # would make configure fail if this is the last instruction.
26514 $ac_cs_success ||
{ (exit 1); exit 1; }
26518 echo "creating Modules/Setup"
26519 if test ! -f Modules
/Setup
26521 cp $srcdir/Modules
/Setup.dist Modules
/Setup
26524 echo "creating Modules/Setup.local"
26525 if test ! -f Modules
/Setup.
local
26527 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
26530 echo "creating Makefile"
26531 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
26532 -s Modules Modules
/Setup.config \
26533 Modules
/Setup.
local Modules
/Setup
26535 case $ac_sys_system in
26537 { echo "$as_me:$LINENO: WARNING:
26539 Support for BeOS is deprecated as of Python 2.6.
26540 See PEP 11 for the gory details.
26542 echo "$as_me: WARNING:
26544 Support for BeOS is deprecated as of Python 2.6.
26545 See PEP 11 for the gory details.
26551 mv config.c Modules